nestjs-knife4j-plus 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +59 -0
  3. package/dist/index.d.ts +47 -0
  4. package/dist/index.js +38 -0
  5. package/package.json +48 -0
  6. package/ui/assets/css/app.12fbd497.css +15 -0
  7. package/ui/assets/css/chunk-1287e0be.d6530adc.css +1 -0
  8. package/ui/assets/css/chunk-f3245bfc.9612b987.css +1 -0
  9. package/ui/assets/css/chunk-vendors.f24a310a.css +1 -0
  10. package/ui/assets/fonts/fontawesome-webfont.706450d7.ttf +0 -0
  11. package/ui/assets/fonts/fontawesome-webfont.97493d3f.woff2 +0 -0
  12. package/ui/assets/fonts/fontawesome-webfont.d9ee23d5.woff +0 -0
  13. package/ui/assets/fonts/fontawesome-webfont.f7c2b4b7.eot +0 -0
  14. package/ui/assets/fonts/iconfont.4ca3d0c0.ttf +0 -0
  15. package/ui/assets/fonts/iconfont.e2d2b98e.eot +0 -0
  16. package/ui/assets/img/editormd-logo.53ea80e2.svg +11 -0
  17. package/ui/assets/img/fontawesome-webfont.29800836.svg +565 -0
  18. package/ui/assets/img/iconfont.1d48c203.svg +56 -0
  19. package/ui/assets/img/loading.c929501e.gif +0 -0
  20. package/ui/assets/img/loading@2x.695405a9.gif +0 -0
  21. package/ui/assets/img/loading@3x.65eacf61.gif +0 -0
  22. package/ui/assets/js/app.f5d7ba62.js +1 -0
  23. package/ui/assets/js/chunk-0d102d5a.52847613.js +1 -0
  24. package/ui/assets/js/chunk-0fd67716.7c05a478.js +1 -0
  25. package/ui/assets/js/chunk-1287e0be.3f3aadeb.js +8 -0
  26. package/ui/assets/js/chunk-214218f0.e57955ea.js +1 -0
  27. package/ui/assets/js/chunk-2d0af44e.986e3858.js +1 -0
  28. package/ui/assets/js/chunk-2d0bd799.9cfd78bf.js +1 -0
  29. package/ui/assets/js/chunk-2d0da532.afc7b81f.js +1 -0
  30. package/ui/assets/js/chunk-3b888a65.4da69ee0.js +1 -0
  31. package/ui/assets/js/chunk-42d52f4e.cb854102.js +9 -0
  32. package/ui/assets/js/chunk-589faee0.76a3ceab.js +8 -0
  33. package/ui/assets/js/chunk-6cbe5a9e.eef687ac.js +1 -0
  34. package/ui/assets/js/chunk-735c675c.fa58a10f.js +1 -0
  35. package/ui/assets/js/chunk-9185dcc8.4d55eb83.js +9 -0
  36. package/ui/assets/js/chunk-9aa77aca.5de9c585.js +47 -0
  37. package/ui/assets/js/chunk-a27fb06c.58b6553d.js +1 -0
  38. package/ui/assets/js/chunk-adb9e944.9d64cfc4.js +8 -0
  39. package/ui/assets/js/chunk-f3245bfc.91b00092.js +1 -0
  40. package/ui/assets/js/chunk-vendors.b5c20e55.js +335 -0
  41. package/ui/doc.html +1 -0
  42. package/ui/favicon.ico +0 -0
@@ -0,0 +1,9 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9185dcc8"],{"010c":function(t,e,r){"use strict";var n=r("e56b"),i=r("1147");e.a=function(t){return Object(i.a)(t)&&Object(n.a)(t)}},"025c":function(t,e,r){"use strict";const n={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;const a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;const s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return 60*((e-r)/s+(e<r?6:0));case e:return 60*((r-t)/s+2);case r:return 60*((t-e)/s+4);default:return-1}}};const i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:"0"+e}}};e.a=i},"02ec":function(t,e,r){"use strict";var n=r("23e7"),i=r("67b6");n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},"0305":function(t,e,r){"use strict";var n=r("63bc"),i=function(){try{var t=Object(n.a)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.a=i},"0481":function(t,e,r){"use strict";var n=r("23e7"),i=r("a2bf"),a=r("7b0b"),o=r("07fa"),s=r("5926"),c=r("65f0");n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),r=o(e),n=c(e,0);return n.length=i(n,e,e,r,0,void 0===t?1:s(t)),n}})},"0629":function(t,e,r){"use strict";r.d(e,"a",(function(){return B}));var n=r("bc59"),i=r("706c"),a=r("bc9b"),o=r("9a4b"),s=r("6740"),c=r("7ee8"),l=r("3997"),u=r("dc7a"),h=r("b93d"),d=r("2d5d"),f=r("9ac7"),p=r("1b70");var g=function(t){return t!=t};var y=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1};var b=function(t,e,r){return e==e?y(t,e,r):Object(p.a)(t,g,r)};var m=function(t,e){return!!(null==t?0:t.length)&&b(t,e,0)>-1};var v=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1},_=r("6568"),x=r("a55c");var k=function(){},w=r("1989"),T=x.a&&1/Object(w.a)(new x.a([,-0]))[1]==1/0?function(t){return new x.a(t)}:k;var C=function(t,e,r){var n=-1,i=m,a=t.length,o=!0,s=[],c=s;if(r)o=!1,i=v;else if(a>=200){var l=e?null:T(t);if(l)return Object(w.a)(l);o=!1,i=_.a,c=new f.a}else c=e?[]:s;t:for(;++n<a;){var u=t[n],h=e?e(u):u;if(u=r||0!==u?u:0,o&&h==h){for(var d=c.length;d--;)if(c[d]===h)continue t;e&&c.push(h),s.push(u)}else i(c,h,r)||(c!==s&&c.push(h),s.push(u))}return s},E=r("010c"),S=Object(d.a)((function(t){return C(Object(h.a)(t,1,E.a,!0))})),A=r("4c60"),O=r("a305"),L="\0";class B{constructor(t={}){this._isDirected=!n.a(t,"directed")||t.directed,this._isMultigraph=!!n.a(t,"multigraph")&&t.multigraph,this._isCompound=!!n.a(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=i.a(void 0),this._defaultEdgeLabelFn=i.a(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[L]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return a.a(t)||(t=i.a(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return o.a(this._nodes)}sources(){var t=this;return s.a(this.nodes(),(function(e){return c.a(t._in[e])}))}sinks(){var t=this;return s.a(this.nodes(),(function(e){return c.a(t._out[e])}))}setNodes(t,e){var r=arguments,n=this;return l.a(t,(function(t){r.length>1?n.setNode(t,e):n.setNode(t)})),this}setNode(t,e){return n.a(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=L,this._children[t]={},this._children[L][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return n.a(this._nodes,t)}removeNode(t){var e=this;if(n.a(this._nodes,t)){var r=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],l.a(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),l.a(o.a(this._in[t]),r),delete this._in[t],delete this._preds[t],l.a(o.a(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(u.a(e))e=L;else{for(var r=e+="";!u.a(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(u.a(t)&&(t=L),this._isCompound){var e=this._children[t];if(e)return o.a(e)}else{if(t===L)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return o.a(e)}successors(t){var e=this._sucs[t];if(e)return o.a(e)}neighbors(t){var e=this.predecessors(t);if(e)return S(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;l.a(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),l.a(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))}));var n={};return this._isCompound&&l.a(e.nodes(),(function(t){e.setParent(t,function t(i){var a=r.parent(i);return void 0===a||e.hasNode(a)?(n[i]=a,a):a in n?n[a]:t(a)}(t))})),e}setDefaultEdgeLabel(t){return a.a(t)||(t=i.a(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return A.a(this._edgeObjs)}setPath(t,e){var r=this,n=arguments;return O.a(t,(function(t,i){return n.length>1?r.setEdge(t,i,e):r.setEdge(t,i),i})),this}setEdge(){var t,e,r,i,a=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,r=o.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=o,e=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,u.a(r)||(r=""+r);var s=I(this._isDirected,t,e,r);if(n.a(this._edgeLabels,s))return a&&(this._edgeLabels[s]=i),this;if(!u.a(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=a?i:this._defaultEdgeLabelFn(t,e,r);var c=function(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return n&&(s.name=n),s}(this._isDirected,t,e,r);return t=c.v,e=c.w,Object.freeze(c),this._edgeObjs[s]=c,D(this._preds[e],t),D(this._sucs[t],e),this._in[e][s]=c,this._out[t][s]=c,this._edgeCount++,this}edge(t,e,r){var n=1===arguments.length?N(this._isDirected,arguments[0]):I(this._isDirected,t,e,r);return this._edgeLabels[n]}hasEdge(t,e,r){var i=1===arguments.length?N(this._isDirected,arguments[0]):I(this._isDirected,t,e,r);return n.a(this._edgeLabels,i)}removeEdge(t,e,r){var n=1===arguments.length?N(this._isDirected,arguments[0]):I(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],M(this._preds[e],t),M(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var n=A.a(r);return e?s.a(n,(function(t){return t.v===e})):n}}outEdges(t,e){var r=this._out[t];if(r){var n=A.a(r);return e?s.a(n,(function(t){return t.w===e})):n}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function D(t,e){t[e]?t[e]++:t[e]=1}function M(t,e){--t[e]||delete t[e]}function I(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}return i+""+a+""+(u.a(n)?"\0":n)}function N(t,e){return I(t,e.v,e.w,e.name)}B.prototype._nodeCount=0,B.prototype._edgeCount=0},"06c5":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r("a630e"),r("fb6a"),r("b0c0"),r("d3b7"),r("ac1f"),r("00b4"),r("25f0"),r("3ca3");var n=r("6b75");function i(t,e){if(t){if("string"==typeof t)return Object(n.a)(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(t,e):void 0}}},"070e":function(t,e,r){"use strict";var n=r("5132"),i=r("db72"),a=r("2250"),o=r("7129"),s=r("2332"),c=r("4dc8");var l=function(t,e,r,n){if(!Object(s.a)(t))return t;for(var l=-1,u=(e=Object(a.a)(e,t)).length,h=u-1,d=t;null!=d&&++l<u;){var f=Object(c.a)(e[l]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(l!=h){var g=d[f];void 0===(p=n?n(g,f,d):void 0)&&(p=Object(s.a)(g)?g:Object(o.a)(e[l+1])?[]:{})}Object(i.a)(d,f,p),d=d[f]}return t};var u=function(t,e,r){for(var i=-1,o=e.length,s={};++i<o;){var c=e[i],u=Object(n.a)(t,c);r(u,c)&&l(s,Object(a.a)(c,t),u)}return s},h=r("2b5e");var d=function(t,e){return u(t,e,(function(e,r){return Object(h.a)(t,r)}))},f=r("c56b"),p=r("500e"),g=r("c619");var y=function(t){return Object(g.a)(Object(p.a)(t,void 0,f.a),t+"")}((function(t,e){return null==t?{}:d(t,e)}));e.a=y},"07ac":function(t,e,r){"use strict";var n=r("23e7"),i=r("6f53").values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},"09ee":function(t,e,r){"use strict";var n=r("26ee").a.Uint8Array;e.a=n},"09f4":function(t,e,r){"use strict";var n=r("a12c"),i=r("20b6"),a=r("db72"),o=r("f842"),s=r("9a4b");var c=function(t,e){return t&&Object(o.a)(e,Object(s.a)(e),t)},l=r("e3fa");var u=function(t,e){return t&&Object(o.a)(e,Object(l.a)(e),t)},h=r("dff1"),d=r("7804"),f=r("8cdf");var p=function(t,e){return Object(o.a)(t,Object(f.a)(t),e)},g=r("b4f1"),y=r("52e7"),b=r("589e"),m=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Object(g.a)(e,Object(f.a)(t)),t=Object(y.a)(t);return e}:b.a;var v=function(t,e){return Object(o.a)(t,m(t),e)},_=r("4c5c"),x=r("db97");var k=function(t){return Object(x.a)(t,l.a,m)},w=r("60ce"),T=Object.prototype.hasOwnProperty;var C=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&T.call(t,"index")&&(r.index=t.index,r.input=t.input),r},E=r("964c");var S=function(t,e){var r=e?Object(E.a)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)},A=/\w*$/;var O=function(t){var e=new t.constructor(t.source,A.exec(t));return e.lastIndex=t.lastIndex,e},L=r("ca54"),B=L.a?L.a.prototype:void 0,D=B?B.valueOf:void 0;var M=function(t){return D?Object(D.call(t)):{}},I=r("1b89");var N=function(t,e,r){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return Object(E.a)(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return S(t,r);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 Object(I.a)(t,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return O(t);case"[object Set]":return new n;case"[object Symbol]":return M(t)}},F=r("8583"),j=r("ff51"),R=r("58e0"),P=r("1147");var $=function(t){return Object(P.a)(t)&&"[object Map]"==Object(w.a)(t)},z=r("a2fb"),Y=r("c6eb"),U=Y.a&&Y.a.isMap,W=U?Object(z.a)(U):$,q=r("2332");var H=function(t){return Object(P.a)(t)&&"[object Set]"==Object(w.a)(t)},V=Y.a&&Y.a.isSet,G=V?Object(z.a)(V):H,X="[object Arguments]",K="[object Function]",Q="[object Object]",Z={};Z[X]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object DataView]"]=Z["[object Boolean]"]=Z["[object Date]"]=Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Map]"]=Z["[object Number]"]=Z[Q]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object Symbol]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Error]"]=Z[K]=Z["[object WeakMap]"]=!1,e.a=function t(e,r,o,f,g,y){var b,m=1&r,x=2&r,T=4&r;if(o&&(b=g?o(e,f,g,y):o(e)),void 0!==b)return b;if(!Object(q.a)(e))return e;var E=Object(j.a)(e);if(E){if(b=C(e),!m)return Object(d.a)(e,b)}else{var S=Object(w.a)(e),A=S==K||"[object GeneratorFunction]"==S;if(Object(R.a)(e))return Object(h.a)(e,m);if(S==Q||S==X||A&&!g){if(b=x||A?{}:Object(F.a)(e),!m)return x?v(e,u(b,e)):p(e,c(b,e))}else{if(!Z[S])return g?e:{};b=N(e,S,m)}}y||(y=new n.a);var O=y.get(e);if(O)return O;y.set(e,b),G(e)?e.forEach((function(n){b.add(t(n,r,o,n,e,y))})):W(e)&&e.forEach((function(n,i){b.set(i,t(n,r,o,i,e,y))}));var L=T?x?k:_.a:x?l.a:s.a,B=E?void 0:L(e);return Object(i.a)(B||e,(function(n,i){B&&(n=e[i=n]),Object(a.a)(b,i,t(n,r,o,i,e,y))})),b}},"0b25":function(t,e,r){"use strict";var n=r("5926"),i=r("50c4"),a=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw new a("Wrong length or index");return r}},"0c47":function(t,e,r){"use strict";var n=r("cfe9");r("d44e")(n.JSON,"JSON",!0)},"0e59":function(t,e,r){"use strict";var n=r("63bc"),i=Object(n.a)(Object,"create");var a=function(){this.__data__=i?i(null):{},this.size=0};var o=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},s=Object.prototype.hasOwnProperty;var c=function(t){var e=this.__data__;if(i){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0},l=Object.prototype.hasOwnProperty;var u=function(t){var e=this.__data__;return i?void 0!==e[t]:l.call(e,t)};var h=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};function d(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}d.prototype.clear=a,d.prototype.delete=o,d.prototype.get=c,d.prototype.has=u,d.prototype.set=h;var f=d,p=r("9cbb"),g=r("ddc9");var y=function(){this.size=0,this.__data__={hash:new f,map:new(g.a||p.a),string:new f}};var b=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var m=function(t,e){var r=t.__data__;return b(e)?r["string"==typeof e?"string":"hash"]:r.map};var v=function(t){var e=m(this,t).delete(t);return this.size-=e?1:0,e};var _=function(t){return m(this,t).get(t)};var x=function(t){return m(this,t).has(t)};var k=function(t,e){var r=m(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function w(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}w.prototype.clear=y,w.prototype.delete=v,w.prototype.get=_,w.prototype.has=x,w.prototype.set=k,e.a=w},"0eb6":function(t,e,r){"use strict";var n=r("23e7"),i=r("d066"),a=r("2a07"),o=r("d039"),s=r("7c73"),c=r("5c6c"),l=r("9bf2").f,u=r("cb2d"),h=r("edd0"),d=r("1a2d"),f=r("19aa"),p=r("825a"),g=r("aa1f"),y=r("e391"),b=r("cf98"),m=r("0d26"),v=r("69f3"),_=r("83ab"),x=r("c430"),k="DOMException",w="DATA_CLONE_ERR",T=i("Error"),C=i(k)||function(){try{(new(i("MessageChannel")||a("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===w&&25===t.code)return t.constructor}}(),E=C&&C.prototype,S=T.prototype,A=v.set,O=v.getterFor(k),L="stack"in new T(k),B=function(t){return d(b,t)&&b[t].m?b[t].c:0},D=function(){f(this,M);var t=arguments.length,e=y(t<1?void 0:arguments[0]),r=y(t<2?void 0:arguments[1],"Error"),n=B(r);if(A(this,{type:k,name:r,message:e,code:n}),_||(this.name=r,this.message=e,this.code=n),L){var i=new T(e);i.name=k,l(this,"stack",c(1,m(i.stack,1)))}},M=D.prototype=s(S),I=function(t){return{enumerable:!0,configurable:!0,get:t}},N=function(t){return I((function(){return O(this)[t]}))};_&&(h(M,"code",N("code")),h(M,"message",N("message")),h(M,"name",N("name"))),l(M,"constructor",c(1,D));var F=o((function(){return!(new C instanceof T)})),j=F||o((function(){return S.toString!==g||"2: 1"!==String(new C(1,2))})),R=F||o((function(){return 25!==new C(1,"DataCloneError").code})),P=F||25!==C[w]||25!==E[w],$=x?j||R||P:F;n({global:!0,constructor:!0,forced:$},{DOMException:$?D:C});var z=i(k),Y=z.prototype;for(var U in j&&(x||C===z)&&u(Y,"toString",g),R&&_&&C===z&&h(Y,"code",I((function(){return B(p(this).name)}))),b)if(d(b,U)){var W=b[U],q=W.s,H=c(6,W.c);d(z,q)||l(z,q,H),d(Y,q)||l(Y,q,H)}},"0f40":function(t,e,r){var n=r("be56"),i=r("9aff"),a=r("6428"),o=parseFloat,s=Math.min,c=Math.random;t.exports=function(t,e,r){if(r&&"boolean"!=typeof r&&i(t,e,r)&&(e=r=void 0),void 0===r&&("boolean"==typeof e?(r=e,e=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=a(t),void 0===e?(e=t,t=0):e=a(e)),t>e){var l=t;t=e,e=l}if(r||t%1||e%1){var u=c();return s(t+u*(e-t+o("1e-"+((u+"").length-1))),e)}return n(t,e)}},1147:function(t,e,r){"use strict";e.a=function(t){return null!=t&&"object"==typeof t}},1148:function(t,e,r){"use strict";var n=r("5926"),i=r("577e"),a=r("1d80"),o=RangeError;t.exports=function(t){var e=i(a(this)),r="",s=n(t);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(r+=e);return r}},1276:function(t,e,r){"use strict";var n=r("c65b"),i=r("e330"),a=r("d784"),o=r("825a"),s=r("861d"),c=r("1d80"),l=r("4840"),u=r("8aa5"),h=r("50c4"),d=r("577e"),f=r("dc4a"),p=r("14c3"),g=r("9f7f"),y=r("d039"),b=g.UNSUPPORTED_Y,m=Math.min,v=i([].push),_=i("".slice),x=!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),k="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;a("split",(function(t,e,r){var i="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e;return[function(e,r){var a=c(this),o=s(e)?f(e,t):void 0;return o?n(o,e,a,r):n(i,d(a),e,r)},function(t,n){var a=o(this),s=d(t);if(!k){var c=r(i,a,s,n,i!==e);if(c.done)return c.value}var f=l(a,RegExp),g=a.unicode,y=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(b?"g":"y"),x=new f(b?"^(?:"+a.source+")":a,y),w=void 0===n?4294967295:n>>>0;if(0===w)return[];if(0===s.length)return null===p(x,s)?[s]:[];for(var T=0,C=0,E=[];C<s.length;){x.lastIndex=b?0:C;var S,A=p(x,b?_(s,C):s);if(null===A||(S=m(h(x.lastIndex+(b?C:0)),s.length))===T)C=u(s,C,g);else{if(v(E,_(s,T,C)),E.length===w)return E;for(var O=1;O<=A.length-1;O++)if(v(E,A[O]),E.length===w)return E;C=T=S}}return v(E,_(s,T)),E}]}),k||!x,b)},"131a":function(t,e,r){"use strict";r("23e7")({target:"Object",stat:!0},{setPrototypeOf:r("d2bb")})},"13a6":function(t,e,r){"use strict";var n=Math.round;t.exports=function(t){var e=n(t);return e<0?0:e>255?255:255&e}},"145e":function(t,e,r){"use strict";var n=r("7b0b"),i=r("23cb"),a=r("07fa"),o=r("083a"),s=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),c=a(r),l=i(t,c),u=i(e,c),h=arguments.length>2?arguments[2]:void 0,d=s((void 0===h?c:i(h,c))-u,c-l),f=1;for(u<l&&l<u+d&&(f=-1,u+=d-1,l+=d-1);d-- >0;)u in r?r[l]=r[u]:o(r,l),l+=f,u+=f;return r}},1522:function(t,e,r){"use strict";e.a=function(t){return function(e){return null==e?void 0:e[t]}}},"15f5":function(t,e,r){"use strict";var n=r("025c"),i=r("dc5b");var a=class{constructor(){this.type=i.b.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.b.ALL}is(t){return this.type===t}};const o=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.b.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=n.a.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.a.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=n.a.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=n.a.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.a.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=n.a.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(i.b.HSL)||void 0===e?(this._ensureHSL(),n.a.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(i.b.HSL)||void 0===e?(this._ensureHSL(),n.a.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(i.b.HSL)||void 0===e?(this._ensureHSL(),n.a.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(i.b.RGB)||void 0===e?(this._ensureRGB(),n.a.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(i.b.RGB)||void 0===e?(this._ensureRGB(),n.a.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(i.b.RGB)||void 0===e?(this._ensureRGB(),n.a.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.b.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.b.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.b.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.b.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.b.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.b.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent");e.a=o},"170b":function(t,e,r){"use strict";var n=r("ebb5"),i=r("50c4"),a=r("23cb"),o=n.aTypedArray,s=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("subarray",(function(t,e){var r=o(this),n=r.length,c=a(t,n);return new(s(r))(r.buffer,r.byteOffset+c*r.BYTES_PER_ELEMENT,i((void 0===e?n:a(e,n))-c))}))},"182d":function(t,e,r){"use strict";var n=r("f8cd"),i=RangeError;t.exports=function(t,e){var r=n(t);if(r%e)throw new i("Wrong offset");return r}},"18a5":function(t,e,r){"use strict";var n=r("23e7"),i=r("857a");n({target:"String",proto:!0,forced:r("af03")("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},"18df":function(t,e,r){"use strict";function n(t,e,r,n){var a,o,s,c,l,u,h,d,f,p,g,y,b;if(a=e.y-t.y,s=t.x-e.x,l=e.x*t.y-t.x*e.y,f=a*r.x+s*r.y+l,p=a*n.x+s*n.y+l,!(0!==f&&0!==p&&i(f,p)||(o=n.y-r.y,c=r.x-n.x,u=n.x*r.y-r.x*n.y,h=o*t.x+c*t.y+u,d=o*e.x+c*e.y+u,0!==h&&0!==d&&i(h,d)||(g=a*c-o*s,0===g))))return y=Math.abs(g/2),{x:(b=s*u-c*l)<0?(b-y)/g:(b+y)/g,y:(b=o*l-a*u)<0?(b-y)/g:(b+y)/g}}function i(t,e){return t*e>0}function a(t,e,r){var i=t.x,a=t.y,o=[],s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){s=Math.min(s,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-s,u=a-t.height/2-c,h=0;h<e.length;h++){var d=e[h],f=e[h<e.length-1?h+1:0],p=n(t,r,{x:l+d.x,y:u+d.y},{x:l+f.x,y:u+f.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort((function(t,e){var n=t.x-r.x,i=t.y-r.y,a=Math.sqrt(n*n+i*i),o=e.x-r.x,s=e.y-r.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1})),o[0]):t}r.d(e,"a",(function(){return a}))},1989:function(t,e,r){"use strict";e.a=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},"1b70":function(t,e,r){"use strict";e.a=function(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a<i;)if(e(t[a],a,t))return a;return-1}},"1b89":function(t,e,r){"use strict";var n=r("964c");e.a=function(t,e){var r=e?Object(n.a)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},"1b99":function(t,e,r){"use strict";var n=r("6999"),i=r("9a4b");e.a=function(t,e){return t&&Object(n.a)(t,e,i.a)}},"1bc6":function(t,e,r){"use strict";var n=r("f0ce"),i=r("1147");e.a=function(t){return"symbol"==typeof t||Object(i.a)(t)&&"[object Symbol]"==Object(n.a)(t)}},"1c59":function(t,e,r){"use strict";r("6d61")("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r("6566"))},"1c86":function(t,e,r){"use strict";var n=r("15f5"),i=r("dc5b");const a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(a.re);if(!e)return;const r=e[1],i=parseInt(r,16),o=r.length,s=o%4==0,c=o>4,l=c?1:17,u=c?8:4,h=s?0:-1,d=c?255:15;return n.a.set({r:(i>>u*(h+3)&d)*l,g:(i>>u*(h+2)&d)*l,b:(i>>u*(h+1)&d)*l,a:s?(i&d)*l/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:a}=t;return a<1?`#${i.a[Math.round(e)]}${i.a[Math.round(r)]}${i.a[Math.round(n)]}${i.a[Math.round(255*a)]}`:`#${i.a[Math.round(e)]}${i.a[Math.round(r)]}${i.a[Math.round(n)]}`}};var o=a,s=r("025c");const c={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:t=>{const e=t.match(c.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return s.a.channel.clamp.h(.9*parseFloat(t));case"rad":return s.a.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.a.channel.clamp.h(360*parseFloat(t))}}return s.a.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const r=t.match(c.re);if(!r)return;const[,i,a,o,l,u]=r;return n.a.set({h:c._hue2deg(i),s:s.a.channel.clamp.s(parseFloat(a)),l:s.a.channel.clamp.l(parseFloat(o)),a:l?s.a.channel.clamp.a(u?parseFloat(l)/100:parseFloat(l)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${s.a.lang.round(e)}, ${s.a.lang.round(r)}%, ${s.a.lang.round(n)}%, ${i})`:`hsl(${s.a.lang.round(e)}, ${s.a.lang.round(r)}%, ${s.a.lang.round(n)}%)`}};var l=c;const u={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:t=>{t=t.toLowerCase();const e=u.colors[t];if(e)return o.parse(e)},stringify:t=>{const e=o.stringify(t);for(const t in u.colors)if(u.colors[t]===e)return t}};var h=u;const d={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:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const r=t.match(d.re);if(!r)return;const[,i,a,o,c,l,u,h,f]=r;return n.a.set({r:s.a.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:s.a.channel.clamp.g(c?2.55*parseFloat(o):parseFloat(o)),b:s.a.channel.clamp.b(u?2.55*parseFloat(l):parseFloat(l)),a:h?s.a.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${s.a.lang.round(e)}, ${s.a.lang.round(r)}, ${s.a.lang.round(n)}, ${s.a.lang.round(i)})`:`rgb(${s.a.lang.round(e)}, ${s.a.lang.round(r)}, ${s.a.lang.round(n)})`}};var f=d;const p={format:{keyword:h,hex:o,rgb:f,rgba:f,hsl:l,hsla:l},parse:t=>{if("string"!=typeof t)return t;const e=o.parse(t)||f.parse(t)||l.parse(t)||h.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.b.HSL)||void 0===t.data.r?l.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?f.stringify(t):o.stringify(t)};e.a=p},"1d02":function(t,e,r){"use strict";var n=r("ebb5"),i=r("a258").findLastIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},"1da1":function(t,e,r){"use strict";function n(t,e,r,n,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var o=t.apply(e,r);function s(t){n(o,i,a,s,c,"next",t)}function c(t){n(o,i,a,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return i})),r("d3b7")},"1e5a":function(t,e,r){"use strict";var n=r("23e7"),i=r("9961"),a=r("5320");n({target:"Set",proto:!0,real:!0,forced:!r("dad2")("symmetricDifference")||!a("symmetricDifference")},{symmetricDifference:i})},"1e70":function(t,e,r){"use strict";var n=r("23e7"),i=r("a5f7"),a=r("d039");n({target:"Set",proto:!0,real:!0,forced:!r("dad2")("difference",(function(t){return 0===t.size}))||a((function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var r=t++>1;return e.has(1)&&e.clear(),{done:r,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size}))},{difference:i})},"1f68":function(t,e,r){"use strict";var n=r("83ab"),i=r("edd0"),a=r("861d"),o=r("1787"),s=r("7b0b"),c=r("1d80"),l=Object.getPrototypeOf,u=Object.setPrototypeOf,h=Object.prototype,d="__proto__";if(n&&l&&u&&!(d in h))try{i(h,d,{configurable:!0,get:function(){return l(s(this))},set:function(t){var e=c(this);o(t)&&a(e)&&u(e,t)}})}catch(t){}},2005:function(t,e,r){"use strict";var n=r("75bd"),i=TypeError;t.exports=function(t){if(n(t))throw new i("ArrayBuffer is detached");return t}},"20b6":function(t,e,r){"use strict";e.a=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},"219c":function(t,e,r){"use strict";var n=r("cfe9"),i=r("4625"),a=r("d039"),o=r("59ed"),s=r("addb"),c=r("ebb5"),l=r("3f7e"),u=r("99f4"),h=r("1212"),d=r("ea83"),f=c.aTypedArray,p=c.exportTypedArrayMethod,g=n.Uint16Array,y=g&&i(g.prototype.sort),b=!(!y||a((function(){y(new g(2),null)}))&&a((function(){y(new g(2),{})}))),m=!!y&&!a((function(){if(h)return h<74;if(l)return l<67;if(u)return!0;if(d)return d<602;var t,e,r=new g(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(y(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));p("sort",(function(t){return void 0!==t&&o(t),m?y(this,t):s(f(this),function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t))}),!m||b)},2250:function(t,e,r){"use strict";var n=r("ff51"),i=r("bd8f"),a=r("a134");var o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,c=function(t){var e=Object(a.a)(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,i){e.push(n?i.replace(s,"$1"):r||t)})),e})),l=r("79f6");e.a=function(t,e){return Object(n.a)(t)?t:Object(i.a)(t,e)?[t]:c(Object(l.a)(t))}},2332:function(t,e,r){"use strict";e.a=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},"23dc":function(t,e,r){"use strict";r("d44e")(Math,"Math",!0)},"249d":function(t,e,r){"use strict";var n=r("23e7"),i=r("41f6");i&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},"25a1":function(t,e,r){"use strict";var n=r("ebb5"),i=r("d58f").right,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},"26ce":function(t,e,r){"use strict";e.a=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},"26ee":function(t,e,r){"use strict";var n=r("5ea3"),i="object"==typeof self&&self&&self.Object===Object&&self,a=n.a||i||Function("return this")();e.a=a},2834:function(t,e,r){"use strict";var n=r("ebb5"),i=r("e330"),a=r("59ed"),o=r("dfb9"),s=n.aTypedArray,c=n.getTypedArrayConstructor,l=n.exportTypedArrayMethod,u=i(n.TypedArrayPrototype.sort);l("toSorted",(function(t){void 0!==t&&a(t);var e=s(this),r=o(c(e),e);return u(r,t)}))},2909:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r("6b75");r("a4d3"),r("e01a"),r("d28b"),r("a630e"),r("d3b7"),r("3ca3"),r("ddb0");var i=r("06c5");function a(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r("d9e2")},2954:function(t,e,r){"use strict";var n=r("ebb5"),i=r("d039"),a=r("f36a"),o=n.aTypedArray,s=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("slice",(function(t,e){for(var r=a(o(this),t,e),n=s(this),i=0,c=r.length,l=new n(c);c>i;)l[i]=r[i++];return l}),i((function(){new Int8Array(1).slice()})))},"2a07":function(t,e,r){"use strict";var n=r("cfe9"),i=r("9adc");t.exports=function(t){if(i){try{return n.process.getBuiltinModule(t)}catch(t){}try{return Function('return require("'+t+'")')()}catch(t){}}}},"2b5e":function(t,e,r){"use strict";var n=function(t,e){return null!=t&&e in Object(t)},i=r("362e");e.a=function(t,e){return null!=t&&Object(i.a)(t,e,n)}},"2c66":function(t,e,r){"use strict";var n=r("83ab"),i=r("edd0"),a=r("75bd"),o=ArrayBuffer.prototype;n&&!("detached"in o)&&i(o,"detached",{configurable:!0,get:function(){return a(this)}})},"2d5d":function(t,e,r){"use strict";var n=r("f976"),i=r("500e"),a=r("c619");e.a=function(t,e){return Object(a.a)(Object(i.a)(t,e,n.a),t+"")}},"2f74":function(t,e,r){"use strict";e.a=function(){return!1}},"30f2":function(t,e,r){"use strict";var n=r("dfb9"),i=r("ebb5").getTypedArrayConstructor;t.exports=function(t,e){return n(i(t),e)}},"313d":function(t,e,r){"use strict";var n=r("23e7"),i=r("cfe9"),a=r("d066"),o=r("e330"),s=r("c65b"),c=r("d039"),l=r("577e"),u=r("d6d6"),h=r("b917").i2c,d=a("btoa"),f=o("".charAt),p=o("".charCodeAt),g=!!d&&!c((function(){return"aGk="!==d("hi")})),y=g&&!c((function(){d()})),b=g&&c((function(){return"bnVsbA=="!==d(null)})),m=g&&1!==d.length;n({global:!0,bind:!0,enumerable:!0,forced:!g||y||b||m},{btoa:function(t){if(u(arguments.length,1),g)return s(d,i,l(t));for(var e,r,n=l(t),o="",c=0,y=h;f(n,c)||(y="=",c%1);){if((r=p(n,c+=3/4))>255)throw new(a("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o+=f(y,63&(e=e<<8|r)>>8-c%1*8)}return o}})},3244:function(t,e,r){"use strict";e.a=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,a=[];++r<n;){var o=t[r];e(o,r,t)&&(a[i++]=o)}return a}},3280:function(t,e,r){"use strict";var n=r("ebb5"),i=r("2ba4"),a=r("e58c"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},3410:function(t,e,r){"use strict";var n=r("23e7"),i=r("d039"),a=r("7b0b"),o=r("e163"),s=r("e177");n({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},"362e":function(t,e,r){"use strict";var n=r("2250"),i=r("f5fe"),a=r("ff51"),o=r("7129"),s=r("26ce"),c=r("4dc8");e.a=function(t,e,r){for(var l=-1,u=(e=Object(n.a)(e,t)).length,h=!1;++l<u;){var d=Object(c.a)(e[l]);if(!(h=null!=t&&r(t,d)))break;t=t[d]}return h||++l!=u?h:!!(u=null==t?0:t.length)&&Object(s.a)(u)&&Object(o.a)(d,u)&&(Object(a.a)(t)||Object(i.a)(t))}},3683:function(t,e,r){"use strict";var n=r("7200");e.a=(t,e)=>Object(n.a)(t,"l",e)},"36f2":function(t,e,r){"use strict";var n,i,a,o,s=r("cfe9"),c=r("2a07"),l=r("dbe5"),u=s.structuredClone,h=s.ArrayBuffer,d=s.MessageChannel,f=!1;if(l)f=function(t){u(t,{transfer:[t]})};else if(h)try{d||(n=c("worker_threads"))&&(d=n.MessageChannel),d&&(i=new d,a=new h(2),o=function(t){i.port1.postMessage(null,[t])},2===a.byteLength&&(o(a),0===a.byteLength&&(f=o)))}catch(t){}t.exports=f},3835:function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r("a4d3"),r("e01a"),r("d28b"),r("14d9"),r("d3b7"),r("3ca3"),r("ddb0");var n=r("06c5");function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(t,e)||Object(n.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r("d9e2")},"384f":function(t,e,r){"use strict";var n=r("e330"),i=r("5388"),a=r("cb27"),o=a.Set,s=a.proto,c=n(s.forEach),l=n(s.keys),u=l(new o).next;t.exports=function(t,e,r){return r?i({iterator:l(t),next:u},e):c(t,e)}},"395e":function(t,e,r){"use strict";var n=r("dc19"),i=r("cb27").has,a=r("8e16"),o=r("7f65"),s=r("5388"),c=r("2a62");t.exports=function(t){var e=n(this),r=o(t);if(a(e)<r.size)return!1;var l=r.getIterator();return!1!==s(l,(function(t){if(!i(e,t))return c(l,"normal",!1)}))}},3997:function(t,e,r){"use strict";var n=r("20b6"),i=r("dba9"),a=r("6677"),o=r("ff51");e.a=function(t,e){return(Object(o.a)(t)?n.a:i.a)(t,Object(a.a)(e))}},"3a7b":function(t,e,r){"use strict";var n=r("ebb5"),i=r("b727").findIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},"3c5d":function(t,e,r){"use strict";var n=r("cfe9"),i=r("c65b"),a=r("ebb5"),o=r("07fa"),s=r("182d"),c=r("7b0b"),l=r("d039"),u=n.RangeError,h=n.Int8Array,d=h&&h.prototype,f=d&&d.set,p=a.aTypedArray,g=a.exportTypedArrayMethod,y=!l((function(){var t=new Uint8ClampedArray(2);return i(f,t,{length:1,0:3},1),3!==t[1]})),b=y&&a.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){p(this);var e=s(arguments.length>1?arguments[1]:void 0,1),r=c(t);if(y)return i(f,this,r,e);var n=this.length,a=o(r),l=0;if(a+e>n)throw new u("Wrong length");for(;l<a;)this[e+l]=r[l++]}),!y||b)},"3de6":function(t,e,r){"use strict";r.d(e,"e",(function(){return a})),r.d(e,"d",(function(){return o})),r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return u})),r.d(e,"c",(function(){return h}));var n=r("e8b2"),i=r("bc9b");function a(t,e){return!!t.children(e).length}function o(t){return c(t.v)+":"+c(t.w)+":"+c(t.name)}var s=/:/g;function c(t){return t?String(t).replace(s,"\\:"):""}function l(t,e){e&&t.attr("style",e)}function u(t,e,r){e&&t.attr("class",e).attr("class",r+" "+t.attr("class"))}function h(t,e){var r=e.graph();if(n.a(r)){var a=r.transition;if(i.a(a))return a(t)}return t}},"3fcc":function(t,e,r){"use strict";var n=r("ebb5"),i=r("b727").map,a=n.aTypedArray,o=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},4069:function(t,e,r){"use strict";r("44d2")("flat")},"40e9":function(t,e,r){"use strict";var n=r("23e7"),i=r("41f6");i&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},"41f6":function(t,e,r){"use strict";var n=r("cfe9"),i=r("e330"),a=r("7282"),o=r("0b25"),s=r("2005"),c=r("b620"),l=r("36f2"),u=r("dbe5"),h=n.structuredClone,d=n.ArrayBuffer,f=n.DataView,p=Math.min,g=d.prototype,y=f.prototype,b=i(g.slice),m=a(g,"resizable","get"),v=a(g,"maxByteLength","get"),_=i(y.getInt8),x=i(y.setInt8);t.exports=(u||l)&&function(t,e,r){var n,i=c(t),a=void 0===e?i:o(e),g=!m||!m(t);if(s(t),u&&(t=h(t,{transfer:[t]}),i===a&&(r||g)))return t;if(i>=a&&(!r||g))n=b(t,0,a);else{var y=r&&!g&&v?{maxByteLength:v(t)}:void 0;n=new d(a,y);for(var k=new f(t),w=new f(n),T=p(a,i),C=0;C<T;C++)x(w,C,_(k,C))}return u||l(t),n}},"4b11":function(t,e,r){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4c5c":function(t,e,r){"use strict";var n=r("db97"),i=r("8cdf"),a=r("9a4b");e.a=function(t){return Object(n.a)(t,a.a,i.a)}},"4c60":function(t,e,r){"use strict";var n=r("b703");var i=function(t,e){return Object(n.a)(e,(function(e){return t[e]}))},a=r("9a4b");e.a=function(t){return null==t?[]:i(t,Object(a.a)(t))}},"4dc8":function(t,e,r){"use strict";var n=r("1bc6");e.a=function(t){if("string"==typeof t||Object(n.a)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},"4ea1":function(t,e,r){"use strict";var n=r("d429"),i=r("ebb5"),a=r("bcbf"),o=r("5926"),s=r("f495"),c=i.aTypedArray,l=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,h=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),d=h&&function(){try{new Int8Array(1).with(-.5,1)}catch(t){return!0}}();u("with",{with:function(t,e){var r=c(this),i=o(t),u=a(r)?s(e):+e;return n(r,l(r),i,u)}}.with,!h||d)},"4ec9":function(t,e,r){"use strict";r("6f48")},"4fad":function(t,e,r){"use strict";var n=r("d039"),i=r("861d"),a=r("c6b6"),o=r("d86b"),s=Object.isExtensible,c=n((function(){s(1)}));t.exports=c||o?function(t){return!!i(t)&&(!o||"ArrayBuffer"!==a(t))&&(!s||s(t))}:s},"4fadc":function(t,e,r){"use strict";var n=r("23e7"),i=r("6f53").entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},"500e":function(t,e,r){"use strict";var n=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},i=Math.max;e.a=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),c=Array(s);++o<s;)c[o]=a[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=a[o];return l[e]=r(c),n(t,this,l)}}},5132:function(t,e,r){"use strict";var n=r("2250"),i=r("4dc8");e.a=function(t,e){for(var r=0,a=(e=Object(n.a)(e,t)).length;null!=t&&r<a;)t=t[Object(i.a)(e[r++])];return r&&r==a?t:void 0}},"52e7":function(t,e,r){"use strict";var n=r("53a2"),i=Object(n.a)(Object.getPrototypeOf,Object);e.a=i},5320:function(t,e,r){"use strict";t.exports=function(t){try{var e=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},n=e[t](r);return 1===n.size&&4===n.values().next().value}catch(t){return!1}}},5388:function(t,e,r){"use strict";var n=r("c65b");t.exports=function(t,e,r){for(var i,a,o=r?t:t.iterator,s=t.next;!(i=n(s,o)).done;)if(void 0!==(a=e(i.value)))return a}},"53a2":function(t,e,r){"use strict";e.a=function(t,e){return function(r){return t(e(r))}}},"589e":function(t,e,r){"use strict";e.a=function(){return[]}},"58e0":function(t,e,r){"use strict";(function(t){var n=r("26ee"),i=r("2f74"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a?n.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||i.a;e.a=c}).call(this,r("dd40")(t))},"5a0c":function(t,e,r){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",i="minute",a="hour",o="day",s="week",c="month",l="quarter",u="year",h="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},b={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,c),a=r-i<0,o=e.clone().add(n+(a?-1:1),c);return+(-(n+(r-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:u,w:s,d:o,D:h,h:a,m:i,s:n,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m="en",v={};v[m]=g;var _="$isDayjsObject",x=function(t){return t instanceof C||!(!t||!t[_])},k=function t(e,r,n){var i;if(!e)return m;if("string"==typeof e){var a=e.toLowerCase();v[a]&&(i=a),r&&(v[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;v[s]=e,i=s}return!n&&i&&(m=i),i||!n&&m},w=function(t,e){if(x(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new C(r)},T=b;T.l=k,T.i=x,T.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function g(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[_]=!0}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(f);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var r=w(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return w(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<w(t)},y.$g=function(t,e,r){return T.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,l=!!T.u(e)||e,d=T.p(t),f=function(t,e){var n=T.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return l?n:n.endOf(o)},p=function(t,e){return T.w(r.toDate()[t].apply(r.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},g=this.$W,y=this.$M,b=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case u:return l?f(1,0):f(31,11);case c:return l?f(1,y):f(0,y+1);case s:var v=this.$locale().weekStart||0,_=(g<v?g+7:g)-v;return f(l?b-_:b+(6-_),y);case o:case h:return p(m+"Hours",0);case a:return p(m+"Minutes",1);case i:return p(m+"Seconds",2);case n:return p(m+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var s,l=T.p(t),d="set"+(this.$u?"UTC":""),f=(s={},s[o]=d+"Date",s[h]=d+"Date",s[c]=d+"Month",s[u]=d+"FullYear",s[a]=d+"Hours",s[i]=d+"Minutes",s[n]=d+"Seconds",s[r]=d+"Milliseconds",s)[l],p=l===o?this.$D+(e-this.$W):e;if(l===c||l===u){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[T.p(t)]()},y.add=function(r,l){var h,d=this;r=Number(r);var f=T.p(l),p=function(t){var e=w(d);return T.w(e.date(e.date()+Math.round(t*r)),d)};if(f===c)return this.set(c,this.$M+r);if(f===u)return this.set(u,this.$y+r);if(f===o)return p(1);if(f===s)return p(7);var g=(h={},h[i]=t,h[a]=e,h[n]=1e3,h)[f]||1,y=this.$d.getTime()+r*g;return T.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=r.weekdays,l=r.months,u=r.meridiem,h=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},f=function(t){return T.s(a%12||12,t,"0")},g=u||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return T.s(e.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return h(r.monthsShort,s,l,3);case"MMMM":return h(l,s);case"D":return e.$D;case"DD":return T.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,c,2);case"ddd":return h(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(a);case"HH":return T.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return T.s(o,2,"0");case"s":return String(e.$s);case"ss":return T.s(e.$s,2,"0");case"SSS":return T.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var f,p=this,g=T.p(h),y=w(r),b=(y.utcOffset()-this.utcOffset())*t,m=this-y,v=function(){return T.m(p,y)};switch(g){case u:f=v()/12;break;case c:f=v();break;case l:f=v()/3;break;case s:f=(m-b)/6048e5;break;case o:f=(m-b)/864e5;break;case a:f=m/e;break;case i:f=m/t;break;case n:f=m/1e3;break;default:f=m}return d?f:T.a(f)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return v[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=k(t,e,!0);return n&&(r.$L=n),r},y.clone=function(){return T.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),E=C.prototype;return w.prototype=E,[["$ms",r],["$s",n],["$m",i],["$H",a],["$W",o],["$M",c],["$y",u],["$D",h]].forEach((function(t){E[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,C,w),t.$i=!0),w},w.locale=k,w.isDayjs=x,w.unix=function(t){return w(1e3*t)},w.en=v[m],w.Ls=v,w.p={},w}()},"5ace":function(t,e,r){"use strict";var n=r("dba9"),i=r("e56b");e.a=function(t,e){var r=-1,a=Object(i.a)(t)?Array(t.length):[];return Object(n.a)(t,(function(t,n,i){a[++r]=e(t,n,i)})),a}},"5b81":function(t,e,r){"use strict";var n=r("23e7"),i=r("c65b"),a=r("e330"),o=r("1d80"),s=r("1626"),c=r("861d"),l=r("44e7"),u=r("577e"),h=r("dc4a"),d=r("90d8"),f=r("0cb2"),p=r("b622"),g=r("c430"),y=p("replace"),b=TypeError,m=a("".indexOf),v=a("".replace),_=a("".slice),x=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var r,n,a,p,k,w,T,C,E,S,A=o(this),O=0,L="";if(c(t)){if((r=l(t))&&(n=u(o(d(t))),!~m(n,"g")))throw new b("`.replaceAll` does not allow non-global regexes");if(a=h(t,y))return i(a,t,A,e);if(g&&r)return v(u(A),t,e)}for(p=u(A),k=u(t),(w=s(e))||(e=u(e)),T=k.length,C=x(1,T),E=m(p,k);-1!==E;)S=w?u(e(k,E,p)):f(k,p,E,[],void 0,e),L+=_(p,O,E)+S,O=E+T,E=E+C>p.length?-1:m(p,k,E+C);return O<p.length&&(L+=_(p,O)),L}})},"5c59":function(t,e,r){"use strict";var n=r("6071"),i=r("e56b"),a=r("7129"),o=r("2332");e.a=function(t,e,r){if(!Object(o.a)(r))return!1;var s=typeof e;return!!("number"==s?Object(i.a)(r)&&Object(a.a)(e,r.length):"string"==s&&e in r)&&Object(n.a)(r[e],t)}},"5cc6":function(t,e,r){"use strict";r("74e8")("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},"5e1b":function(t,e,r){"use strict";var n=Math.ceil,i=Math.max;var a=function(t,e,r,a){for(var o=-1,s=i(n((e-t)/(r||1)),0),c=Array(s);s--;)c[a?s:++o]=t,t+=r;return c},o=r("5c59"),s=r("cb09");var c=function(t){return function(e,r,n){return n&&"number"!=typeof n&&Object(o.a)(e,r,n)&&(r=n=void 0),e=Object(s.a)(e),void 0===r?(r=e,e=0):r=Object(s.a)(r),n=void 0===n?e<r?1:-1:Object(s.a)(n),a(e,r,n,t)}}();e.a=c},"5e77d":function(t,e,r){t.exports=function(){"use strict";var t="day";return function(e,r,n){var i=function(e){return e.add(4-e.isoWeekday(),t)},a=r.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var r,a,o,s=i(this),c=(r=this.isoWeekYear(),o=4-(a=(this.$u?n.utc:n)().year(r).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,t));return s.diff(c,"week")+1},a.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var o=a.startOf;a.startOf=function(t,e){var r=this.$utils(),n=!!r.u(e)||e;return"isoweek"===r.p(t)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(t,e)}}}()},"5ea3":function(t,e,r){"use strict";(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.a=r}).call(this,r("c8ba"))},"5f96":function(t,e,r){"use strict";var n=r("ebb5"),i=r("e330"),a=n.aTypedArray,o=n.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},6062:function(t,e,r){"use strict";r("1c59")},6071:function(t,e,r){"use strict";e.a=function(t,e){return t===e||t!=t&&e!=e}},"60b3":function(t,e,r){"use strict";var n=r("7200");e.a=(t,e)=>Object(n.a)(t,"l",-e)},"60bd":function(t,e,r){"use strict";var n=r("cfe9"),i=r("d039"),a=r("e330"),o=r("ebb5"),s=r("e260"),c=r("b622")("iterator"),l=n.Uint8Array,u=a(s.values),h=a(s.keys),d=a(s.entries),f=o.aTypedArray,p=o.exportTypedArrayMethod,g=l&&l.prototype,y=!i((function(){g[c].call([1])})),b=!!g&&g.values&&g[c]===g.values&&"values"===g.values.name,m=function(){return u(f(this))};p("entries",(function(){return d(f(this))}),y),p("keys",(function(){return h(f(this))}),y),p("values",m,y||!b,{name:"values"}),p(c,m,y||!b,{name:"values"})},"60ce":function(t,e,r){"use strict";var n=r("63bc"),i=r("26ee"),a=Object(n.a)(i.a,"DataView"),o=r("ddc9"),s=Object(n.a)(i.a,"Promise"),c=r("a55c"),l=Object(n.a)(i.a,"WeakMap"),u=r("f0ce"),h=r("74b5"),d="[object Map]",f="[object Promise]",p="[object Set]",g="[object WeakMap]",y="[object DataView]",b=Object(h.a)(a),m=Object(h.a)(o.a),v=Object(h.a)(s),_=Object(h.a)(c.a),x=Object(h.a)(l),k=u.a;(a&&k(new a(new ArrayBuffer(1)))!=y||o.a&&k(new o.a)!=d||s&&k(s.resolve())!=f||c.a&&k(new c.a)!=p||l&&k(new l)!=g)&&(k=function(t){var e=Object(u.a)(t),r="[object Object]"==e?t.constructor:void 0,n=r?Object(h.a)(r):"";if(n)switch(n){case b:return y;case m:return d;case v:return f;case _:return p;case x:return g}return e}),e.a=k},6152:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("3de6");function i(t,e){var r=t.append("foreignObject").attr("width","100000"),i=r.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert((function(){return a}));break;default:i.html(a)}n.b(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return r.attr("width",o.width).attr("height",o.height),r}},"621a":function(t,e,r){"use strict";var n=r("cfe9"),i=r("e330"),a=r("83ab"),o=r("4b11"),s=r("5e77"),c=r("9112"),l=r("edd0"),u=r("6964"),h=r("d039"),d=r("19aa"),f=r("5926"),p=r("50c4"),g=r("0b25"),y=r("be8e"),b=r("77a7"),m=r("e163"),v=r("d2bb"),_=r("81d5"),x=r("f36a"),k=r("7156"),w=r("e893"),T=r("d44e"),C=r("69f3"),E=s.PROPER,S=s.CONFIGURABLE,A="ArrayBuffer",O="DataView",L="prototype",B="Wrong index",D=C.getterFor(A),M=C.getterFor(O),I=C.set,N=n[A],F=N,j=F&&F[L],R=n[O],P=R&&R[L],$=Object.prototype,z=n.Array,Y=n.RangeError,U=i(_),W=i([].reverse),q=b.pack,H=b.unpack,V=function(t){return[255&t]},G=function(t){return[255&t,t>>8&255]},X=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},K=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Q=function(t){return q(y(t),23,4)},Z=function(t){return q(t,52,8)},J=function(t,e,r){l(t[L],e,{configurable:!0,get:function(){return r(this)[e]}})},tt=function(t,e,r,n){var i=M(t),a=g(r),o=!!n;if(a+e>i.byteLength)throw new Y(B);var s=i.bytes,c=a+i.byteOffset,l=x(s,c,c+e);return o?l:W(l)},et=function(t,e,r,n,i,a){var o=M(t),s=g(r),c=n(+i),l=!!a;if(s+e>o.byteLength)throw new Y(B);for(var u=o.bytes,h=s+o.byteOffset,d=0;d<e;d++)u[h+d]=c[l?d:e-d-1]};if(o){var rt=E&&N.name!==A;h((function(){N(1)}))&&h((function(){new N(-1)}))&&!h((function(){return new N,new N(1.5),new N(NaN),1!==N.length||rt&&!S}))?rt&&S&&c(N,"name",A):((F=function(t){return d(this,j),k(new N(g(t)),this,F)})[L]=j,j.constructor=F,w(F,N)),v&&m(P)!==$&&v(P,$);var nt=new R(new F(2)),it=i(P.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||u(P,{setInt8:function(t,e){it(this,t,e<<24>>24)},setUint8:function(t,e){it(this,t,e<<24>>24)}},{unsafe:!0})}else j=(F=function(t){d(this,j);var e=g(t);I(this,{type:A,bytes:U(z(e),0),byteLength:e}),a||(this.byteLength=e,this.detached=!1)})[L],P=(R=function(t,e,r){d(this,P),d(t,j);var n=D(t),i=n.byteLength,o=f(e);if(o<0||o>i)throw new Y("Wrong offset");if(o+(r=void 0===r?i-o:p(r))>i)throw new Y("Wrong length");I(this,{type:O,buffer:t,byteLength:r,byteOffset:o,bytes:n.bytes}),a||(this.buffer=t,this.byteLength=r,this.byteOffset=o)})[L],a&&(J(F,"byteLength",D),J(R,"buffer",M),J(R,"byteLength",M),J(R,"byteOffset",M)),u(P,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return K(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return K(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return H(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return H(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,V,e)},setUint8:function(t,e){et(this,1,t,V,e)},setInt16:function(t,e){et(this,2,t,G,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,G,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,X,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,X,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,Q,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,Z,e,arguments.length>2&&arguments[2])}});T(F,A),T(R,O),t.exports={ArrayBuffer:F,DataView:R}},"63bc":function(t,e,r){"use strict";var n=r("bc9b"),i=r("26ee").a["__core-js_shared__"],a=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var o=function(t){return!!a&&a in t},s=r("2332"),c=r("74b5"),l=/^\[object .+?Constructor\]$/,u=Function.prototype,h=Object.prototype,d=u.toString,f=h.hasOwnProperty,p=RegExp("^"+d.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var g=function(t){return!(!Object(s.a)(t)||o(t))&&(Object(n.a)(t)?p:l).test(Object(c.a)(t))};var y=function(t,e){return null==t?void 0:t[e]};e.a=function(t,e){var r=y(t,e);return g(r)?r:void 0}},"649e":function(t,e,r){"use strict";var n=r("ebb5"),i=r("b727").some,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},6566:function(t,e,r){"use strict";var n=r("7c73"),i=r("edd0"),a=r("6964"),o=r("0366"),s=r("19aa"),c=r("7234"),l=r("2266"),u=r("c6d2"),h=r("4754"),d=r("2626"),f=r("83ab"),p=r("f183").fastKey,g=r("69f3"),y=g.set,b=g.getterFor;t.exports={getConstructor:function(t,e,r,u){var h=t((function(t,i){s(t,d),y(t,{type:e,index:n(null),first:null,last:null,size:0}),f||(t.size=0),c(i)||l(i,t[u],{that:t,AS_ENTRIES:r})})),d=h.prototype,g=b(e),m=function(t,e,r){var n,i,a=g(t),o=v(t,e);return o?o.value=r:(a.last=o={index:i=p(e,!0),key:e,value:r,previous:n=a.last,next:null,removed:!1},a.first||(a.first=o),n&&(n.next=o),f?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},v=function(t,e){var r,n=g(t),i=p(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===e)return r};return a(d,{clear:function(){for(var t=g(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),f?t.size=0:this.size=0},delete:function(t){var e=this,r=g(e),n=v(e,t);if(n){var i=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first===n&&(r.first=i),r.last===n&&(r.last=a),f?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=g(this),n=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!v(this,t)}}),a(d,r?{get:function(t){var e=v(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),f&&i(d,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(t,e,r){var n=e+" Iterator",i=b(e),a=b(n);u(t,e,(function(t,e){y(this,{type:n,target:t,state:i(t),kind:e,last:null})}),(function(){for(var t=a(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?h("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,h(void 0,!0))}),r?"entries":"values",!r,!0),d(e)}}},6568:function(t,e,r){"use strict";e.a=function(t,e){return t.has(e)}},6677:function(t,e,r){"use strict";var n=r("f976");e.a=function(t){return"function"==typeof t?t:n.a}},6740:function(t,e,r){"use strict";var n=r("3244"),i=r("dba9");var a=function(t,e){var r=[];return Object(i.a)(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r},o=r("7f2c"),s=r("ff51");e.a=function(t,e){return(Object(s.a)(t)?n.a:a)(t,Object(o.a)(e,3))}},"67b6":function(t,e,r){"use strict";var n=r("58a8").start,i=r("c8d2");t.exports=i("trimStart")?function(){return n(this)}:"".trimStart},"68cc":function(t,e,r){"use strict";r.r(e);var n=r("7c5c"),i=r("b60a"),a=r("0f40"),o=r.n(a);function s(t){}i.o.initialize({logLevel:5});var c=new n.marked.Renderer;c.code=function(t,e){if("mermaid"===e){var r="mermaId-"+o()(1,1e6)+o()(1,10);try{return'<div class="mermaid" id="'+r+'">'+i.o.mermaidAPI.render(r,t,s)+"</div>"}catch(t){}return'<pre><code class="language-'+e+'">'+t+"</code></pre>"}return'<pre><code class="language-'+e+'">'+t+"</code></pre>"},n.marked.setOptions({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1,renderer:c});var l={name:"Markdown",props:{source:{type:String}},computed:{markdownSource:function(){return n.marked.parse(this.source)}}},u=r("2877"),h=Object(u.a)(l,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"knife4j-markdown",domProps:{innerHTML:t._s(t.markdownSource)}})}),[],!1,null,null,null);e.default=h.exports},"68df":function(t,e,r){"use strict";var n=r("dc19"),i=r("8e16"),a=r("384f"),o=r("7f65");t.exports=function(t){var e=n(this),r=o(t);return!(i(e)>r.size)&&!1!==a(e,(function(t){if(!r.includes(t))return!1}),!0)}},6999:function(t,e,r){"use strict";var n=function(t){return function(e,r,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var c=o[t?s:++i];if(!1===r(a[c],c,a))break}return e}}();e.a=n},"6b75":function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,"a",(function(){return n}))},"6ce5":function(t,e,r){"use strict";var n=r("df7e"),i=r("ebb5"),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;o("toReversed",(function(){return n(a(this),s(this))}))},"6d61":function(t,e,r){"use strict";var n=r("23e7"),i=r("cfe9"),a=r("e330"),o=r("94ca"),s=r("cb2d"),c=r("f183"),l=r("2266"),u=r("19aa"),h=r("1626"),d=r("7234"),f=r("861d"),p=r("d039"),g=r("1c7e"),y=r("d44e"),b=r("7156");t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),v=-1!==t.indexOf("Weak"),_=m?"set":"add",x=i[t],k=x&&x.prototype,w=x,T={},C=function(t){var e=a(k[t]);s(k,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(v&&!f(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return v&&!f(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(v&&!f(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(o(t,!h(x)||!(v||k.forEach&&!p((function(){(new x).entries().next()})))))w=r.getConstructor(e,t,m,_),c.enable();else if(o(t,!0)){var E=new w,S=E[_](v?{}:-0,1)!==E,A=p((function(){E.has(1)})),O=g((function(t){new x(t)})),L=!v&&p((function(){for(var t=new x,e=5;e--;)t[_](e,e);return!t.has(-0)}));O||((w=e((function(t,e){u(t,k);var r=b(new x,t,w);return d(e)||l(e,r[_],{that:r,AS_ENTRIES:m}),r}))).prototype=k,k.constructor=w),(A||L)&&(C("delete"),C("has"),m&&C("get")),(L||S)&&C(_),v&&k.clear&&delete k.clear}return T[t]=w,n({global:!0,constructor:!0,forced:w!==x},T),y(w,t),v||r.setStrong(w,t,m),w}},"6f48":function(t,e,r){"use strict";r("6d61")("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r("6566"))},"6f53":function(t,e,r){"use strict";var n=r("83ab"),i=r("d039"),a=r("e330"),o=r("e163"),s=r("df75"),c=r("fc6a"),l=a(r("d1e7").f),u=a([].push),h=n&&i((function(){var t=Object.create(null);return t[2]=2,!l(t,2)})),d=function(t){return function(e){for(var r,i=c(e),a=s(i),d=h&&null===o(i),f=a.length,p=0,g=[];f>p;)r=a[p++],n&&!(d?r in i:l(i,r))||u(g,t?[r,i[r]]:i[r]);return g}};t.exports={entries:d(!0),values:d(!1)}},"706c":function(t,e,r){"use strict";e.a=function(t){return function(){return t}}},7129:function(t,e,r){"use strict";var n=/^(?:0|[1-9]\d*)$/;e.a=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},7200:function(t,e,r){"use strict";var n=r("025c"),i=r("1c86");e.a=(t,e,r)=>{const a=i.a.parse(t),o=a[e],s=n.a.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.a.stringify(a)}},"72c3":function(t,e,r){"use strict";var n=r("23e7"),i=r("e9bc"),a=r("5320");n({target:"Set",proto:!0,real:!0,forced:!r("dad2")("union")||!a("union")},{union:i})},"72f7":function(t,e,r){"use strict";var n=r("ebb5").exportTypedArrayMethod,i=r("d039"),a=r("cfe9"),o=r("e330"),s=a.Uint8Array,c=s&&s.prototype||{},l=[].toString,u=o([].join);i((function(){l.call({})}))&&(l=function(){return u(this)});var h=c.toString!==l;n("toString",l,h)},"735e":function(t,e,r){"use strict";var n=r("ebb5"),i=r("81d5"),a=r("f495"),o=r("f5df"),s=r("c65b"),c=r("e330"),l=r("d039"),u=n.aTypedArray,h=n.exportTypedArrayMethod,d=c("".slice);h("fill",(function(t){var e=arguments.length;u(this);var r="Big"===d(o(this),0,3)?a(t):+t;return s(i,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),l((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},7378:function(t,e,r){"use strict";var n=r("2332"),i=Object.create,a=function(){function t(){}return function(e){if(!Object(n.a)(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();e.a=a},"74b2":function(t,e,r){"use strict";r.d(e,"a",(function(){return I}));var n=r("898b7"),i=r("bc59"),a=r("e247"),o=r("3997"),s=r("dfa8"),c=r("3de6"),l={normal:function(t,e,r,n){var i=t.append("marker").attr("id",e).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");c.b(i,r[n+"Style"]),r[n+"Class"]&&i.attr("class",r[n+"Class"])},vee:function(t,e,r,n){var i=t.append("marker").attr("id",e).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");c.b(i,r[n+"Style"]),r[n+"Class"]&&i.attr("class",r[n+"Class"])},undirected:function(t,e,r,n){var i=t.append("marker").attr("id",e).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");c.b(i,r[n+"Style"]),r[n+"Class"]&&i.attr("class",r[n+"Class"])}};function u(t){l=t}var h=r("6152");function d(t,e,r){var n=e.label,i=t.append("g");"svg"===e.labelType?function(t,e){var r=t;r.node().appendChild(e.label),c.b(r,e.labelStyle)}(i,e):"string"!=typeof n||"html"===e.labelType?Object(h.a)(i,e):function(t,e){for(var r=t.append("text"),n=function(t){for(var e,r="",n=!1,i=0;i<t.length;++i)if(e=t[i],n){switch(e){case"n":r+="\n";break;default:r+=e}n=!1}else"\\"===e?n=!0:r+=e;return r}(e.label).split("\n"),i=0;i<n.length;i++)r.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[i]);c.b(r,e.labelStyle)}(i,e);var a,o=i.node().getBBox();switch(r){case"top":a=-e.height/2;break;case"bottom":a=e.height/2-o.height;break;default:a=-o.height/2}return i.attr("transform","translate("+-o.width/2+","+a+")"),i}var f=function(t,e){var r=e.nodes().filter((function(t){return c.e(e,t)})),i=t.selectAll("g.cluster").data(r,(function(t){return t}));c.c(i.exit(),e).style("opacity",0).remove();var a=i.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0).each((function(t){var r=e.node(t),i=n.F(this);n.F(this).append("rect"),d(i.append("g").attr("class","label"),r,r.clusterLabelPos)}));return i=i.merge(a),(i=c.c(i,e).style("opacity",1)).selectAll("rect").each((function(t){var r=e.node(t),i=n.F(this);c.b(i,r.style)})),i};function p(t){f=t}let g=function(t,e){var r,a=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return c.d(t)})).classed("update",!0);return a.exit().remove(),a.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(a=t.selectAll("g.edgeLabel")).each((function(t){var r=n.F(this);r.select(".label").remove();var a=e.edge(t),o=d(r,e.edge(t),0).classed("label",!0),s=o.node().getBBox();a.labelId&&o.attr("id",a.labelId),i.a(a,"width")||(a.width=s.width),i.a(a,"height")||(a.height=s.height)})),r=a.exit?a.exit():a.selectAll(null),c.c(r,e).style("opacity",0).remove(),a};function y(t){g=t}var b=r("7e9e"),m=r("5e1b");function v(t,e){return t.intersect(e)}var _=function(t,e,r){var i=t.selectAll("g.edgePath").data(e.edges(),(function(t){return c.d(t)})).classed("update",!0),a=function(t,e){var r=t.enter().append("g").attr("class","edgePath").style("opacity",0);return r.append("path").attr("class","path").attr("d",(function(t){var r=e.edge(t),n=e.node(t.v).elem;return k(r,m.a(r.points.length).map((function(){return function(t){var e=t.getBBox(),r=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2);return{x:r.e,y:r.f}}(n)})))})),r.append("defs"),r}(i,e);!function(t,e){var r=t.exit();c.c(r,e).style("opacity",0).remove()}(i,e);var o=void 0!==i.merge?i.merge(a):i;return c.c(o,e).style("opacity",1),o.each((function(t){var r=n.F(this),i=e.edge(t);i.elem=this,i.id&&r.attr("id",i.id),c.a(r,i.class,(r.classed("update")?"update ":"")+"edgePath")})),o.selectAll("path.path").each((function(t){var r=e.edge(t);r.arrowheadId=b.a("arrowhead");var i=n.F(this).attr("marker-end",(function(){return"url("+function(t,e){return t.split("#")[0]+"#"+e}(location.href,r.arrowheadId)+")"})).style("fill","none");c.c(i,e).attr("d",(function(t){return function(t,e){var r=t.edge(e),n=t.node(e.v),i=t.node(e.w),a=r.points.slice(1,r.points.length-1);return a.unshift(v(n,a[0])),a.push(v(i,a[a.length-1])),k(r,a)}(e,t)})),c.b(i,r.style)})),o.selectAll("defs *").remove(),o.selectAll("defs").each((function(t){var i=e.edge(t);(0,r[i.arrowhead])(n.F(this),i.arrowheadId,i,"arrowhead")})),o};function x(t){_=t}function k(t,e){var r=(n.y||n.H.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(r.curve||r.interpolate)(t.curve),r(e)}var w=r("070e"),T=function(t,e,r){var a,o=e.nodes().filter((function(t){return!c.e(e,t)})),s=t.selectAll("g.node").data(o,(function(t){return t})).classed("update",!0);return s.exit().remove(),s.enter().append("g").attr("class","node").style("opacity",0),(s=t.selectAll("g.node")).each((function(t){var a=e.node(t),o=n.F(this);c.a(o,a.class,(o.classed("update")?"update ":"")+"node"),o.select("g.label").remove();var s=o.append("g").attr("class","label"),l=d(s,a),u=r[a.shape],h=w.a(l.node().getBBox(),"width","height");a.elem=this,a.id&&o.attr("id",a.id),a.labelId&&s.attr("id",a.labelId),i.a(a,"width")&&(h.width=a.width),i.a(a,"height")&&(h.height=a.height),h.width+=a.paddingLeft+a.paddingRight,h.height+=a.paddingTop+a.paddingBottom,s.attr("transform","translate("+(a.paddingLeft-a.paddingRight)/2+","+(a.paddingTop-a.paddingBottom)/2+")");var f=n.F(this);f.select(".label-container").remove();var p=u(f,h,a).classed("label-container",!0);c.b(p,a.style);var g=p.node().getBBox();a.width=g.width,a.height=g.height})),a=s.exit?s.exit():s.selectAll(null),c.c(a,e).style("opacity",0).remove(),s};function C(t){T=t}function E(t,e){var r=t.filter((function(){return!n.F(this).classed("update")}));function i(t){var r=e.node(t);return"translate("+r.x+","+r.y+")"}r.attr("transform",i),c.c(t,e).style("opacity",1).attr("transform",i),c.c(r.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}function S(t,e){function r(t){var r=e.edge(t);return i.a(r,"x")?"translate("+r.x+","+r.y+")":""}t.filter((function(){return!n.F(this).classed("update")})).attr("transform",r),c.c(t,e).style("opacity",1).attr("transform",r)}function A(t,e){function r(t){var r=e.node(t);return"translate("+r.x+","+r.y+")"}t.filter((function(){return!n.F(this).classed("update")})).attr("transform",r),c.c(t,e).style("opacity",1).attr("transform",r)}function O(t,e,r,n){var i=t.x,a=t.y,o=i-n.x,s=a-n.y,c=Math.sqrt(e*e*s*s+r*r*o*o),l=Math.abs(e*r*o/c);n.x<i&&(l=-l);var u=Math.abs(e*r*s/c);return n.y<a&&(u=-u),{x:i+l,y:a+u}}var L=r("18df"),B=r("c95f"),D={rect:function(t,e,r){var n=t.insert("rect",":first-child").attr("rx",r.rx).attr("ry",r.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return r.intersect=function(t){return Object(B.a)(r,t)},n},ellipse:function(t,e,r){var n=e.width/2,i=e.height/2,a=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",i);return r.intersect=function(t){return O(r,n,i,t)},a},circle:function(t,e,r){var n=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return r.intersect=function(t){return function(t,e,r){return O(t,e,e,r)}(r,n,t)},i},diamond:function(t,e,r){var n=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-n,y:0},{x:0,y:i},{x:n,y:0}],o=t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" "));return r.intersect=function(t){return Object(L.a)(r,a,t)},o}};function M(t){D=t}function I(){var t=function(t,e){j(e);var r=P(t,"output"),n=P(r,"clusters"),i=P(r,"edgePaths"),a=g(P(r,"edgeLabels"),e),o=T(P(r,"nodes"),e,D);Object(s.a)(e),A(o,e),S(a,e),_(i,e,l),E(f(n,e),e),R(e)};return t.createNodes=function(e){return arguments.length?(C(e),t):T},t.createClusters=function(e){return arguments.length?(p(e),t):f},t.createEdgeLabels=function(e){return arguments.length?(y(e),t):g},t.createEdgePaths=function(e){return arguments.length?(x(e),t):_},t.shapes=function(e){return arguments.length?(M(e),t):D},t.arrows=function(e){return arguments.length?(u(e),t):l},t}var N={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},F={arrowhead:"normal",curve:n.p};function j(t){t.nodes().forEach((function(e){var r=t.node(e);i.a(r,"label")||t.children(e).length||(r.label=e),i.a(r,"paddingX")&&a.a(r,{paddingLeft:r.paddingX,paddingRight:r.paddingX}),i.a(r,"paddingY")&&a.a(r,{paddingTop:r.paddingY,paddingBottom:r.paddingY}),i.a(r,"padding")&&a.a(r,{paddingLeft:r.padding,paddingRight:r.padding,paddingTop:r.padding,paddingBottom:r.padding}),a.a(r,N),o.a(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){r[t]=Number(r[t])})),i.a(r,"width")&&(r._prevWidth=r.width),i.a(r,"height")&&(r._prevHeight=r.height)})),t.edges().forEach((function(e){var r=t.edge(e);i.a(r,"label")||(r.label=""),a.a(r,F)}))}function R(t){o.a(t.nodes(),(function(e){var r=t.node(e);i.a(r,"_prevWidth")?r.width=r._prevWidth:delete r.width,i.a(r,"_prevHeight")?r.height=r._prevHeight:delete r.height,delete r._prevWidth,delete r._prevHeight}))}function P(t,e){var r=t.select("g."+e);return r.empty()&&(r=t.append("g").attr("class",e)),r}r("c07a")},"74b5":function(t,e,r){"use strict";var n=Function.prototype.toString;e.a=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},"74e8":function(t,e,r){"use strict";var n=r("23e7"),i=r("cfe9"),a=r("c65b"),o=r("83ab"),s=r("8aa7"),c=r("ebb5"),l=r("621a"),u=r("19aa"),h=r("5c6c"),d=r("9112"),f=r("eac50"),p=r("50c4"),g=r("0b25"),y=r("182d"),b=r("13a6"),m=r("a04b"),v=r("1a2d"),_=r("f5df"),x=r("861d"),k=r("d9b5"),w=r("7c73"),T=r("3a9b"),C=r("d2bb"),E=r("241c").f,S=r("a078"),A=r("b727").forEach,O=r("2626"),L=r("edd0"),B=r("9bf2"),D=r("06cf"),M=r("dfb9"),I=r("69f3"),N=r("7156"),F=I.get,j=I.set,R=I.enforce,P=B.f,$=D.f,z=i.RangeError,Y=l.ArrayBuffer,U=Y.prototype,W=l.DataView,q=c.NATIVE_ARRAY_BUFFER_VIEWS,H=c.TYPED_ARRAY_TAG,V=c.TypedArray,G=c.TypedArrayPrototype,X=c.isTypedArray,K="BYTES_PER_ELEMENT",Q="Wrong length",Z=function(t,e){L(t,e,{configurable:!0,get:function(){return F(this)[e]}})},J=function(t){var e;return T(U,t)||"ArrayBuffer"===(e=_(t))||"SharedArrayBuffer"===e},tt=function(t,e){return X(t)&&!k(e)&&e in t&&f(+e)&&e>=0},et=function(t,e){return e=m(e),tt(t,e)?h(2,t[e]):$(t,e)},rt=function(t,e,r){return e=m(e),!(tt(t,e)&&x(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?P(t,e,r):(t[e]=r.value,t)};o?(q||(D.f=et,B.f=rt,Z(G,"buffer"),Z(G,"byteOffset"),Z(G,"byteLength"),Z(G,"length")),n({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:et,defineProperty:rt}),t.exports=function(t,e,r){var o=t.match(/\d+/)[0]/8,c=t+(r?"Clamped":"")+"Array",l="get"+t,h="set"+t,f=i[c],m=f,v=m&&m.prototype,_={},k=function(t,e){P(t,e,{get:function(){return function(t,e){var r=F(t);return r.view[l](e*o+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var i=F(t);i.view[h](e*o+i.byteOffset,r?b(n):n,!0)}(this,e,t)},enumerable:!0})};q?s&&(m=e((function(t,e,r,n){return u(t,v),N(x(e)?J(e)?void 0!==n?new f(e,y(r,o),n):void 0!==r?new f(e,y(r,o)):new f(e):X(e)?M(m,e):a(S,m,e):new f(g(e)),t,m)})),C&&C(m,V),A(E(f),(function(t){t in m||d(m,t,f[t])})),m.prototype=v):(m=e((function(t,e,r,n){u(t,v);var i,s,c,l=0,h=0;if(x(e)){if(!J(e))return X(e)?M(m,e):a(S,m,e);i=e,h=y(r,o);var d=e.byteLength;if(void 0===n){if(d%o)throw new z(Q);if((s=d-h)<0)throw new z(Q)}else if((s=p(n)*o)+h>d)throw new z(Q);c=s/o}else c=g(e),i=new Y(s=c*o);for(j(t,{buffer:i,byteOffset:h,byteLength:s,length:c,view:new W(i)});l<c;)k(t,l++)})),C&&C(m,V),v=m.prototype=w(G)),v.constructor!==m&&d(v,"constructor",m),R(v).TypedArrayConstructor=m,H&&d(v,H,c);var T=m!==f;_[c]=m,n({global:!0,constructor:!0,forced:T,sham:!q},_),K in m||d(m,K,o),K in v||d(v,K,o),O(c)}):t.exports=function(){}},"75bd":function(t,e,r){"use strict";var n=r("cfe9"),i=r("4b11"),a=r("b620"),o=n.DataView;t.exports=function(t){if(!i||0!==a(t))return!1;try{return new o(t),!1}catch(t){return!0}}},"77a7":function(t,e,r){"use strict";var n=Array,i=Math.abs,a=Math.pow,o=Math.floor,s=Math.log,c=Math.LN2;t.exports={pack:function(t,e,r){var l,u,h,d=n(r),f=8*r-e-1,p=(1<<f)-1,g=p>>1,y=23===e?a(2,-24)-a(2,-77):0,b=t<0||0===t&&1/t<0?1:0,m=0;for((t=i(t))!=t||t===1/0?(u=t!=t?1:0,l=p):(l=o(s(t)/c),t*(h=a(2,-l))<1&&(l--,h*=2),(t+=l+g>=1?y/h:y*a(2,1-g))*h>=2&&(l++,h/=2),l+g>=p?(u=0,l=p):l+g>=1?(u=(t*h-1)*a(2,e),l+=g):(u=t*a(2,g-1)*a(2,e),l=0));e>=8;)d[m++]=255&u,u/=256,e-=8;for(l=l<<e|u,f+=e;f>0;)d[m++]=255&l,l/=256,f-=8;return d[m-1]|=128*b,d},unpack:function(t,e){var r,n=t.length,i=8*n-e-1,o=(1<<i)-1,s=o>>1,c=i-7,l=n-1,u=t[l--],h=127&u;for(u>>=7;c>0;)h=256*h+t[l--],c-=8;for(r=h&(1<<-c)-1,h>>=-c,c+=e;c>0;)r=256*r+t[l--],c-=8;if(0===h)h=1-s;else{if(h===o)return r?NaN:u?-1/0:1/0;r+=a(2,e),h-=s}return(u?-1:1)*r*a(2,h-e)}}},7804:function(t,e,r){"use strict";e.a=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},"79a4":function(t,e,r){"use strict";var n=r("23e7"),i=r("d039"),a=r("953b");n({target:"Set",proto:!0,real:!0,forced:!r("dad2")("intersection",(function(t){return 2===t.size&&t.has(1)&&t.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:a})},"79f6":function(t,e,r){"use strict";var n=r("ca54"),i=r("b703"),a=r("ff51"),o=r("1bc6"),s=n.a?n.a.prototype:void 0,c=s?s.toString:void 0;var l=function t(e){if("string"==typeof e)return e;if(Object(a.a)(e))return Object(i.a)(e,t)+"";if(Object(o.a)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r};e.a=function(t){return null==t?"":l(t)}},"7db0":function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").find,a=r("44d2"),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},"7e12":function(t,e,r){"use strict";var n=r("cfe9"),i=r("d039"),a=r("e330"),o=r("577e"),s=r("58a8").trim,c=r("5899"),l=a("".charAt),u=n.parseFloat,h=n.Symbol,d=h&&h.iterator,f=1/u(c+"-0")!=-1/0||d&&!i((function(){u(Object(d))}));t.exports=f?function(t){var e=s(o(t)),r=u(e);return 0===r&&"-"===l(e,0)?-0:r}:u},"7e9e":function(t,e,r){"use strict";var n=r("79f6"),i=0;e.a=function(t){var e=++i;return Object(n.a)(t)+e}},"7ee8":function(t,e,r){"use strict";var n=r("8cc4"),i=r("60ce"),a=r("f5fe"),o=r("ff51"),s=r("e56b"),c=r("58e0"),l=r("a724"),u=r("a187"),h=Object.prototype.hasOwnProperty;e.a=function(t){if(null==t)return!0;if(Object(s.a)(t)&&(Object(o.a)(t)||"string"==typeof t||"function"==typeof t.splice||Object(c.a)(t)||Object(u.a)(t)||Object(a.a)(t)))return!t.length;var e=Object(i.a)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Object(l.a)(t))return!Object(n.a)(t).length;for(var r in t)if(h.call(t,r))return!1;return!0}},"7f2c":function(t,e,r){"use strict";var n=r("a12c"),i=r("9ac7");var a=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1},o=r("6568");var s=function(t,e,r,n,s,c){var l=1&r,u=t.length,h=e.length;if(u!=h&&!(l&&h>u))return!1;var d=c.get(t),f=c.get(e);if(d&&f)return d==e&&f==t;var p=-1,g=!0,y=2&r?new i.a:void 0;for(c.set(t,e),c.set(e,t);++p<u;){var b=t[p],m=e[p];if(n)var v=l?n(m,b,p,e,t,c):n(b,m,p,t,e,c);if(void 0!==v){if(v)continue;g=!1;break}if(y){if(!a(e,(function(t,e){if(!Object(o.a)(y,e)&&(b===t||s(b,t,r,n,c)))return y.push(e)}))){g=!1;break}}else if(b!==m&&!s(b,m,r,n,c)){g=!1;break}}return c.delete(t),c.delete(e),g},c=r("ca54"),l=r("09ee"),u=r("6071");var h=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},d=r("1989"),f=c.a?c.a.prototype:void 0,p=f?f.valueOf:void 0;var g=function(t,e,r,n,i,a,o){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new l.a(t),new l.a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(u.a)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=h;case"[object Set]":var f=1&n;if(c||(c=d.a),t.size!=e.size&&!f)return!1;var g=o.get(t);if(g)return g==e;n|=2,o.set(t,e);var y=s(c(t),c(e),n,i,a,o);return o.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1},y=r("4c5c"),b=Object.prototype.hasOwnProperty;var m=function(t,e,r,n,i,a){var o=1&r,s=Object(y.a)(t),c=s.length;if(c!=Object(y.a)(e).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in e:b.call(e,u)))return!1}var h=a.get(t),d=a.get(e);if(h&&d)return h==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var p=o;++l<c;){var g=t[u=s[l]],m=e[u];if(n)var v=o?n(m,g,u,e,t,a):n(g,m,u,t,e,a);if(!(void 0===v?g===m||i(g,m,r,n,a):v)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var _=t.constructor,x=e.constructor;_==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(f=!1)}return a.delete(t),a.delete(e),f},v=r("60ce"),_=r("ff51"),x=r("58e0"),k=r("a187"),w="[object Arguments]",T="[object Array]",C="[object Object]",E=Object.prototype.hasOwnProperty;var S=function(t,e,r,i,a,o){var c=Object(_.a)(t),l=Object(_.a)(e),u=c?T:Object(v.a)(t),h=l?T:Object(v.a)(e),d=(u=u==w?C:u)==C,f=(h=h==w?C:h)==C,p=u==h;if(p&&Object(x.a)(t)){if(!Object(x.a)(e))return!1;c=!0,d=!1}if(p&&!d)return o||(o=new n.a),c||Object(k.a)(t)?s(t,e,r,i,a,o):g(t,e,u,r,i,a,o);if(!(1&r)){var y=d&&E.call(t,"__wrapped__"),b=f&&E.call(e,"__wrapped__");if(y||b){var S=y?t.value():t,A=b?e.value():e;return o||(o=new n.a),a(S,A,r,i,o)}}return!!p&&(o||(o=new n.a),m(t,e,r,i,a,o))},A=r("1147");var O=function t(e,r,n,i,a){return e===r||(null==e||null==r||!Object(A.a)(e)&&!Object(A.a)(r)?e!=e&&r!=r:S(e,r,n,i,t,a))};var L=function(t,e,r,i){var a=r.length,o=a,s=!i;if(null==t)return!o;for(t=Object(t);a--;){var c=r[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<o;){var l=(c=r[a])[0],u=t[l],h=c[1];if(s&&c[2]){if(void 0===u&&!(l in t))return!1}else{var d=new n.a;if(i)var f=i(u,h,l,t,e,d);if(!(void 0===f?O(h,u,3,i,d):f))return!1}}return!0},B=r("2332");var D=function(t){return t==t&&!Object(B.a)(t)},M=r("9a4b");var I=function(t){for(var e=Object(M.a)(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,D(i)]}return e};var N=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}};var F=function(t){var e=I(t);return 1==e.length&&e[0][2]?N(e[0][0],e[0][1]):function(r){return r===t||L(r,t,e)}},j=r("5132");var R=function(t,e,r){var n=null==t?void 0:Object(j.a)(t,e);return void 0===n?r:n},P=r("2b5e"),$=r("bd8f"),z=r("4dc8");var Y=function(t,e){return Object($.a)(t)&&D(e)?N(Object(z.a)(t),e):function(r){var n=R(r,t);return void 0===n&&n===e?Object(P.a)(r,t):O(e,n,3)}},U=r("f976"),W=r("1522");var q=function(t){return function(e){return Object(j.a)(e,t)}};var H=function(t){return Object($.a)(t)?Object(W.a)(Object(z.a)(t)):q(t)};e.a=function(t){return"function"==typeof t?t:null==t?U.a:"object"==typeof t?Object(_.a)(t)?Y(t[0],t[1]):F(t):H(t)}},"7f65":function(t,e,r){"use strict";var n=r("59ed"),i=r("825a"),a=r("c65b"),o=r("5926"),s=r("46c4"),c="Invalid size",l=RangeError,u=TypeError,h=Math.max,d=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};d.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(t){return a(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!=e)throw new u(c);var r=o(e);if(r<0)throw new l(c);return new d(t,r)}},"81d5":function(t,e,r){"use strict";var n=r("7b0b"),i=r("23cb"),a=r("07fa");t.exports=function(t){for(var e=n(this),r=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,r),c=o>2?arguments[2]:void 0,l=void 0===c?r:i(c,r);l>s;)e[s++]=t;return e}},"820e":function(t,e,r){"use strict";var n=r("23e7"),i=r("c65b"),a=r("59ed"),o=r("f069"),s=r("e667"),c=r("2266");n({target:"Promise",stat:!0,forced:r("5eed")},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,l=r.reject,u=s((function(){var r=a(e.resolve),o=[],s=0,l=1;c(t,(function(t){var a=s++,c=!1;l++,i(r,e,t).then((function(t){c||(c=!0,o[a]={status:"fulfilled",value:t},--l||n(o))}),(function(t){c||(c=!0,o[a]={status:"rejected",reason:t},--l||n(o))}))})),--l||n(o)}));return u.error&&l(u.value),r.promise}})},"82e3":function(t,e,r){"use strict";var n=4503599627370496;t.exports=function(t){return t+n-n}},"82f8":function(t,e,r){"use strict";var n=r("ebb5"),i=r("4d64").includes,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},"83b9e":function(t,e,r){"use strict";var n=r("cb27"),i=r("384f"),a=n.Set,o=n.add;t.exports=function(t){var e=new a;return i(t,(function(t){o(e,t)})),e}},"857a":function(t,e,r){"use strict";var n=r("e330"),i=r("1d80"),a=r("577e"),o=/"/g,s=n("".replace);t.exports=function(t,e,r,n){var c=a(i(t)),l="<"+e;return""!==r&&(l+=" "+r+'="'+s(a(n),o,"&quot;")+'"'),l+">"+c+"</"+e+">"}},8583:function(t,e,r){"use strict";var n=r("7378"),i=r("52e7"),a=r("a724");e.a=function(t){return"function"!=typeof t.constructor||Object(a.a)(t)?{}:Object(n.a)(Object(i.a)(t))}},"898b7":function(t,e,r){"use strict";function n(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function i(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}r.d(e,"z",(function(){return n})),r.d(e,"A",(function(){return i})),r.d(e,"c",(function(){return f})),r.d(e,"b",(function(){return p})),r.d(e,"H",(function(){return Xr})),r.d(e,"x",(function(){return dn})),r.d(e,"C",(function(){return ti})),r.d(e,"D",(function(){return ai})),r.d(e,"E",(function(){return ko})),r.d(e,"F",(function(){return jt})),r.d(e,"G",(function(){return wo})),r.d(e,"a",(function(){return Zo})),r.d(e,"y",(function(){return is})),r.d(e,"B",(function(){return ss})),r.d(e,"e",(function(){return fs})),r.d(e,"f",(function(){return gs})),r.d(e,"d",(function(){return hs})),r.d(e,"g",(function(){return bs})),r.d(e,"h",(function(){return ms})),r.d(e,"i",(function(){return _s})),r.d(e,"k",(function(){return Cs})),r.d(e,"l",(function(){return Ss})),r.d(e,"j",(function(){return ws})),r.d(e,"n",(function(){return Ds})),r.d(e,"o",(function(){return Is})),r.d(e,"m",(function(){return Ls})),r.d(e,"q",(function(){return Fs})),r.d(e,"p",(function(){return es})),r.d(e,"r",(function(){return Ws})),r.d(e,"s",(function(){return qs})),r.d(e,"t",(function(){return Gs})),r.d(e,"u",(function(){return Ks})),r.d(e,"v",(function(){return Zs})),r.d(e,"w",(function(){return Qs})),r.d(e,"L",(function(){return mi})),r.d(e,"K",(function(){return _i})),r.d(e,"I",(function(){return ki})),r.d(e,"N",(function(){return Ei})),r.d(e,"M",(function(){return zi})),r.d(e,"J",(function(){return ta}));var a=function(t){return t},o=1e-6;function s(t){return"translate("+t+",0)"}function c(t){return"translate(0,"+t+")"}function l(t){return e=>+t(e)}function u(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function h(){return!this.__axis}function d(t,e){var r=[],n=null,i=null,d=6,f=6,p=3,g="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,y=1===t||4===t?-1:1,b=4===t||2===t?"x":"y",m=1===t||3===t?s:c;function v(s){var c=null==n?e.ticks?e.ticks.apply(e,r):e.domain():n,v=null==i?e.tickFormat?e.tickFormat.apply(e,r):a:i,_=Math.max(d,0)+p,x=e.range(),k=+x[0]+g,w=+x[x.length-1]+g,T=(e.bandwidth?u:l)(e.copy(),g),C=s.selection?s.selection():s,E=C.selectAll(".domain").data([null]),S=C.selectAll(".tick").data(c,e).order(),A=S.exit(),O=S.enter().append("g").attr("class","tick"),L=S.select("line"),B=S.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(O),L=L.merge(O.append("line").attr("stroke","currentColor").attr(b+"2",y*d)),B=B.merge(O.append("text").attr("fill","currentColor").attr(b,y*_).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),s!==C&&(E=E.transition(s),S=S.transition(s),L=L.transition(s),B=B.transition(s),A=A.transition(s).attr("opacity",o).attr("transform",(function(t){return isFinite(t=T(t))?m(t+g):this.getAttribute("transform")})),O.attr("opacity",o).attr("transform",(function(t){var e=this.parentNode.__axis;return m((e&&isFinite(e=e(t))?e:T(t))+g)}))),A.remove(),E.attr("d",4===t||2===t?f?"M"+y*f+","+k+"H"+g+"V"+w+"H"+y*f:"M"+g+","+k+"V"+w:f?"M"+k+","+y*f+"V"+g+"H"+w+"V"+y*f:"M"+k+","+g+"H"+w),S.attr("opacity",1).attr("transform",(function(t){return m(T(t)+g)})),L.attr(b+"2",y*d),B.attr(b,y*_).text(v),C.filter(h).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),C.each((function(){this.__axis=T}))}return v.scale=function(t){return arguments.length?(e=t,v):e},v.ticks=function(){return r=Array.from(arguments),v},v.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),v):r.slice()},v.tickValues=function(t){return arguments.length?(n=null==t?null:Array.from(t),v):n&&n.slice()},v.tickFormat=function(t){return arguments.length?(i=t,v):i},v.tickSize=function(t){return arguments.length?(d=f=+t,v):d},v.tickSizeInner=function(t){return arguments.length?(d=+t,v):d},v.tickSizeOuter=function(t){return arguments.length?(f=+t,v):f},v.tickPadding=function(t){return arguments.length?(p=+t,v):p},v.offset=function(t){return arguments.length?(g=+t,v):g},v}function f(t){return d(1,t)}function p(t){return d(3,t)}var g={value:()=>{}};function y(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new b(n)}function b(t){this._=t}function m(t,e){return t.trim().split(/^|\s+/).map((function(t){var r="",n=t.indexOf(".");if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}}))}function v(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function _(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=g,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}b.prototype=y.prototype={constructor:b,on:function(t,e){var r,n=this._,i=m(t+"",n),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(r=(t=i[a]).type)n[r]=_(n[r],t.name,e);else if(null==e)for(r in n)n[r]=_(n[r],t.name,null);return this}for(;++a<o;)if((r=(t=i[a]).type)&&(r=v(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new b(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,r=(n=this._[t]).length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};var x=y;function k(){}var w=function(t){return null==t?k:function(){return this.querySelector(t)}};function T(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function C(){return[]}var E=function(t){return null==t?C:function(){return this.querySelectorAll(t)}};var S=function(t){return function(){return this.matches(t)}};function A(t){return function(e){return e.matches(t)}}var O=Array.prototype.find;function L(){return this.firstElementChild}var B=Array.prototype.filter;function D(){return Array.from(this.children)}var M=function(t){return new Array(t.length)};function I(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}I.prototype={constructor:I,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var N=function(t){return function(){return t}};function F(t,e,r,n,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new I(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function j(t,e,r,n,i,a,o){var s,c,l,u=new Map,h=e.length,d=a.length,f=new Array(h);for(s=0;s<h;++s)(c=e[s])&&(f[s]=l=o.call(c,c.__data__,s,e)+"",u.has(l)?i[s]=c:u.set(l,c));for(s=0;s<d;++s)l=o.call(t,a[s],s,a)+"",(c=u.get(l))?(n[s]=c,c.__data__=a[s],u.delete(l)):r[s]=new I(t,a[s]);for(s=0;s<h;++s)(c=e[s])&&u.get(f[s])===c&&(i[s]=c)}function R(t){return t.__data__}function P(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function $(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var z="http://www.w3.org/1999/xhtml",Y={svg:"http://www.w3.org/2000/svg",xhtml:z,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},U=function(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),Y.hasOwnProperty(e)?{space:Y[e],local:t}:t};function W(t){return function(){this.removeAttribute(t)}}function q(t){return function(){this.removeAttributeNS(t.space,t.local)}}function H(t,e){return function(){this.setAttribute(t,e)}}function V(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function G(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function X(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}var K=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Q(t){return function(){this.style.removeProperty(t)}}function Z(t,e,r){return function(){this.style.setProperty(t,e,r)}}function J(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function tt(t,e){return t.style.getPropertyValue(e)||K(t).getComputedStyle(t,null).getPropertyValue(e)}function et(t){return function(){delete this[t]}}function rt(t,e){return function(){this[t]=e}}function nt(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function it(t){return t.trim().split(/^|\s+/)}function at(t){return t.classList||new ot(t)}function ot(t){this._node=t,this._names=it(t.getAttribute("class")||"")}function st(t,e){for(var r=at(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function ct(t,e){for(var r=at(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function lt(t){return function(){st(this,t)}}function ut(t){return function(){ct(this,t)}}function ht(t,e){return function(){(e.apply(this,arguments)?st:ct)(this,t)}}ot.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function dt(){this.textContent=""}function ft(t){return function(){this.textContent=t}}function pt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function gt(){this.innerHTML=""}function yt(t){return function(){this.innerHTML=t}}function bt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function mt(){this.nextSibling&&this.parentNode.appendChild(this)}function vt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _t(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===z&&e.documentElement.namespaceURI===z?e.createElement(t):e.createElementNS(r,t)}}function xt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var kt=function(t){var e=U(t);return(e.local?xt:_t)(e)};function wt(){return null}function Tt(){var t=this.parentNode;t&&t.removeChild(this)}function Ct(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Et(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function St(t){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}))}function At(t){return function(){var e=this.__on;if(e){for(var r,n=0,i=-1,a=e.length;n<a;++n)r=e[n],t.type&&r.type!==t.type||r.name!==t.name?e[++i]=r:this.removeEventListener(r.type,r.listener,r.options);++i?e.length=i:delete this.__on}}}function Ot(t,e,r){return function(){var n,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===t.type&&n.name===t.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),void(n.value=e);this.addEventListener(t.type,a,r),n={type:t.type,name:t.name,value:e,listener:a,options:r},i?i.push(n):this.__on=[n]}}function Lt(t,e,r){var n=K(t),i=n.CustomEvent;"function"==typeof i?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Bt(t,e){return function(){return Lt(this,t,e)}}function Dt(t,e){return function(){return Lt(this,t,e.apply(this,arguments))}}var Mt=[null];function It(t,e){this._groups=t,this._parents=e}function Nt(){return new It([[document.documentElement]],Mt)}It.prototype=Nt.prototype={constructor:It,select:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a,o,s=e[i],c=s.length,l=n[i]=new Array(c),u=0;u<c;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),l[u]=o);return new It(n,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return T(t.apply(this,arguments))}}(t):E(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a<r;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(n.push(t.call(o,o.__data__,l,s)),i.push(o));return new It(n,i)},selectChild:function(t){return this.select(null==t?L:function(t){return function(){return O.call(this.children,t)}}("function"==typeof t?t:A(t)))},selectChildren:function(t){return this.selectAll(null==t?D:function(t){return function(){return B.call(this.children,t)}}("function"==typeof t?t:A(t)))},filter:function(t){"function"!=typeof t&&(t=S(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,c=n[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new It(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,R);var r=e?j:F,n=this._parents,i=this._groups;"function"!=typeof t&&(t=N(t));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var u=n[l],h=i[l],d=h.length,f=P(t.call(u,u&&u.__data__,l,n)),p=f.length,g=s[l]=new Array(p),y=o[l]=new Array(p),b=c[l]=new Array(d);r(u,h,g,y,b,f,e);for(var m,v,_=0,x=0;_<p;++_)if(m=g[_]){for(_>=x&&(x=_+1);!(v=y[x])&&++x<p;);m._next=v||null}}return(o=new It(o,n))._enter=s,o._exit=c,o},enter:function(){return new It(this._enter||this._groups.map(M),this._parents)},exit:function(){return new It(this._exit||this._groups.map(M),this._parents)},join:function(t,e,r){var n=this.enter(),i=this,a=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&((i=e(i))&&(i=i.selection())),null==r?a.remove():r(a),n&&i?n.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,u=r[c],h=n[c],d=u.length,f=s[c]=new Array(d),p=0;p<d;++p)(l=u[p]||h[p])&&(f[p]=l);for(;c<i;++c)s[c]=r[c];return new It(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n,i=t[e],a=i.length-1,o=i[a];--a>=0;)(n=i[a])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=$);for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o,s=r[a],c=s.length,l=i[a]=new Array(c),u=0;u<c;++u)(o=s[u])&&(l[u]=o);l.sort(e)}return new It(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i,a=e[r],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var r=U(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==e?r.local?q:W:"function"==typeof e?r.local?X:G:r.local?V:H)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?Q:"function"==typeof e?J:Z)(t,e,null==r?"":r)):tt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?et:"function"==typeof e?nt:rt)(t,e)):this.node()[t]},classed:function(t,e){var r=it(t+"");if(arguments.length<2){for(var n=at(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each(("function"==typeof e?ht:e?lt:ut)(r,e))},text:function(t){return arguments.length?this.each(null==t?dt:("function"==typeof t?pt:ft)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?gt:("function"==typeof t?bt:yt)(t)):this.node().innerHTML},raise:function(){return this.each(mt)},lower:function(){return this.each(vt)},append:function(t){var e="function"==typeof t?t:kt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var r="function"==typeof t?t:kt(t),n=null==e?wt:"function"==typeof e?e:w(e);return this.select((function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)}))},remove:function(){return this.each(Tt)},clone:function(t){return this.select(t?Et:Ct)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var n,i,a=St(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Ot:At,n=0;n<o;++n)this.each(s(a[n],e,r));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(n=0,c=s[l];n<o;++n)if((i=a[n]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?Dt:Bt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n,i=t[e],a=0,o=i.length;a<o;++a)(n=i[a])&&(yield n)}};var Ft=Nt,jt=function(t){return"string"==typeof t?new It([[document.querySelector(t)]],[document.documentElement]):new It([[t]],Mt)},Rt=function(t,e,r){t.prototype=e.prototype=r,r.constructor=t};function Pt(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function $t(){}var zt=1/.7,Yt="\\s*([+-]?\\d+)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qt=/^#([0-9a-f]{3,8})$/,Ht=new RegExp(`^rgb\\(${Yt},${Yt},${Yt}\\)$`),Vt=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),Gt=new RegExp(`^rgba\\(${Yt},${Yt},${Yt},${Ut}\\)$`),Xt=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${Ut}\\)$`),Kt=new RegExp(`^hsl\\(${Ut},${Wt},${Wt}\\)$`),Qt=new RegExp(`^hsla\\(${Ut},${Wt},${Wt},${Ut}\\)$`),Zt={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 Jt(){return this.rgb().formatHex()}function te(){return this.rgb().formatRgb()}function ee(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=qt.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?re(e):3===r?new oe(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?ne(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?ne(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ht.exec(t))?new oe(e[1],e[2],e[3],1):(e=Vt.exec(t))?new oe(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Gt.exec(t))?ne(e[1],e[2],e[3],e[4]):(e=Xt.exec(t))?ne(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?de(e[1],e[2]/100,e[3]/100,1):(e=Qt.exec(t))?de(e[1],e[2]/100,e[3]/100,e[4]):Zt.hasOwnProperty(t)?re(Zt[t]):"transparent"===t?new oe(NaN,NaN,NaN,0):null}function re(t){return new oe(t>>16&255,t>>8&255,255&t,1)}function ne(t,e,r,n){return n<=0&&(t=e=r=NaN),new oe(t,e,r,n)}function ie(t){return t instanceof $t||(t=ee(t)),t?new oe((t=t.rgb()).r,t.g,t.b,t.opacity):new oe}function ae(t,e,r,n){return 1===arguments.length?ie(t):new oe(t,e,r,null==n?1:n)}function oe(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function se(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function ce(){const t=le(this.opacity);return`${1===t?"rgb(":"rgba("}${ue(this.r)}, ${ue(this.g)}, ${ue(this.b)}${1===t?")":`, ${t})`}`}function le(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ue(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function he(t){return((t=ue(t))<16?"0":"")+t.toString(16)}function de(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,r,n)}function fe(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof $t||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(r-n)/s+6*(r<n):r===a?(n-e)/s+2:(e-r)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new pe(o,s,c,t.opacity)}function pe(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function ge(t){return(t=(t||0)%360)<0?t+360:t}function ye(t){return Math.max(0,Math.min(1,t||0))}function be(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function me(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}Rt($t,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fe(this).formatHsl()},formatRgb:te,toString:te}),Rt(oe,ae,Pt($t,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new oe(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new oe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new oe(ue(this.r),ue(this.g),ue(this.b),le(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:se,formatHex:se,formatHex8:function(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ce,toString:ce})),Rt(pe,(function(t,e,r,n){return 1===arguments.length?fe(t):new pe(t,e,r,null==n?1:n)}),Pt($t,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new oe(be(t>=240?t-240:t+120,i,n),be(t,i,n),be(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new pe(ge(this.h),ye(this.s),ye(this.l),le(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=le(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*ye(this.s)}%, ${100*ye(this.l)}%${1===t?")":`, ${t})`}`}}));var ve=t=>()=>t;function _e(t,e){return function(r){return t+r*e}}function xe(t){return 1==(t=+t)?ke:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):ve(isNaN(e)?r:e)}}function ke(t,e){var r=e-t;return r?_e(t,r):ve(isNaN(t)?e:t)}var we=function t(e){var r=xe(e);function n(t,e){var n=r((t=ae(t)).r,(e=ae(e)).r),i=r(t.g,e.g),a=r(t.b,e.b),o=ke(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return n.gamma=t,n}(1);function Te(t){return function(e){var r,n,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(r=0;r<i;++r)n=ae(e[r]),a[r]=n.r||0,o[r]=n.g||0,s[r]=n.b||0;return a=t(a),o=t(o),s=t(s),n.opacity=1,function(t){return n.r=a(t),n.g=o(t),n.b=s(t),n+""}}}Te((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,s=n<e-1?t[n+2]:2*a-i;return me((r-n/e)*e,o,i,a,s)}})),Te((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],o=t[(n+1)%e],s=t[(n+2)%e];return me((r-n/e)*e,i,a,o,s)}}));var Ce=function(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r<n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}};function Ee(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r<i;++r)a[r]=Ne(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}}var Se=function(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}},Ae=function(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}},Oe=function(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Ne(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}},Le=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Be=new RegExp(Le.source,"g");var De,Me,Ie=function(t,e){var r,n,i,a=Le.lastIndex=Be.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(r=Le.exec(t))&&(n=Be.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,c.push({i:o,x:Ae(r,n)})),a=Be.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var r,n=0;n<e;++n)s[(r=c[n]).i]=r.x(t);return s.join("")})},Ne=function(t,e){var r,n=typeof e;return null==e||"boolean"===n?ve(e):("number"===n?Ae:"string"===n?(r=ee(e))?(e=r,we):Ie:e instanceof ee?we:e instanceof Date?Se:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Ce:Array.isArray(e)?Ee:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Oe:Ae)(t,e)},Fe=0,je=0,Re=0,Pe=0,$e=0,ze=0,Ye="object"==typeof performance&&performance.now?performance:Date,Ue="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function We(){return $e||(Ue(qe),$e=Ye.now()+ze)}function qe(){$e=0}function He(){this._call=this._time=this._next=null}function Ve(t,e,r){var n=new He;return n.restart(t,e,r),n}function Ge(){$e=(Pe=Ye.now())+ze,Fe=je=0;try{!function(){We(),++Fe;for(var t,e=De;e;)(t=$e-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fe}()}finally{Fe=0,function(){var t,e,r=De,n=1/0;for(;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:De=e);Me=t,Ke(n)}(),$e=0}}function Xe(){var t=Ye.now(),e=t-Pe;e>1e3&&(ze-=e,Pe=t)}function Ke(t){Fe||(je&&(je=clearTimeout(je)),t-$e>24?(t<1/0&&(je=setTimeout(Ge,t-Ye.now()-ze)),Re&&(Re=clearInterval(Re))):(Re||(Pe=Ye.now(),Re=setInterval(Xe,1e3)),Fe=1,Ue(Ge)))}He.prototype=Ve.prototype={constructor:He,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?We():+r)+(null==e?0:+e),this._next||Me===this||(Me?Me._next=this:De=this,Me=this),this._call=t,this._time=r,Ke()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ke())}};var Qe=function(t,e,r){var n=new He;return e=null==e?0:+e,n.restart(r=>{n.stop(),t(r+e)},e,r),n},Ze=x("start","end","cancel","interrupt"),Je=[],tr=function(t,e,r,n,i,a){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var n,i=t.__transition;function a(c){var l,u,h,d;if(1!==r.state)return s();for(l in i)if((d=i[l]).name===r.name){if(3===d.state)return Qe(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[l])}if(Qe((function(){3===r.state&&(r.state=4,r.timer.restart(o,r.delay,r.time),o(c))})),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(r.state=3,n=new Array(h=r.tween.length),l=0,u=-1;l<h;++l)(d=r.tween[l].value.call(t,t.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function o(e){for(var i=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=5,1),a=-1,o=n.length;++a<o;)n[a].call(t,i);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),s())}function s(){for(var n in r.state=6,r.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=r,r.timer=Ve((function(t){r.state=1,r.timer.restart(a,r.delay,r.time),r.delay<=t&&a(t-r.delay)}),0,r.time)}(t,r,{name:e,index:n,group:i,on:Ze,tween:Je,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})};function er(t,e){var r=nr(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function rr(t,e){var r=nr(t,e);if(r.state>3)throw new Error("too late; already running");return r}function nr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}var ir,ar=180/Math.PI,or={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},sr=function(t,e,r,n,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*r+e*n)&&(r-=t*c,n-=e*c),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,c/=s),t*n<e*r&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*ar,skewX:Math.atan(c)*ar,scaleX:o,scaleY:s}};function cr(t,e,r,n){function i(t){return t.length?t.pop()+" ":""}function a(t,n,i,a,o,s){if(t!==i||n!==a){var c=o.push("translate(",null,e,null,r);s.push({i:c-4,x:Ae(t,i)},{i:c-2,x:Ae(n,a)})}else(i||a)&&o.push("translate("+i+e+a+r)}function o(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+"rotate(",null,n)-2,x:Ae(t,e)})):e&&r.push(i(r)+"rotate("+e+n)}function s(t,e,r,a){t!==e?a.push({i:r.push(i(r)+"skewX(",null,n)-2,x:Ae(t,e)}):e&&r.push(i(r)+"skewX("+e+n)}function c(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Ae(t,r)},{i:s-2,x:Ae(e,n)})}else 1===r&&1===n||a.push(i(a)+"scale("+r+","+n+")")}return function(e,r){var n=[],i=[];return e=t(e),r=t(r),a(e.translateX,e.translateY,r.translateX,r.translateY,n,i),o(e.rotate,r.rotate,n,i),s(e.skewX,r.skewX,n,i),c(e.scaleX,e.scaleY,r.scaleX,r.scaleY,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r<a;)n[(e=i[r]).i]=e.x(t);return n.join("")}}}var lr=cr((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?or:sr(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),ur=cr((function(t){return null==t?or:(ir||(ir=document.createElementNS("http://www.w3.org/2000/svg","g")),ir.setAttribute("transform",t),(t=ir.transform.baseVal.consolidate())?(t=t.matrix,sr(t.a,t.b,t.c,t.d,t.e,t.f)):or)}),", ",")",")");function hr(t,e){var r,n;return function(){var i=rr(this,t),a=i.tween;if(a!==r)for(var o=0,s=(n=r=a).length;o<s;++o)if(n[o].name===e){(n=n.slice()).splice(o,1);break}i.tween=n}}function dr(t,e,r){var n,i;if("function"!=typeof r)throw new Error;return function(){var a=rr(this,t),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:e,value:r},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function fr(t,e,r){var n=t._id;return t.each((function(){var t=rr(this,n);(t.value||(t.value={}))[e]=r.apply(this,arguments)})),function(t){return nr(t,n).value[e]}}var pr=function(t,e){var r;return("number"==typeof e?Ae:e instanceof ee?we:(r=ee(e))?(e=r,we):Ie)(t,e)};function gr(t){return function(){this.removeAttribute(t)}}function yr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function br(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttribute(t);return o===a?null:o===n?i:i=e(n=o,r)}}function mr(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===n?i:i=e(n=o,r)}}function vr(t,e,r){var n,i,a;return function(){var o,s,c=r(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,c));this.removeAttribute(t)}}function _r(t,e,r){var n,i,a;return function(){var o,s,c=r(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,c));this.removeAttributeNS(t.space,t.local)}}function xr(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function kr(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function wr(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&kr(t,i)),r}return i._value=e,i}function Tr(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&xr(t,i)),r}return i._value=e,i}function Cr(t,e){return function(){er(this,t).delay=+e.apply(this,arguments)}}function Er(t,e){return e=+e,function(){er(this,t).delay=e}}function Sr(t,e){return function(){rr(this,t).duration=+e.apply(this,arguments)}}function Ar(t,e){return e=+e,function(){rr(this,t).duration=e}}function Or(t,e){if("function"!=typeof e)throw new Error;return function(){rr(this,t).ease=e}}function Lr(t,e,r){var n,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?er:rr;return function(){var o=a(this,t),s=o.on;s!==n&&(i=(n=s).copy()).on(e,r),o.on=i}}var Br=Ft.prototype.constructor;function Dr(t){return function(){this.style.removeProperty(t)}}function Mr(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function Ir(t,e,r){var n,i;function a(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&Mr(t,a,r)),n}return a._value=e,a}function Nr(t){return function(e){this.textContent=t.call(this,e)}}function Fr(t){var e,r;function n(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&Nr(n)),e}return n._value=t,n}var jr=0;function Rr(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function Pr(){return++jr}var $r=Ft.prototype;Rr.prototype=function(t){return Ft().transition(t)}.prototype={constructor:Rr,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=w(t));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=n[o],u=l.length,h=a[o]=new Array(u),d=0;d<u;++d)(s=l[d])&&(c=t.call(s,s.__data__,d,l))&&("__data__"in s&&(c.__data__=s.__data__),h[d]=c,tr(h[d],e,r,d,h,nr(s,r)));return new Rr(a,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=E(t));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var c,l=n[s],u=l.length,h=0;h<u;++h)if(c=l[h]){for(var d,f=t.call(c,c.__data__,h,l),p=nr(c,r),g=0,y=f.length;g<y;++g)(d=f[g])&&tr(d,e,r,g,f,p);a.push(f),o.push(c)}return new Rr(a,o,e,r)},selectChild:$r.selectChild,selectChildren:$r.selectChildren,filter:function(t){"function"!=typeof t&&(t=S(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,c=n[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Rr(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var c,l=e[s],u=r[s],h=l.length,d=o[s]=new Array(h),f=0;f<h;++f)(c=l[f]||u[f])&&(d[f]=c);for(;s<n;++s)o[s]=e[s];return new Rr(o,this._parents,this._name,this._id)},selection:function(){return new Br(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Pr(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var u=nr(o,e);tr(o,t,r,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Rr(n,this._parents,t,r)},call:$r.call,nodes:$r.nodes,node:$r.node,size:$r.size,empty:$r.empty,each:$r.each,on:function(t,e){var r=this._id;return arguments.length<2?nr(this.node(),r).on.on(t):this.each(Lr(r,t,e))},attr:function(t,e){var r=U(t),n="transform"===r?ur:pr;return this.attrTween(t,"function"==typeof e?(r.local?_r:vr)(r,n,fr(this,"attr."+t,e)):null==e?(r.local?yr:gr)(r):(r.local?mr:br)(r,n,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var n=U(t);return this.tween(r,(n.local?wr:Tr)(n,e))},style:function(t,e,r){var n="transform"==(t+="")?lr:pr;return null==e?this.styleTween(t,function(t,e){var r,n,i;return function(){var a=tt(this,t),o=(this.style.removeProperty(t),tt(this,t));return a===o?null:a===r&&o===n?i:i=e(r=a,n=o)}}(t,n)).on("end.style."+t,Dr(t)):"function"==typeof e?this.styleTween(t,function(t,e,r){var n,i,a;return function(){var o=tt(this,t),s=r(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=tt(this,t)),o===c?null:o===n&&c===i?a:(i=c,a=e(n=o,s))}}(t,n,fr(this,"style."+t,e))).each(function(t,e){var r,n,i,a,o="style."+e,s="end."+o;return function(){var c=rr(this,t),l=c.on,u=null==c.value[o]?a||(a=Dr(e)):void 0;l===r&&i===u||(n=(r=l).copy()).on(s,i=u),c.on=n}}(this._id,t)):this.styleTween(t,function(t,e,r){var n,i,a=r+"";return function(){var o=tt(this,t);return o===a?null:o===n?i:i=e(n=o,r)}}(t,n,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;return this.tween(n,Ir(t,e,null==r?"":r))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(fr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Fr(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,i=nr(this.node(),r).tween,a=0,o=i.length;a<o;++a)if((n=i[a]).name===t)return n.value;return null}return this.each((null==e?hr:dr)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Cr:Er)(e,t)):nr(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Sr:Ar)(e,t)):nr(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Or(e,t)):nr(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw new Error;rr(this,t).ease=r}}(this._id,t))},end:function(){var t,e,r=this,n=r._id,i=r.size();return new Promise((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};r.each((function(){var r=rr(this,n),i=r.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),r.on=e})),0===i&&a()}))},[Symbol.iterator]:$r[Symbol.iterator]};var zr={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Yr(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Ft.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var r,n,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(r=a[i]).name===e?(n=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Ft.prototype.transition=function(t){var e,r;t instanceof Rr?(e=t._id,t=t._name):(e=Pr(),(r=zr).time=We(),t=null==t?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],c=s.length,l=0;l<c;++l)(o=s[l])&&tr(o,t,e,l,s,r||Yr(o,e));return new Rr(n,this._parents,t,e)};const{abs:Ur,max:Wr,min:qr}=Math;function Hr(t){return{type:t}}function Vr(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}["w","e"].map(Hr),["n","s"].map(Hr),["n","w","e","s","nw","ne","sw","se"].map(Hr);function Gr(t){return(e,r)=>function(t,e){return fetch(t,e).then(Vr)}(e,r).then(e=>(new DOMParser).parseFromString(e,t))}Gr("application/xml"),Gr("text/html");var Xr=Gr("image/svg+xml");const Kr=Math.PI/180,Qr=180/Math.PI,Zr=6/29,Jr=3*Zr*Zr;function tn(t){if(t instanceof en)return new en(t.l,t.a,t.b,t.opacity);if(t instanceof ln)return un(t);t instanceof oe||(t=ie(t));var e,r,n=on(t.r),i=on(t.g),a=on(t.b),o=rn((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&&i===a?e=r=o:(e=rn((.4360747*n+.3850649*i+.1430804*a)/.96422),r=rn((.0139322*n+.0971045*i+.7141733*a)/.82521)),new en(116*o-16,500*(e-o),200*(o-r),t.opacity)}function en(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function rn(t){return t>.008856451679035631?Math.pow(t,1/3):t/Jr+4/29}function nn(t){return t>Zr?t*t*t:Jr*(t-4/29)}function an(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function on(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function sn(t){if(t instanceof ln)return new ln(t.h,t.c,t.l,t.opacity);if(t instanceof en||(t=tn(t)),0===t.a&&0===t.b)return new ln(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Qr;return new ln(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function cn(t,e,r,n){return 1===arguments.length?sn(t):new ln(t,e,r,null==n?1:n)}function ln(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function un(t){if(isNaN(t.h))return new en(t.l,0,0,t.opacity);var e=t.h*Kr;return new en(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function hn(t){return function(e,r){var n=t((e=cn(e)).h,(r=cn(r)).h),i=ke(e.c,r.c),a=ke(e.l,r.l),o=ke(e.opacity,r.opacity);return function(t){return e.h=n(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}Rt(en,(function(t,e,r,n){return 1===arguments.length?tn(t):new en(t,e,r,null==n?1:n)}),Pt($t,{brighter(t){return new en(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new en(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new oe(an(3.1338561*(e=.96422*nn(e))-1.6168667*(t=1*nn(t))-.4906146*(r=.82521*nn(r))),an(-.9787684*e+1.9161415*t+.033454*r),an(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),Rt(ln,cn,Pt($t,{brighter(t){return new ln(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new ln(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return un(this).rgb()}}));var dn=hn((function(t,e){var r=e-t;return r?_e(t,r>180||r<-180?r-360*Math.round(r/360):r):ve(isNaN(t)?e:t)}));hn(ke);const fn=Math.sqrt(50),pn=Math.sqrt(10),gn=Math.sqrt(2);function yn(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=fn?10:a>=pn?5:a>=gn?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/l<t&&++s,c/l>e&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*l<t&&++s,c*l>e&&--c),c<s&&.5<=r&&r<2?yn(t,e,2*r):[s,c,l]}function bn(t,e,r){return yn(t=+t,e=+e,r=+r)[2]}function mn(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?bn(e,t,r):bn(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function vn(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _n(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xn(t){let e,r,n;function i(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{const e=i+a>>>1;r(t[e],n)<0?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=vn,r=(e,r)=>vn(t(e),r),n=(e,r)=>t(e)-r):(e=t===vn||t===_n?t:kn,r=t,n=t),{left:i,center:function(t,e,r=0,a=t.length){const o=i(t,e,r,a-1);return o>r&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{const e=i+a>>>1;r(t[e],n)<=0?i=e+1:a=e}while(i<a)}return i}}}function kn(){return 0}const wn=xn(vn),Tn=wn.right;wn.left,xn((function(t){return null===t?NaN:+t})).center;var Cn=Tn,En=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}};function Sn(t){return+t}var An=[0,1];function On(t){return t}function Ln(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Bn(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i<n?(n=Ln(i,n),a=r(o,a)):(n=Ln(n,i),a=r(a,o)),function(t){return a(n(t))}}function Dn(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),a=new Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)i[o]=Ln(t[o],t[o+1]),a[o]=r(e[o],e[o+1]);return function(e){var r=Cn(t,e,1,n)-1;return a[r](i[r](e))}}function Mn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function In(){var t,e,r,n,i,a,o=An,s=An,c=Ne,l=On;function u(){var t=Math.min(o.length,s.length);return l!==On&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(o[0],o[t-1])),n=t>2?Dn:Bn,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?r:(i||(i=n(o.map(t),s,c)))(t(l(e)))}return h.invert=function(r){return l(e((a||(a=n(s,o.map(t),Ae)))(r)))},h.domain=function(t){return arguments.length?(o=Array.from(t,Sn),u()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),c=En,u()},h.clamp=function(t){return arguments.length?(l=!!t||On,u()):l!==On},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(r=t,h):r},function(r,n){return t=r,e=n,u()}}function Nn(){return In()(On,On)}function Fn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var jn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rn(t){if(!(e=jn.exec(t)))throw new Error("invalid format: "+t);var e;return new Pn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Pn(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Rn.prototype=Pn.prototype,Pn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function $n(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}var zn,Yn,Un,Wn,qn=function(t){return(t=$n(Math.abs(t)))?t[1]:NaN},Hn=function(t,e){var r=$n(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")},Vn={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Hn(100*t,e),r:Hn,s:function(t,e){var r=$n(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(zn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+$n(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},Gn=function(t){return t},Xn=Array.prototype.map,Kn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Qn=function(t){var e=void 0===t.grouping||void 0===t.thousands?Gn:function(t,e){return function(r,n){for(var i=r.length,a=[],o=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),a.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}(Xn.call(t.grouping,Number),t.thousands+""),r=void 0===t.currency?"":t.currency[0]+"",n=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Gn:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Xn.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function l(t){var l=(t=Rn(t)).fill,u=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,g=t.comma,y=t.precision,b=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Vn[m]||(void 0===y&&(y=12),b=!0,m="g"),(f||"0"===l&&"="===u)&&(f=!0,l="0",u="=");var v="$"===d?r:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===d?n:/[%p]/.test(m)?o:"",x=Vn[m],k=/[defgprs%]/.test(m);function w(t){var r,n,o,d=v,w=_;if("c"===m)w=x(t)+w,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),y),b&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==h&&(T=!1),d=(T?"("===h?h:s:"-"===h||"("===h?"":h)+d,w=("s"===m?Kn[8+zn/3]:"")+w+(T&&"("===h?")":""),k)for(r=-1,n=t.length;++r<n;)if(48>(o=t.charCodeAt(r))||o>57){w=(46===o?i+t.slice(r+1):t.slice(r))+w,t=t.slice(0,r);break}}g&&!f&&(t=e(t,1/0));var C=d.length+t.length+w.length,E=C<p?new Array(p-C+1).join(l):"";switch(g&&f&&(t=e(E+t,E.length?p-w.length:1/0),E=""),u){case"<":t=d+t+w+E;break;case"=":t=d+E+t+w;break;case"^":t=E.slice(0,C=E.length>>1)+d+t+w+E.slice(C);break;default:t=E+d+t+w}return a(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),w.toString=function(){return t+""},w}return{format:l,formatPrefix:function(t,e){var r=l(((t=Rn(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(qn(e)/3))),i=Math.pow(10,-n),a=Kn[8+n/3];return function(t){return r(i*t)+a}}}};!function(t){Yn=Qn(t),Un=Yn.format,Wn=Yn.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});function Zn(t,e,r,n){var i,a=mn(t,e,r);switch((n=Rn(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qn(e)/3)))-qn(Math.abs(t)))}(a,o))||(n.precision=i),Wn(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,qn(e)-qn(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-qn(Math.abs(t)))}(a))||(n.precision=i-2*("%"===n.type))}return Un(n)}function Jn(t){var e=t.domain;return t.ticks=function(t){var r=e();return function(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,a,o]=n?yn(e,t,r):yn(t,e,r);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(n)if(o<0)for(let t=0;t<s;++t)c[t]=(a-t)/-o;else for(let t=0;t<s;++t)c[t]=(a-t)*o;else if(o<0)for(let t=0;t<s;++t)c[t]=(i+t)/-o;else for(let t=0;t<s;++t)c[t]=(i+t)*o;return c}(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Zn(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,a=e(),o=0,s=a.length-1,c=a[o],l=a[s],u=10;for(l<c&&(i=c,c=l,l=i,i=o,o=s,s=i);u-- >0;){if((i=bn(c,l,r))===n)return a[o]=c,a[s]=l,e(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}n=i}return t},t}function ti(){var t=Nn();return t.copy=function(){return Mn(t,ti())},Fn.apply(t,arguments),Jn(t)}class ei extends Map{constructor(t,e=ni){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(ri(this,t))}has(t){return super.has(ri(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function ri({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function ni(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const ii=Symbol("implicit");function ai(){var t=new ei,e=[],r=[],n=ii;function i(i){let a=t.get(i);if(void 0===a){if(n!==ii)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new ei;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return ai(e,r).unknown(n)},Fn.apply(i,arguments),i}const oi=1e3,si=6e4,ci=60*si,li=24*ci,ui=7*li,hi=30*li,di=365*li,fi=new Date,pi=new Date;function gi(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,a)=>{const o=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n&&a>0))return o;let s;do{o.push(s=new Date(+r)),e(r,a),t(r)}while(s<r&&r<n);return o},i.filter=r=>gi(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(i.count=(e,n)=>(fi.setTime(+e),pi.setTime(+n),t(fi),t(pi),Math.floor(r(fi,pi))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const yi=gi(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);yi.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?gi(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):yi:null),yi.range;const bi=gi(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*oi)},(t,e)=>(e-t)/oi,t=>t.getUTCSeconds()),mi=(bi.range,gi(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*oi)},(t,e)=>{t.setTime(+t+e*si)},(t,e)=>(e-t)/si,t=>t.getMinutes())),vi=(mi.range,gi(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*si)},(t,e)=>(e-t)/si,t=>t.getUTCMinutes())),_i=(vi.range,gi(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*oi-t.getMinutes()*si)},(t,e)=>{t.setTime(+t+e*ci)},(t,e)=>(e-t)/ci,t=>t.getHours())),xi=(_i.range,gi(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ci)},(t,e)=>(e-t)/ci,t=>t.getUTCHours())),ki=(xi.range,gi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*si)/li,t=>t.getDate()-1)),wi=(ki.range,gi(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/li,t=>t.getUTCDate()-1)),Ti=(wi.range,gi(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/li,t=>Math.floor(t/li)));function Ci(t){return gi(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*si)/ui)}Ti.range;const Ei=Ci(0),Si=Ci(1),Ai=Ci(2),Oi=Ci(3),Li=Ci(4),Bi=Ci(5),Di=Ci(6);function Mi(t){return gi(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/ui)}Ei.range,Si.range,Ai.range,Oi.range,Li.range,Bi.range,Di.range;const Ii=Mi(0),Ni=Mi(1),Fi=Mi(2),ji=Mi(3),Ri=Mi(4),Pi=Mi(5),$i=Mi(6),zi=(Ii.range,Ni.range,Fi.range,ji.range,Ri.range,Pi.range,$i.range,gi(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth())),Yi=(zi.range,gi(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth())),Ui=(Yi.range,gi(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear()));Ui.every=t=>isFinite(t=Math.floor(t))&&t>0?gi(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,Ui.range;const Wi=gi(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function qi(t,e,r,n,i,a){const o=[[bi,1,oi],[bi,5,5e3],[bi,15,15e3],[bi,30,3e4],[a,1,si],[a,5,5*si],[a,15,15*si],[a,30,30*si],[i,1,ci],[i,3,3*ci],[i,6,6*ci],[i,12,12*ci],[n,1,li],[n,2,2*li],[r,1,ui],[e,1,hi],[e,3,3*hi],[t,1,di]];function s(e,r,n){const i=Math.abs(r-e)/n,a=xn(([,,t])=>t).right(o,i);if(a===o.length)return t.every(mn(e/di,r/di,n));if(0===a)return yi.every(Math.max(mn(e,r,n),1));const[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:s(t,e,r),a=i?i.range(t,+e+1):[];return n?a.reverse():a},s]}Wi.every=t=>isFinite(t=Math.floor(t))&&t>0?gi(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,Wi.range;const[Hi,Vi]=qi(Wi,Yi,Ii,Ti,xi,vi),[Gi,Xi]=qi(Ui,zi,Ei,ki,_i,mi);function Ki(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Qi(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Zi(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Ji,ta,ea={"-":"",_:" ",0:"0"},ra=/^\s*\d+/,na=/^%/,ia=/[\\^$*+?|[\]().{}]/g;function aa(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function oa(t){return t.replace(ia,"\\$&")}function sa(t){return new RegExp("^(?:"+t.map(oa).join("|")+")","i")}function ca(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function la(t,e,r){var n=ra.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function ua(t,e,r){var n=ra.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function ha(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function da(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function fa(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function pa(t,e,r){var n=ra.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function ga(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ya(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ba(t,e,r){var n=ra.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function ma(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function va(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function _a(t,e,r){var n=ra.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function xa(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ka(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function wa(t,e,r){var n=ra.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Ta(t,e,r){var n=ra.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Ca(t,e,r){var n=ra.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Ea(t,e,r){var n=na.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Sa(t,e,r){var n=ra.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Aa(t,e,r){var n=ra.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Oa(t,e){return aa(t.getDate(),e,2)}function La(t,e){return aa(t.getHours(),e,2)}function Ba(t,e){return aa(t.getHours()%12||12,e,2)}function Da(t,e){return aa(1+ki.count(Ui(t),t),e,3)}function Ma(t,e){return aa(t.getMilliseconds(),e,3)}function Ia(t,e){return Ma(t,e)+"000"}function Na(t,e){return aa(t.getMonth()+1,e,2)}function Fa(t,e){return aa(t.getMinutes(),e,2)}function ja(t,e){return aa(t.getSeconds(),e,2)}function Ra(t){var e=t.getDay();return 0===e?7:e}function Pa(t,e){return aa(Ei.count(Ui(t)-1,t),e,2)}function $a(t){var e=t.getDay();return e>=4||0===e?Li(t):Li.ceil(t)}function za(t,e){return t=$a(t),aa(Li.count(Ui(t),t)+(4===Ui(t).getDay()),e,2)}function Ya(t){return t.getDay()}function Ua(t,e){return aa(Si.count(Ui(t)-1,t),e,2)}function Wa(t,e){return aa(t.getFullYear()%100,e,2)}function qa(t,e){return aa((t=$a(t)).getFullYear()%100,e,2)}function Ha(t,e){return aa(t.getFullYear()%1e4,e,4)}function Va(t,e){var r=t.getDay();return aa((t=r>=4||0===r?Li(t):Li.ceil(t)).getFullYear()%1e4,e,4)}function Ga(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+aa(e/60|0,"0",2)+aa(e%60,"0",2)}function Xa(t,e){return aa(t.getUTCDate(),e,2)}function Ka(t,e){return aa(t.getUTCHours(),e,2)}function Qa(t,e){return aa(t.getUTCHours()%12||12,e,2)}function Za(t,e){return aa(1+wi.count(Wi(t),t),e,3)}function Ja(t,e){return aa(t.getUTCMilliseconds(),e,3)}function to(t,e){return Ja(t,e)+"000"}function eo(t,e){return aa(t.getUTCMonth()+1,e,2)}function ro(t,e){return aa(t.getUTCMinutes(),e,2)}function no(t,e){return aa(t.getUTCSeconds(),e,2)}function io(t){var e=t.getUTCDay();return 0===e?7:e}function ao(t,e){return aa(Ii.count(Wi(t)-1,t),e,2)}function oo(t){var e=t.getUTCDay();return e>=4||0===e?Ri(t):Ri.ceil(t)}function so(t,e){return t=oo(t),aa(Ri.count(Wi(t),t)+(4===Wi(t).getUTCDay()),e,2)}function co(t){return t.getUTCDay()}function lo(t,e){return aa(Ni.count(Wi(t)-1,t),e,2)}function uo(t,e){return aa(t.getUTCFullYear()%100,e,2)}function ho(t,e){return aa((t=oo(t)).getUTCFullYear()%100,e,2)}function fo(t,e){return aa(t.getUTCFullYear()%1e4,e,4)}function po(t,e){var r=t.getUTCDay();return aa((t=r>=4||0===r?Ri(t):Ri.ceil(t)).getUTCFullYear()%1e4,e,4)}function go(){return"+0000"}function yo(){return"%"}function bo(t){return+t}function mo(t){return Math.floor(+t/1e3)}function vo(t){return new Date(t)}function _o(t){return t instanceof Date?+t:+new Date(+t)}function xo(t,e,r,n,i,a,o,s,c,l){var u=Nn(),h=u.invert,d=u.domain,f=l(".%L"),p=l(":%S"),g=l("%I:%M"),y=l("%I %p"),b=l("%a %d"),m=l("%b %d"),v=l("%B"),_=l("%Y");function x(t){return(c(t)<t?f:s(t)<t?p:o(t)<t?g:a(t)<t?y:n(t)<t?i(t)<t?b:m:r(t)<t?v:_)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,_o)):d().map(vo)},u.ticks=function(e){var r=d();return t(r[0],r[r.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?x:l(e)},u.nice=function(t){var r=d();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?d(function(t,e){var r,n=0,i=(t=t.slice()).length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}(r,t)):u},u.copy=function(){return Mn(u,xo(t,e,r,n,i,a,o,s,c,l))},u}function ko(){return Fn.apply(xo(Gi,Xi,Ui,zi,Ei,ki,_i,mi,bi,ta).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}!function(t){Ji=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=sa(i),u=ca(i),h=sa(a),d=ca(a),f=sa(o),p=ca(o),g=sa(s),y=ca(s),b=sa(c),m=ca(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Oa,e:Oa,f:Ia,g:qa,G:Va,H:La,I:Ba,j:Da,L:Ma,m:Na,M:Fa,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:bo,s:mo,S:ja,u:Ra,U:Pa,V:za,w:Ya,W:Ua,x:null,X:null,y:Wa,Y:Ha,Z:Ga,"%":yo},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Xa,e:Xa,f:to,g:ho,G:po,H:Ka,I:Qa,j:Za,L:Ja,m:eo,M:ro,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:bo,s:mo,S:no,u:io,U:ao,V:so,w:co,W:lo,x:null,X:null,y:uo,Y:fo,Z:go,"%":yo},x={a:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=b.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return T(t,e,r,n)},d:va,e:va,f:Ca,g:ga,G:pa,H:xa,I:xa,j:_a,L:Ta,m:ma,M:ka,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:ba,Q:Sa,s:Aa,S:wa,u:ua,U:ha,V:da,w:la,W:fa,x:function(t,e,n){return T(t,r,e,n)},X:function(t,e,r){return T(t,n,e,r)},y:ga,Y:pa,Z:ya,"%":Ea};function k(t,e){return function(r){var n,i,a,o=[],s=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++s<l;)37===t.charCodeAt(s)&&(o.push(t.slice(c,s)),null!=(i=ea[n=t.charAt(++s)])?n=t.charAt(++s):i="e"===n?" ":"0",(a=e[n])&&(n=a(r,i)),o.push(n),c=s+1);return o.push(t.slice(c,s)),o.join("")}}function w(t,e){return function(r){var n,i,a=Zi(1900,void 0,1);if(T(a,t,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(n=Qi(Zi(a.y,0,1))).getUTCDay(),n=i>4||0===i?Ni.ceil(n):Ni(n),n=wi.offset(n,7*(a.V-1)),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(i=(n=Ki(Zi(a.y,0,1))).getDay(),n=i>4||0===i?Si.ceil(n):Si(n),n=ki.offset(n,7*(a.V-1)),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Qi(Zi(a.y,0,1)).getUTCDay():Ki(Zi(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Qi(a)):Ki(a)}}function T(t,e,r,n){for(var i,a,o=0,s=e.length,c=r.length;o<s;){if(n>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in ea?e.charAt(o++):i])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return v.x=k(r,v),v.X=k(n,v),v.c=k(e,v),_.x=k(r,_),_.X=k(n,_),_.c=k(e,_),{format:function(t){var e=k(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}(t),ta=Ji.format,Ji.parse,Ji.utcFormat,Ji.utcParse}({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"]});var wo=function(t){return"string"==typeof t?new It([document.querySelectorAll(t)],[document.documentElement]):new It([T(t)],Mt)},To=function(t){return function(){return t}};const Co=Math.abs,Eo=Math.atan2,So=Math.cos,Ao=Math.max,Oo=Math.min,Lo=Math.sin,Bo=Math.sqrt,Do=1e-12,Mo=Math.PI,Io=Mo/2,No=2*Mo;function Fo(t){return t>1?0:t<-1?Mo:Math.acos(t)}function jo(t){return t>=1?Io:t<=-1?-Io:Math.asin(t)}const Ro=Math.PI,Po=2*Ro,$o=1e-6,zo=Po-$o;function Yo(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Uo{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Yo:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: "+t);if(e>15)return Yo;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,a){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error("negative radius: "+i);let a=this._x1,o=this._y1,s=r-t,c=n-e,l=a-t,u=o-e,h=l*l+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>$o)if(Math.abs(u*s-c*l)>$o&&i){let d=r-a,f=n-o,p=s*s+c*c,g=d*d+f*f,y=Math.sqrt(p),b=Math.sqrt(h),m=i*Math.tan((Ro-Math.acos((p+h-g)/(2*y*b)))/2),v=m/b,_=m/y;Math.abs(v-1)>$o&&this._append`L${t+v*l},${e+v*u}`,this._append`A${i},${i},0,0,${+(u*d>l*f)},${this._x1=t+_*s},${this._y1=e+_*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,i,a){if(t=+t,e=+e,a=!!a,(r=+r)<0)throw new Error("negative radius: "+r);let o=r*Math.cos(n),s=r*Math.sin(n),c=t+o,l=e+s,u=1^a,h=a?n-i:i-n;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>$o||Math.abs(this._y1-l)>$o)&&this._append`L${c},${l}`,r&&(h<0&&(h=h%Po+Po),h>zo?this._append`A${r},${r},0,1,${u},${t-o},${e-s}A${r},${r},0,1,${u},${this._x1=c},${this._y1=l}`:h>$o&&this._append`A${r},${r},0,${+(h>=Ro)},${u},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Wo(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError("invalid digits: "+r);e=t}return t},()=>new Uo(e)}function qo(t){return t.innerRadius}function Ho(t){return t.outerRadius}function Vo(t){return t.startAngle}function Go(t){return t.endAngle}function Xo(t){return t&&t.padAngle}function Ko(t,e,r,n,i,a,o,s){var c=r-t,l=n-e,u=o-i,h=s-a,d=h*c-u*l;if(!(d*d<Do))return[t+(d=(u*(e-a)-h*(t-i))/d)*c,e+d*l]}function Qo(t,e,r,n,i,a,o){var s=t-r,c=e-n,l=(o?a:-a)/Bo(s*s+c*c),u=l*c,h=-l*s,d=t+u,f=e+h,p=r+u,g=n+h,y=(d+p)/2,b=(f+g)/2,m=p-d,v=g-f,_=m*m+v*v,x=i-a,k=d*g-p*f,w=(v<0?-1:1)*Bo(Ao(0,x*x*_-k*k)),T=(k*v-m*w)/_,C=(-k*m-v*w)/_,E=(k*v+m*w)/_,S=(-k*m+v*w)/_,A=T-y,O=C-b,L=E-y,B=S-b;return A*A+O*O>L*L+B*B&&(T=E,C=S),{cx:T,cy:C,x01:-u,y01:-h,x11:T*(i/x-1),y11:C*(i/x-1)}}var Zo=function(){var t=qo,e=Ho,r=To(0),n=null,i=Vo,a=Go,o=Xo,s=null,c=Wo(l);function l(){var l,u,h=+t.apply(this,arguments),d=+e.apply(this,arguments),f=i.apply(this,arguments)-Io,p=a.apply(this,arguments)-Io,g=Co(p-f),y=p>f;if(s||(s=l=c()),d<h&&(u=d,d=h,h=u),d>Do)if(g>No-Do)s.moveTo(d*So(f),d*Lo(f)),s.arc(0,0,d,f,p,!y),h>Do&&(s.moveTo(h*So(p),h*Lo(p)),s.arc(0,0,h,p,f,y));else{var b,m,v=f,_=p,x=f,k=p,w=g,T=g,C=o.apply(this,arguments)/2,E=C>Do&&(n?+n.apply(this,arguments):Bo(h*h+d*d)),S=Oo(Co(d-h)/2,+r.apply(this,arguments)),A=S,O=S;if(E>Do){var L=jo(E/h*Lo(C)),B=jo(E/d*Lo(C));(w-=2*L)>Do?(x+=L*=y?1:-1,k-=L):(w=0,x=k=(f+p)/2),(T-=2*B)>Do?(v+=B*=y?1:-1,_-=B):(T=0,v=_=(f+p)/2)}var D=d*So(v),M=d*Lo(v),I=h*So(k),N=h*Lo(k);if(S>Do){var F,j=d*So(_),R=d*Lo(_),P=h*So(x),$=h*Lo(x);if(g<Mo)if(F=Ko(D,M,P,$,j,R,I,N)){var z=D-F[0],Y=M-F[1],U=j-F[0],W=R-F[1],q=1/Lo(Fo((z*U+Y*W)/(Bo(z*z+Y*Y)*Bo(U*U+W*W)))/2),H=Bo(F[0]*F[0]+F[1]*F[1]);A=Oo(S,(h-H)/(q-1)),O=Oo(S,(d-H)/(q+1))}else A=O=0}T>Do?O>Do?(b=Qo(P,$,D,M,d,O,y),m=Qo(j,R,I,N,d,O,y),s.moveTo(b.cx+b.x01,b.cy+b.y01),O<S?s.arc(b.cx,b.cy,O,Eo(b.y01,b.x01),Eo(m.y01,m.x01),!y):(s.arc(b.cx,b.cy,O,Eo(b.y01,b.x01),Eo(b.y11,b.x11),!y),s.arc(0,0,d,Eo(b.cy+b.y11,b.cx+b.x11),Eo(m.cy+m.y11,m.cx+m.x11),!y),s.arc(m.cx,m.cy,O,Eo(m.y11,m.x11),Eo(m.y01,m.x01),!y))):(s.moveTo(D,M),s.arc(0,0,d,v,_,!y)):s.moveTo(D,M),h>Do&&w>Do?A>Do?(b=Qo(I,N,j,R,h,-A,y),m=Qo(D,M,P,$,h,-A,y),s.lineTo(b.cx+b.x01,b.cy+b.y01),A<S?s.arc(b.cx,b.cy,A,Eo(b.y01,b.x01),Eo(m.y01,m.x01),!y):(s.arc(b.cx,b.cy,A,Eo(b.y01,b.x01),Eo(b.y11,b.x11),!y),s.arc(0,0,h,Eo(b.cy+b.y11,b.cx+b.x11),Eo(m.cy+m.y11,m.cx+m.x11),y),s.arc(m.cx,m.cy,A,Eo(m.y11,m.x11),Eo(m.y01,m.x01),!y))):s.arc(0,0,h,k,x,y):s.lineTo(I,N)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Mo/2;return[So(n)*r,Lo(n)*r]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:To(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:To(+t),l):e},l.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:To(+t),l):r},l.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:To(+t),l):n},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:To(+t),l):i},l.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:To(+t),l):a},l.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:To(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l},Jo=(Array.prototype.slice,function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)});function ts(t){this._context=t}ts.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var es=function(t){return new ts(t)};function rs(t){return t[0]}function ns(t){return t[1]}var is=function(t,e){var r=To(!0),n=null,i=es,a=null,o=Wo(s);function s(s){var c,l,u,h=(s=Jo(s)).length,d=!1;for(null==n&&(a=i(u=o())),c=0;c<=h;++c)!(c<h&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+t(l,c,s),+e(l,c,s));if(u)return a=null,u+""||null}return t="function"==typeof t?t:void 0===t?rs:To(t),e="function"==typeof e?e:void 0===e?ns:To(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:To(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:To(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:To(!!t),s):r},s.curve=function(t){return arguments.length?(i=t,null!=n&&(a=i(n)),s):i},s.context=function(t){return arguments.length?(null==t?n=a=null:a=i(n=t),s):n},s},as=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},os=function(t){return t},ss=function(){var t=os,e=as,r=null,n=To(0),i=To(No),a=To(0);function o(o){var s,c,l,u,h,d=(o=Jo(o)).length,f=0,p=new Array(d),g=new Array(d),y=+n.apply(this,arguments),b=Math.min(No,Math.max(-No,i.apply(this,arguments)-y)),m=Math.min(Math.abs(b)/d,a.apply(this,arguments)),v=m*(b<0?-1:1);for(s=0;s<d;++s)(h=g[p[s]=s]=+t(o[s],s,o))>0&&(f+=h);for(null!=e?p.sort((function(t,r){return e(g[t],g[r])})):null!=r&&p.sort((function(t,e){return r(o[t],o[e])})),s=0,l=f?(b-d*v)/f:0;s<d;++s,y=u)c=p[s],u=y+((h=g[c])>0?h*l:0)+v,g[c]={data:o[c],index:s,value:h,startAngle:y,endAngle:u,padAngle:m};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:To(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,r=null,o):e},o.sort=function(t){return arguments.length?(r=t,e=null,o):r},o.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:To(+t),o):n},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:To(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:To(+t),o):a},o},cs=function(){};function ls(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function us(t){this._context=t}us.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:ls(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:ls(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var hs=function(t){return new us(t)};function ds(t){this._context=t}ds.prototype={areaStart:cs,areaEnd:cs,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ls(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var fs=function(t){return new ds(t)};function ps(t){this._context=t}ps.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ls(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var gs=function(t){return new ps(t)};class ys{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function bs(t){return new ys(t,!0)}function ms(t){return new ys(t,!1)}function vs(t,e){this._basis=new us(t),this._beta=e}vs.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,c=-1;++c<=r;)n=c/r,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+n*o),this._beta*e[c]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var _s=function t(e){function r(t){return 1===e?new us(t):new vs(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function xs(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function ks(t,e){this._context=t,this._k=(1-e)/6}ks.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:xs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:xs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ws=function t(e){function r(t){return new ks(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Ts(t,e){this._context=t,this._k=(1-e)/6}Ts.prototype={areaStart:cs,areaEnd:cs,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:xs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Cs=function t(e){function r(t){return new Ts(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Es(t,e){this._context=t,this._k=(1-e)/6}Es.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:xs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ss=function t(e){function r(t){return new Es(t,e)}return r.tension=function(e){return t(+e)},r}(0);function As(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Do){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Do){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Os(t,e){this._context=t,this._alpha=e}Os.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||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:As(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ls=function t(e){function r(t){return e?new Os(t,e):new ks(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Bs(t,e){this._context=t,this._alpha=e}Bs.prototype={areaStart:cs,areaEnd:cs,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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:As(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ds=function t(e){function r(t){return e?new Bs(t,e):new Ts(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ms(t,e){this._context=t,this._alpha=e}Ms.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:As(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Is=function t(e){function r(t){return e?new Ms(t,e):new Es(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ns(t){this._context=t}Ns.prototype={areaStart:cs,areaEnd:cs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var Fs=function(t){return new Ns(t)};function js(t){return t<0?-1:1}function Rs(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(js(a)+js(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ps(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function $s(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function zs(t){this._context=t}function Ys(t){this._context=new Us(t)}function Us(t){this._context=t}function Ws(t){return new zs(t)}function qs(t){return new Ys(t)}function Hs(t){this._context=t}function Vs(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}zs.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:$s(this,this._t0,Ps(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,$s(this,Ps(this,r=Rs(this,t,e)),r);break;default:$s(this,this._t0,r=Rs(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Ys.prototype=Object.create(zs.prototype)).point=function(t,e){zs.prototype.point.call(this,e,t)},Us.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Hs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Vs(t),i=Vs(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Gs=function(t){return new Hs(t)};function Xs(t,e){this._context=t,this._t=e}Xs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Ks=function(t){return new Xs(t,.5)};function Qs(t){return new Xs(t,0)}function Zs(t){return new Xs(t,1)}function Js(t){return((t=Math.exp(t))+1/t)/2}function tc(t,e,r){this.k=t,this.x=e,this.y=r}!function t(e,r,n){function i(t,i){var a,o,s=t[0],c=t[1],l=t[2],u=i[0],h=i[1],d=i[2],f=u-s,p=h-c,g=f*f+p*p;if(g<1e-12)o=Math.log(d/l)/e,a=function(t){return[s+t*f,c+t*p,l*Math.exp(e*t*o)]};else{var y=Math.sqrt(g),b=(d*d-l*l+n*g)/(2*l*r*y),m=(d*d-l*l-n*g)/(2*d*r*y),v=Math.log(Math.sqrt(b*b+1)-b),_=Math.log(Math.sqrt(m*m+1)-m);o=(_-v)/e,a=function(t){var n=t*o,i=Js(v),a=l/(r*y)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*n+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[s+a*f,c+a*p,l*i/Js(e*n+v)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return i.rho=function(e){var r=Math.max(.001,+e),n=r*r;return t(r,n,n*n)},i}(Math.SQRT2,2,4),tc.prototype={constructor:tc,scale:function(t){return 1===t?this:new tc(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new tc(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new tc(1,0,0);tc.prototype},"8a27":function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r("dc7a"),i=r("09f4");var a=function(t){return Object(i.a)(t,4)},o=r("ce69");function s(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:c(t),edges:l(t)};return n.a(t.graph())||(e.value=a(t.graph())),e}function c(t){return o.a(t.nodes(),(function(e){var r=t.node(e),i=t.parent(e),a={v:e};return n.a(r)||(a.value=r),n.a(i)||(a.parent=i),a}))}function l(t){return o.a(t.edges(),(function(e){var r=t.edge(e),i={v:e.v,w:e.w};return n.a(e.name)||(i.name=e.name),n.a(r)||(i.value=r),i}))}r("3997"),r("0629")},"8aa7":function(t,e,r){"use strict";var n=r("cfe9"),i=r("d039"),a=r("1c7e"),o=r("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,c=n.Int8Array;t.exports=!o||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!a((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||i((function(){return 1!==new c(new s(2),1,void 0).length}))},"8b00":function(t,e,r){"use strict";var n=r("23e7"),i=r("68df");n({target:"Set",proto:!0,real:!0,forced:!r("dad2")("isSubsetOf",(function(t){return t}))},{isSubsetOf:i})},"8bd4":function(t,e,r){"use strict";var n=r("d066"),i="DOMException";r("d44e")(n(i),i)},"8cc4":function(t,e,r){"use strict";var n=r("a724"),i=r("53a2"),a=Object(i.a)(Object.keys,Object),o=Object.prototype.hasOwnProperty;e.a=function(t){if(!Object(n.a)(t))return a(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},"8cdf":function(t,e,r){"use strict";var n=r("3244"),i=r("589e"),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),Object(n.a)(o(t),(function(e){return a.call(t,e)})))}:i.a;e.a=s},"8e16":function(t,e,r){"use strict";var n=r("7282"),i=r("cb27");t.exports=n(i.proto,"size","get")||function(t){return t.size}},"8e32":function(t,e,r){"use strict";r.d(e,"a",(function(){return M})),r.d(e,"b",(function(){return j})),r.d(e,"c",(function(){return R}));var n="comm",i="rule",a="decl",o=Math.abs,s=String.fromCharCode;function c(t){return t.trim()}function l(t,e,r){return t.replace(e,r)}function u(t,e,r){return t.indexOf(e,r)}function h(t,e){return 0|t.charCodeAt(e)}function d(t,e,r){return t.slice(e,r)}function f(t){return t.length}function p(t,e){return e.push(t),t}Object.assign;var g=1,y=1,b=0,m=0,v=0,_="";function x(t,e,r,n,i,a,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:g,column:y,length:o,return:"",siblings:s}}function k(){return v=m>0?h(_,--m):0,y--,10===v&&(y=1,g--),v}function w(){return v=m<b?h(_,m++):0,y++,10===v&&(y=1,g++),v}function T(){return h(_,m)}function C(){return m}function E(t,e){return d(_,t,e)}function S(t){switch(t){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 A(t){return c(E(m-1,function t(e){for(;w();)switch(v){case e:return m;case 34:case 39:34!==e&&39!==e&&t(v);break;case 40:41===e&&t(e);break;case 92:w()}return m}(91===t?t+2:40===t?t+1:t)))}function O(t){for(;(v=T())&&v<33;)w();return S(t)>2||S(v)>3?"":" "}function L(t,e){for(;--e&&w()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return E(t,C()+(e<6&&32==T()&&32==w()))}function B(t,e){for(;w()&&t+v!==57&&(t+v!==84||47!==T()););return"/*"+E(e,m-1)+"*"+s(47===t?t:w())}function D(t){for(;!S(T());)w();return E(t,m)}function M(t){return function(t){return _="",t}(function t(e,r,n,i,a,c,g,y,b){var m=0,v=0,_=g,x=0,E=0,M=0,j=1,R=1,P=1,$=0,z="",Y=a,U=c,W=i,q=z;for(;R;)switch(M=$,$=w()){case 40:if(108!=M&&58==h(q,_-1)){-1!=u(q+=l(A($),"&","&\f"),"&\f",o(m?y[m-1]:0))&&(P=-1);break}case 34:case 39:case 91:q+=A($);break;case 9:case 10:case 13:case 32:q+=O(M);break;case 92:q+=L(C()-1,7);continue;case 47:switch(T()){case 42:case 47:p(N(B(w(),C()),r,n,b),b),5!=S(M||1)&&5!=S(T()||1)||!f(q)||" "===d(q,-1,void 0)||(q+=" ");break;default:q+="/"}break;case 123*j:y[m++]=f(q)*P;case 125*j:case 59:case 0:switch($){case 0:case 125:R=0;case 59+v:-1==P&&(q=l(q,/\f/g,"")),E>0&&(f(q)-_||0===j&&47===M)&&p(E>32?F(q+";",i,n,_-1,b):F(l(q," ","")+";",i,n,_-2,b),b);break;case 59:q+=";";default:if(p(W=I(q,r,n,m,v,a,y,z,Y=[],U=[],_,c),c),123===$)if(0===v)t(q,r,W,W,Y,c,_,y,U);else{switch(x){case 99:if(110===h(q,3))break;case 108:if(97===h(q,2))break;default:v=0;case 100:case 109:case 115:}v?t(e,W,W,i&&p(I(e,W,W,0,0,a,y,z,a,Y=[],_,U),U),a,U,_,y,i?Y:U):t(q,W,W,W,[""],U,0,y,U)}}m=v=E=0,j=P=1,z=q="",_=g;break;case 58:_=1+f(q),E=M;default:if(j<1)if(123==$)--j;else if(125==$&&0==j++&&125==k())continue;switch(q+=s($),$*j){case 38:P=v>0?1:(q+="\f",-1);break;case 44:y[m++]=(f(q)-1)*P,P=1;break;case 64:45===T()&&(q+=A(w())),x=T(),v=_=f(z=q+=D(C())),$++;break;case 45:45===M&&2==f(q)&&(j=0)}}return c}("",null,null,null,[""],t=function(t){return g=y=1,b=f(_=t),m=0,[]}(t),0,[0],t))}function I(t,e,r,n,a,s,u,h,f,p,g,y){for(var b=a-1,m=0===a?s:[""],v=function(t){return t.length}(m),_=0,k=0,w=0;_<n;++_)for(var T=0,C=d(t,b+1,b=o(k=u[_])),E=t;T<v;++T)(E=c(k>0?m[T]+" "+C:l(C,/&\f/g,m[T])))&&(f[w++]=E);return x(t,e,r,0===a?i:h,f,p,g,y)}function N(t,e,r,i){return x(t,e,r,n,s(v),d(t,2,-2),0,i)}function F(t,e,r,n,i){return x(t,e,r,a,d(t,0,n),d(t,n+1,-1),n,i)}function j(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function R(t,e,r,o){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case a:return t.return=t.return||t.value;case n:return"";case"@keyframes":return t.return=t.value+"{"+j(t.children,o)+"}";case i:if(!f(t.value=t.props.join(",")))return""}return f(r=j(t.children,o))?t.return=t.value+"{"+r+"}":""}},"8f19":function(t,e,r){t.exports=function(){"use strict";return function(t,e){var r=e.prototype,n=r.format;r.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return n.bind(this)(t);var i=this.$utils(),a=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return r.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return r.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return n.bind(this)(a)}}}()},"8ff8":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=e.BLANK_URL=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|&colon;)/gim,c=[".","/"];function l(t){return c.indexOf(t[0])>-1}function u(t){return t.replace(o,"").replace(i,(function(t,e){return String.fromCharCode(e)}))}e.BLANK_URL="about:blank",e.sanitizeUrl=function(t){if(!t)return e.BLANK_URL;var r=u(t).replace(a,"").replace(o,"").trim();if(!r)return e.BLANK_URL;if(l(r))return r;var i=r.match(s);if(!i)return r;var c=i[0];return n.test(c)?e.BLANK_URL:r}},"907a":function(t,e,r){"use strict";var n=r("ebb5"),i=r("07fa"),a=r("5926"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(t){var e=o(this),r=i(e),n=a(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}))},9129:function(t,e,r){"use strict";r("23e7")({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},"944a":function(t,e,r){"use strict";var n=r("d066"),i=r("e065"),a=r("d44e");i("toStringTag"),a(n("Symbol"),"Symbol")},9485:function(t,e,r){"use strict";var n=r("23e7"),i=r("2266"),a=r("59ed"),o=r("825a"),s=r("46c4"),c=r("2a62"),l=r("f99f"),u=r("2ba4"),h=r("d039"),d=TypeError,f=h((function(){[].keys().reduce((function(){}),void 0)})),p=!f&&l("reduce",d);n({target:"Iterator",proto:!0,real:!0,forced:f||p},{reduce:function(t){o(this);try{a(t)}catch(t){c(this,"throw",t)}var e=arguments.length<2,r=e?void 0:arguments[1];if(p)return u(p,this,e?[t]:[t,r]);var n=s(this),l=0;if(i(n,(function(n){e?(e=!1,r=n):r=t(r,n,l),l++}),{IS_RECORD:!0}),e)throw new d("Reduce of empty iterator with no initial value");return r}})},"953b":function(t,e,r){"use strict";var n=r("dc19"),i=r("cb27"),a=r("8e16"),o=r("7f65"),s=r("384f"),c=r("5388"),l=i.Set,u=i.add,h=i.has;t.exports=function(t){var e=n(this),r=o(t),i=new l;return a(e)>r.size?c(r.getIterator(),(function(t){h(e,t)&&u(i,t)})):s(e,(function(t){r.includes(t)&&u(i,t)})),i}},"964c":function(t,e,r){"use strict";var n=r("09ee");e.a=function(t){var e=new t.constructor(t.byteLength);return new n.a(e).set(new n.a(t)),e}},"986a":function(t,e,r){"use strict";var n=r("ebb5"),i=r("a258").findLast,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},9911:function(t,e,r){"use strict";var n=r("23e7"),i=r("857a");n({target:"String",proto:!0,forced:r("af03")("link")},{link:function(t){return i(this,"a","href",t)}})},9961:function(t,e,r){"use strict";var n=r("dc19"),i=r("cb27"),a=r("83b9e"),o=r("7f65"),s=r("5388"),c=i.add,l=i.has,u=i.remove;t.exports=function(t){var e=n(this),r=o(t).getIterator(),i=a(e);return s(r,(function(t){l(e,t)?u(i,t):c(i,t)})),i}},"9a4b":function(t,e,r){"use strict";var n=r("ee03"),i=r("8cc4"),a=r("e56b");e.a=function(t){return Object(a.a)(t)?Object(n.a)(t):Object(i.a)(t)}},"9a8c":function(t,e,r){"use strict";var n=r("e330"),i=r("ebb5"),a=n(r("145e")),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},"9ac7":function(t,e,r){"use strict";var n=r("0e59");var i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var a=function(t){return this.__data__.has(t)};function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n.a;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.a=o},"9cbb":function(t,e,r){"use strict";var n=function(){this.__data__=[],this.size=0},i=r("6071");var a=function(t,e){for(var r=t.length;r--;)if(Object(i.a)(t[r][0],e))return r;return-1},o=Array.prototype.splice;var s=function(t){var e=this.__data__,r=a(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)};var c=function(t){var e=this.__data__,r=a(e,t);return r<0?void 0:e[r][1]};var l=function(t){return a(this.__data__,t)>-1};var u=function(t,e){var r=this.__data__,n=a(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function h(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}h.prototype.clear=n,h.prototype.delete=s,h.prototype.get=c,h.prototype.has=l,h.prototype.set=u,e.a=h},a078:function(t,e,r){"use strict";var n=r("0366"),i=r("c65b"),a=r("5087"),o=r("7b0b"),s=r("07fa"),c=r("9a1f"),l=r("35a1"),u=r("e95a"),h=r("bcbf"),d=r("ebb5").aTypedArrayConstructor,f=r("f495");t.exports=function(t){var e,r,p,g,y,b,m,v,_=a(this),x=o(t),k=arguments.length,w=k>1?arguments[1]:void 0,T=void 0!==w,C=l(x);if(C&&!u(C))for(v=(m=c(x,C)).next,x=[];!(b=i(v,m)).done;)x.push(b.value);for(T&&k>2&&(w=n(w,arguments[2])),r=s(x),p=new(d(_))(r),g=h(p),e=0;r>e;e++)y=T?w(x[e],e):x[e],p[e]=g?f(y):+y;return p}},a12c:function(t,e,r){"use strict";var n=r("9cbb");var i=function(){this.__data__=new n.a,this.size=0};var a=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};var o=function(t){return this.__data__.get(t)};var s=function(t){return this.__data__.has(t)},c=r("ddc9"),l=r("0e59");var u=function(t,e){var r=this.__data__;if(r instanceof n.a){var i=r.__data__;if(!c.a||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new l.a(i)}return r.set(t,e),this.size=r.size,this};function h(t){var e=this.__data__=new n.a(t);this.size=e.size}h.prototype.clear=i,h.prototype.delete=a,h.prototype.get=o,h.prototype.has=s,h.prototype.set=u,e.a=h},a134:function(t,e,r){"use strict";var n=r("0e59");function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(i.Cache||n.a),r}i.Cache=n.a,e.a=i},a187:function(t,e,r){"use strict";var n=r("f0ce"),i=r("26ce"),a=r("1147"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=function(t){return Object(a.a)(t)&&Object(i.a)(t.length)&&!!o[Object(n.a)(t)]},c=r("a2fb"),l=r("c6eb"),u=l.a&&l.a.isTypedArray,h=u?Object(c.a)(u):s;e.a=h},a258:function(t,e,r){"use strict";var n=r("0366"),i=r("44ad"),a=r("7b0b"),o=r("07fa"),s=function(t){var e=1===t;return function(r,s,c){for(var l,u=a(r),h=i(u),d=o(h),f=n(s,c);d-- >0;)if(f(l=h[d],d,u))switch(t){case 0:return l;case 1:return d}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},a2bf:function(t,e,r){"use strict";var n=r("e8b5"),i=r("07fa"),a=r("3511"),o=r("0366"),s=function(t,e,r,c,l,u,h,d){for(var f,p,g=l,y=0,b=!!h&&o(h,d);y<c;)y in r&&(f=b?b(r[y],y,e):r[y],u>0&&n(f)?(p=i(f),g=s(t,e,f,p,g,u-1)-1):(a(g+1),t[g]=f),g++),y++;return g};t.exports=s},a2fb:function(t,e,r){"use strict";e.a=function(t){return function(e){return t(e)}}},a305:function(t,e,r){"use strict";var n=function(t,e,r,n){var i=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r},i=r("dba9"),a=r("7f2c");var o=function(t,e,r,n,i){return i(t,(function(t,i,a){r=n?(n=!1,t):e(r,t,i,a)})),r},s=r("ff51");e.a=function(t,e,r){var c=Object(s.a)(t)?n:o,l=arguments.length<3;return c(t,Object(a.a)(e,4),r,l,i.a)}},a434:function(t,e,r){"use strict";var n=r("23e7"),i=r("7b0b"),a=r("23cb"),o=r("5926"),s=r("07fa"),c=r("3a34"),l=r("3511"),u=r("65f0"),h=r("8418"),d=r("083a"),f=r("1dde")("splice"),p=Math.max,g=Math.min;n({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var r,n,f,y,b,m,v=i(this),_=s(v),x=a(t,_),k=arguments.length;for(0===k?r=n=0:1===k?(r=0,n=_-x):(r=k-2,n=g(p(o(e),0),_-x)),l(_+r-n),f=u(v,n),y=0;y<n;y++)(b=x+y)in v&&h(f,y,v[b]);if(f.length=n,r<n){for(y=x;y<_-n;y++)m=y+r,(b=y+n)in v?v[m]=v[b]:d(v,m);for(y=_;y>_-n+r;y--)d(v,y-1)}else if(r>n)for(y=_-n;y>x;y--)m=y+r-1,(b=y+n-1)in v?v[m]=v[b]:d(v,m);for(y=0;y<r;y++)v[y+x]=arguments[y+2];return c(v,_-n+r),f}})},a4e7:function(t,e,r){"use strict";var n=r("23e7"),i=r("395e");n({target:"Set",proto:!0,real:!0,forced:!r("dad2")("isSupersetOf",(function(t){return!t}))},{isSupersetOf:i})},a55c:function(t,e,r){"use strict";var n=r("63bc"),i=r("26ee"),a=Object(n.a)(i.a,"Set");e.a=a},a5f7:function(t,e,r){"use strict";var n=r("dc19"),i=r("cb27"),a=r("83b9e"),o=r("8e16"),s=r("7f65"),c=r("384f"),l=r("5388"),u=i.has,h=i.remove;t.exports=function(t){var e=n(this),r=s(t),i=a(e);return o(e)<=r.size?c(e,(function(t){r.includes(t)&&h(i,t)})):l(r.getIterator(),(function(t){u(i,t)&&h(i,t)})),i}},a630e:function(t,e,r){"use strict";var n=r("23e7"),i=r("4df4");n({target:"Array",stat:!0,forced:!r("1c7e")((function(t){Array.from(t)}))},{from:i})},a724:function(t,e,r){"use strict";var n=Object.prototype;e.a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},a975:function(t,e,r){"use strict";var n=r("ebb5"),i=r("b727").every,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},aa1f:function(t,e,r){"use strict";var n=r("83ab"),i=r("d039"),a=r("825a"),o=r("e391"),s=Error.prototype.toString,c=i((function(){if(n){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==s.call(t))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));t.exports=c?function(){var t=a(this),e=o(t.name,"Error"),r=o(t.message);return e?r?e+": "+r:e:r}:s},ace4:function(t,e,r){"use strict";var n=r("23e7"),i=r("4625"),a=r("d039"),o=r("621a"),s=r("825a"),c=r("23cb"),l=r("50c4"),u=o.ArrayBuffer,h=o.DataView,d=h.prototype,f=i(u.prototype.slice),p=i(d.getUint8),g=i(d.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(f&&void 0===e)return f(s(this),t);for(var r=s(this).byteLength,n=c(t,r),i=c(void 0===e?r:e,r),a=new u(l(i-n)),o=new h(this),d=new h(a),y=0;n<i;)g(d,y++,p(o,n++));return a}})},af03:function(t,e,r){"use strict";var n=r("d039");t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},aff5:function(t,e,r){"use strict";r("23e7")({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},b39a:function(t,e,r){"use strict";var n=r("cfe9"),i=r("2ba4"),a=r("ebb5"),o=r("d039"),s=r("f36a"),c=n.Int8Array,l=a.aTypedArray,u=a.exportTypedArrayMethod,h=[].toLocaleString,d=!!c&&o((function(){h.call(new c(1))}));u("toLocaleString",(function(){return i(h,d?s(l(this)):l(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!o((function(){c.prototype.toLocaleString.call([1,2])})))},b4bc:function(t,e,r){"use strict";var n=r("dc19"),i=r("cb27").has,a=r("8e16"),o=r("7f65"),s=r("384f"),c=r("5388"),l=r("2a62");t.exports=function(t){var e=n(this),r=o(t);if(a(e)<=r.size)return!1!==s(e,(function(t){if(r.includes(t))return!1}),!0);var u=r.getIterator();return!1!==c(u,(function(t){if(i(e,t))return l(u,"normal",!1)}))}},b4f1:function(t,e,r){"use strict";e.a=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},b60a:function(t,e,r){"use strict";r.d(e,"a",(function(){return cr})),r.d(e,"b",(function(){return yo})),r.d(e,"c",(function(){return ut})),r.d(e,"d",(function(){return or})),r.d(e,"e",(function(){return ct})),r.d(e,"f",(function(){return ko})),r.d(e,"g",(function(){return Fr})),r.d(e,"h",(function(){return Qs})),r.d(e,"i",(function(){return Wa})),r.d(e,"j",(function(){return mn})),r.d(e,"k",(function(){return _n})),r.d(e,"l",(function(){return tt})),r.d(e,"m",(function(){return un})),r.d(e,"n",(function(){return it})),r.d(e,"o",(function(){return df})),r.d(e,"p",(function(){return Jo})),r.d(e,"q",(function(){return Wr})),r("a4d3"),r("e01a"),r("d28b"),r("d9e2"),r("d3b7"),r("3ca3"),r("ddb0");var n=r("53ca");function i(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(Object(n.a)(t)+" is not iterable")}var a=r("c14f"),o=r("1da1"),s=r("5530"),l=r("b85c"),u=r("3835"),h=r("2909");function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=r("a38e");function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Object(f.a)(n.key),n)}}function g(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}r("944a"),r("99af"),r("cb29"),r("4de4"),r("7db0"),r("0481"),r("a630e"),r("caad"),r("a15b"),r("d81d"),r("14d9"),r("13d5"),r("fb6a"),r("4e82"),r("a434"),r("4069"),r("c19f"),r("ace4"),r("2c66"),r("249d"),r("40e9"),r("b0c0"),r("e9f5"),r("d866"),r("910d"),r("f665"),r("7d54"),r("ab43"),r("9485"),r("a732"),r("e9c4"),r("0c47"),r("4ec9"),r("23dc"),r("a9e3"),r("9129"),r("aff5"),r("e6e1"),r("c35a"),r("b680"),r("4fadc"),r("dca8"),r("c1f9"),r("3410"),r("b64b"),r("07ac"),r("820e"),r("4d63"),r("c607"),r("ac1f"),r("2c3e"),r("00b4"),r("25f0"),r("6062"),r("1e70"),r("79a4"),r("c1a1"),r("8b00"),r("a4e7"),r("1e5a"),r("72c3"),r("8a79"),r("2532"),r("466d"),r("5319"),r("5b81"),r("841c"),r("1276"),r("2ca0"),r("498a"),r("eee7"),r("18a5"),r("9911"),r("5cc6"),r("907a"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("986a"),r("1d02"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("6ce5"),r("2834"),r("72f7"),r("4ea1"),r("313d"),r("159b"),r("0eb6"),r("b7ef"),r("8bd4");var y=r("ff22"),b=r("5a0c"),m=r.n(b),v=r("8ff8"),_=r("898b7"),x=r("c0c4"),k=r.n(x),w=r("1c86"),T=r("025c");var C=(t,e)=>{const r=w.a.parse(t);for(const t in e)r[t]=T.a.channel.clamp[t](e[t]);return w.a.stringify(r)};var E=(t,e)=>{const r=w.a.parse(t),n={};for(const t in e)e[t]&&(n[t]=r[t]+e[t]);return C(t,n)},S=r("15f5");var A=(t,e,r=0,n=1)=>{if("number"!=typeof t)return C(t,{a:e});const i=S.a.set({r:T.a.channel.clamp.r(t),g:T.a.channel.clamp.g(e),b:T.a.channel.clamp.b(r),a:T.a.channel.clamp.a(n)});return w.a.stringify(i)};var O=(t,e,r=50)=>{const{r:n,g:i,b:a,a:o}=w.a.parse(t),{r:s,g:c,b:l,a:u}=w.a.parse(e),h=r/100,d=2*h-1,f=o-u,p=((d*f==-1?d:(d+f)/(1+d*f))+1)/2,g=1-p;return A(n*p+s*g,i*p+c*g,a*p+l*g,o*h+u*(1-h))};var L=(t,e=100)=>{const r=w.a.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,O(r,t,e)},B=r("60b3"),D=r("3683"),M=r("a134"),I=r("8e32"),N=r("dfa8"),F=r("c07a"),j=r("8a27"),R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;var P=function(t){return"string"==typeof t&&R.test(t)};const $=[];for(let t=0;t<256;++t)$.push((t+256).toString(16).slice(1));var z=function(t){if(!P(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function Y(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function U(t,e){return t<<e|t>>>32-e}var W=function(t,e,r){function n(t,n,i,a){var o;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof n&&(n=z(n)),16!==(null===(o=n)||void 0===o?void 0:o.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+t.length);if(s.set(n),s.set(t,n.length),s=r(s),s[6]=15&s[6]|e,s[8]=63&s[8]|128,i){a=a||0;for(let t=0;t<16;++t)i[a+t]=s[t];return i}return function(t,e=0){return $[t[e+0]]+$[t[e+1]]+$[t[e+2]]+$[t[e+3]]+"-"+$[t[e+4]]+$[t[e+5]]+"-"+$[t[e+6]]+$[t[e+7]]+"-"+$[t[e+8]]+$[t[e+9]]+"-"+$[t[e+10]]+$[t[e+11]]+$[t[e+12]]+$[t[e+13]]+$[t[e+14]]+$[t[e+15]]}(s)}try{n.name=t}catch(t){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}("v5",80,(function(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const n=t.length/4+2,i=Math.ceil(n/16),a=new Array(i);for(let e=0;e<i;++e){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=t[64*e+4*n]<<24|t[64*e+4*n+1]<<16|t[64*e+4*n+2]<<8|t[64*e+4*n+3];a[e]=r}a[i-1][14]=8*(t.length-1)/Math.pow(2,32),a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<i;++t){const n=new Uint32Array(80);for(let e=0;e<16;++e)n[e]=a[t][e];for(let t=16;t<80;++t)n[t]=U(n[t-3]^n[t-8]^n[t-14]^n[t-16],1);let i=r[0],o=r[1],s=r[2],c=r[3],l=r[4];for(let t=0;t<80;++t){const r=Math.floor(t/20),a=U(i,5)+Y(r,o,s,c)+l+e[r]+n[t]>>>0;l=c,c=s,s=U(o,30)>>>0,o=i,i=a}r[0]=r[0]+i>>>0,r[1]=r[1]+o>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),q=(r("74b2"),r("3de6"),r("6152")),H=(r("18df"),r("c95f"),r("5e77d")),V=r.n(H),G=r("f906"),X=r.n(G),K=r("8f19"),Q=r.n(K),Z=r("7ee8"),J={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},tt={trace:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},et=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal",e=J.fatal;"string"==typeof t?(t=t.toLowerCase())in J&&(e=J[t]):"number"==typeof t&&(e=t),tt.trace=function(){},tt.debug=function(){},tt.info=function(){},tt.warn=function(){},tt.error=function(){},tt.fatal=function(){},e<=J.fatal&&(tt.fatal=void console.error),e<=J.error&&(tt.error=void console.error),e<=J.warn&&(tt.warn=void console.warn),e<=J.info&&(tt.info=void console.info),e<=J.debug&&(tt.debug=void console.debug),e<=J.trace&&(tt.trace=void console.debug)},rt=function(t){return k.a.sanitize(t)},nt=function(t,e){var r;if(!1!==(null==(r=e.flowchart)?void 0:r.htmlLabels)){var n=e.securityLevel;"antiscript"===n||"strict"===n?t=rt(t):"loose"!==n&&(t=(t=(t=st(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=ot(t))}return t},it=function(t,e){return t?t=e.dompurifyConfig?k.a.sanitize(nt(t,e),e.dompurifyConfig).toString():k.a.sanitize(nt(t,e),{FORBID_TAGS:["style"]}).toString():t},at=/<br\s*\/?>/gi,ot=function(t){return t.replace(/#br#/g,"<br/>")},st=function(t){return t.replace(at,"#br#")},ct=function(t){return!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())},lt=function(t){var e=t;if(t.split("~").length-1>=2){var r=e;do{r=(e=r).replace(/~([^\s,:;]+)~/,"<$1>")}while(r!=e);return lt(r)}return e},ut={getRows:function(t){return t?st(t).replace(/\\n/g,"#br#").split("#br#"):[""]},sanitizeText:it,sanitizeTextOrArray:function(t,e){return"string"==typeof t?it(t,e):t.flat().map((function(t){return it(t,e)}))},hasBreaks:function(t){return at.test(t)},splitBreaks:function(t){return t.split(at)},lineBreakRegex:at,removeScript:rt,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replaceAll(/\(/g,"\\(")).replaceAll(/\)/g,"\\)")),e},evaluate:ct},ht=function(t,e){return E(t,e?{s:-40,l:10}:{s:-40,l:-10})},dt="#ffffff",ft="#f2f2f2",pt=g((function t(){d(this,t),this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}),[{key:"updateColors",value:function(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||E(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||E(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(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?Object(B.a)(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||Object(B.a)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(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||Object(D.a)(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330}),this.darkMode)for(var t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Object(B.a)(this["cScale"+t],75);else for(var e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Object(B.a)(this["cScale"+e],25);for(var r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||L(this["cScale"+r]);for(var n=0;n<this.THEME_COLOR_LIMIT;n++)this.darkMode?this["cScalePeer"+n]=this["cScalePeer"+n]||Object(D.a)(this["cScale"+n],10):this["cScalePeer"+n]=this["cScalePeer"+n]||Object(B.a)(this["cScale"+n],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleLabel"+i]=this["cScaleLabel"+i]||this.scaleLabelColor;for(var a=this.darkMode?-4:-1,o=0;o<5;o++)this["surface"+o]=this["surface"+o]||E(this.mainBkg,{h:180,s:-15,l:a*(5+3*o)}),this["surfacePeer"+o]=this["surfacePeer"+o]||E(this.mainBkg,{h:180,s:-15,l:a*(8+3*o)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||E(this.primaryColor,{h:64}),this.fillType3=this.fillType3||E(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||E(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||E(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||E(this.primaryColor,{h:128}),this.fillType7=this.fillType7||E(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||E(this.primaryColor,{l:-10}),this.pie5=this.pie5||E(this.secondaryColor,{l:-10}),this.pie6=this.pie6||E(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||E(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||E(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||E(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||E(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||E(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||E(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?Object(B.a)(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||E(this.primaryColor,{h:-30}),this.git4=this.git4||E(this.primaryColor,{h:-60}),this.git5=this.git5||E(this.primaryColor,{h:-90}),this.git6=this.git6||E(this.primaryColor,{h:60}),this.git7=this.git7||E(this.primaryColor,{h:120}),this.darkMode?(this.git0=Object(D.a)(this.git0,25),this.git1=Object(D.a)(this.git1,25),this.git2=Object(D.a)(this.git2,25),this.git3=Object(D.a)(this.git3,25),this.git4=Object(D.a)(this.git4,25),this.git5=Object(D.a)(this.git5,25),this.git6=Object(D.a)(this.git6,25),this.git7=Object(D.a)(this.git7,25)):(this.git0=Object(B.a)(this.git0,25),this.git1=Object(B.a)(this.git1,25),this.git2=Object(B.a)(this.git2,25),this.git3=Object(B.a)(this.git3,25),this.git4=Object(B.a)(this.git4,25),this.git5=Object(B.a)(this.git5,25),this.git6=Object(B.a)(this.git6,25),this.git7=Object(B.a)(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ft}},{key:"calculate",value:function(t){var e=this;if("object"===Object(n.a)(t)){var r=Object.keys(t);r.forEach((function(r){e[r]=t[r]})),this.updateColors(),r.forEach((function(r){e[r]=t[r]}))}else this.updateColors()}}]),gt=g((function t(){d(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Object(D.a)(this.primaryColor,16),this.tertiaryColor=E(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Object(D.a)(L("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=A(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.THEME_COLOR_LIMIT=12,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=Object(B.a)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=A(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=A(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"}),[{key:"updateColors",value:function(){this.secondBkg=Object(D.a)(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=Object(D.a)(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=Object(D.a)(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=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330});for(var t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||L(this["cScale"+t]);for(var e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||Object(D.a)(this["cScale"+e],10);for(var r=0;r<5;r++)this["surface"+r]=this["surface"+r]||E(this.mainBkg,{h:30,s:-30,l:-(4*r-10)}),this["surfacePeer"+r]=this["surfacePeer"+r]||E(this.mainBkg,{h:30,s:-30,l:-(4*r-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(var n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleLabel"+n]=this["cScaleLabel"+n]||this.scaleLabelColor;for(var i=0;i<this.THEME_COLOR_LIMIT;i++)this["pie"+i]=this["cScale"+i];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?Object(B.a)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Object(D.a)(this.secondaryColor,20),this.git1=Object(D.a)(this.pie2||this.secondaryColor,20),this.git2=Object(D.a)(this.pie3||this.tertiaryColor,20),this.git3=Object(D.a)(this.pie4||E(this.primaryColor,{h:-30}),20),this.git4=Object(D.a)(this.pie5||E(this.primaryColor,{h:-60}),20),this.git5=Object(D.a)(this.pie6||E(this.primaryColor,{h:-90}),10),this.git6=Object(D.a)(this.pie7||E(this.primaryColor,{h:60}),10),this.git7=Object(D.a)(this.pie8||E(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Object(D.a)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Object(D.a)(this.background,2)}},{key:"calculate",value:function(t){var e=this;if("object"===Object(n.a)(t)){var r=Object.keys(t);r.forEach((function(r){e[r]=t[r]})),this.updateColors(),r.forEach((function(r){e[r]=t[r]}))}else this.updateColors()}}]),yt=g((function t(){d(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=E(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=E(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(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.THEME_COLOR_LIMIT=12,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=A(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()}),[{key:"updateColors",value:function(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Object(B.a)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Object(B.a)(this.tertiaryColor,40);for(var t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Object(B.a)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Object(B.a)(this["cScale"+t],25);for(var e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||E(this["cScale"+e],{h:180});for(var r=0;r<5;r++)this["surface"+r]=this["surface"+r]||E(this.mainBkg,{h:30,l:-(5+5*r)}),this["surfacePeer"+r]=this["surfacePeer"+r]||E(this.mainBkg,{h:30,l:-(7+5*r)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||L(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||L(this.labelTextColor);for(var n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleLabel"+n]=this["cScaleLabel"+n]||this.labelTextColor}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=Object(D.a)(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=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||E(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||E(this.primaryColor,{l:-10}),this.pie5=this.pie5||E(this.secondaryColor,{l:-30}),this.pie6=this.pie6||E(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||E(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||E(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||E(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||E(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||E(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||E(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||E(this.primaryColor,{h:-30}),this.git4=this.git4||E(this.primaryColor,{h:-60}),this.git5=this.git5||E(this.primaryColor,{h:-90}),this.git6=this.git6||E(this.primaryColor,{h:60}),this.git7=this.git7||E(this.primaryColor,{h:120}),this.darkMode?(this.git0=Object(D.a)(this.git0,25),this.git1=Object(D.a)(this.git1,25),this.git2=Object(D.a)(this.git2,25),this.git3=Object(D.a)(this.git3,25),this.git4=Object(D.a)(this.git4,25),this.git5=Object(D.a)(this.git5,25),this.git6=Object(D.a)(this.git6,25),this.git7=Object(D.a)(this.git7,25)):(this.git0=Object(B.a)(this.git0,25),this.git1=Object(B.a)(this.git1,25),this.git2=Object(B.a)(this.git2,25),this.git3=Object(B.a)(this.git3,25),this.git4=Object(B.a)(this.git4,25),this.git5=Object(B.a)(this.git5,25),this.git6=Object(B.a)(this.git6,25),this.git7=Object(B.a)(this.git7,25)),this.gitInv0=this.gitInv0||Object(B.a)(L(this.git0),25),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ft}},{key:"calculate",value:function(t){var e=this;if("object"===Object(n.a)(t)){var r=Object.keys(t);r.forEach((function(r){e[r]=t[r]})),this.updateColors(),r.forEach((function(r){e[r]=t[r]}))}else this.updateColors()}}]),bt=g((function t(){d(this,t),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=Object(D.a)("#cde498",10),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.primaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.THEME_COLOR_LIMIT=12,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"}),[{key:"updateColors",value:function(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Object(B.a)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Object(B.a)(this.tertiaryColor,40);for(var t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Object(B.a)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Object(B.a)(this["cScale"+t],25);for(var e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||E(this["cScale"+e],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(var r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(var n=0;n<5;n++)this["surface"+n]=this["surface"+n]||E(this.mainBkg,{h:30,s:-30,l:-(5+5*n)}),this["surfacePeer"+n]=this["surfacePeer"+n]||E(this.mainBkg,{h:30,s:-30,l:-(8+5*n)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Object(B.a)(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=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(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||E(this.primaryColor,{l:-30}),this.pie5=this.pie5||E(this.secondaryColor,{l:-30}),this.pie6=this.pie6||E(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||E(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||E(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||E(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||E(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||E(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||E(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||E(this.primaryColor,{h:-30}),this.git4=this.git4||E(this.primaryColor,{h:-60}),this.git5=this.git5||E(this.primaryColor,{h:-90}),this.git6=this.git6||E(this.primaryColor,{h:60}),this.git7=this.git7||E(this.primaryColor,{h:120}),this.darkMode?(this.git0=Object(D.a)(this.git0,25),this.git1=Object(D.a)(this.git1,25),this.git2=Object(D.a)(this.git2,25),this.git3=Object(D.a)(this.git3,25),this.git4=Object(D.a)(this.git4,25),this.git5=Object(D.a)(this.git5,25),this.git6=Object(D.a)(this.git6,25),this.git7=Object(D.a)(this.git7,25)):(this.git0=Object(B.a)(this.git0,25),this.git1=Object(B.a)(this.git1,25),this.git2=Object(B.a)(this.git2,25),this.git3=Object(B.a)(this.git3,25),this.git4=Object(B.a)(this.git4,25),this.git5=Object(B.a)(this.git5,25),this.git6=Object(B.a)(this.git6,25),this.git7=Object(B.a)(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ft}},{key:"calculate",value:function(t){var e=this;if("object"===Object(n.a)(t)){var r=Object.keys(t);r.forEach((function(r){e[r]=t[r]})),this.updateColors(),r.forEach((function(r){e[r]=t[r]}))}else this.updateColors()}}]),mt=g((function t(){d(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Object(D.a)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=E(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(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.THEME_COLOR_LIMIT=12,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"}),[{key:"updateColors",value:function(){this.secondBkg=Object(D.a)(this.contrast,55),this.border2=this.contrast,this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(var t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||L(this["cScale"+t]);for(var e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||Object(D.a)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||Object(B.a)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(var r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(var n=0;n<5;n++)this["surface"+n]=this["surface"+n]||E(this.mainBkg,{l:-(5+5*n)}),this["surfacePeer"+n]=this["surfacePeer"+n]||E(this.mainBkg,{l:-(8+5*n)});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=Object(D.a)(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=Object(D.a)(this.contrast,30),this.sectionBkgColor2=Object(D.a)(this.contrast,30),this.taskBorderColor=Object(B.a)(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=Object(D.a)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Object(B.a)(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=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(this.secondaryColor,{h:128});for(var i=0;i<this.THEME_COLOR_LIMIT;i++)this["pie"+i]=this["cScale"+i];this.pie12=this.pie0,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=Object(B.a)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||E(this.primaryColor,{h:-30}),this.git4=this.pie5||E(this.primaryColor,{h:-60}),this.git5=this.pie6||E(this.primaryColor,{h:-90}),this.git6=this.pie7||E(this.primaryColor,{h:60}),this.git7=this.pie8||E(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ft}},{key:"calculate",value:function(t){var e=this;if("object"===Object(n.a)(t)){var r=Object.keys(t);r.forEach((function(r){e[r]=t[r]})),this.updateColors(),r.forEach((function(r){e[r]=t[r]}))}else this.updateColors()}}]),vt={base:{getThemeVariables:function(t){var e=new pt;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new gt;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new yt;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new bt;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new mt;return e.calculate(t),e}}},_t={theme:"default",themeVariables:vt.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:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},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",tickInterval:void 0,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"]},timeline:{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"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,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:{titleTopMargin:25,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:{titleTopMargin:25,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"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};_t.class&&(_t.class.arrowMarkerAbsolute=_t.arrowMarkerAbsolute),_t.gitGraph&&(_t.gitGraph.arrowMarkerAbsolute=_t.arrowMarkerAbsolute);var xt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,i){return Array.isArray(t[i])?r:"object"===Object(n.a)(t[i])&&null!==t[i]?[].concat(Object(h.a)(r),[e+i],Object(h.a)(xt(t[i],""))):[].concat(Object(h.a)(r),[e+i])}),[])},kt=xt(_t,""),wt=_t;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Tt(t){return null==t}var Ct={isNothing:Tt,isObject:function(t){return"object"===Object(n.a)(t)&&null!==t},toArray:function(t){return Array.isArray(t)?t:Tt(t)?[]:[t]},repeat:function(t,e){var r,n="";for(r=0;r<e;r+=1)n+=t;return n},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,e){var r,n,i,a;if(e)for(r=0,n=(a=Object.keys(e)).length;r<n;r+=1)t[i=a[r]]=e[i];return t}};function Et(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function St(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Et(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}St.prototype=Object.create(Error.prototype),St.prototype.constructor=St,St.prototype.toString=function(t){return this.name+": "+Et(this,t)};var At=St;function Ot(t,e,r,n,i){var a="",o="",s=Math.floor(i/2)-1;return n-e>s&&(e=n-s+(a=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+o,pos:n-e+a.length}}function Lt(t,e){return Ct.repeat(" ",e-t.length)+t}var Bt=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],a=[],o=-1;r=n.exec(t.buffer);)a.push(r.index),i.push(r.index+r[0].length),t.position<=r.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s,c,l="",u=Math.min(t.line+e.linesAfter,a.length).toString().length,h=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)c=Ot(t.buffer,i[o-s],a[o-s],t.position-(i[o]-i[o-s]),h),l=Ct.repeat(" ",e.indent)+Lt((t.line-s+1).toString(),u)+" | "+c.str+"\n"+l;for(c=Ot(t.buffer,i[o],a[o],t.position,h),l+=Ct.repeat(" ",e.indent)+Lt((t.line+1).toString(),u)+" | "+c.str+"\n",l+=Ct.repeat("-",e.indent+u+3+c.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=a.length);s++)c=Ot(t.buffer,i[o+s],a[o+s],t.position-(i[o]-i[o+s]),h),l+=Ct.repeat(" ",e.indent)+Lt((t.line+s+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},Dt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Mt=["scalar","sequence","mapping"];var It=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===Dt.indexOf(e))throw new At('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))})),e}(e.styleAliases||null),-1===Mt.indexOf(this.kind))throw new At('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function Nt(t,e){var r=[];return t[e].forEach((function(t){var e=r.length;r.forEach((function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)})),r[e]=t})),r}function Ft(t){return this.extend(t)}Ft.prototype.extend=function(t){var e=[],r=[];if(t instanceof It)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new At("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof It))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new At("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new At("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(t){if(!(t instanceof It))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(Ft.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Nt(n,"implicit"),n.compiledExplicit=Nt(n,"explicit"),n.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var jt=new Ft({explicit:[new It("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),new It("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),new It("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})]});var Rt=new It("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var Pt=new It("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function $t(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function zt(t){return 48<=t&&t<=55}function Yt(t){return 48<=t&&t<=57}var Ut=new It("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r=t.length,n=0,i=!1;if(!r)return!1;if("-"!==(e=t[n])&&"+"!==e||(e=t[++n]),"0"===e){if(n+1===r)return!0;if("b"===(e=t[++n])){for(n++;n<r;n++)if("_"!==(e=t[n])){if("0"!==e&&"1"!==e)return!1;i=!0}return i&&"_"!==e}if("x"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!$t(t.charCodeAt(n)))return!1;i=!0}return i&&"_"!==e}if("o"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!zt(t.charCodeAt(n)))return!1;i=!0}return i&&"_"!==e}}if("_"===e)return!1;for(;n<r;n++)if("_"!==(e=t[n])){if(!Yt(t.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===e)},construct:function(t){var e,r=t,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(e=r[0])&&"+"!==e||("-"===e&&(n=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!Ct.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Wt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var qt=/^[-+]?[0-9]+e/;var Ht=new It("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!Wt.test(t)||"_"===t[t.length-1])},construct:function(t){var e,r;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||Ct.isNegativeZero(t))},represent:function(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ct.isNegativeZero(t))return"-0.0";return r=t.toString(10),qt.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),Vt=jt.extend({implicit:[Rt,Pt,Ut,Ht]}),Gt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Xt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var Kt=new It("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==Gt.exec(t)||null!==Xt.exec(t))},construct:function(t){var e,r,n,i,a,o,s,c,l=0,u=null;if(null===(e=Gt.exec(t))&&(e=Xt.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(a=+e[4],o=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),c=new Date(Date.UTC(r,n,i,a,o,s,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(t){return t.toISOString()}});var Qt=new It("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Jt=new It("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,n=0,i=t.length,a=Zt;for(r=0;r<i;r++)if(!((e=a.indexOf(t.charAt(r)))>64)){if(e<0)return!1;n+=6}return n%8==0},construct:function(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=Zt,o=0,s=[];for(e=0;e<i;e++)e%4==0&&e&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(n.charAt(e));return 0===(r=i%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,r,n="",i=0,a=t.length,o=Zt;for(e=0;e<a;e++)e%3==0&&e&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]),i=(i<<8)+t[e];return 0===(r=a%3)?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]):2===r?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):1===r&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}}),te=Object.prototype.hasOwnProperty,ee=Object.prototype.toString;var re=new It("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,n,i,a,o=[],s=t;for(e=0,r=s.length;e<r;e+=1){if(n=s[e],a=!1,"[object Object]"!==ee.call(n))return!1;for(i in n)if(te.call(n,i)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==o.indexOf(i))return!1;o.push(i)}return!0},construct:function(t){return null!==t?t:[]}}),ne=Object.prototype.toString;var ie=new It("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,n,i,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],"[object Object]"!==ne.call(n))return!1;if(1!==(i=Object.keys(n)).length)return!1;a[e]=[i[0],n[i[0]]]}return!0},construct:function(t){if(null===t)return[];var e,r,n,i,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),a[e]=[i[0],n[i[0]]];return a}}),ae=Object.prototype.hasOwnProperty;var oe=new It("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,r=t;for(e in r)if(ae.call(r,e)&&null!==r[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),se=Vt.extend({implicit:[Kt,Qt],explicit:[Jt,re,ie,oe]}),ce=Object.prototype.hasOwnProperty,le=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ue=/[\x85\u2028\u2029]/,he=/[,\[\]\{\}]/,de=/^(?:!|!!|![a-z\-]+!)$/i,fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function pe(t){return Object.prototype.toString.call(t)}function ge(t){return 10===t||13===t}function ye(t){return 9===t||32===t}function be(t){return 9===t||32===t||10===t||13===t}function me(t){return 44===t||91===t||93===t||123===t||125===t}function ve(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function _e(t){return 120===t?2:117===t?4:85===t?8:0}function xe(t){return 48<=t&&t<=57?t-48:-1}function ke(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function we(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var Te=new Array(256),Ce=new Array(256),Ee=0;Ee<256;Ee++)Te[Ee]=ke(Ee)?1:0,Ce[Ee]=ke(Ee);function Se(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||se,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ae(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Bt(r),new At(e,r)}function Oe(t,e){throw Ae(t,e)}function Le(t,e){t.onWarning&&t.onWarning.call(null,Ae(t,e))}var Be={YAML:function(t,e,r){var n,i,a;null!==t.version&&Oe(t,"duplication of %YAML directive"),1!==r.length&&Oe(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Oe(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),a=parseInt(n[2],10),1!==i&&Oe(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&Le(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,i;2!==r.length&&Oe(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],de.test(n)||Oe(t,"ill-formed tag handle (first argument) of the TAG directive"),ce.call(t.tagMap,n)&&Oe(t,'there is a previously declared suffix for "'+n+'" tag handle'),fe.test(i)||Oe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(e){Oe(t,"tag prefix is malformed: "+i)}t.tagMap[n]=i}};function De(t,e,r,n){var i,a,o,s;if(e<r){if(s=t.input.slice(e,r),n)for(i=0,a=s.length;i<a;i+=1)9===(o=s.charCodeAt(i))||32<=o&&o<=1114111||Oe(t,"expected valid JSON character");else le.test(s)&&Oe(t,"the stream contains non-printable characters");t.result+=s}}function Me(t,e,r,n){var i,a,o,s;for(Ct.isObject(r)||Oe(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(i=Object.keys(r)).length;o<s;o+=1)a=i[o],ce.call(e,a)||(e[a]=r[a],n[a]=!0)}function Ie(t,e,r,i,a,o,s,c,l){var u,h;if(Array.isArray(a))for(u=0,h=(a=Array.prototype.slice.call(a)).length;u<h;u+=1)Array.isArray(a[u])&&Oe(t,"nested arrays are not supported inside keys"),"object"===Object(n.a)(a)&&"[object Object]"===pe(a[u])&&(a[u]="[object Object]");if("object"===Object(n.a)(a)&&"[object Object]"===pe(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(u=0,h=o.length;u<h;u+=1)Me(t,e,o[u],r);else Me(t,e,o,r);else t.json||ce.call(r,a)||!ce.call(e,a)||(t.line=s||t.line,t.lineStart=c||t.lineStart,t.position=l||t.position,Oe(t,"duplicated mapping key")),"__proto__"===a?Object.defineProperty(e,a,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[a]=o,delete r[a];return e}function Ne(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):Oe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Fe(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);0!==i;){for(;ye(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!ge(i))break;for(Ne(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==r&&0!==n&&t.lineIndent<r&&Le(t,"deficient indentation"),n}function je(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,e=t.input.charCodeAt(r),0!==e&&!be(e)))}function Re(t,e){1===e?t.result+=" ":e>1&&(t.result+=Ct.repeat("\n",e-1))}function Pe(t,e){var r,n,i=t.tag,a=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Oe(t,"tab characters must not be used in indentation")),45===n)&&be(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,Fe(t,!0,-1)&&t.lineIndent<=e)o.push(null),n=t.input.charCodeAt(t.position);else if(r=t.line,Ye(t,e,3,!1,!0),o.push(t.result),Fe(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)Oe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=i,t.anchor=a,t.kind="sequence",t.result=o,!0)}function $e(t){var e,r,n,i,a=!1,o=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&Oe(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(a=!0,i=t.input.charCodeAt(++t.position)):33===i?(o=!0,r="!!",i=t.input.charCodeAt(++t.position)):r="!",e=t.position,a){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(n=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):Oe(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!be(i);)33===i&&(o?Oe(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),de.test(r)||Oe(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),he.test(n)&&Oe(t,"tag suffix cannot contain flow indicator characters")}n&&!fe.test(n)&&Oe(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(e){Oe(t,"tag name is malformed: "+n)}return a?t.tag=n:ce.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:Oe(t,'undeclared tag handle "'+r+'"'),!0}function ze(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&Oe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!be(r)&&!me(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Oe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Ye(t,e,r,n,i){var a,o,s,c,l,u,h,d,f,p=1,g=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=s=4===r||3===r,n&&Fe(t,!0,-1)&&(g=!0,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)),1===p)for(;$e(t)||ze(t);)Fe(t,!0,-1)?(g=!0,s=a,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)):s=!1;if(s&&(s=g||i),1!==p&&4!==r||(d=1===r||2===r?e:e+1,f=t.position-t.lineStart,1===p?s&&(Pe(t,f)||function(t,e,r){var n,i,a,o,s,c,l,u=t.tag,h=t.anchor,d={},f=Object.create(null),p=null,g=null,y=null,b=!1,m=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),l=t.input.charCodeAt(t.position);0!==l;){if(b||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Oe(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,63!==l&&58!==l||!be(n)){if(o=t.line,s=t.lineStart,c=t.position,!Ye(t,r,2,!1,!0))break;if(t.line===a){for(l=t.input.charCodeAt(t.position);ye(l);)l=t.input.charCodeAt(++t.position);if(58===l)be(l=t.input.charCodeAt(++t.position))||Oe(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Ie(t,d,f,p,g,null,o,s,c),p=g=y=null),m=!0,b=!1,i=!1,p=t.tag,g=t.result;else{if(!m)return t.tag=u,t.anchor=h,!0;Oe(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!m)return t.tag=u,t.anchor=h,!0;Oe(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(b&&(Ie(t,d,f,p,g,null,o,s,c),p=g=y=null),m=!0,b=!0,i=!0):b?(b=!1,i=!0):Oe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,l=n;if((t.line===a||t.lineIndent>e)&&(b&&(o=t.line,s=t.lineStart,c=t.position),Ye(t,e,4,!0,i)&&(b?g=t.result:y=t.result),b||(Ie(t,d,f,p,g,y,o,s,c),p=g=y=null),Fe(t,!0,-1),l=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==l)Oe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&Ie(t,d,f,p,g,null,o,s,c),m&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=d),m}(t,f,d))||function(t,e){var r,n,i,a,o,s,c,l,u,h,d,f,p=!0,g=t.tag,y=t.anchor,b=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))o=93,l=!1,a=[];else{if(123!==f)return!1;o=125,l=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),f=t.input.charCodeAt(++t.position);0!==f;){if(Fe(t,!0,e),(f=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=y,t.kind=l?"mapping":"sequence",t.result=a,!0;p?44===f&&Oe(t,"expected the node content, but found ','"):Oe(t,"missed comma between flow collection entries"),d=null,s=c=!1,63===f&&(be(t.input.charCodeAt(t.position+1))&&(s=c=!0,t.position++,Fe(t,!0,e))),r=t.line,n=t.lineStart,i=t.position,Ye(t,e,1,!1,!0),h=t.tag,u=t.result,Fe(t,!0,e),f=t.input.charCodeAt(t.position),!c&&t.line!==r||58!==f||(s=!0,f=t.input.charCodeAt(++t.position),Fe(t,!0,e),Ye(t,e,1,!1,!0),d=t.result),l?Ie(t,a,b,h,u,d,r,n,i):s?a.push(Ie(t,null,b,h,u,d,r,n,i)):a.push(u),Fe(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(p=!0,f=t.input.charCodeAt(++t.position)):p=!1}Oe(t,"unexpected end of the stream within a flow collection")}(t,d)?y=!0:(o&&function(t,e){var r,n,i,a,o=1,s=!1,c=!1,l=e,u=0,h=!1;if(124===(a=t.input.charCodeAt(t.position)))n=!1;else{if(62!==a)return!1;n=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===o?o=43===a?3:2:Oe(t,"repeat of a chomping mode identifier");else{if(!((i=xe(a))>=0))break;0===i?Oe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Oe(t,"repeat of an indentation width identifier"):(l=e+i-1,c=!0)}if(ye(a)){do{a=t.input.charCodeAt(++t.position)}while(ye(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!ge(a)&&0!==a)}for(;0!==a;){for(Ne(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!c||t.lineIndent<l)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>l&&(l=t.lineIndent),ge(a))u++;else{if(t.lineIndent<l){3===o?t.result+=Ct.repeat("\n",s?1+u:u):1===o&&s&&(t.result+="\n");break}for(n?ye(a)?(h=!0,t.result+=Ct.repeat("\n",s?1+u:u)):h?(h=!1,t.result+=Ct.repeat("\n",u+1)):0===u?s&&(t.result+=" "):t.result+=Ct.repeat("\n",u):t.result+=Ct.repeat("\n",s?1+u:u),s=!0,c=!0,u=0,r=t.position;!ge(a)&&0!==a;)a=t.input.charCodeAt(++t.position);De(t,r,t.position,!1)}}return!0}(t,d)||function(t,e){var r,n,i;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(De(t,n,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;n=t.position,t.position++,i=t.position}else ge(r)?(De(t,n,i,!0),Re(t,Fe(t,!1,e)),n=i=t.position):t.position===t.lineStart&&je(t)?Oe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Oe(t,"unexpected end of the stream within a single quoted scalar")}(t,d)||function(t,e){var r,n,i,a,o,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return De(t,r,t.position,!0),t.position++,!0;if(92===s){if(De(t,r,t.position,!0),ge(s=t.input.charCodeAt(++t.position)))Fe(t,!1,e);else if(s<256&&Te[s])t.result+=Ce[s],t.position++;else if((o=_e(s))>0){for(i=o,a=0;i>0;i--)(o=ve(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+o:Oe(t,"expected hexadecimal character");t.result+=we(a),t.position++}else Oe(t,"unknown escape sequence");r=n=t.position}else ge(s)?(De(t,r,n,!0),Re(t,Fe(t,!1,e)),r=n=t.position):t.position===t.lineStart&&je(t)?Oe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Oe(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?y=!0:function(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!be(n)&&!me(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Oe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),ce.call(t.anchorMap,r)||Oe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Fe(t,!0,-1),!0}(t)?(y=!0,null===t.tag&&null===t.anchor||Oe(t,"alias node should not have any properties")):function(t,e,r){var n,i,a,o,s,c,l,u,h=t.kind,d=t.result;if(be(u=t.input.charCodeAt(t.position))||me(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(be(n=t.input.charCodeAt(t.position+1))||r&&me(n)))return!1;for(t.kind="scalar",t.result="",i=a=t.position,o=!1;0!==u;){if(58===u){if(be(n=t.input.charCodeAt(t.position+1))||r&&me(n))break}else if(35===u){if(be(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&je(t)||r&&me(u))break;if(ge(u)){if(s=t.line,c=t.lineStart,l=t.lineIndent,Fe(t,!1,-1),t.lineIndent>=e){o=!0,u=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=c,t.lineIndent=l;break}}o&&(De(t,i,a,!1),Re(t,t.line-s),i=a=t.position,o=!1),ye(u)||(a=t.position+1),u=t.input.charCodeAt(++t.position)}return De(t,i,a,!1),!!t.result||(t.kind=h,t.result=d,!1)}(t,d,1===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===p&&(y=s&&Pe(t,f))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Oe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,l=t.implicitTypes.length;c<l;c+=1)if((h=t.implicitTypes[c]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(ce.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,c=0,l=(u=t.typeMap.multi[t.kind||"fallback"]).length;c<l;c+=1)if(t.tag.slice(0,u[c].tag.length)===u[c].tag){h=u[c];break}h||Oe(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&Oe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Oe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function Ue(t){var e,r,n,i,a=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(Fe(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(o=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!be(i);)i=t.input.charCodeAt(++t.position);for(n=[],(r=t.input.slice(e,t.position)).length<1&&Oe(t,"directive name must not be less than one character in length");0!==i;){for(;ye(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!ge(i));break}if(ge(i))break;for(e=t.position;0!==i&&!be(i);)i=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==i&&Ne(t),ce.call(Be,r)?Be[r](t,r,n):Le(t,'unknown document directive "'+r+'"')}Fe(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Fe(t,!0,-1)):o&&Oe(t,"directives end mark is expected"),Ye(t,t.lineIndent-1,4,!1,!0),Fe(t,!0,-1),t.checkLineBreaks&&ue.test(t.input.slice(a,t.position))&&Le(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&je(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Fe(t,!0,-1)):t.position<t.length-1&&Oe(t,"end of the stream or a document separator is expected")}function We(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new Se(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,Oe(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ue(r);return r.documents}var qe=jt,He={loadAll:function(t,e,r){null!==e&&"object"===Object(n.a)(e)&&void 0===r&&(r=e,e=null);var i=We(t,r);if("function"!=typeof e)return i;for(var a=0,o=i.length;a<o;a+=1)e(i[a])},load:function(t,e){var r=We(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new At("expected a single document in the stream, but found more")}}}.load,Ve=/^-{3}\s*[\n\r]([^]*?)[\n\r]-{3}\s*[\n\r]+/;var Ge=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Xe=/\s*%%.*\n/gm,Ke={},Qe=function(t,e){t=t.replace(Ve,"").replace(Ge,"").replace(Xe,"\n");for(var r=0,n=Object.entries(Ke);r<n.length;r++){var i=Object(u.a)(n[r],2),a=i[0];if((0,i[1].detector)(t,e))return a}throw new Error("No diagram type detected for text: ".concat(t))},Ze=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0,i=e;n<i.length;n++){var a=i[n],o=a.id,s=a.detector,c=a.loader;Je(o,s,c)}},Je=function(t,e,r){Ke[t]?tt.error("Detector with key ".concat(t," already exists")):Ke[t]={detector:e,loader:r},tt.debug("Detector with key ".concat(t," added").concat(r?" with loader":""))},tr=function(t,e,r){var i=Object.assign({depth:2,clobber:!1},r),a=i.depth,o=i.clobber;return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((function(e){return tr(t,e,r)})),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((function(e){t.includes(e)||t.push(e)})),t):void 0===t||a<=0?null!=t&&"object"===Object(n.a)(t)&&"object"===Object(n.a)(e)?Object.assign(t,e):e:(void 0!==e&&"object"===Object(n.a)(t)&&"object"===Object(n.a)(e)&&Object.keys(e).forEach((function(r){"object"!==Object(n.a)(e[r])||void 0!==t[r]&&"object"!==Object(n.a)(t[r])?(o||"object"!==Object(n.a)(t[r])&&"object"!==Object(n.a)(e[r]))&&(t[r]=e[r]):(void 0===t[r]&&(t[r]=Array.isArray(e[r])?[]:{}),t[r]=tr(t[r],e[r],{depth:a-1,clobber:o}))})),t)},er=tr,rr={curveBasis:_.d,curveBasisClosed:_.e,curveBasisOpen:_.f,curveBumpX:_.g,curveBumpY:_.h,curveBundle:_.i,curveCardinalClosed:_.k,curveCardinalOpen:_.l,curveCardinal:_.j,curveCatmullRomClosed:_.n,curveCatmullRomOpen:_.o,curveCatmullRom:_.m,curveLinear:_.p,curveLinearClosed:_.q,curveMonotoneX:_.r,curveMonotoneY:_.s,curveNatural:_.t,curveStep:_.u,curveStepAfter:_.v,curveStepBefore:_.w},nr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ir=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ar=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var r,n=new RegExp("[%]{2}(?![{]".concat(ir.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),tt.debug("Detecting diagram directive".concat(null!==e?" type:"+e:""," based on the text:").concat(t));for(var i=[];null!==(r=nr.exec(t));)if(r.index===nr.lastIndex&&nr.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){var a=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:a,args:o})}return 0===i.length&&i.push({type:t,args:null}),1===i.length?i[0]:i}catch(r){return tt.error("ERROR: ".concat(r.message," - Unable to parse directive\n ").concat(null!==e?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}};function or(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return rr[r]||e}function sr(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function cr(t){var e,r="",n="",i=Object(l.a)(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;void 0!==a&&(a.startsWith("color:")||a.startsWith("text-align:")?n=n+a+";":r=r+a+";")}}catch(t){i.e(t)}finally{i.f()}return{style:r,labelStyle:n}}var lr=0,ur=function(){return lr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+lr};var hr=function(t){return function(t){for(var e="",r="0123456789abcdef",n=r.length,i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}(t.length)},dr=function(t,e){var r=e.text.replace(ut.lineBreakRegex," "),n=Tr(e.fontSize),i=Object(u.a)(n,2)[1],a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",i),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);var o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a},fr=Object(M.a)((function(t,e,r){if(!t)return t;if(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),ut.lineBreakRegex.test(t))return t;var n=t.split(" "),i=[],a="";return n.forEach((function(t,o){var s=yr("".concat(t," "),r),c=yr(a,r);if(s>e){var l=pr(t,e,"-",r),u=l.hyphenatedStrings,d=l.remainingWord;i.push.apply(i,[a].concat(Object(h.a)(u))),a=d}else c+s>=e?(i.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===n.length&&i.push(a)})),i.filter((function(t){return""!==t})).join(r.joinWith)}),(function(t,e,r){return"".concat(t).concat(e).concat(r.fontSize).concat(r.fontWeight).concat(r.fontFamily).concat(r.joinWith)})),pr=Object(M.a)((function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0;n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);var i=Object(h.a)(t),a=[],o="";return i.forEach((function(t,s){var c="".concat(o).concat(t);if(yr(c,n)>=e){var l=s+1,u=i.length===l,h="".concat(c).concat(r);a.push(u?c:h),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0;return"".concat(t).concat(e).concat(r).concat(n.fontSize).concat(n.fontWeight).concat(n.fontFamily)}));function gr(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),mr(t,e).height}function yr(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),mr(t,e).width}var br,mr=Object(M.a)((function(t,e){var r=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),n=r.fontSize,i=r.fontFamily,a=r.fontWeight;if(!t)return{width:0,height:0};var o=Tr(n),s=Object(u.a)(o,2)[1],c=["sans-serif",i],h=t.split(ut.lineBreakRegex),d=[],f=Object(_.F)("body");if(!f.remove)return{width:0,height:0,lineHeight:0};for(var p=f.append("svg"),g=0,y=c;g<y.length;g++){var b,m=y[g],v=0,x={width:0,height:0,lineHeight:0},k=Object(l.a)(h);try{for(k.s();!(b=k.n()).done;){var w=b.value,T={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};T.text=w;var C=dr(p,T).style("font-size",s).style("font-weight",a).style("font-family",m),E=(C._groups||C)[0][0].getBBox();x.width=Math.round(Math.max(x.width,E.width)),v=Math.round(E.height),x.height+=v,x.lineHeight=Math.round(Math.max(x.lineHeight,v))}}catch(t){k.e(t)}finally{k.f()}d.push(x)}return p.remove(),d[isNaN(d[1].height)||isNaN(d[1].width)||isNaN(d[1].lineHeight)||d[0].height>d[1].height&&d[0].width>d[1].width&&d[0].lineHeight>d[1].lineHeight?0:1]}),(function(t,e){return"".concat(t).concat(e.fontSize).concat(e.fontWeight).concat(e.fontFamily)})),vr=g((function t(e,r){d(this,t),this.deterministic=e,this.seed=r,this.count=r?r.length:0}),[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}]),_r=function(t){if(tt.debug("directiveSanitizer called with",t),"object"===Object(n.a)(t)&&(t.length?t.forEach((function(t){return _r(t)})):Object.keys(t).forEach((function(e){tt.debug("Checking key",e),e.startsWith("__")&&(tt.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(tt.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(tt.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(tt.debug("sanitizing themeCss option"),t[e]=xr(t[e])),e.includes("fontFamily")&&(tt.debug("sanitizing fontFamily option"),t[e]=xr(t[e])),e.includes("altFontFamily")&&(tt.debug("sanitizing altFontFamily option"),t[e]=xr(t[e])),kt.includes(e)?"object"===Object(n.a)(t[e])&&(tt.debug("sanitize deleting object",e),_r(t[e])):(tt.debug("sanitize deleting option",e),delete t[e])}))),t.themeVariables)for(var e=0,r=Object.keys(t.themeVariables);e<r.length;e++){var i=r[e],a=t.themeVariables[i];a&&a.match&&!a.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}tt.debug("After sanitization",t)},xr=function(t){var e,r=0,n=0,i=Object(l.a)(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(r<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===a?r++:"}"===a&&n++}}catch(t){i.e(t)}finally{i.f()}return r!==n?"{ /* ERROR: Unbalanced CSS */ }":t};function kr(t){return"str"in t}var wr,Tr=function(t){if("number"==typeof t)return[t,t+"px"];var e=parseInt(t,10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},Cr={assignWithDepth:er,wrapLabel:fr,calculateTextHeight:gr,calculateTextWidth:yr,calculateTextDimensions:mr,detectInit:function(t,e){var r=ar(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){var i=r.map((function(t){return t.args}));_r(i),n=er(n,Object(h.a)(i))}else n=r.args;if(n){var a=Qe(t,e);["config"].forEach((function(t){void 0!==n[t]&&("flowchart-v2"===a&&(a="flowchart"),n[a]=n[t],delete n[t])}))}return n},detectDirective:ar,isSubstringInArray:function(t,e){var r,n=Object(l.a)(e.entries());try{for(n.s();!(r=n.n()).done;){var i=Object(u.a)(r.value,2),a=i[0];if(i[1].match(t))return a}}catch(t){n.e(t)}finally{n.f()}return-1},interpolateToCurve:or,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){var e,r=0;t.forEach((function(t){r+=sr(t,e),e=t}));var n=r/2,i=void 0;return e=void 0,t.forEach((function(t){if(e&&!i){var r=sr(t,e);if(r<n)n-=r;else{var a=n/r;a<=0&&(i=e),a>=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:function(t,e,r){var n;tt.info("our points ".concat(JSON.stringify(e))),e[0]!==r&&(e=e.reverse());var i,a=25;n=void 0,e.forEach((function(t){if(n&&!i){var e=sr(t,n);if(e<a)a-=e;else{var r=a/e;r<=0&&(i=n),r>=1&&(i={x:t.x,y:t.y}),r>0&&r<1&&(i={x:(1-r)*n.x+r*t.x,y:(1-r)*n.y+r*t.y})}}n=t}));var o=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),c={x:0,y:0};return c.x=Math.sin(s)*o+(e[0].x+i.x)/2,c.y=-Math.cos(s)*o+(e[0].y+i.y)/2,c},calcTerminalLabelPosition:function(t,e,r){var n,i=JSON.parse(JSON.stringify(r));tt.info("our points",i),"start_left"!==e&&"start_right"!==e&&(i=i.reverse()),i.forEach((function(t){n=t}));var a,o=25+t;n=void 0,i.forEach((function(t){if(n&&!a){var e=sr(t,n);if(e<o)o-=e;else{var r=o/e;r<=0&&(a=n),r>=1&&(a={x:t.x,y:t.y}),r>0&&r<1&&(a={x:(1-r)*n.x+r*t.x,y:(1-r)*n.y+r*t.y})}}n=t}));var s=10+.5*t,c=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return l.x=Math.sin(c)*s+(i[0].x+a.x)/2,l.y=-Math.cos(c)*s+(i[0].y+a.y)/2,"start_left"===e&&(l.x=Math.sin(c+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(c+Math.PI)*s+(i[0].y+a.y)/2),"end_right"===e&&(l.x=Math.sin(c-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(c-Math.PI)*s+(i[0].y+a.y)/2-5),"end_left"===e&&(l.x=Math.sin(c)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(c)*s+(i[0].y+a.y)/2-5),l},formatUrl:function(t,e){var r=t.trim();if(r)return"loose"!==e.securityLevel?Object(v.sanitizeUrl)(r):r},getStylesFromArray:cr,generateId:ur,random:hr,runFunc:function(t){for(var e,r=t.split("."),n=r.length-1,i=r[n],a=window,o=0;o<n;o++)if(!(a=a[r[o]]))return;for(var s=arguments.length,c=new Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];(e=a)[i].apply(e,c)},entityDecode:function(t){return br=br||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),br.innerHTML=t,unescape(br.textContent)},initIdGenerator:vr,directiveSanitizer:_r,sanitizeCss:xr,insertTitle:function(t,e,r,n){if(n){var i=t.node().getBBox();t.append("text").text(n).attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)}},parseFontSize:Tr},Er="9.4.3",Sr=Object.freeze(wt),Ar=er({},Sr),Or=[],Lr=er({},Sr),Br=function(t,e){var r,n=er({},t),i={},a=Object(l.a)(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;jr(o),i=er(i,o)}}catch(t){a.e(t)}finally{a.f()}if(n=er(n,i),i.theme&&i.theme in vt){var s=er({},wr),c=er(s.themeVariables||{},i.themeVariables);n.theme&&n.theme in vt&&(n.themeVariables=vt[n.theme].getThemeVariables(c))}return Yr(Lr=n),Lr},Dr=function(t){return Ar=er({},Sr),Ar=er(Ar,t),t.theme&&vt[t.theme]&&(Ar.themeVariables=vt[t.theme].getThemeVariables(t.themeVariables)),Br(Ar,Or),Ar},Mr=function(t){wr=er({},t)},Ir=function(){return er({},Ar)},Nr=function(t){return Yr(t),er(Lr,t),Fr()},Fr=function(){return er({},Lr)},jr=function(t){var e;["secure"].concat(Object(h.a)(null!==(e=Ar.secure)&&void 0!==e?e:[])).forEach((function(e){void 0!==t[e]&&(tt.debug("Denied attempt to modify a secure key ".concat(e),t[e]),delete t[e])})),Object.keys(t).forEach((function(e){0===e.indexOf("__")&&delete t[e]})),Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"===Object(n.a)(t[e])&&jr(t[e])}))},Rr=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),Or.push(t),Br(Ar,Or)},Pr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ar;Br(t,Or=[])},$r=function(t){return t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t}($r||{}),zr={},Yr=function(t){t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&function(t){zr[t]||(tt.warn($r[t]),zr[t]=!0)}("LAZY_LOAD_DEPRECATED")},Ur=function(t,e,r,n){!function(t,e){var r,n=Object(l.a)(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;t.attr(i[0],i[1])}}catch(t){n.e(t)}finally{n.f()}}(t,function(t,e,r){var n=new Map;return r?(n.set("width","100%"),n.set("style","max-width: ".concat(e,"px;"))):(n.set("height",t),n.set("width",e)),n}(e,r,n))},Wr=function(t,e,r,n){var i=e.node().getBBox(),a=i.width,o=i.height;tt.info("SVG bounds: ".concat(a,"x").concat(o),i);var s=0,c=0;tt.info("Graph bounds: ".concat(s,"x").concat(c),t),s=a+2*r,c=o+2*r,tt.info("Calculated bounds: ".concat(s,"x").concat(c)),Ur(e,c,s,n);var l="".concat(i.x-r," ").concat(i.y-r," ").concat(i.width+2*r," ").concat(i.height+2*r);e.attr("viewBox",l)},qr=function(t){return"g.classGroup text {\n fill: ".concat(t.nodeBorder,";\n fill: ").concat(t.classText,";\n stroke: none;\n font-family: ").concat(t.fontFamily,";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ").concat(t.classText,";\n}\n.edgeLabel .label rect {\n fill: ").concat(t.mainBkg,";\n}\n.label text {\n fill: ").concat(t.classText,";\n}\n.edgeLabel .label span {\n background: ").concat(t.mainBkg,";\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(t.nodeBorder,";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.classGroup line {\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(t.nodeBorder,";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor,";\n}\n")},Hr=function(t){return"\n .entityBox {\n fill: ".concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxOdd {\n fill: ").concat(t.attributeBackgroundColorOdd,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxEven {\n fill: ").concat(t.attributeBackgroundColorEven,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.tertiaryColor,";\n opacity: 0.7;\n background-color: ").concat(t.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor,";\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor,";\n } \n")},Vr=function(){return""},Gr=function(t){return".label {\n font-family: ".concat(t.fontFamily,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n .cluster-label text {\n fill: ").concat(t.titleColor,";\n }\n .cluster-label span {\n color: ").concat(t.titleColor,";\n }\n\n .label text,span {\n fill: ").concat(t.nodeTextColor||t.textColor,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n background-color: ").concat(t.edgeLabelBackground,";\n fill: ").concat(t.edgeLabelBackground,";\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(t.clusterBkg,";\n stroke: ").concat(t.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n .cluster span {\n color: ").concat(t.titleColor,";\n }\n /* .cluster div {\n color: ").concat(t.titleColor,";\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(t.fontFamily,";\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor,";\n }\n")},Xr=function(t){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: '.concat(t.excludeBkgColor,";\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ").concat(t.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(t.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(t.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(t.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(t.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ").concat(t.ganttFontSize,";\n // }\n\n .taskTextOutsideRight {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: end;\n // font-size: ").concat(t.ganttFontSize,";\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(t.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(t.taskBkgColor,";\n stroke: ").concat(t.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(t.activeTaskBkgColor,";\n stroke: ").concat(t.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(t.doneTaskBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor," ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n")},Kr=function(){return""},Qr=function(t){return"\n .pieCircle{\n stroke: ".concat(t.pieStrokeColor,";\n stroke-width : ").concat(t.pieStrokeWidth,";\n opacity : ").concat(t.pieOpacity,";\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ").concat(t.pieTitleTextSize,";\n fill: ").concat(t.pieTitleTextColor,";\n font-family: ").concat(t.fontFamily,";\n }\n .slice {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.pieSectionTextColor,";\n font-size:").concat(t.pieSectionTextSize,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(t.pieLegendTextColor,";\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.pieLegendTextSize,";\n }\n")},Zr=function(t){return"\n\n marker {\n fill: ".concat(t.relationColor,";\n stroke: ").concat(t.relationColor,";\n }\n\n marker.cross {\n stroke: ").concat(t.lineColor,";\n }\n\n svg {\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.fontSize,";\n }\n\n .reqBox {\n fill: ").concat(t.requirementBackground,";\n fill-opacity: 100%;\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n \n .reqTitle, .reqLabel{\n fill: ").concat(t.requirementTextColor,";\n }\n .reqLabelBox {\n fill: ").concat(t.relationLabelBackground,";\n fill-opacity: 100%;\n }\n\n .req-title-line {\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n .relationshipLine {\n stroke: ").concat(t.relationColor,";\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ").concat(t.relationLabelColor,";\n }\n\n")},Jr=function(t){return".actor {\n stroke: ".concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n\n text.actor > tspan {\n fill: ").concat(t.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(t.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(t.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(t.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(t.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .messageText {\n fill: ").concat(t.signalTextColor,";\n stroke: none;\n }\n\n .labelBox {\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(t.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(t.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ").concat(t.actorBkg,";\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n .actor-man circle, line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n stroke-width: 2px;\n }\n")},tn=function(t){return"\ndefs #statediagram-barbEnd {\n fill: ".concat(t.transitionColor,";\n stroke: ").concat(t.transitionColor,";\n }\ng.stateGroup text {\n fill: ").concat(t.nodeBorder,";\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ").concat(t.textColor,";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(t.stateLabelColor,";\n}\n\ng.stateGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.stateGroup line {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(t.transitionColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(t.background,";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n\n text {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(t.labelBackgroundColor,";\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n.label div .edgeLabel {\n color: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n\n.stateLabel text {\n fill: ").concat(t.stateLabelColor,";\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node .fork-join {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node circle.state-end {\n fill: ").concat(t.innerEndBackground,";\n stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ").concat(t.compositeBackground||t.background,";\n // stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(t.stateBkg||t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n.node polygon {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(t.lineColor,";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(t.compositeTitleBackground,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(t.stateLabelColor,";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(t.compositeBackground||t.background,";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(t.noteTextColor,";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(t.noteTextColor,";\n}\n.statediagram .edgeLabel {\n color: red; // ").concat(t.noteTextColor,";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(t.lineColor,";\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor,";\n}\n")},en=function(t){return".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ".concat(t.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(t.textColor,"\n }\n\n .legend {\n fill: ").concat(t.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(t.textColor,"\n }\n\n .face {\n ").concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",";\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType7):"",";\n }\n\n .actor-0 {\n ").concat(t.actor0?"fill: ".concat(t.actor0):"",";\n }\n .actor-1 {\n ").concat(t.actor1?"fill: ".concat(t.actor1):"",";\n }\n .actor-2 {\n ").concat(t.actor2?"fill: ".concat(t.actor2):"",";\n }\n .actor-3 {\n ").concat(t.actor3?"fill: ".concat(t.actor3):"",";\n }\n .actor-4 {\n ").concat(t.actor4?"fill: ".concat(t.actor4):"",";\n }\n .actor-5 {\n ").concat(t.actor5?"fill: ".concat(t.actor5):"",";\n }\n")},rn=function(t){return".person {\n stroke: ".concat(t.personBorder,";\n fill: ").concat(t.personBkg,";\n }\n")},nn={flowchart:Gr,"flowchart-v2":Gr,sequence:Jr,gantt:Xr,classDiagram:qr,"classDiagram-v2":qr,class:qr,stateDiagram:tn,state:tn,info:Kr,pie:Qr,er:Hr,error:Vr,journey:en,requirement:Zr,c4:rn},an=function(t,e,r){var n="";return t in nn&&nn[t]?n=nn[t](r):tt.warn("No theme found for ".concat(t))," & {\n font-family: ".concat(r.fontFamily,";\n font-size: ").concat(r.fontSize,";\n fill: ").concat(r.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ").concat(r.errorBkgColor,";\n }\n & .error-text {\n fill: ").concat(r.errorTextColor,";\n stroke: ").concat(r.errorTextColor,";\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ").concat(r.lineColor,";\n stroke: ").concat(r.lineColor,";\n }\n & .marker.cross {\n stroke: ").concat(r.lineColor,";\n }\n\n & svg {\n font-family: ").concat(r.fontFamily,";\n font-size: ").concat(r.fontSize,";\n }\n\n ").concat(n,"\n\n ").concat(e,"\n")},on="",sn="",cn="",ln=function(t){return it(t,Fr())},un=function(){on="",cn="",sn=""},hn=function(t){on=ln(t).replace(/^\s+/g,"")},dn=function(){return on||sn},fn=function(t){cn=ln(t).replace(/\n\s+/g,"\n")},pn=function(){return cn},gn=function(t){sn=ln(t)},yn=function(){return sn},bn={setAccTitle:hn,getAccTitle:dn,setDiagramTitle:gn,getDiagramTitle:yn,getAccDescription:pn,setAccDescription:fn,clear:un},mn=Object.freeze(Object.defineProperty({__proto__:null,clear:un,default:bn,getAccDescription:pn,getAccTitle:dn,getDiagramTitle:yn,setAccDescription:fn,setAccTitle:hn,setDiagramTitle:gn},Symbol.toStringTag,{value:"Module"})),vn={},_n=function(t,e,r,n){tt.debug("parseDirective is being called",e,r,n);try{if(void 0!==e)switch(e=e.trim(),r){case"open_directive":vn={};break;case"type_directive":if(!vn)throw new Error("currentDirective is undefined");vn.type=e.toLowerCase();break;case"arg_directive":if(!vn)throw new Error("currentDirective is undefined");vn.args=JSON.parse(e);break;case"close_directive":xn(t,vn,n),vn=void 0}}catch(t){tt.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),tt.error(t.message)}},xn=function(t,e,r){switch(tt.info("Directive type=".concat(e.type," with args:"),e.args),e.type){case"init":case"initialize":["config"].forEach((function(t){void 0!==e.args[t]&&("flowchart-v2"===r&&(r="flowchart"),e.args[r]=e.args[t],delete e.args[t])})),tt.info("sanitize in handleDirective",e.args),_r(e.args),tt.info("sanitize in handleDirective (done)",e.args),Rr(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":tt.warn("themeCss encountered");break;default:tt.warn("Unhandled directive: source: '%%{".concat(e.type,": ").concat(JSON.stringify(e.args?e.args:{}),"}%%"),e)}},kn=tt,wn=et,Tn=Fr,Cn=function(t){return it(t,Tn())},En=Wr,Sn=function(t,e,r,n){return _n(t,e,r,n)},An={},On=function(t,e,r){if(An[t])throw new Error("Diagram ".concat(t," already registered."));An[t]=e,r&&Je(t,r),function(t,e){nn[t]=e}(t,e.styles),e.injectUtils&&e.injectUtils(kn,wn,Tn,Cn,En,mn,Sn)},Ln=function(t){if(t in An)return An[t];throw new Error("Diagram ".concat(t," not found."))},Bn=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,4],r=[1,7],n=[1,5],i=[1,9],a=[1,6],o=[2,6],s=[1,16],c=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],l=[8,14,20,22,24,25,27,29,32,37,40],u=[8,13,14,20,22,24,25,27,29,32,37,40],h=[1,26],d=[6,8,14,50,55],f=[8,14,55],p=[1,53],g=[1,52],y=[8,14,30,33,35,38,55],b=[1,67],m=[1,68],v=[1,69],_=[8,14,33,35,42,55],x={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,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$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",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},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],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[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],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 3:return a[s];case 4:return a[s-1];case 5:return n.setDirection(a[s-3]),a[s-1];case 7:n.setOptions(a[s-1]),this.$=a[s];break;case 8:a[s-1]+=a[s],this.$=a[s-1];break;case 10:this.$=[];break;case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 12:this.$=a[s-1];break;case 17:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 20:n.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 22:n.checkout(a[s]);break;case 23:n.branch(a[s]);break;case 24:n.branch(a[s-2],a[s]);break;case 25:n.cherryPick(a[s],"",void 0);break;case 26:n.cherryPick(a[s-2],"",a[s]);break;case 27:case 29:n.cherryPick(a[s-2],"","");break;case 28:n.cherryPick(a[s],"",a[s-2]);break;case 30:n.merge(a[s],"","","");break;case 31:n.merge(a[s-2],a[s],"","");break;case 32:n.merge(a[s-2],"",a[s],"");break;case 33:n.merge(a[s-2],"","",a[s]);break;case 34:n.merge(a[s-4],a[s],"",a[s-2]);break;case 35:n.merge(a[s-4],"",a[s],a[s-2]);break;case 36:n.merge(a[s-4],"",a[s-2],a[s]);break;case 37:n.merge(a[s-4],a[s-2],a[s],"");break;case 38:n.merge(a[s-4],a[s-2],"",a[s]);break;case 39:n.merge(a[s-4],a[s],a[s-2],"");break;case 40:n.merge(a[s-6],a[s-4],a[s-2],a[s]);break;case 41:n.merge(a[s-6],a[s],a[s-4],a[s-2]);break;case 42:n.merge(a[s-6],a[s-4],a[s],a[s-2]);break;case 43:n.merge(a[s-6],a[s-2],a[s-4],a[s]);break;case 44:n.merge(a[s-6],a[s],a[s-2],a[s-4]);break;case 45:n.merge(a[s-6],a[s-2],a[s],a[s-4]);break;case 46:n.commit(a[s]);break;case 47:n.commit("","",n.commitType.NORMAL,a[s]);break;case 48:n.commit("","",a[s],"");break;case 49:n.commit("","",a[s],a[s-2]);break;case 50:n.commit("","",a[s-2],a[s]);break;case 51:n.commit("",a[s],n.commitType.NORMAL,"");break;case 52:n.commit("",a[s-2],n.commitType.NORMAL,a[s]);break;case 53:n.commit("",a[s],n.commitType.NORMAL,a[s-2]);break;case 54:n.commit("",a[s-2],a[s],"");break;case 55:n.commit("",a[s],a[s-2],"");break;case 56:n.commit("",a[s-4],a[s-2],a[s]);break;case 57:n.commit("",a[s-4],a[s],a[s-2]);break;case 58:n.commit("",a[s-2],a[s-4],a[s]);break;case 59:n.commit("",a[s],a[s-4],a[s-2]);break;case 60:n.commit("",a[s],a[s-2],a[s-4]);break;case 61:n.commit("",a[s-2],a[s],a[s-4]);break;case 62:n.commit(a[s],"",n.commitType.NORMAL,"");break;case 63:n.commit(a[s],"",n.commitType.NORMAL,a[s-2]);break;case 64:n.commit(a[s-2],"",n.commitType.NORMAL,a[s]);break;case 65:n.commit(a[s-2],"",a[s],"");break;case 66:n.commit(a[s],"",a[s-2],"");break;case 67:n.commit(a[s],a[s-2],n.commitType.NORMAL,"");break;case 68:n.commit(a[s-2],a[s],n.commitType.NORMAL,"");break;case 69:n.commit(a[s-4],"",a[s-2],a[s]);break;case 70:n.commit(a[s-4],"",a[s],a[s-2]);break;case 71:n.commit(a[s-2],"",a[s-4],a[s]);break;case 72:n.commit(a[s],"",a[s-4],a[s-2]);break;case 73:n.commit(a[s],"",a[s-2],a[s-4]);break;case 74:n.commit(a[s-2],"",a[s],a[s-4]);break;case 75:n.commit(a[s-4],a[s],a[s-2],"");break;case 76:n.commit(a[s-4],a[s-2],a[s],"");break;case 77:n.commit(a[s-2],a[s],a[s-4],"");break;case 78:n.commit(a[s],a[s-2],a[s-4],"");break;case 79:n.commit(a[s],a[s-4],a[s-2],"");break;case 80:n.commit(a[s-2],a[s-4],a[s],"");break;case 81:n.commit(a[s-4],a[s],n.commitType.NORMAL,a[s-2]);break;case 82:n.commit(a[s-4],a[s-2],n.commitType.NORMAL,a[s]);break;case 83:n.commit(a[s-2],a[s],n.commitType.NORMAL,a[s-4]);break;case 84:n.commit(a[s],a[s-2],n.commitType.NORMAL,a[s-4]);break;case 85:n.commit(a[s],a[s-4],n.commitType.NORMAL,a[s-2]);break;case 86:n.commit(a[s-2],a[s-4],n.commitType.NORMAL,a[s]);break;case 87:n.commit(a[s-6],a[s-4],a[s-2],a[s]);break;case 88:n.commit(a[s-6],a[s-4],a[s],a[s-2]);break;case 89:n.commit(a[s-6],a[s-2],a[s-4],a[s]);break;case 90:n.commit(a[s-6],a[s],a[s-4],a[s-2]);break;case 91:n.commit(a[s-6],a[s-2],a[s],a[s-4]);break;case 92:n.commit(a[s-6],a[s],a[s-2],a[s-4]);break;case 93:n.commit(a[s-4],a[s-6],a[s-2],a[s]);break;case 94:n.commit(a[s-4],a[s-6],a[s],a[s-2]);break;case 95:n.commit(a[s-2],a[s-6],a[s-4],a[s]);break;case 96:n.commit(a[s],a[s-6],a[s-4],a[s-2]);break;case 97:n.commit(a[s-2],a[s-6],a[s],a[s-4]);break;case 98:n.commit(a[s],a[s-6],a[s-2],a[s-4]);break;case 99:n.commit(a[s],a[s-4],a[s-2],a[s-6]);break;case 100:n.commit(a[s-2],a[s-4],a[s],a[s-6]);break;case 101:n.commit(a[s],a[s-2],a[s-4],a[s-6]);break;case 102:n.commit(a[s-2],a[s],a[s-4],a[s-6]);break;case 103:n.commit(a[s-4],a[s-2],a[s],a[s-6]);break;case 104:n.commit(a[s-4],a[s],a[s-2],a[s-6]);break;case 105:n.commit(a[s-2],a[s-4],a[s-6],a[s]);break;case 106:n.commit(a[s],a[s-4],a[s-6],a[s-2]);break;case 107:n.commit(a[s-2],a[s],a[s-6],a[s-4]);break;case 108:n.commit(a[s],a[s-2],a[s-6],a[s-4]);break;case 109:n.commit(a[s-4],a[s-2],a[s-6],a[s]);break;case 110:n.commit(a[s-4],a[s],a[s-6],a[s-2]);break;case 111:this.$="";break;case 112:this.$=a[s];break;case 113:this.$=n.commitType.NORMAL;break;case 114:this.$=n.commitType.REVERSE;break;case 115:this.$=n.commitType.HIGHLIGHT;break;case 118:n.parseDirective("%%{","open_directive");break;case 119:n.parseDirective(a[s],"type_directive");break;case 120:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 121:n.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:e,8:r,14:n,46:8,50:i,55:a},{1:[3]},{3:10,4:2,5:3,6:e,8:r,14:n,46:8,50:i,55:a},{3:11,4:2,5:3,6:e,8:r,14:n,46:8,50:i,55:a},{7:12,8:o,9:[1,13],10:[1,14],11:15,14:s},t(c,[2,124]),t(c,[2,125]),t(c,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:o,11:15,14:s},{9:[1,21]},t(l,[2,10],{12:22,13:[1,23]}),t(u,[2,9]),{9:[1,25],48:24,53:h},t([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:o,11:15,14:s},{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],37:[1,42],40:[1,41]},t(u,[2,8]),t(d,[2,116]),{49:45,52:[1,46]},t(d,[2,121]),{1:[2,4]},{8:[1,47]},t(l,[2,11]),{4:48,8:r,14:n,55:a},t(l,[2,13]),t(f,[2,14]),t(f,[2,15]),t(f,[2,16]),{21:[1,49]},{23:[1,50]},t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),{28:51,34:p,54:g},t(f,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:p,54:g},{33:[1,61],35:[1,62]},{28:63,34:p,54:g},{48:64,53:h},{53:[2,120]},{1:[2,5]},t(l,[2,12]),t(f,[2,17]),t(f,[2,18]),t(f,[2,22]),t(y,[2,122]),t(y,[2,123]),t(f,[2,46]),{34:[1,65]},{39:66,43:b,44:m,45:v},{34:[1,70]},{34:[1,71]},t(f,[2,112]),t(f,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},t(f,[2,23],{30:[1,78]}),t(d,[2,117]),t(f,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),t(f,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),t(_,[2,113]),t(_,[2,114]),t(_,[2,115]),t(f,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),t(f,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:b,44:m,45:v},{34:[1,93]},t(f,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:b,44:m,45:v},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:b,44:m,45:v},{34:[1,106]},{34:[1,107]},{39:108,43:b,44:m,45:v},{34:[1,109]},t(f,[2,31],{35:[1,111],38:[1,110]}),t(f,[2,32],{33:[1,113],35:[1,112]}),t(f,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},t(f,[2,24]),t(f,[2,49],{33:[1,120],42:[1,121]}),t(f,[2,53],{38:[1,122],42:[1,123]}),t(f,[2,63],{33:[1,125],38:[1,124]}),t(f,[2,50],{33:[1,126],42:[1,127]}),t(f,[2,55],{35:[1,128],42:[1,129]}),t(f,[2,66],{33:[1,131],35:[1,130]}),t(f,[2,52],{38:[1,132],42:[1,133]}),t(f,[2,54],{35:[1,134],42:[1,135]}),t(f,[2,67],{35:[1,137],38:[1,136]}),t(f,[2,64],{33:[1,139],38:[1,138]}),t(f,[2,65],{33:[1,141],35:[1,140]}),t(f,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:b,44:m,45:v},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:b,44:m,45:v},t(f,[2,26]),t(f,[2,27]),t(f,[2,28]),t(f,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:b,44:m,45:v},{34:[1,153]},{39:154,43:b,44:m,45:v},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:b,44:m,45:v},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:b,44:m,45:v},{34:[1,167]},{39:168,43:b,44:m,45:v},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:b,44:m,45:v},{34:[1,173]},t(f,[2,37],{35:[1,174]}),t(f,[2,38],{38:[1,175]}),t(f,[2,36],{33:[1,176]}),t(f,[2,39],{35:[1,177]}),t(f,[2,34],{38:[1,178]}),t(f,[2,35],{33:[1,179]}),t(f,[2,60],{42:[1,180]}),t(f,[2,73],{33:[1,181]}),t(f,[2,61],{42:[1,182]}),t(f,[2,84],{38:[1,183]}),t(f,[2,74],{33:[1,184]}),t(f,[2,83],{38:[1,185]}),t(f,[2,59],{42:[1,186]}),t(f,[2,72],{33:[1,187]}),t(f,[2,58],{42:[1,188]}),t(f,[2,78],{35:[1,189]}),t(f,[2,71],{33:[1,190]}),t(f,[2,77],{35:[1,191]}),t(f,[2,57],{42:[1,192]}),t(f,[2,85],{38:[1,193]}),t(f,[2,56],{42:[1,194]}),t(f,[2,79],{35:[1,195]}),t(f,[2,80],{35:[1,196]}),t(f,[2,86],{38:[1,197]}),t(f,[2,70],{33:[1,198]}),t(f,[2,81],{38:[1,199]}),t(f,[2,69],{33:[1,200]}),t(f,[2,75],{35:[1,201]}),t(f,[2,76],{35:[1,202]}),t(f,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:b,44:m,45:v},{34:[1,206]},{34:[1,207]},{39:208,43:b,44:m,45:v},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:b,44:m,45:v},{34:[1,214]},{39:215,43:b,44:m,45:v},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:b,44:m,45:v},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:b,44:m,45:v},{34:[1,228]},{39:229,43:b,44:m,45:v},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:b,44:m,45:v},t(f,[2,40]),t(f,[2,42]),t(f,[2,41]),t(f,[2,43]),t(f,[2,45]),t(f,[2,44]),t(f,[2,101]),t(f,[2,102]),t(f,[2,99]),t(f,[2,100]),t(f,[2,104]),t(f,[2,103]),t(f,[2,108]),t(f,[2,107]),t(f,[2,106]),t(f,[2,105]),t(f,[2,110]),t(f,[2,109]),t(f,[2,98]),t(f,[2,97]),t(f,[2,96]),t(f,[2,95]),t(f,[2,93]),t(f,[2,94]),t(f,[2,92]),t(f,[2,91]),t(f,[2,90]),t(f,[2,89]),t(f,[2,87]),t(f,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;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:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;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,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/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,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/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:[34,35],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,36,37,40,41,42,43],inclusive:!0}}};function w(){this.yy={}}return x.lexer=k,w.prototype=x,x.Parser=w,new w}();Bn.parser=Bn;var Dn=Bn,Mn=function(t){return null!==t.match(/^\s*gitGraph/)},In=Fr().gitGraph.mainBranchName,Nn=Fr().gitGraph.mainBranchOrder,Fn={},jn=null,Rn={};Rn[In]={name:In,order:Nn};var Pn={};Pn[In]=jn;var $n=In,zn="LR",Yn=0;function Un(){return hr({length:7})}var Wn={},qn=function(t){if(t=ut.sanitizeText(t,Fr()),void 0===Pn[t]){var e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}var r=Pn[$n=t];jn=Fn[r]};function Hn(t,e,r){var n=t.indexOf(e);-1===n?t.push(r):t.splice(n,1,r)}function Vn(t){var e=t.reduce((function(t,e){return t.seq>e.seq?t:e}),t[0]),r="";t.forEach((function(t){r+=t===e?"\t*":"\t|"}));var n=[r,e.id,e.seq];for(var i in Pn)Pn[i]===e.id&&n.push(i);if(tt.debug(n.join(" ")),e.parents&&2==e.parents.length){var a=Fn[e.parents[0]];Hn(t,e,a),t.push(Fn[e.parents[1]])}else{if(0==e.parents.length)return;var o=Fn[e.parents];Hn(t,e,o)}Vn(t=function(t,e){var r=Object.create(null);return t.reduce((function(t,n){var i=e(n);return r[i]||(r[i]=!0,t.push(n)),t}),[])}(t,(function(t){return t.id})))}var Gn=function(){var t=Object.keys(Fn).map((function(t){return Fn[t]}));return t.forEach((function(t){tt.debug(t.id)})),t.sort((function(t,e){return t.seq-e.seq})),t},Xn={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Kn={parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().gitGraph},setDirection:function(t){zn=t},setOptions:function(t){tt.debug("options str",t),t=(t=t&&t.trim())||"{}";try{Wn=JSON.parse(t)}catch(t){tt.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return Wn},commit:function(t,e,r,n){tt.debug("Entering commit:",t,e,r,n),e=ut.sanitizeText(e,Fr()),t=ut.sanitizeText(t,Fr()),n=ut.sanitizeText(n,Fr());var i={id:e||Yn+"-"+Un(),message:t,seq:Yn++,type:r||Xn.NORMAL,tag:n||"",parents:null==jn?[]:[jn.id],branch:$n};jn=i,Fn[i.id]=i,Pn[$n]=i.id,tt.debug("in pushCommit "+i.id)},branch:function(t,e){if(t=ut.sanitizeText(t,Fr()),void 0!==Pn[t]){var r=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 '+t+'")');throw r.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},r}Pn[t]=null!=jn?jn.id:null,Rn[t]={name:t,order:e?parseInt(e,10):null},qn(t),tt.debug("in createBranch")},merge:function(t,e,r,n){t=ut.sanitizeText(t,Fr()),e=ut.sanitizeText(e,Fr());var i=Fn[Pn[$n]],a=Fn[Pn[t]];if($n===t){var o=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw o.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},o}if(void 0===i||!i){var s=new Error('Incorrect usage of "merge". Current branch ('+$n+")has no commits");throw s.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},s}if(void 0===Pn[t]){var c=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw c.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},c}if(void 0===a||!a){var l=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw l.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},l}if(i===a){var u=new Error('Incorrect usage of "merge". Both branches have same head');throw u.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},u}if(e&&void 0!==Fn[e]){var h=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw h.hash={text:"merge "+t+e+r+n,token:"merge "+t+e+r+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+r+" "+n]},h}var d={id:e||Yn+"-"+Un(),message:"merged branch "+t+" into "+$n,seq:Yn++,parents:[null==jn?null:jn.id,Pn[t]],branch:$n,type:Xn.MERGE,customType:r,customId:!!e,tag:n||""};jn=d,Fn[d.id]=d,Pn[$n]=d.id,tt.debug(Pn),tt.debug("in mergeBranch")},cherryPick:function(t,e,r){if(tt.debug("Entering cherryPick:",t,e,r),t=ut.sanitizeText(t,Fr()),e=ut.sanitizeText(e,Fr()),r=ut.sanitizeText(r,Fr()),!t||void 0===Fn[t]){var n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}var i=Fn[t],a=i.branch;if(i.type===Xn.MERGE){var o=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw o.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},o}if(!e||void 0===Fn[e]){if(a===$n){var s=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw s.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},s}var c=Fn[Pn[$n]];if(void 0===c||!c){var l=new Error('Incorrect usage of "cherry-pick". Current branch ('+$n+")has no commits");throw l.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},l}var u={id:Yn+"-"+Un(),message:"cherry-picked "+i+" into "+$n,seq:Yn++,parents:[null==jn?null:jn.id,i.id],branch:$n,type:Xn.CHERRY_PICK,tag:null!=r?r:"cherry-pick:"+i.id};jn=u,Fn[u.id]=u,Pn[$n]=u.id,tt.debug(Pn),tt.debug("in cherryPick")}},checkout:qn,prettyPrint:function(){tt.debug(Fn),Vn([Gn()[0]])},clear:function(){Fn={},jn=null;var t=Fr().gitGraph.mainBranchName,e=Fr().gitGraph.mainBranchOrder;(Pn={})[t]=null,(Rn={})[t]={name:t,order:e},$n=t,Yn=0,un()},getBranchesAsObjArray:function(){return Object.values(Rn).map((function(t,e){return null!==t.order?t:Object(s.a)(Object(s.a)({},t),{},{order:parseFloat("0.".concat(e),10)})})).sort((function(t,e){return t.order-e.order})).map((function(t){return{name:t.name}}))},getBranches:function(){return Pn},getCommits:function(){return Fn},getCommitsArray:Gn,getCurrentBranch:function(){return $n},getDirection:function(){return zn},getHead:function(){return jn},setAccTitle:hn,getAccTitle:dn,getAccDescription:pn,setAccDescription:fn,setDiagramTitle:gn,getDiagramTitle:yn,commitType:Xn},Qn={},Zn=0,Jn=1,ti=2,ei=3,ri=4,ni={},ii={},ai=[],oi=0,si=function(t){var e,r=document.createElementNS("http://www.w3.org/2000/svg","text");e="string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(t)?t:[];var n,i=Object(l.a)(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=a.trim(),r.appendChild(o)}}catch(t){i.e(t)}finally{i.f()}return r},ci=function(t,e,r){var n=Tn().gitGraph,i=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels"),o=0;Object.keys(e).sort((function(t,r){return e[t].seq-e[r].seq})).forEach((function(t){var s=e[t],c=ni[s.branch].pos,l=o+10;if(r){var u,h=void 0!==s.customType&&""!==s.customType?s.customType:s.type;switch(h){case Zn:u="commit-normal";break;case Jn:u="commit-reverse";break;case ti:u="commit-highlight";break;case ei:u="commit-merge";break;case ri:u="commit-cherry-pick";break;default:u="commit-normal"}if(h===ti){var d=i.append("rect");d.attr("x",l-10),d.attr("y",c-10),d.attr("height",20),d.attr("width",20),d.attr("class","commit ".concat(s.id," commit-highlight").concat(ni[s.branch].index%8," ").concat(u,"-outer")),i.append("rect").attr("x",l-6).attr("y",c-6).attr("height",12).attr("width",12).attr("class","commit ".concat(s.id," commit").concat(ni[s.branch].index%8," ").concat(u,"-inner"))}else if(h===ri)i.append("circle").attr("cx",l).attr("cy",c).attr("r",10).attr("class","commit ".concat(s.id," ").concat(u)),i.append("circle").attr("cx",l-3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(s.id," ").concat(u)),i.append("circle").attr("cx",l+3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(s.id," ").concat(u)),i.append("line").attr("x1",l+3).attr("y1",c+1).attr("x2",l).attr("y2",c-5).attr("stroke","#fff").attr("class","commit ".concat(s.id," ").concat(u)),i.append("line").attr("x1",l-3).attr("y1",c+1).attr("x2",l).attr("y2",c-5).attr("stroke","#fff").attr("class","commit ".concat(s.id," ").concat(u));else{var f=i.append("circle");if(f.attr("cx",l),f.attr("cy",c),f.attr("r",s.type===ei?9:10),f.attr("class","commit ".concat(s.id," commit").concat(ni[s.branch].index%8)),h===ei){var p=i.append("circle");p.attr("cx",l),p.attr("cy",c),p.attr("r",6),p.attr("class","commit ".concat(u," ").concat(s.id," commit").concat(ni[s.branch].index%8))}if(h===Jn)i.append("path").attr("d","M ".concat(l-5,",").concat(c-5,"L").concat(l+5,",").concat(c+5,"M").concat(l-5,",").concat(c+5,"L").concat(l+5,",").concat(c-5)).attr("class","commit ".concat(u," ").concat(s.id," commit").concat(ni[s.branch].index%8))}}if(ii[s.id]={x:o+10,y:c},r){if(s.type!==ri&&(s.customId&&s.type===ei||s.type!==ei)&&n.showCommitLabel){var g=a.append("g"),y=g.insert("rect").attr("class","commit-label-bkg"),b=g.append("text").attr("x",o).attr("y",c+25).attr("class","commit-label").text(s.id),m=b.node().getBBox();if(y.attr("x",o+10-m.width/2-2).attr("y",c+13.5).attr("width",m.width+4).attr("height",m.height+4),b.attr("x",o+10-m.width/2),n.rotateCommitLabel){var v=-7.5-(m.width+10)/25*9.5,_=10+m.width/25*8.5;g.attr("transform","translate("+v+", "+_+") rotate(-45, "+o+", "+c+")")}}if(s.tag){var x=a.insert("polygon"),k=a.append("circle"),w=a.append("text").attr("y",c-16).attr("class","tag-label").text(s.tag),T=w.node().getBBox();w.attr("x",o+10-T.width/2);var C=T.height/2,E=c-19.2;x.attr("class","tag-label-bkg").attr("points","\n ".concat(o-T.width/2-2,",").concat(E+2,"\n ").concat(o-T.width/2-2,",").concat(E-2,"\n ").concat(o+10-T.width/2-4,",").concat(E-C-2,"\n ").concat(o+10+T.width/2+4,",").concat(E-C-2,"\n ").concat(o+10+T.width/2+4,",").concat(E+C+2,"\n ").concat(o+10-T.width/2-4,",").concat(E+C+2)),k.attr("cx",o-T.width/2+2).attr("cy",E).attr("r",1.5).attr("class","tag-hole")}}(o+=50)>oi&&(oi=o)}))},li=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=t+Math.abs(t-e)/2;if(r>5)return n;var i=ai.every((function(t){return Math.abs(t-n)>=10}));if(i)return ai.push(n),n;var a=Math.abs(t-e);return li(t,e-a/5,r+1)},ui=function(t,e,r,n){var i,a=ii[e.id],o=ii[r.id],s=function(t,e,r){return Object.keys(r).filter((function(n){return r[n].branch===e.branch&&r[n].seq>t.seq&&r[n].seq<e.seq})).length>0}(e,r,n),c="",l="",u=0,h=0,d=ni[r.branch].index;if(s){c="A 10 10, 0, 0, 0,",l="A 10 10, 0, 0, 1,",u=10,h=10,d=ni[r.branch].index;var f=a.y<o.y?li(a.y,o.y):li(o.y,a.y);i=a.y<o.y?"M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(f-u," ").concat(c," ").concat(a.x+h," ").concat(f," L ").concat(o.x-u," ").concat(f," ").concat(l," ").concat(o.x," ").concat(f+h," L ").concat(o.x," ").concat(o.y):"M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(f+u," ").concat(l," ").concat(a.x+h," ").concat(f," L ").concat(o.x-u," ").concat(f," ").concat(c," ").concat(o.x," ").concat(f-h," L ").concat(o.x," ").concat(o.y)}else a.y<o.y&&(c="A 20 20, 0, 0, 0,",u=20,h=20,d=ni[r.branch].index,i="M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(o.y-u," ").concat(c," ").concat(a.x+h," ").concat(o.y," L ").concat(o.x," ").concat(o.y)),a.y>o.y&&(c="A 20 20, 0, 0, 0,",u=20,h=20,d=ni[e.branch].index,i="M ".concat(a.x," ").concat(a.y," L ").concat(o.x-u," ").concat(a.y," ").concat(c," ").concat(o.x," ").concat(a.y-h," L ").concat(o.x," ").concat(o.y)),a.y===o.y&&(d=ni[e.branch].index,i="M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(o.y-u," ").concat(c," ").concat(a.x+h," ").concat(o.y," L ").concat(o.x," ").concat(o.y));t.append("path").attr("d",i).attr("class","arrow arrow"+d%8)},hi={draw:function(t,e,r,n){var i;ni={},ii={},Qn={},oi=0,ai=[];var a=Tn(),o=a.gitGraph;tt.debug("in gitgraph renderer",t+"\n","id:",e,r),Qn=n.db.getCommits();var s=n.db.getBranchesAsObjArray(),c=0;s.forEach((function(t,e){ni[t.name]={pos:c,index:e},c+=50+(o.rotateCommitLabel?40:0)}));var l=Object(_.F)('[id="'.concat(e,'"]'));ci(l,Qn,!1),o.showBranches&&function(t,e){var r=Tn().gitGraph,n=t.append("g");e.forEach((function(t,e){var i=e%8,a=ni[t.name].pos,o=n.append("line");o.attr("x1",0),o.attr("y1",a),o.attr("x2",oi),o.attr("y2",a),o.attr("class","branch branch"+i),ai.push(a);var s=t.name,c=si(s),l=n.insert("rect"),u=n.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);u.node().appendChild(c);var h=c.getBBox();l.attr("class","branchLabelBkg label"+i).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(!0===r.rotateCommitLabel?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4),u.attr("transform","translate("+(-h.width-14-(!0===r.rotateCommitLabel?30:0))+", "+(a-h.height/2-1)+")"),l.attr("transform","translate(-19, "+(a-h.height/2)+")")}))}(l,s),function(t,e){var r=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((function(t){var n=e[t];n.parents&&n.parents.length>0&&n.parents.forEach((function(t){ui(r,e[t],n,e)}))}))}(l,Qn),ci(l,Qn,!0),Cr.insertTitle(l,"gitTitleText",o.titleTopMargin,n.db.getDiagramTitle()),En(void 0,l,o.diagramPadding,null!==(i=o.useMaxWidth)&&void 0!==i?i:a.useMaxWidth)}},di=function(t){return"\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ".concat([0,1,2,3,4,5,6,7].map((function(e){return"\n .branch-label".concat(e," { fill: ").concat(t["gitBranchLabel"+e],"; }\n .commit").concat(e," { stroke: ").concat(t["git"+e],"; fill: ").concat(t["git"+e],"; }\n .commit-highlight").concat(e," { stroke: ").concat(t["gitInv"+e],"; fill: ").concat(t["gitInv"+e],"; }\n .label").concat(e," { fill: ").concat(t["git"+e],"; }\n .arrow").concat(e," { stroke: ").concat(t["git"+e],"; }\n ")})).join("\n"),"\n\n .branch {\n stroke-width: 1;\n stroke: ").concat(t.lineColor,";\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(t.commitLabelColor,";}\n .commit-label-bkg { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(t.commitLabelBackground,"; opacity: 0.5; }\n .tag-label { font-size: ").concat(t.tagLabelFontSize,"; fill: ").concat(t.tagLabelColor,";}\n .tag-label-bkg { fill: ").concat(t.tagLabelBackground,"; stroke: ").concat(t.tagLabelBorder,"; }\n .tag-hole { fill: ").concat(t.textColor,"; }\n\n .commit-merge {\n stroke: ").concat(t.primaryColor,";\n fill: ").concat(t.primaryColor,";\n }\n .commit-reverse {\n stroke: ").concat(t.primaryColor,";\n fill: ").concat(t.primaryColor,";\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ").concat(t.primaryColor,";\n fill: ").concat(t.primaryColor,";\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor,";\n }\n }\n")},fi=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,6],r=[1,7],n=[1,8],i=[1,9],a=[1,16],o=[1,11],s=[1,12],l=[1,13],u=[1,14],d=[1,15],f=[1,27],p=[1,33],g=[1,34],y=[1,35],b=[1,36],m=[1,37],v=[1,72],_=[1,73],x=[1,74],k=[1,75],w=[1,76],T=[1,77],C=[1,78],E=[1,38],S=[1,39],A=[1,40],O=[1,41],L=[1,42],B=[1,43],D=[1,44],M=[1,45],I=[1,46],N=[1,47],F=[1,48],j=[1,49],R=[1,50],P=[1,51],$=[1,52],z=[1,53],Y=[1,54],U=[1,55],W=[1,56],q=[1,57],H=[1,59],V=[1,60],G=[1,61],X=[1,62],K=[1,63],Q=[1,64],Z=[1,65],J=[1,66],tt=[1,67],et=[1,68],rt=[1,69],nt=[24,52],it=[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],at=[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],ot=[1,94],st=[1,95],ct=[1,96],lt=[1,97],ut=[15,24,52],ht=[7,8,9,10,18,22,25,26,27,28],dt=[15,24,43,52],ft=[15,24,43,52,86,87,89,90],pt=[15,43],gt=[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],yt={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(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 4:n.setDirection("TB");break;case 5:n.setDirection("BT");break;case 6:n.setDirection("RL");break;case 7:n.setDirection("LR");break;case 11:n.parseDirective("%%{","open_directive");break;case 12:break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 14:n.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:n.setC4Type(a[s-3]);break;case 26:n.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 27:n.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 28:this.$=a[s].trim(),n.setTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 35:case 36:a[s].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary.apply(n,Object(h.a)(a[s])),this.$=a[s];break;case 37:n.addPersonOrSystemBoundary.apply(n,Object(h.a)(a[s])),this.$=a[s];break;case 38:a[s].splice(2,0,"CONTAINER"),n.addContainerBoundary.apply(n,Object(h.a)(a[s])),this.$=a[s];break;case 39:n.addDeploymentNode.apply(n,["node"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 40:n.addDeploymentNode.apply(n,["nodeL"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 41:n.addDeploymentNode.apply(n,["nodeR"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 42:n.popBoundaryParseStack();break;case 46:n.addPersonOrSystem.apply(n,["person"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 47:n.addPersonOrSystem.apply(n,["external_person"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 48:n.addPersonOrSystem.apply(n,["system"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 49:n.addPersonOrSystem.apply(n,["system_db"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 50:n.addPersonOrSystem.apply(n,["system_queue"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 51:n.addPersonOrSystem.apply(n,["external_system"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 52:n.addPersonOrSystem.apply(n,["external_system_db"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 53:n.addPersonOrSystem.apply(n,["external_system_queue"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 54:n.addContainer.apply(n,["container"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 55:n.addContainer.apply(n,["container_db"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 56:n.addContainer.apply(n,["container_queue"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 57:n.addContainer.apply(n,["external_container"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 58:n.addContainer.apply(n,["external_container_db"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 59:n.addContainer.apply(n,["external_container_queue"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 60:n.addComponent.apply(n,["component"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 61:n.addComponent.apply(n,["component_db"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 62:n.addComponent.apply(n,["component_queue"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 63:n.addComponent.apply(n,["external_component"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 64:n.addComponent.apply(n,["external_component_db"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 65:n.addComponent.apply(n,["external_component_queue"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 67:n.addRel.apply(n,["rel"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 68:n.addRel.apply(n,["birel"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 69:n.addRel.apply(n,["rel_u"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 70:n.addRel.apply(n,["rel_d"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 71:n.addRel.apply(n,["rel_l"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 72:n.addRel.apply(n,["rel_r"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 73:n.addRel.apply(n,["rel_b"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 74:a[s].splice(0,1),n.addRel.apply(n,["rel"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 75:n.updateElStyle.apply(n,["update_el_style"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 76:n.updateRelStyle.apply(n,["update_rel_style"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 77:n.updateLayoutConfig.apply(n,["update_layout_config"].concat(Object(h.a)(a[s]))),this.$=a[s];break;case 78:this.$=[a[s]];break;case 79:a[s].unshift(a[s-1]),this.$=a[s];break;case 80:case 82:this.$=a[s].trim();break;case 81:var c={};c[a[s-1].trim()]=a[s].trim(),this.$=c;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:e,8:r,9:n,10:i,11:5,12:10,18:a,22:o,25:s,26:l,27:u,28:d},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:e,8:r,9:n,10:i,11:5,12:10,18:a,22:o,25:s,26:l,27:u,28:d},{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:f},t([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:p,33:g,34:y,36:b,38:m,39:58,40:70,42:71,44:v,46:_,47:x,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt},{23:79,29:29,30:30,31:31,32:p,33:g,34:y,36:b,38:m,39:58,40:70,42:71,44:v,46:_,47:x,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt},{23:80,29:29,30:30,31:31,32:p,33:g,34:y,36:b,38:m,39:58,40:70,42:71,44:v,46:_,47:x,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt},{23:81,29:29,30:30,31:31,32:p,33:g,34:y,36:b,38:m,39:58,40:70,42:71,44:v,46:_,47:x,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt},{23:82,29:29,30:30,31:31,32:p,33:g,34:y,36:b,38:m,39:58,40:70,42:71,44:v,46:_,47:x,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},t(nt,[2,20],{53:32,39:58,40:70,42:71,30:87,44:v,46:_,47:x,48:k,49:w,50:T,51:C,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt}),t(nt,[2,21]),t(it,[2,23],{15:[1,88]}),t(nt,[2,43],{15:[1,89]}),t(at,[2,26]),t(at,[2,27]),{35:[1,90]},{37:[1,91]},t(at,[2,30]),{45:92,85:93,86:ot,87:st,89:ct,90:lt},{45:98,85:93,86:ot,87:st,89:ct,90:lt},{45:99,85:93,86:ot,87:st,89:ct,90:lt},{45:100,85:93,86:ot,87:st,89:ct,90:lt},{45:101,85:93,86:ot,87:st,89:ct,90:lt},{45:102,85:93,86:ot,87:st,89:ct,90:lt},{45:103,85:93,86:ot,87:st,89:ct,90:lt},{45:104,85:93,86:ot,87:st,89:ct,90:lt},{45:105,85:93,86:ot,87:st,89:ct,90:lt},{45:106,85:93,86:ot,87:st,89:ct,90:lt},{45:107,85:93,86:ot,87:st,89:ct,90:lt},{45:108,85:93,86:ot,87:st,89:ct,90:lt},{45:109,85:93,86:ot,87:st,89:ct,90:lt},{45:110,85:93,86:ot,87:st,89:ct,90:lt},{45:111,85:93,86:ot,87:st,89:ct,90:lt},{45:112,85:93,86:ot,87:st,89:ct,90:lt},{45:113,85:93,86:ot,87:st,89:ct,90:lt},{45:114,85:93,86:ot,87:st,89:ct,90:lt},{45:115,85:93,86:ot,87:st,89:ct,90:lt},{45:116,85:93,86:ot,87:st,89:ct,90:lt},t(ut,[2,66]),{45:117,85:93,86:ot,87:st,89:ct,90:lt},{45:118,85:93,86:ot,87:st,89:ct,90:lt},{45:119,85:93,86:ot,87:st,89:ct,90:lt},{45:120,85:93,86:ot,87:st,89:ct,90:lt},{45:121,85:93,86:ot,87:st,89:ct,90:lt},{45:122,85:93,86:ot,87:st,89:ct,90:lt},{45:123,85:93,86:ot,87:st,89:ct,90:lt},{45:124,85:93,86:ot,87:st,89:ct,90:lt},{45:125,85:93,86:ot,87:st,89:ct,90:lt},{45:126,85:93,86:ot,87:st,89:ct,90:lt},{45:127,85:93,86:ot,87:st,89:ct,90:lt},{30:128,39:58,40:70,42:71,44:v,46:_,47:x,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt},{15:[1,130],43:[1,129]},{45:131,85:93,86:ot,87:st,89:ct,90:lt},{45:132,85:93,86:ot,87:st,89:ct,90:lt},{45:133,85:93,86:ot,87:st,89:ct,90:lt},{45:134,85:93,86:ot,87:st,89:ct,90:lt},{45:135,85:93,86:ot,87:st,89:ct,90:lt},{45:136,85:93,86:ot,87:st,89:ct,90:lt},{45:137,85:93,86:ot,87:st,89:ct,90:lt},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},t(ht,[2,9]),{14:142,21:f},{21:[2,13]},{1:[2,15]},t(nt,[2,22]),t(it,[2,24],{31:31,29:143,32:p,33:g,34:y,36:b,38:m}),t(nt,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:p,33:g,34:y,36:b,38:m,44:v,46:_,47:x,48:k,49:w,50:T,51:C,54:E,55:S,56:A,57:O,58:L,59:B,60:D,61:M,62:I,63:N,64:F,65:j,66:R,67:P,68:$,69:z,70:Y,71:U,72:W,73:q,74:H,75:V,76:G,77:X,78:K,79:Q,80:Z,81:J,82:tt,83:et,84:rt}),t(at,[2,28]),t(at,[2,29]),t(ut,[2,46]),t(dt,[2,78],{85:93,45:145,86:ot,87:st,89:ct,90:lt}),t(ft,[2,80]),{88:[1,146]},t(ft,[2,82]),t(ft,[2,83]),t(ut,[2,47]),t(ut,[2,48]),t(ut,[2,49]),t(ut,[2,50]),t(ut,[2,51]),t(ut,[2,52]),t(ut,[2,53]),t(ut,[2,54]),t(ut,[2,55]),t(ut,[2,56]),t(ut,[2,57]),t(ut,[2,58]),t(ut,[2,59]),t(ut,[2,60]),t(ut,[2,61]),t(ut,[2,62]),t(ut,[2,63]),t(ut,[2,64]),t(ut,[2,65]),t(ut,[2,67]),t(ut,[2,68]),t(ut,[2,69]),t(ut,[2,70]),t(ut,[2,71]),t(ut,[2,72]),t(ut,[2,73]),t(ut,[2,74]),t(ut,[2,75]),t(ut,[2,76]),t(ut,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},t(pt,[2,35]),t(pt,[2,36]),t(pt,[2,37]),t(pt,[2,38]),t(pt,[2,39]),t(pt,[2,40]),t(pt,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},t(it,[2,25]),t(nt,[2,45]),t(dt,[2,79]),t(ft,[2,81]),t(ut,[2,31]),t(ut,[2,42]),t(gt,[2,32]),t(gt,[2,33],{15:[1,152]}),t(ht,[2,10]),t(gt,[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(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},bt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,r,n){switch(r){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:break;case 19:c;break;case 20:return 15;case 21:break;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"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:case 58:return this.begin("rel_u"),76;case 59:case 60:return this.begin("rel_d"),77;case 61:case 62:return this.begin("rel_l"),78;case 63:case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"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 mt(){this.yy={}}return yt.lexer=bt,mt.prototype=yt,yt.Parser=mt,new mt}();fi.parser=fi;var pi,gi=fi,yi=function(t){return null!==t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)},bi=[],mi=[""],vi="global",_i="",xi=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ki=[],wi="",Ti=!1,Ci=4,Ei=2,Si=function(t){return null==t?bi:bi.filter((function(e){return e.parentBoundary===t}))},Ai=function(){return Ti},Oi={addPersonOrSystem:function(t,e,r,i,a,o,s){if(null!==e&&null!==r){var c={},l=bi.find((function(t){return t.alias===e}));if(l&&e===l.alias?c=l:(c.alias=e,bi.push(c)),c.label=null==r?{text:""}:{text:r},null==i)c.descr={text:""};else if("object"===Object(n.a)(i)){var h=Object(u.a)(Object.entries(i)[0],2),d=h[0],f=h[1];c[d]={text:f}}else c.descr={text:i};if("object"===Object(n.a)(a)){var p=Object(u.a)(Object.entries(a)[0],2),g=p[0],y=p[1];c[g]=y}else c.sprite=a;if("object"===Object(n.a)(o)){var b=Object(u.a)(Object.entries(o)[0],2),m=b[0],v=b[1];c[m]=v}else c.tags=o;if("object"===Object(n.a)(s)){var _=Object(u.a)(Object.entries(s)[0],2),x=_[0],k=_[1];c[x]=k}else c.link=s;c.typeC4Shape={text:t},c.parentBoundary=vi,c.wrap=Ai()}},addPersonOrSystemBoundary:function(t,e,r,i,a){if(null!==t&&null!==e){var o={},s=xi.find((function(e){return e.alias===t}));if(s&&t===s.alias?o=s:(o.alias=t,xi.push(o)),o.label=null==e?{text:""}:{text:e},null==r)o.type={text:"system"};else if("object"===Object(n.a)(r)){var c=Object(u.a)(Object.entries(r)[0],2),l=c[0],h=c[1];o[l]={text:h}}else o.type={text:r};if("object"===Object(n.a)(i)){var d=Object(u.a)(Object.entries(i)[0],2),f=d[0],p=d[1];o[f]=p}else o.tags=i;if("object"===Object(n.a)(a)){var g=Object(u.a)(Object.entries(a)[0],2),y=g[0],b=g[1];o[y]=b}else o.link=a;o.parentBoundary=vi,o.wrap=Ai(),_i=vi,vi=t,mi.push(_i)}},addContainer:function(t,e,r,i,a,o,s,c){if(null!==e&&null!==r){var l={},h=bi.find((function(t){return t.alias===e}));if(h&&e===h.alias?l=h:(l.alias=e,bi.push(l)),l.label=null==r?{text:""}:{text:r},null==i)l.techn={text:""};else if("object"===Object(n.a)(i)){var d=Object(u.a)(Object.entries(i)[0],2),f=d[0],p=d[1];l[f]={text:p}}else l.techn={text:i};if(null==a)l.descr={text:""};else if("object"===Object(n.a)(a)){var g=Object(u.a)(Object.entries(a)[0],2),y=g[0],b=g[1];l[y]={text:b}}else l.descr={text:a};if("object"===Object(n.a)(o)){var m=Object(u.a)(Object.entries(o)[0],2),v=m[0],_=m[1];l[v]=_}else l.sprite=o;if("object"===Object(n.a)(s)){var x=Object(u.a)(Object.entries(s)[0],2),k=x[0],w=x[1];l[k]=w}else l.tags=s;if("object"===Object(n.a)(c)){var T=Object(u.a)(Object.entries(c)[0],2),C=T[0],E=T[1];l[C]=E}else l.link=c;l.wrap=Ai(),l.typeC4Shape={text:t},l.parentBoundary=vi}},addContainerBoundary:function(t,e,r,i,a){if(null!==t&&null!==e){var o={},s=xi.find((function(e){return e.alias===t}));if(s&&t===s.alias?o=s:(o.alias=t,xi.push(o)),o.label=null==e?{text:""}:{text:e},null==r)o.type={text:"container"};else if("object"===Object(n.a)(r)){var c=Object(u.a)(Object.entries(r)[0],2),l=c[0],h=c[1];o[l]={text:h}}else o.type={text:r};if("object"===Object(n.a)(i)){var d=Object(u.a)(Object.entries(i)[0],2),f=d[0],p=d[1];o[f]=p}else o.tags=i;if("object"===Object(n.a)(a)){var g=Object(u.a)(Object.entries(a)[0],2),y=g[0],b=g[1];o[y]=b}else o.link=a;o.parentBoundary=vi,o.wrap=Ai(),_i=vi,vi=t,mi.push(_i)}},addComponent:function(t,e,r,i,a,o,s,c){if(null!==e&&null!==r){var l={},h=bi.find((function(t){return t.alias===e}));if(h&&e===h.alias?l=h:(l.alias=e,bi.push(l)),l.label=null==r?{text:""}:{text:r},null==i)l.techn={text:""};else if("object"===Object(n.a)(i)){var d=Object(u.a)(Object.entries(i)[0],2),f=d[0],p=d[1];l[f]={text:p}}else l.techn={text:i};if(null==a)l.descr={text:""};else if("object"===Object(n.a)(a)){var g=Object(u.a)(Object.entries(a)[0],2),y=g[0],b=g[1];l[y]={text:b}}else l.descr={text:a};if("object"===Object(n.a)(o)){var m=Object(u.a)(Object.entries(o)[0],2),v=m[0],_=m[1];l[v]=_}else l.sprite=o;if("object"===Object(n.a)(s)){var x=Object(u.a)(Object.entries(s)[0],2),k=x[0],w=x[1];l[k]=w}else l.tags=s;if("object"===Object(n.a)(c)){var T=Object(u.a)(Object.entries(c)[0],2),C=T[0],E=T[1];l[C]=E}else l.link=c;l.wrap=Ai(),l.typeC4Shape={text:t},l.parentBoundary=vi}},addDeploymentNode:function(t,e,r,i,a,o,s,c){if(null!==e&&null!==r){var l={},h=xi.find((function(t){return t.alias===e}));if(h&&e===h.alias?l=h:(l.alias=e,xi.push(l)),l.label=null==r?{text:""}:{text:r},null==i)l.type={text:"node"};else if("object"===Object(n.a)(i)){var d=Object(u.a)(Object.entries(i)[0],2),f=d[0],p=d[1];l[f]={text:p}}else l.type={text:i};if(null==a)l.descr={text:""};else if("object"===Object(n.a)(a)){var g=Object(u.a)(Object.entries(a)[0],2),y=g[0],b=g[1];l[y]={text:b}}else l.descr={text:a};if("object"===Object(n.a)(s)){var m=Object(u.a)(Object.entries(s)[0],2),v=m[0],_=m[1];l[v]=_}else l.tags=s;if("object"===Object(n.a)(c)){var x=Object(u.a)(Object.entries(c)[0],2),k=x[0],w=x[1];l[k]=w}else l.link=c;l.nodeType=t,l.parentBoundary=vi,l.wrap=Ai(),_i=vi,vi=e,mi.push(_i)}},popBoundaryParseStack:function(){vi=_i,mi.pop(),_i=mi.pop(),mi.push(_i)},addRel:function(t,e,r,i,a,o,s,c,l){if(null!=t&&null!=e&&null!=r&&null!=i){var h={},d=ki.find((function(t){return t.from===e&&t.to===r}));if(d?h=d:ki.push(h),h.type=t,h.from=e,h.to=r,h.label={text:i},null==a)h.techn={text:""};else if("object"===Object(n.a)(a)){var f=Object(u.a)(Object.entries(a)[0],2),p=f[0],g=f[1];h[p]={text:g}}else h.techn={text:a};if(null==o)h.descr={text:""};else if("object"===Object(n.a)(o)){var y=Object(u.a)(Object.entries(o)[0],2),b=y[0],m=y[1];h[b]={text:m}}else h.descr={text:o};if("object"===Object(n.a)(s)){var v=Object(u.a)(Object.entries(s)[0],2),_=v[0],x=v[1];h[_]=x}else h.sprite=s;if("object"===Object(n.a)(c)){var k=Object(u.a)(Object.entries(c)[0],2),w=k[0],T=k[1];h[w]=T}else h.tags=c;if("object"===Object(n.a)(l)){var C=Object(u.a)(Object.entries(l)[0],2),E=C[0],S=C[1];h[E]=S}else h.link=l;h.wrap=Ai()}},updateElStyle:function(t,e,r,i,a,o,s,c,l,h,d){var f=bi.find((function(t){return t.alias===e}));if(void 0!==f||void 0!==(f=xi.find((function(t){return t.alias===e})))){if(null!=r)if("object"===Object(n.a)(r)){var p=Object(u.a)(Object.entries(r)[0],2),g=p[0],y=p[1];f[g]=y}else f.bgColor=r;if(null!=i)if("object"===Object(n.a)(i)){var b=Object(u.a)(Object.entries(i)[0],2),m=b[0],v=b[1];f[m]=v}else f.fontColor=i;if(null!=a)if("object"===Object(n.a)(a)){var _=Object(u.a)(Object.entries(a)[0],2),x=_[0],k=_[1];f[x]=k}else f.borderColor=a;if(null!=o)if("object"===Object(n.a)(o)){var w=Object(u.a)(Object.entries(o)[0],2),T=w[0],C=w[1];f[T]=C}else f.shadowing=o;if(null!=s)if("object"===Object(n.a)(s)){var E=Object(u.a)(Object.entries(s)[0],2),S=E[0],A=E[1];f[S]=A}else f.shape=s;if(null!=c)if("object"===Object(n.a)(c)){var O=Object(u.a)(Object.entries(c)[0],2),L=O[0],B=O[1];f[L]=B}else f.sprite=c;if(null!=l)if("object"===Object(n.a)(l)){var D=Object(u.a)(Object.entries(l)[0],2),M=D[0],I=D[1];f[M]=I}else f.techn=l;if(null!=h)if("object"===Object(n.a)(h)){var N=Object(u.a)(Object.entries(h)[0],2),F=N[0],j=N[1];f[F]=j}else f.legendText=h;if(null!=d)if("object"===Object(n.a)(d)){var R=Object(u.a)(Object.entries(d)[0],2),P=R[0],$=R[1];f[P]=$}else f.legendSprite=d}},updateRelStyle:function(t,e,r,i,a,o,s){var c=ki.find((function(t){return t.from===e&&t.to===r}));if(void 0!==c){if(null!=i)if("object"===Object(n.a)(i)){var l=Object(u.a)(Object.entries(i)[0],2),h=l[0],d=l[1];c[h]=d}else c.textColor=i;if(null!=a)if("object"===Object(n.a)(a)){var f=Object(u.a)(Object.entries(a)[0],2),p=f[0],g=f[1];c[p]=g}else c.lineColor=a;if(null!=o)if("object"===Object(n.a)(o)){var y=Object(u.a)(Object.entries(o)[0],2),b=y[0],m=y[1];c[b]=parseInt(m)}else c.offsetX=parseInt(o);if(null!=s)if("object"===Object(n.a)(s)){var v=Object(u.a)(Object.entries(s)[0],2),_=v[0],x=v[1];c[_]=parseInt(x)}else c.offsetY=parseInt(s)}},updateLayoutConfig:function(t,e,r){var i=Ci,a=Ei;if("object"===Object(n.a)(e)){var o=Object.values(e)[0];i=parseInt(o)}else i=parseInt(e);if("object"===Object(n.a)(r)){var s=Object.values(r)[0];a=parseInt(s)}else a=parseInt(r);i>=1&&(Ci=i),a>=1&&(Ei=a)},autoWrap:Ai,setWrap:function(t){Ti=t},getC4ShapeArray:Si,getC4Shape:function(t){return bi.find((function(e){return e.alias===t}))},getC4ShapeKeys:function(t){return Object.keys(Si(t))},getBoundarys:function(t){return null==t?xi:xi.filter((function(e){return e.parentBoundary===t}))},getCurrentBoundaryParse:function(){return vi},getParentBoundaryParse:function(){return _i},getRels:function(){return ki},getTitle:function(){return wi},getC4Type:function(){return pi},getC4ShapeInRow:function(){return Ci},getC4BoundaryInRow:function(){return Ei},setAccTitle:hn,getAccTitle:dn,getAccDescription:pn,setAccDescription:fn,parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().c4},clear:function(){bi=[],xi=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],_i="",vi="global",mi=[""],ki=[],mi=[""],wi="",Ti=!1,Ci=4,Ei=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(t){var e=it(t,Fr());wi=e},setC4Type:function(t){var e=it(t,Fr());pi=e}},Li=function(t,e){var r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(var n in e.attrs)r.attr(n,e.attrs[n]);return"undefined"!==e.class&&r.attr("class",e.class),r},Bi=function(t,e,r,n,i,a){var o=t.append("image");o.attr("width",e),o.attr("height",r),o.attr("x",n),o.attr("y",i);var s=a.startsWith("data:image/png;base64")?a:Object(v.sanitizeUrl)(a);o.attr("xlink:href",s)},Di=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Mi=function(t,e){return{fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}},Ii=function(){function t(t,e,r,i,a,o,s){n(e.append("text").attr("x",r+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,r,i,a,o,s,c){for(var l=c.fontSize,u=c.fontFamily,h=c.fontWeight,d=t.split(ut.lineBreakRegex),f=0;f<d.length;f++){var p=f*l-l*(d.length-1)/2,g=e.append("text").attr("x",r+a/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",l).style("font-weight",h).style("font-family",u);g.append("tspan").attr("dy",p).text(d[f]).attr("alignment-baseline","mathematical"),n(g,s)}}function r(t,r,i,a,o,s,c,l){var u=r.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,0,c,l),n(h,c)}function n(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}return function(n){return"fo"===n.textPlacement?r:"old"===n.textPlacement?t:e}}(),Ni=function(t,e,r){var n=t.append("g"),i=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",o=e.fontColor?e.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(s={"stroke-width":1});var c={x:e.x,y:e.y,fill:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s};Li(n,c);var l=r.boundaryFont();l.fontWeight="bold",l.fontSize=l.fontSize+2,l.fontColor=o,Ii(r)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},l),e.type&&""!==e.type.text&&((l=r.boundaryFont()).fontColor=o,Ii(r)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},l)),e.descr&&""!==e.descr.text&&((l=r.boundaryFont()).fontSize=l.fontSize-2,l.fontColor=o,Ii(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},l))},Fi=function(t,e,r){var n,i=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],a=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],o=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="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":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var c=t.append("g");c.attr("class","person-man");var l=Di();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=e.x,l.y=e.y,l.fill=i,l.width=e.width,l.height=e.height,l.stroke=a,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},Li(c,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":c.append("path").attr("fill",i).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",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),c.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",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":c.append("path").attr("fill",i).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",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),c.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",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}var u=Mi(r,e.typeC4Shape.text);switch(c.append("text").attr("fill",o).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":Bi(c,48,48,e.x+e.width/2-24,e.y+e.image.Y,s)}var h=r[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=o,Ii(r)(e.label.text,c,e.x,e.y+e.label.Y,e.width,e.height,{fill:o},h),(h=r[e.typeC4Shape.text+"Font"]()).fontColor=o,e.techn&&""!==(null==(n=e.techn)?void 0:n.text)?Ii(r)(e.techn.text,c,e.x,e.y+e.techn.Y,e.width,e.height,{fill:o,"font-style":"italic"},h):e.type&&""!==e.type.text&&Ii(r)(e.type.text,c,e.x,e.y+e.type.Y,e.width,e.height,{fill:o,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&((h=r.personFont()).fontColor=o,Ii(r)(e.descr.text,c,e.x,e.y+e.descr.Y,e.width,e.height,{fill:o},h)),e.height},ji=function(t,e,r){var n,i=t.append("g"),a=0,o=Object(l.a)(e);try{for(o.s();!(n=o.n()).done;){var s=n.value,c=s.textColor?s.textColor:"#444444",u=s.lineColor?s.lineColor:"#444444",h=s.offsetX?parseInt(s.offsetX):0,d=s.offsetY?parseInt(s.offsetY):0;if(0===a){var f=i.append("line");f.attr("x1",s.startPoint.x),f.attr("y1",s.startPoint.y),f.attr("x2",s.endPoint.x),f.attr("y2",s.endPoint.y),f.attr("stroke-width","1"),f.attr("stroke",u),f.style("fill","none"),"rel_b"!==s.type&&f.attr("marker-end","url(#arrowhead)"),"birel"!==s.type&&"rel_b"!==s.type||f.attr("marker-start","url(#arrowend)"),a=-1}else{var p=i.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",u).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),"rel_b"!==s.type&&p.attr("marker-end","url(#arrowhead)"),"birel"!==s.type&&"rel_b"!==s.type||p.attr("marker-start","url(#arrowend)")}var g=r.messageFont();Ii(r)(s.label.text,i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+h,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+d,s.label.width,s.label.height,{fill:c},g),s.techn&&""!==s.techn.text&&(g=r.messageFont(),Ii(r)("["+s.techn.text+"]",i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+h,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+r.messageFontSize+5+d,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:c,"font-style":"italic"},g))}}catch(t){o.e(t)}finally{o.f()}},Ri=function(t){t.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")},Pi=function(t){t.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")},$i=function(t){t.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")},zi=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.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"),e.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")},Yi=function(t){t.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")},Ui=function(t){t.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")},Wi=function(t){t.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")},qi=(v.sanitizeUrl,0),Hi=0,Vi=4,Gi=2;fi.yy=Oi;var Xi={},Ki=g((function t(e){d(this,t),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(e.db.getConfig())}),[{key:"setData",value:function(t,e,r,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=r,this.nextData.stopy=this.data.stopy=n}},{key:"updateVal",value:function(t,e,r,n){void 0===t[e]?t[e]=r:t[e]=n(r,t[e])}},{key:"insert",value:function(t){this.nextData.cnt=this.nextData.cnt+1;var e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,r=e+t.width,n=this.nextData.starty+2*t.margin,i=n+t.height;(e>=this.data.widthLimit||r>=this.data.widthLimit||this.nextData.cnt>Vi)&&(e=this.nextData.startx+t.margin+Xi.nextLinePaddingX,n=this.nextData.stopy+2*t.margin,this.nextData.stopx=r=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=n+t.height,this.nextData.cnt=1),t.x=e,t.y=n,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",r,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",r,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}},{key:"init",value:function(t){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(t.db.getConfig())}},{key:"bumpLastMargin",value:function(t){this.data.stopx+=t,this.data.stopy+=t}}]),Qi=function(t){er(Xi,t),t.fontFamily&&(Xi.personFontFamily=Xi.systemFontFamily=Xi.messageFontFamily=t.fontFamily),t.fontSize&&(Xi.personFontSize=Xi.systemFontSize=Xi.messageFontSize=t.fontSize),t.fontWeight&&(Xi.personFontWeight=Xi.systemFontWeight=Xi.messageFontWeight=t.fontWeight)},Zi=function(t,e){return{fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}},Ji=function(t){return{fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}},ta=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}};function ea(t,e,r,n,i){if(!e[t].width)if(r)e[t].text=fr(e[t].text,i,n),e[t].textLines=e[t].text.split(ut.lineBreakRegex).length,e[t].width=i,e[t].height=gr(e[t].text,n);else{var a=e[t].text.split(ut.lineBreakRegex);e[t].textLines=a.length;var o=0;e[t].height=0,e[t].width=0;var s,c=Object(l.a)(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;e[t].width=Math.max(yr(u,n),e[t].width),o=gr(u,n),e[t].height=e[t].height+o}}catch(t){c.e(t)}finally{c.f()}}}var ra=function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=Xi.c4ShapeMargin-35;var n=e.wrap&&Xi.wrap,i=Ji(Xi);i.fontSize=i.fontSize+2,i.fontWeight="bold",ea("label",e,n,i,yr(e.label.text,i)),Ni(t,e,Xi)},na=function(t,e,r,n){var i,a=0,o=Object(l.a)(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;a=0;var c=r[s],u=Zi(Xi,c.typeC4Shape.text);switch(u.fontSize=u.fontSize-2,c.typeC4Shape.width=yr("<<"+c.typeC4Shape.text+">>",u),c.typeC4Shape.height=u.fontSize+2,c.typeC4Shape.Y=Xi.c4ShapePadding,a=c.typeC4Shape.Y+c.typeC4Shape.height-4,c.image={width:0,height:0,Y:0},c.typeC4Shape.text){case"person":case"external_person":c.image.width=48,c.image.height=48,c.image.Y=a,a=c.image.Y+c.image.height}c.sprite&&(c.image.width=48,c.image.height=48,c.image.Y=a,a=c.image.Y+c.image.height);var h=c.wrap&&Xi.wrap,d=Xi.width-2*Xi.c4ShapePadding,f=Zi(Xi,c.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",ea("label",c,h,f,d),c.label.Y=a+8,a=c.label.Y+c.label.height,c.type&&""!==c.type.text)c.type.text="["+c.type.text+"]",ea("type",c,h,Zi(Xi,c.typeC4Shape.text),d),c.type.Y=a+5,a=c.type.Y+c.type.height;else if(c.techn&&""!==c.techn.text){c.techn.text="["+c.techn.text+"]",ea("techn",c,h,Zi(Xi,c.techn.text),d),c.techn.Y=a+5,a=c.techn.Y+c.techn.height}var p=a,g=c.label.width;if(c.descr&&""!==c.descr.text)ea("descr",c,h,Zi(Xi,c.typeC4Shape.text),d),c.descr.Y=a+20,a=c.descr.Y+c.descr.height,g=Math.max(c.label.width,c.descr.width),p=a-5*c.descr.textLines;g+=Xi.c4ShapePadding,c.width=Math.max(c.width||Xi.width,g,Xi.width),c.height=Math.max(c.height||Xi.height,p,Xi.height),c.margin=c.margin||Xi.c4ShapeMargin,t.insert(c),Fi(e,c,Xi)}}catch(t){o.e(t)}finally{o.f()}t.bumpLastMargin(Xi.c4ShapeMargin)},ia=g((function t(e,r){d(this,t),this.x=e,this.y=r})),aa=function(t,e){var r=t.x,n=t.y,i=e.x,a=e.y,o=r+t.width/2,s=n+t.height/2,c=Math.abs(r-i),l=Math.abs(n-a),u=l/c,h=t.height/t.width,d=null;return n==a&&r<i?d=new ia(r+t.width,s):n==a&&r>i?d=new ia(r,s):r==i&&n<a?d=new ia(o,n+t.height):r==i&&n>a&&(d=new ia(o,n)),r>i&&n<a?d=h>=u?new ia(r,s+u*t.width/2):new ia(o-c/l*t.height/2,n+t.height):r<i&&n<a?d=h>=u?new ia(r+t.width,s+u*t.width/2):new ia(o+c/l*t.height/2,n+t.height):r<i&&n>a?d=h>=u?new ia(r+t.width,s-u*t.width/2):new ia(o+t.height/2*c/l,n):r>i&&n>a&&(d=h>=u?new ia(r,s-t.width/2*u):new ia(o-t.height/2*c/l,n)),d},oa=function(t,e){var r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;var n=aa(t,r);return r.x=t.x+t.width/2,r.y=t.y+t.height/2,{startPoint:n,endPoint:aa(e,r)}},sa=function(t,e,r,n){var i,a=0,o=Object(l.a)(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;a+=1;var c=s.wrap&&Xi.wrap,u=ta(Xi);"C4Dynamic"===n.db.getC4Type()&&(s.label.text=a+": "+s.label.text);var h=yr(s.label.text,u);ea("label",s,c,u,h),s.techn&&""!==s.techn.text&&ea("techn",s,c,u,h=yr(s.techn.text,u)),s.descr&&""!==s.descr.text&&ea("descr",s,c,u,h=yr(s.descr.text,u));var d=r(s.from),f=r(s.to),p=oa(d,f);s.startPoint=p.startPoint,s.endPoint=p.endPoint}}catch(t){o.e(t)}finally{o.f()}ji(t,e,Xi)};function ca(t,e,r,n,i){var a=new Ki(i);a.data.widthLimit=r.data.widthLimit/Math.min(Gi,n.length);var o,s=Object(l.a)(n.entries());try{for(s.s();!(o=s.n()).done;){var c=Object(u.a)(o.value,2),h=c[0],d=c[1],f=0;d.image={width:0,height:0,Y:0},d.sprite&&(d.image.width=48,d.image.height=48,d.image.Y=f,f=d.image.Y+d.image.height);var p=d.wrap&&Xi.wrap,g=Ji(Xi);if(g.fontSize=g.fontSize+2,g.fontWeight="bold",ea("label",d,p,g,a.data.widthLimit),d.label.Y=f+8,f=d.label.Y+d.label.height,d.type&&""!==d.type.text)d.type.text="["+d.type.text+"]",ea("type",d,p,Ji(Xi),a.data.widthLimit),d.type.Y=f+5,f=d.type.Y+d.type.height;if(d.descr&&""!==d.descr.text){var y=Ji(Xi);y.fontSize=y.fontSize-2,ea("descr",d,p,y,a.data.widthLimit),d.descr.Y=f+20,f=d.descr.Y+d.descr.height}if(0==h||h%Gi==0){var b=r.data.startx+Xi.diagramMarginX,m=r.data.stopy+Xi.diagramMarginY+f;a.setData(b,b,m,m)}else{var v=a.data.stopx!==a.data.startx?a.data.stopx+Xi.diagramMarginX:a.data.startx,_=a.data.starty;a.setData(v,v,_,_)}a.name=d.alias;var x=i.db.getC4ShapeArray(d.alias),k=i.db.getC4ShapeKeys(d.alias);k.length>0&&na(a,t,x,k),e=d.alias;var w=i.db.getBoundarys(e);w.length>0&&ca(t,e,a,w,i),"global"!==d.alias&&ra(t,d,a),r.data.stopy=Math.max(a.data.stopy+Xi.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+Xi.c4ShapeMargin,r.data.stopx),qi=Math.max(qi,r.data.stopx),Hi=Math.max(Hi,r.data.stopy)}}catch(t){s.e(t)}finally{s.f()}}var la={drawPersonOrSystemArray:na,drawBoundary:ra,setConf:Qi,draw:function(t,e,r,n){Xi=Fr().c4;var i,a=Fr().securityLevel;"sandbox"===a&&(i=Object(_.F)("#i"+e));var o="sandbox"===a?Object(_.F)(i.nodes()[0].contentDocument.body):Object(_.F)("body"),s=n.db;n.db.setWrap(Xi.wrap),Vi=s.getC4ShapeInRow(),Gi=s.getC4BoundaryInRow(),tt.debug("C:".concat(JSON.stringify(Xi,null,2)));var c="sandbox"===a?o.select('[id="'.concat(e,'"]')):Object(_.F)('[id="'.concat(e,'"]'));Ui(c),Yi(c),Wi(c);var l=new Ki(n);l.setData(Xi.diagramMarginX,Xi.diagramMarginX,Xi.diagramMarginY,Xi.diagramMarginY),l.data.widthLimit=screen.availWidth,qi=Xi.diagramMarginX,Hi=Xi.diagramMarginY;var u=n.db.getTitle();ca(c,"",l,n.db.getBoundarys(""),n),Ri(c),Pi(c),zi(c),$i(c),sa(c,n.db.getRels(),n.db.getC4Shape,n),l.data.stopx=qi,l.data.stopy=Hi;var h=l.data,d=h.stopy-h.starty+2*Xi.diagramMarginY,f=h.stopx-h.startx+2*Xi.diagramMarginX;u&&c.append("text").text(u).attr("x",(h.stopx-h.startx)/2-4*Xi.diagramMarginX).attr("y",h.starty+Xi.diagramMarginY),Ur(c,d,f,Xi.useMaxWidth);var p=u?60:0;c.attr("viewBox",h.startx-Xi.diagramMarginX+" -"+(Xi.diagramMarginY+p)+" "+f+" "+(d+p)),tt.debug("models:",h)}},ua=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,3],r=[1,7],n=[1,8],i=[1,9],a=[1,10],o=[1,13],s=[1,12],c=[1,16,25],l=[1,20],u=[1,32],h=[1,33],d=[1,34],f=[1,36],p=[1,39],g=[1,37],y=[1,38],b=[1,44],m=[1,45],v=[1,40],_=[1,41],x=[1,42],k=[1,43],w=[1,48],T=[1,49],C=[1,50],E=[1,51],S=[16,25],A=[1,65],O=[1,66],L=[1,67],B=[1,68],D=[1,69],M=[1,70],I=[1,71],N=[1,80],F=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],j=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],R=[5,8,9,10,11,16,19,23,25],P=[54,88,89,90,91],$=[54,65,66,88,89,90,91],z=[54,60,61,62,63,64,88,89,90,91],Y=[16,25,32],U=[1,107],W={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,noteStatement: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:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$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",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"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,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,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],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 5:n.setDirection("TB");break;case 6:n.setDirection("BT");break;case 7:n.setDirection("RL");break;case 8:n.setDirection("LR");break;case 12:n.parseDirective("%%{","open_directive");break;case 13:n.parseDirective(a[s],"type_directive");break;case 14:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 15:n.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=a[s];break;case 22:this.$=a[s-1]+a[s];break;case 23:case 24:this.$=a[s-1]+"~"+a[s];break;case 25:n.addRelation(a[s]);break;case 26:a[s-1].title=n.cleanupLabel(a[s]),n.addRelation(a[s-1]);break;case 35:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 36:case 37:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 38:n.addClass(a[s]);break;case 39:n.addClass(a[s-2]),n.setCssClass(a[s-2],a[s]);break;case 40:n.addClass(a[s-3]),n.addMembers(a[s-3],a[s-1]);break;case 41:n.addClass(a[s-5]),n.setCssClass(a[s-5],a[s-3]),n.addMembers(a[s-5],a[s-1]);break;case 42:n.addAnnotation(a[s],a[s-2]);break;case 43:this.$=[a[s]];break;case 44:a[s].push(a[s-1]),this.$=a[s];break;case 45:break;case 46:n.addMember(a[s-1],n.cleanupLabel(a[s]));break;case 47:case 48:break;case 49:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 51:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 52:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 53:n.addNote(a[s],a[s-1]);break;case 54:n.addNote(a[s]);break;case 55:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 56:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 57:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 58:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 59:this.$=n.relationType.AGGREGATION;break;case 60:this.$=n.relationType.EXTENSION;break;case 61:this.$=n.relationType.COMPOSITION;break;case 62:this.$=n.relationType.DEPENDENCY;break;case 63:this.$=n.relationType.LOLLIPOP;break;case 64:this.$=n.lineType.LINE;break;case 65:this.$=n.lineType.DOTTED_LINE;break;case 66:case 72:this.$=a[s-2],n.setClickEvent(a[s-1],a[s]);break;case 67:case 73:this.$=a[s-3],n.setClickEvent(a[s-2],a[s-1]),n.setTooltip(a[s-2],a[s]);break;case 68:case 76:this.$=a[s-2],n.setLink(a[s-1],a[s]);break;case 69:this.$=a[s-3],n.setLink(a[s-2],a[s-1],a[s]);break;case 70:case 78:this.$=a[s-3],n.setLink(a[s-2],a[s-1]),n.setTooltip(a[s-2],a[s]);break;case 71:case 79:this.$=a[s-4],n.setLink(a[s-3],a[s-2],a[s]),n.setTooltip(a[s-3],a[s-1]);break;case 74:this.$=a[s-3],n.setClickEvent(a[s-2],a[s-1],a[s]);break;case 75:this.$=a[s-4],n.setClickEvent(a[s-3],a[s-2],a[s-1]),n.setTooltip(a[s-3],a[s]);break;case 77:this.$=a[s-3],n.setLink(a[s-2],a[s-1],a[s]);break;case 80:n.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:e,6:4,7:5,8:r,9:n,10:i,11:a,12:6,13:11,19:o,23:s},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:e,6:4,7:5,8:r,9:n,10:i,11:a,12:6,13:11,19:o,23:s},{1:[2,9]},t(c,[2,5]),t(c,[2,6]),t(c,[2,7]),t(c,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:l},t([17,22],[2,13]),{6:31,7:30,8:r,9:n,10:i,11:a,13:11,19:o,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:h,43:d,44:f,49:p,51:g,52:y,55:b,57:m,67:v,68:_,70:x,74:k,88:w,89:T,90:C,91:E},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},t(S,[2,25],{32:[1,57]}),t(S,[2,27]),t(S,[2,28]),t(S,[2,29]),t(S,[2,30]),t(S,[2,31]),t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),{40:[1,58]},{42:[1,59]},t(S,[2,37]),t(S,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:A,61:O,62:L,63:B,64:D,65:M,66:I}),{27:72,28:46,29:47,88:w,89:T,90:C,91:E},t(S,[2,47]),t(S,[2,48]),{28:73,88:w,89:T,90:C},{27:74,28:46,29:47,88:w,89:T,90:C,91:E},{27:75,28:46,29:47,88:w,89:T,90:C,91:E},{27:76,28:46,29:47,88:w,89:T,90:C,91:E},{54:[1,77]},{27:78,28:46,29:47,88:w,89:T,90:C,91:E},{54:N,56:79},t(F,[2,20],{28:46,29:47,27:81,30:[1,82],88:w,89:T,90:C,91:E}),t(F,[2,21],{30:[1,83]}),t(j,[2,94]),t(j,[2,95]),t(j,[2,96]),t([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),t(R,[2,10]),{15:84,22:l},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:r,9:n,10:i,11:a,13:11,19:o,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:h,43:d,44:f,49:p,51:g,52:y,55:b,57:m,67:v,68:_,70:x,74:k,88:w,89:T,90:C,91:E},t(S,[2,26]),t(S,[2,35]),t(S,[2,36]),{27:86,28:46,29:47,54:[1,87],88:w,89:T,90:C,91:E},{53:88,58:63,59:64,60:A,61:O,62:L,63:B,64:D,65:M,66:I},t(S,[2,46]),{59:89,65:M,66:I},t(P,[2,58],{58:90,60:A,61:O,62:L,63:B,64:D}),t($,[2,59]),t($,[2,60]),t($,[2,61]),t($,[2,62]),t($,[2,63]),t(z,[2,64]),t(z,[2,65]),t(S,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:w,89:T,90:C},{54:N,56:99},t(S,[2,54]),t(S,[2,98]),t(F,[2,22]),t(F,[2,23]),t(F,[2,24]),{16:[1,100]},{25:[2,19]},t(Y,[2,49]),{27:101,28:46,29:47,88:w,89:T,90:C,91:E},{27:102,28:46,29:47,54:[1,103],88:w,89:T,90:C,91:E},t(P,[2,57],{58:104,60:A,61:O,62:L,63:B,64:D}),t(P,[2,56]),{28:105,88:w,89:T,90:C},{47:106,51:U},{27:108,28:46,29:47,88:w,89:T,90:C,91:E},t(S,[2,66],{54:[1,109]}),t(S,[2,68],{54:[1,111],69:[1,110]}),t(S,[2,72],{54:[1,112],72:[1,113]}),t(S,[2,76],{54:[1,115],69:[1,114]}),t(S,[2,80]),t(S,[2,53]),t(R,[2,11]),t(Y,[2,51]),t(Y,[2,50]),{27:116,28:46,29:47,88:w,89:T,90:C,91:E},t(P,[2,55]),t(S,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:U},t(S,[2,42]),t(S,[2,67]),t(S,[2,69]),t(S,[2,70],{69:[1,120]}),t(S,[2,73]),t(S,[2,74],{54:[1,121]}),t(S,[2,77]),t(S,[2,78],{69:[1,122]}),t(Y,[2,52]),{47:123,51:U},t(S,[2,40]),{48:[2,44]},t(S,[2,71]),t(S,[2,75]),t(S,[2,79]),{48:[1,124]},t(S,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},q={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,r,n){switch(r){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:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;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:return 16;case 19:break;case 20:case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 27:break;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 73;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 54:this.popState();break;case 55:return 72;case 56:case 57:case 58:case 59:return 69;case 60:case 61:return 61;case 62:case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82: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)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{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:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,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],inclusive:!0}}};function H(){this.yy={}}return W.lexer=q,H.prototype=W,W.Parser=H,new H}();ua.parser=ua;var ha=ua,da=function(t,e){var r;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.class)?void 0:r.defaultRenderer)&&null!==t.match(/^\s*classDiagram/)},fa=function(t,e){var r;return null!==t.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(r=null==e?void 0:e.class)?void 0:r.defaultRenderer)||null!==t.match(/^\s*classDiagram-v2/)},pa="classid-",ga=[],ya={},ba=[],ma=0,va=[],_a=function(t){return ut.sanitizeText(t,Fr())},xa=function(t){var e="",r=t;if(t.indexOf("~")>0){var n=t.split("~");r=n[0],e=ut.sanitizeText(n[1],Fr())}return{className:r,type:e}},ka=function(t){var e=xa(t);void 0===ya[e.className]&&(ya[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:pa+e.className+"-"+ma},ma++)},wa=function(t){for(var e=0,r=Object.keys(ya);e<r.length;e++){var n=r[e];if(ya[n].id===t)return ya[n].domId}},Ta=function(t,e){var r=xa(t).className,n=ya[r];if("string"==typeof e){var i=e.trim();i.startsWith("<<")&&i.endsWith(">>")?n.annotations.push(_a(i.substring(2,i.length-2))):i.indexOf(")")>0?n.methods.push(_a(i)):i&&n.members.push(_a(i))}},Ca=function(t,e){t.split(",").forEach((function(t){var r=t;t[0].match(/\d/)&&(r=pa+r),void 0!==ya[r]&&ya[r].cssClasses.push(e)}))},Ea=function(t,e,r){var n=Fr(),i=t,a=wa(i);if("loose"===n.securityLevel&&void 0!==e&&void 0!==ya[i]){var o=[];if("string"==typeof r){o=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var s=0;s<o.length;s++){var c=o[s].trim();'"'===c.charAt(0)&&'"'===c.charAt(c.length-1)&&(c=c.substr(1,c.length-2)),o[s]=c}}0===o.length&&o.push(a),va.push((function(){var t=document.querySelector('[id="'.concat(a,'"]'));null!==t&&t.addEventListener("click",(function(){Cr.runFunc.apply(Cr,[e].concat(Object(h.a)(o)))}),!1)}))}},Sa=function(t){var e=Object(_.F)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Object(_.F)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(_.F)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Object(_.F)(this);if(null!==t.attr("title")){var r=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Object(_.F)(this).classed("hover",!1)}))};va.push(Sa);var Aa="TB",Oa={parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},setAccTitle:hn,getAccTitle:dn,getAccDescription:pn,setAccDescription:fn,getConfig:function(){return Fr().class},addClass:ka,bindFunctions:function(t){va.forEach((function(e){e(t)}))},clear:function(){ga=[],ya={},ba=[],(va=[]).push(Sa),un()},getClass:function(t){return ya[t]},getClasses:function(){return ya},getNotes:function(){return ba},addAnnotation:function(t,e){var r=xa(t).className;ya[r].annotations.push(e)},addNote:function(t,e){var r={id:"note".concat(ba.length),class:e,text:t};ba.push(r)},getRelations:function(){return ga},addRelation:function(t){tt.debug("Adding relation: "+JSON.stringify(t)),ka(t.id1),ka(t.id2),t.id1=xa(t.id1).className,t.id2=xa(t.id2).className,t.relationTitle1=ut.sanitizeText(t.relationTitle1.trim(),Fr()),t.relationTitle2=ut.sanitizeText(t.relationTitle2.trim(),Fr()),ga.push(t)},getDirection:function(){return Aa},setDirection:function(t){Aa=t},addMember:Ta,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((function(e){return Ta(t,e)})))},cleanupLabel:function(t){return":"===t.substring(0,1)?ut.sanitizeText(t.substr(1).trim(),Fr()):_a(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(t,e,r){t.split(",").forEach((function(t){Ea(t,e,r),ya[t].haveCallback=!0})),Ca(t,"clickable")},setCssClass:Ca,setLink:function(t,e,r){var n=Fr();t.split(",").forEach((function(t){var i=t;t[0].match(/\d/)&&(i=pa+i),void 0!==ya[i]&&(ya[i].link=Cr.formatUrl(e,n),"sandbox"===n.securityLevel?ya[i].linkTarget="_top":ya[i].linkTarget="string"==typeof r?_a(r):"_blank")})),Ca(t,"clickable")},getTooltip:function(t){return ya[t].tooltip},setTooltip:function(t,e){var r=Fr();t.split(",").forEach((function(t){void 0!==e&&(ya[t].tooltip=ut.sanitizeText(e,r))}))},lookUpDomId:wa,setDiagramTitle:gn,getDiagramTitle:yn},La=0,Ba=function(t){var e=t.match(/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/),r=t.match(/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/);return e&&!r?Da(e):r?Ma(r):Ia(t)},Da=function(t){var e="",r="";try{var n=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?lt(t[3].trim()):"",o=t[4]?t[4].trim():"",s=t[5]?t[5].trim():"";r=n+i+a+" "+o,e=Fa(s)}catch(e){r=t}return{displayText:r,cssStyle:e}},Ma=function(t){var e="",r="";try{var n=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?lt(t[3].trim()):"",o=t[4]?t[4].trim():"";r=n+i+"("+a+")"+(t[5]?" : "+lt(t[5]).trim():""),e=Fa(o)}catch(e){r=t}return{displayText:r,cssStyle:e}},Ia=function(t){var e="",r="",n="",i=t.indexOf("("),a=t.indexOf(")");if(i>1&&a>i&&a<=t.length){var o="",s="",c=t.substring(0,1);c.match(/\w/)?s=t.substring(0,i).trim():(c.match(/[#+~-]/)&&(o=c),s=t.substring(1,i).trim());var l=t.substring(i+1,a);t.substring(a+1,1),r=Fa(t.substring(a+1,a+2)),e=o+s+"("+lt(l.trim())+")",a<t.length&&(""!==(n=t.substring(a+2).trim())&&(e+=n=" : "+lt(n)))}else e=lt(t);return{displayText:e,cssStyle:r}},Na=function(t,e,r,n){var i=Ba(e),a=t.append("tspan").attr("x",n.padding).text(i.displayText);""!==i.cssStyle&&a.attr("style",i.cssStyle),r||a.attr("dy",n.textHeight)},Fa=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},ja=function(t,e,r,n){tt.debug("Rendering class ",e,r);var i,a=e.id,o={id:a,label:e.id,width:0,height:0},s=t.append("g").attr("id",n.db.lookUpDomId(a)).attr("class","classGroup");i=e.link?s.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):s.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var c=!0;e.annotations.forEach((function(t){var e=i.append("tspan").text("«"+t+"»");c||e.attr("dy",r.textHeight),c=!1}));var l=e.id;void 0!==e.type&&""!==e.type&&(l+="<"+e.type+">");var u=i.append("tspan").text(l).attr("class","title");c||u.attr("dy",r.textHeight);var h=i.node().getBBox().height,d=s.append("line").attr("x1",0).attr("y1",r.padding+h+r.dividerMargin/2).attr("y2",r.padding+h+r.dividerMargin/2),f=s.append("text").attr("x",r.padding).attr("y",h+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");c=!0,e.members.forEach((function(t){Na(f,t,c,r),c=!1}));var p=f.node().getBBox(),g=s.append("line").attr("x1",0).attr("y1",r.padding+h+r.dividerMargin+p.height).attr("y2",r.padding+h+r.dividerMargin+p.height),y=s.append("text").attr("x",r.padding).attr("y",h+2*r.dividerMargin+p.height+r.textHeight).attr("fill","white").attr("class","classText");c=!0,e.methods.forEach((function(t){Na(y,t,c,r),c=!1}));var b=s.node().getBBox(),m=" ";e.cssClasses.length>0&&(m+=e.cssClasses.join(" "));var v=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*r.padding).attr("height",b.height+r.padding+.5*r.dividerMargin).attr("class",m).node().getBBox().width;return i.node().childNodes.forEach((function(t){t.setAttribute("x",(v-t.getBBox().width)/2)})),e.tooltip&&i.insert("title").text(e.tooltip),d.attr("x2",v),g.attr("x2",v),o.width=v,o.height=b.height+r.padding+.5*r.dividerMargin,o},Ra=function(t,e,r,n,i){var a=function(t){switch(t){case i.db.relationType.AGGREGATION:return"aggregation";case i.db.relationType.EXTENSION:return"extension";case i.db.relationType.COMPOSITION:return"composition";case i.db.relationType.DEPENDENCY:return"dependency";case i.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var o,s,c=e.points,l=Object(_.y)().x((function(t){return t.x})).y((function(t){return t.y})).curve(_.d),u=t.append("path").attr("d",l(c)).attr("id","edge"+La).attr("class","relation"),h="";n.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==r.relation.lineType&&u.attr("class","relation dashed-line"),10==r.relation.lineType&&u.attr("class","relation dotted-line"),"none"!==r.relation.type1&&u.attr("marker-start","url("+h+"#"+a(r.relation.type1)+"Start)"),"none"!==r.relation.type2&&u.attr("marker-end","url("+h+"#"+a(r.relation.type2)+"End)");var d,f,p,g,y=e.points.length,b=Cr.calcLabelPosition(e.points);if(o=b.x,s=b.y,y%2!=0&&y>1){var m=Cr.calcCardinalityPosition("none"!==r.relation.type1,e.points,e.points[0]),v=Cr.calcCardinalityPosition("none"!==r.relation.type2,e.points,e.points[y-1]);tt.debug("cardinality_1_point "+JSON.stringify(m)),tt.debug("cardinality_2_point "+JSON.stringify(v)),d=m.x,f=m.y,p=v.x,g=v.y}if(void 0!==r.title){var x=t.append("g").attr("class","classLabel"),k=x.append("text").attr("class","label").attr("x",o).attr("y",s).attr("fill","red").attr("text-anchor","middle").text(r.title);window.label=k;var w=k.node().getBBox();x.insert("rect",":first-child").attr("class","box").attr("x",w.x-n.padding/2).attr("y",w.y-n.padding/2).attr("width",w.width+n.padding).attr("height",w.height+n.padding)}(tt.info("Rendering relation "+JSON.stringify(r)),void 0!==r.relationTitle1&&"none"!==r.relationTitle1)&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",d).attr("y",f).attr("fill","black").attr("font-size","6").text(r.relationTitle1);void 0!==r.relationTitle2&&"none"!==r.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",p).attr("y",g).attr("fill","black").attr("font-size","6").text(r.relationTitle2);La++},Pa=function(t,e,r,n){tt.debug("Rendering note ",e,r);var i=e.id,a={id:i,text:e.text,width:0,height:0},o=t.append("g").attr("id",i).attr("class","classGroup"),s=o.append("text").attr("y",r.textHeight+r.padding).attr("x",0),c=JSON.parse('"'.concat(e.text,'"')).split("\n");c.forEach((function(t){tt.debug("Adding line: ".concat(t)),s.append("tspan").text(t).attr("class","title").attr("dy",r.textHeight)}));var l=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",l.width+2*r.padding).attr("height",l.height+c.length*r.textHeight+r.padding+.5*r.dividerMargin).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(u-t.getBBox().width)/2)})),a.width=u,a.height=l.height+c.length*r.textHeight+r.padding+.5*r.dividerMargin,a},$a={},za=function(t){var e=Object.entries($a).find((function(e){return e[1].label===t}));if(e)return e[0]},Ya={draw:function(t,e,r,n){var i=Fr().class;$a={},tt.info("Rendering diagram "+t);var a,o=Fr().securityLevel;"sandbox"===o&&(a=Object(_.F)("#i"+e));var s="sandbox"===o?Object(_.F)(a.nodes()[0].contentDocument.body):Object(_.F)("body"),c=s.select("[id='".concat(e,"']"));!function(t){t.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"),t.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"),t.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"),t.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"),t.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"),t.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"),t.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"),t.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")}(c);var l=new F.a({multigraph:!0});l.setGraph({isMultiGraph:!0}),l.setDefaultEdgeLabel((function(){return{}}));for(var u=n.db.getClasses(),h=0,d=Object.keys(u);h<d.length;h++){var f=d[h],p=u[f],g=ja(c,p,i,n);$a[g.id]=g,l.setNode(g.id,g),tt.info("Org height: "+g.height)}n.db.getRelations().forEach((function(t){tt.info("tjoho"+za(t.id1)+za(t.id2)+JSON.stringify(t)),l.setEdge(za(t.id1),za(t.id2),{relation:t},t.title||"DEFAULT")})),n.db.getNotes().forEach((function(t){tt.debug("Adding note: ".concat(JSON.stringify(t)));var e=Pa(c,t,i,n);$a[e.id]=e,l.setNode(e.id,e),t.class&&t.class in u&&l.setEdge(t.id,za(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),Object(N.a)(l),l.nodes().forEach((function(t){void 0!==t&&void 0!==l.node(t)&&(tt.debug("Node "+t+": "+JSON.stringify(l.node(t))),s.select("#"+(n.db.lookUpDomId(t)||t)).attr("transform","translate("+(l.node(t).x-l.node(t).width/2)+","+(l.node(t).y-l.node(t).height/2)+" )"))})),l.edges().forEach((function(t){void 0!==t&&void 0!==l.edge(t)&&(tt.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(l.edge(t))),Ra(c,l.edge(t),l.edge(t).relation,i,n))}));var y=c.node().getBBox(),b=y.width+40,m=y.height+40;Ur(c,m,b,i.useMaxWidth);var v="".concat(y.x-20," ").concat(y.y-20," ").concat(b," ").concat(m);tt.debug("viewBox ".concat(v)),c.attr("viewBox",v)}},Ua={extension:function(t,e,r){tt.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).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")},lollipop:function(t,e){t.append("defs").append("marker").attr("id",e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 12 20").attr("refX",10).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"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).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(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).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(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-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")}},Wa=function(t,e,r,n){e.forEach((function(e){Ua[e](t,r,n)}))};var qa=function(t,e,r,i){var a=t||"";if("object"===Object(n.a)(a)&&(a=a[0]),ct(Fr().flowchart.htmlLabels))return a=a.replace(/\\n|\n/g,"<br />"),tt.info("vertexText"+a),function(t){var e=Object(_.F)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),n=t.label,i=t.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+n+"</span>"),function(t,e){e&&t.attr("style",e)}(r,t.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}({isNode:i,label:qd(a).replace(/fa[blrs]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")})),labelStyle:e.replace("fill:","color:")});var o=document.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("style",e.replace("color:","fill:"));var s;s="string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[];var c,u=Object(l.a)(s);try{for(u.s();!(c=u.n()).done;){var h=c.value,d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","0"),r?d.setAttribute("class","title-row"):d.setAttribute("class","row"),d.textContent=h.trim(),o.appendChild(d)}}catch(t){u.e(t)}finally{u.f()}return o},Ha=function(t,e,r,n){var i;i=r||"node default";var a,o=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=o.insert("g").attr("class","label").attr("style",e.labelStyle);a=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];var c=s.node().appendChild(qa(it(qd(a),Fr()),e.labelStyle,!1,n)),l=c.getBBox();if(ct(Fr().flowchart.htmlLabels)){var u=c.children[0],h=Object(_.F)(c);l=u.getBoundingClientRect(),h.attr("width",l.width),h.attr("height",l.height)}var d=e.padding/2;return s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),{shapeSvg:o,bbox:l,halfPadding:d,label:s}},Va=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function Ga(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var Xa={},Ka={},Qa={},Za=function(t,e){return tt.trace("In isDecendant",e," ",t," = ",Ka[e].includes(t)),!!Ka[e].includes(t)},Ja=function(t,e,r,n){tt.warn("Copying children of ",t,"root",n,"data",e.node(t),n);var i=e.children(t)||[];t!==n&&i.push(t),tt.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach((function(i){if(e.children(i).length>0)Ja(i,e,r,n);else{var a=e.node(i);tt.info("cp ",i," to ",n," with parent ",t),r.setNode(i,a),n!==e.parent(i)&&(tt.warn("Setting parent",i,e.parent(i)),r.setParent(i,e.parent(i))),t!==n&&i!==t?(tt.debug("Setting parent",i,t),r.setParent(i,t)):(tt.info("In copy ",t,"root",n,"data",e.node(t),n),tt.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==n,"node!==clusterId",i!==t));var o=e.edges(i);tt.debug("Copying Edges",o),o.forEach((function(i){tt.info("Edge",i);var a=e.edge(i.v,i.w,i.name);tt.info("Edge data",a,n);try{!function(t,e){return tt.info("Decendants of ",e," is ",Ka[e]),tt.info("Edge is ",t),t.v!==e&&t.w!==e&&(Ka[e]?Ka[e].includes(t.v)||Za(t.v,e)||Za(t.w,e)||Ka[e].includes(t.w):(tt.debug("Tilt, ",e,",not in decendants"),!1))}(i,n)?tt.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",n," clusterId:",t):(tt.info("Copying as ",i.v,i.w,a,i.name),r.setEdge(i.v,i.w,a,i.name),tt.info("newGraph edges ",r.edges(),r.edge(r.edges()[0])))}catch(t){tt.error(t)}}))}tt.debug("Removing node",i),e.removeNode(i)}))},to=function(t,e){var r,n=e.children(t),i=Object(h.a)(n),a=Object(l.a)(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;Qa[o]=t,i=[].concat(Object(h.a)(i),Object(h.a)(to(o,e)))}}catch(t){a.e(t)}finally{a.f()}return i},eo=function(t,e){tt.trace("Searching",t);var r=e.children(t);if(tt.trace("Searching children of id ",t,r),r.length<1)return tt.trace("This is a valid node",t),t;var n,i=Object(l.a)(r);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=eo(a,e);if(o)return tt.trace("Found replacement for",t," => ",o),o}}catch(t){i.e(t)}finally{i.f()}},ro=function(t){return Xa[t]&&Xa[t].externalConnections&&Xa[t]?Xa[t].id:t},no=function(t,e){if(tt.warn("extractor - ",e,j.a(t),t.children("D")),e>10)tt.error("Bailing out");else{var r,n=t.nodes(),i=!1,a=Object(l.a)(n);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=t.children(o);i=i||s.length>0}}catch(t){a.e(t)}finally{a.f()}if(i){tt.debug("Nodes = ",n,e);var c,u=Object(l.a)(n);try{for(u.s();!(c=u.n()).done;){var h=c.value;if(tt.debug("Extracting node",h,Xa,Xa[h]&&!Xa[h].externalConnections,!t.parent(h),t.node(h),t.children("D")," Depth ",e),Xa[h])if(!Xa[h].externalConnections&&t.children(h)&&t.children(h).length>0){tt.warn("Cluster without external connections, without a parent and with children",h,e);var d="TB"===t.graph().rankdir?"LR":"TB";Xa[h]&&Xa[h].clusterData&&Xa[h].clusterData.dir&&(d=Xa[h].clusterData.dir,tt.warn("Fixing dir",Xa[h].clusterData.dir,d));var f=new F.a({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));tt.warn("Old graph before copy",j.a(t)),Ja(h,t,f,h),t.setNode(h,{clusterNode:!0,id:h,clusterData:Xa[h].clusterData,labelText:Xa[h].labelText,graph:f}),tt.warn("New graph after copy node: (",h,")",j.a(f)),tt.debug("Old graph after copy",j.a(t))}else tt.warn("Cluster ** ",h," **not meeting the criteria !externalConnections:",!Xa[h].externalConnections," no parent: ",!t.parent(h)," children ",t.children(h)&&t.children(h).length>0,t.children("D"),e),tt.debug(Xa);else tt.debug("Not a cluster",h,e)}}catch(t){u.e(t)}finally{u.f()}n=t.nodes(),tt.warn("New list of nodes",n);var p,g=Object(l.a)(n);try{for(g.s();!(p=g.n()).done;){var y=p.value,b=t.node(y);tt.warn(" Now next level",y,b),b.clusterNode&&no(b.graph,e+1)}}catch(t){g.e(t)}finally{g.f()}}else tt.debug("Done, no node has children",t.nodes())}},io=function(t,e){if(0===e.length)return[];var r=Object.assign(e);return e.forEach((function(e){var n=t.children(e),i=io(t,n);r=[].concat(Object(h.a)(r),Object(h.a)(i))})),r};function ao(t,e,r,n){var i=t.x,a=t.y,o=i-n.x,s=a-n.y,c=Math.sqrt(e*e*s*s+r*r*o*o),l=Math.abs(e*r*o/c);n.x<i&&(l=-l);var u=Math.abs(e*r*s/c);return n.y<a&&(u=-u),{x:i+l,y:a+u}}function oo(t,e,r,n){var i,a,o,s,c,l,u,h,d,f,p,g,y;if(i=e.y-t.y,o=t.x-e.x,c=e.x*t.y-t.x*e.y,d=i*r.x+o*r.y+c,f=i*n.x+o*n.y+c,!(0!==d&&0!==f&&so(d,f)||(a=n.y-r.y,s=r.x-n.x,l=n.x*r.y-r.x*n.y,u=a*t.x+s*t.y+l,h=a*e.x+s*e.y+l,0!==u&&0!==h&&so(u,h)||(p=i*s-a*o,0===p))))return g=Math.abs(p/2),{x:(y=o*l-s*c)<0?(y-g)/p:(y+g)/p,y:(y=a*c-i*l)<0?(y-g)/p:(y+g)/p}}function so(t,e){return t*e>0}var co=function(t,e){var r,n,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),r=0===s?0:l*o/s,n=l):(o<0&&(c=-c),r=c,n=0===o?0:c*s/o),{x:i+r,y:a+n}},lo={node:function(t,e){return t.intersect(e)},circle:function(t,e,r){return ao(t,e,e,r)},ellipse:ao,polygon:function(t,e,r){var n=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var c=n-t.width/2-o,l=i-t.height/2-s,u=0;u<e.length;u++){var h=e[u],d=e[u<e.length-1?u+1:0],f=oo(t,r,{x:c+h.x,y:l+h.y},{x:c+d.x,y:l+d.y});f&&a.push(f)}return a.length?(a.length>1&&a.sort((function(t,e){var n=t.x-r.x,i=t.y-r.y,a=Math.sqrt(n*n+i*i),o=e.x-r.x,s=e.y-r.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1})),a[0]):t},rect:co},uo=function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding+(i.height+e.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];tt.info("Question main (Circle)");var s=Ga(n,a,a,o);return s.attr("style",e.style),Va(e,s),e.intersect=function(t){return tt.warn("Intersect called"),lo.polygon(e,o,t)},n};function ho(t,e,r,n){var i=[],a=function(t){i.push(t,0)},o=function(t){i.push(0,t)};e.includes("t")?(tt.debug("add top border"),a(r)):o(r),e.includes("r")?(tt.debug("add right border"),a(n)):o(n),e.includes("b")?(tt.debug("add bottom border"),a(r)):o(r),e.includes("l")?(tt.debug("add left border"),a(n)):o(n),t.attr("stroke-dasharray",i.join(" "))}var fo=function(t,e,r){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,a=10;"LR"===r&&(i=10,a=70);var o=n.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return Va(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return lo.rect(e,t)},n},po={rhombus:uo,question:uo,rect:function(t,e){var r=Ha(t,e,"node "+e.classes,!0),n=r.shapeSvg,i=r.bbox,a=r.halfPadding;tt.trace("Classes = ",e.classes);var o=n.insert("rect",":first-child"),s=i.width+e.padding,c=i.height+e.padding;if(o.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",s).attr("height",c),e.props){var l=new Set(Object.keys(e.props));e.props.borders&&(ho(o,e.props.borders,s,c),l.delete("borders")),l.forEach((function(t){tt.warn("Unknown node property ".concat(t))}))}return Va(e,o),e.intersect=function(t){return lo.rect(e,t)},n},labelRect:function(t,e){var r=Ha(t,e,"label",!0).shapeSvg;tt.trace("Classes = ",e.classes);var n=r.insert("rect",":first-child");if(n.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),e.props){var i=new Set(Object.keys(e.props));e.props.borders&&(ho(n,e.props.borders,0,0),i.delete("borders")),i.forEach((function(t){tt.warn("Unknown node property ".concat(t))}))}return Va(e,n),e.intersect=function(t){return lo.rect(e,t)},r},rectWithTitle:function(t,e){var r;r=e.classes?"node "+e.classes:"node default";var i,a=t.insert("g").attr("class",r).attr("id",e.domId||e.id),o=a.insert("rect",":first-child"),s=a.insert("line"),c=a.insert("g").attr("class","label"),l=e.labelText.flat?e.labelText.flat():e.labelText;i="object"===Object(n.a)(l)?l[0]:l,tt.info("Label text abc79",i,l,"object"===Object(n.a)(l));var u=c.node().appendChild(qa(i,e.labelStyle,!0,!0)),h={width:0,height:0};if(ct(Fr().flowchart.htmlLabels)){var d=u.children[0],f=Object(_.F)(u);h=d.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}tt.info("Text 2",l);var p=l.slice(1,l.length),g=u.getBBox(),y=c.node().appendChild(qa(p.join?p.join("<br/>"):p,e.labelStyle,!0,!0));if(ct(Fr().flowchart.htmlLabels)){var b=y.children[0],m=Object(_.F)(y);h=b.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}var v=e.padding/2;return Object(_.F)(y).attr("transform","translate( "+(h.width>g.width?0:(g.width-h.width)/2)+", "+(g.height+v+5)+")"),Object(_.F)(u).attr("transform","translate( "+(h.width<g.width?0:-(g.width-h.width)/2)+", 0)"),h=c.node().getBBox(),c.attr("transform","translate("+-h.width/2+", "+(-h.height/2-v+3)+")"),o.attr("class","outer title-state").attr("x",-h.width/2-v).attr("y",-h.height/2-v).attr("width",h.width+e.padding).attr("height",h.height+e.padding),s.attr("class","divider").attr("x1",-h.width/2-v).attr("x2",h.width/2+v).attr("y1",-h.height/2-v+g.height+v).attr("y2",-h.height/2-v+g.height+v),Va(e,o),e.intersect=function(t){return lo.rect(e,t)},a},choice:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return r.insert("polygon",":first-child").attr("points",n.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return lo.circle(e,14,t)},r},circle:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=r.halfPadding,o=n.insert("circle",":first-child");return o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),tt.info("Circle main"),Va(e,o),e.intersect=function(t){return tt.info("Circle intersect",e,i.width/2+a,t),lo.circle(e,i.width/2+a,t)},n},doublecircle:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=r.halfPadding,o=n.insert("g",":first-child"),s=o.insert("circle"),c=o.insert("circle");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a+5).attr("width",i.width+e.padding+10).attr("height",i.height+e.padding+10),c.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),tt.info("DoubleCircle main"),Va(e,s),e.intersect=function(t){return tt.info("DoubleCircle intersect",e,i.width/2+a+5,t),lo.circle(e,i.width/2+a+5,t)},n},stadium:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.height+e.padding,o=i.width+a/4+e.padding,s=n.insert("rect",":first-child").attr("style",e.style).attr("rx",a/2).attr("ry",a/2).attr("x",-o/2).attr("y",-a/2).attr("width",o).attr("height",a);return Va(e,s),e.intersect=function(t){return lo.rect(e,t)},n},hexagon:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.height+e.padding,o=a/4,s=i.width+2*o+e.padding,c=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}],l=Ga(n,s,a,c);return l.attr("style",e.style),Va(e,l),e.intersect=function(t){return lo.polygon(e,c,t)},n},rect_left_inv_arrow:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-o/2,y:0},{x:a,y:0},{x:a,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return Ga(n,a,o,s).attr("style",e.style),e.width=a+o,e.height=o,e.intersect=function(t){return lo.polygon(e,s,t)},n},lean_right:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:o/6,y:-o}],c=Ga(n,a,o,s);return c.attr("style",e.style),Va(e,c),e.intersect=function(t){return lo.polygon(e,s,t)},n},lean_left:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:2*o/6,y:0},{x:a+o/6,y:0},{x:a-2*o/6,y:-o},{x:-o/6,y:-o}],c=Ga(n,a,o,s);return c.attr("style",e.style),Va(e,c),e.intersect=function(t){return lo.polygon(e,s,t)},n},trapezoid:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a+2*o/6,y:0},{x:a-o/6,y:-o},{x:o/6,y:-o}],c=Ga(n,a,o,s);return c.attr("style",e.style),Va(e,c),e.intersect=function(t){return lo.polygon(e,s,t)},n},inv_trapezoid:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:-2*o/6,y:-o}],c=Ga(n,a,o,s);return c.attr("style",e.style),Va(e,c),e.intersect=function(t){return lo.polygon(e,s,t)},n},rect_right_inv_arrow:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a+o/2,y:0},{x:a,y:-o/2},{x:a+o/2,y:-o},{x:0,y:-o}],c=Ga(n,a,o,s);return c.attr("style",e.style),Va(e,c),e.intersect=function(t){return lo.polygon(e,s,t)},n},cylinder:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=a/2,s=o/(2.5+a/50),c=i.height+s+e.padding,l="M 0,"+s+" a "+o+","+s+" 0,0,0 "+a+" 0 a "+o+","+s+" 0,0,0 "+-a+" 0 l 0,"+c+" a "+o+","+s+" 0,0,0 "+a+" 0 l 0,"+-c,u=n.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-a/2+","+-(c/2+s)+")");return Va(e,u),e.intersect=function(t){var r=lo.rect(e,t),n=r.x-e.x;if(0!=o&&(Math.abs(n)<e.width/2||Math.abs(n)==e.width/2&&Math.abs(r.y-e.y)>e.height/2-s)){var i=s*s*(1-n*n/(o*o));0!=i&&(i=Math.sqrt(i)),i=s-i,t.y-e.y>0&&(i=-i),r.y+=i}return r},n},start:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Va(e,n),e.intersect=function(t){return lo.circle(e,7,t)},r},end:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Va(e,i),e.intersect=function(t){return lo.circle(e,7,t)},r},note:function(t,e){var r=Ha(t,e,"node "+e.classes,!0),n=r.shapeSvg,i=r.bbox,a=r.halfPadding;tt.info("Classes = ",e.classes);var o=n.insert("rect",":first-child");return o.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),Va(e,o),e.intersect=function(t){return lo.rect(e,t)},n},subroutine:function(t,e){var r=Ha(t,e,void 0,!0),n=r.shapeSvg,i=r.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a,y:0},{x:a,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],c=Ga(n,a,o,s);return c.attr("style",e.style),Va(e,c),e.intersect=function(t){return lo.polygon(e,s,t)},n},fork:fo,join:fo,class_box:function(t,e){var r,n=e.padding/2;r=e.classes?"node "+e.classes:"node default";var i=t.insert("g").attr("class",r).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),o=i.insert("line"),s=i.insert("line"),c=0,l=4,u=i.insert("g").attr("class","label"),h=0,d=e.classData.annotations&&e.classData.annotations[0],f=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",p=u.node().appendChild(qa(f,e.labelStyle,!0,!0)),g=p.getBBox();if(ct(Fr().flowchart.htmlLabels)){var y=p.children[0],b=Object(_.F)(p);g=y.getBoundingClientRect(),b.attr("width",g.width),b.attr("height",g.height)}e.classData.annotations[0]&&(l+=g.height+4,c+=g.width);var m=e.classData.id;void 0!==e.classData.type&&""!==e.classData.type&&(Fr().flowchart.htmlLabels?m+="&lt;"+e.classData.type+"&gt;":m+="<"+e.classData.type+">");var v=u.node().appendChild(qa(m,e.labelStyle,!0,!0));Object(_.F)(v).attr("class","classTitle");var x=v.getBBox();if(ct(Fr().flowchart.htmlLabels)){var k=v.children[0],w=Object(_.F)(v);x=k.getBoundingClientRect(),w.attr("width",x.width),w.attr("height",x.height)}l+=x.height+4,x.width>c&&(c=x.width);var T=[];e.classData.members.forEach((function(t){var r=Ba(t),n=r.displayText;Fr().flowchart.htmlLabels&&(n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var i=u.node().appendChild(qa(n,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(ct(Fr().flowchart.htmlLabels)){var o=i.children[0],s=Object(_.F)(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>c&&(c=a.width),l+=a.height+4,T.push(i)})),l+=8;var C=[];if(e.classData.methods.forEach((function(t){var r=Ba(t),n=r.displayText;Fr().flowchart.htmlLabels&&(n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var i=u.node().appendChild(qa(n,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(ct(Fr().flowchart.htmlLabels)){var o=i.children[0],s=Object(_.F)(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>c&&(c=a.width),l+=a.height+4,C.push(i)})),l+=8,d){var E=(c-g.width)/2;Object(_.F)(p).attr("transform","translate( "+(-1*c/2+E)+", "+-1*l/2+")"),h=g.height+4}var S=(c-x.width)/2;return Object(_.F)(v).attr("transform","translate( "+(-1*c/2+S)+", "+(-1*l/2+h)+")"),h+=x.height+4,o.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-l/2-n+8+h).attr("y2",-l/2-n+8+h),h+=8,T.forEach((function(t){Object(_.F)(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+h+4)+")"),h+=x.height+4})),h+=8,s.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-l/2-n+8+h).attr("y2",-l/2-n+8+h),h+=8,C.forEach((function(t){Object(_.F)(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+h)+")"),h+=x.height+4})),a.attr("class","outer title-state").attr("x",-c/2-n).attr("y",-l/2-n).attr("width",c+e.padding).attr("height",l+e.padding),Va(e,a),e.intersect=function(t){return lo.rect(e,t)},i}},go={},yo=function(t,e,r){var n,i,a;return e.link?("sandbox"===Fr().securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=po[e.shape](n,e,r)):n=i=po[e.shape](t,e,r),e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),go[e.id]=n,e.haveCallback&&go[e.id].attr("class",go[e.id].attr("class")+" clickable"),n},bo=function(t){var e=go[t.id];tt.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},mo={rect:function(t,e){tt.trace("Creating subgraph rect for ",e.id,e);var r=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),n=r.insert("rect",":first-child"),i=r.insert("g").attr("class","cluster-label"),a=i.node().appendChild(qa(e.labelText,e.labelStyle,void 0,!0)),o=a.getBBox();if(ct(Fr().flowchart.htmlLabels)){var s=a.children[0],c=Object(_.F)(a);o=s.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}var l=0*e.padding,u=l/2,h=e.width<=o.width+l?o.width+l:e.width;e.width<=o.width+l?e.diff=(o.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,tt.trace("Data ",e,JSON.stringify(e)),n.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-h/2).attr("y",e.y-e.height/2-u).attr("width",h).attr("height",e.height+l),i.attr("transform","translate("+(e.x-o.width/2)+", "+(e.y-e.height/2)+")");var d=n.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return co(e,t)},r},roundedWithTitle:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),n=r.insert("rect",":first-child"),i=r.insert("g").attr("class","cluster-label"),a=r.append("rect"),o=i.node().appendChild(qa(e.labelText,e.labelStyle,void 0,!0)),s=o.getBBox();if(ct(Fr().flowchart.htmlLabels)){var c=o.children[0],l=Object(_.F)(o);s=c.getBoundingClientRect(),l.attr("width",s.width),l.attr("height",s.height)}s=o.getBBox();var u=0*e.padding,h=u/2,d=e.width<=s.width+e.padding?s.width+e.padding:e.width;e.width<=s.width+e.padding?e.diff=(s.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,n.attr("class","outer").attr("x",e.x-d/2-h).attr("y",e.y-e.height/2-h).attr("width",d+u).attr("height",e.height+u),a.attr("class","inner").attr("x",e.x-d/2-h).attr("y",e.y-e.height/2-h+s.height-1).attr("width",d+u).attr("height",e.height+u-s.height-3),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2-e.padding/3+(ct(Fr().flowchart.htmlLabels)?5:3))+")");var f=n.node().getBBox();return e.height=f.height,e.intersect=function(t){return co(e,t)},r},noteGroup:function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.id),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");var o=n.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return co(e,t)},r},divider:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+i).attr("height",e.height+i);var o=n.node().getBBox();return e.width=o.width,e.height=o.height,e.diff=-e.padding/2,e.intersect=function(t){return co(e,t)},r}},vo={},_o={},xo={},ko=function(t,e){var r=qa(e.label,e.labelStyle),n=t.insert("g").attr("class","edgeLabel"),i=n.insert("g").attr("class","label");i.node().appendChild(r);var a,o=r.getBBox();if(ct(Fr().flowchart.htmlLabels)){var s=r.children[0],c=Object(_.F)(r);o=s.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}if(i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),_o[e.id]=n,e.width=o.width,e.height=o.height,e.startLabelLeft){var l=qa(e.startLabelLeft,e.labelStyle),u=t.insert("g").attr("class","edgeTerminals"),h=u.insert("g").attr("class","inner");a=h.node().appendChild(l);var d=l.getBBox();h.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),xo[e.id]||(xo[e.id]={}),xo[e.id].startLeft=u,wo(a,e.startLabelLeft)}if(e.startLabelRight){var f=qa(e.startLabelRight,e.labelStyle),p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner");a=p.node().appendChild(f),g.node().appendChild(f);var y=f.getBBox();g.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),xo[e.id]||(xo[e.id]={}),xo[e.id].startRight=p,wo(a,e.startLabelRight)}if(e.endLabelLeft){var b=qa(e.endLabelLeft,e.labelStyle),m=t.insert("g").attr("class","edgeTerminals"),v=m.insert("g").attr("class","inner");a=v.node().appendChild(b);var x=b.getBBox();v.attr("transform","translate("+-x.width/2+", "+-x.height/2+")"),m.node().appendChild(b),xo[e.id]||(xo[e.id]={}),xo[e.id].endLeft=m,wo(a,e.endLabelLeft)}if(e.endLabelRight){var k=qa(e.endLabelRight,e.labelStyle),w=t.insert("g").attr("class","edgeTerminals"),T=w.insert("g").attr("class","inner");a=T.node().appendChild(k);var C=k.getBBox();T.attr("transform","translate("+-C.width/2+", "+-C.height/2+")"),w.node().appendChild(k),xo[e.id]||(xo[e.id]={}),xo[e.id].endRight=w,wo(a,e.endLabelRight)}return r};function wo(t,e){Fr().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var To=function(t,e){tt.warn("abc88 cutPathAtIntersect",t,e);var r=[],n=t[0],i=!1;return t.forEach((function(t){if(tt.info("abc88 checking point",t,e),function(t,e){var r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s}(e,t)||i)tt.warn("abc88 outside",t,n),n=t,i||r.push(t);else{var a=function(t,e,r){tt.warn("intersection calc abc89:\n outsidePoint: ".concat(JSON.stringify(e),"\n insidePoint : ").concat(JSON.stringify(r),"\n node : x:").concat(t.x," y:").concat(t.y," w:").concat(t.width," h:").concat(t.height));var n=t.x,i=t.y,a=Math.abs(n-r.x),o=t.width/2,s=r.x<e.x?o-a:o+a,c=t.height/2,l=Math.abs(e.y-r.y),u=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*o>Math.abs(n-e.x)*c){var h=r.y<e.y?e.y-c-i:i-c-e.y;s=u*h/l;var d={x:r.x<e.x?r.x+s:r.x-u+s,y:r.y<e.y?r.y+l-h:r.y-l+h};return 0===s&&(d.x=e.x,d.y=e.y),0===u&&(d.x=e.x),0===l&&(d.y=e.y),tt.warn("abc89 topp/bott calc, Q ".concat(l,", q ").concat(h,", R ").concat(u,", r ").concat(s),d),d}var f=l*(s=r.x<e.x?e.x-o-n:n-o-e.x)/u,p=r.x<e.x?r.x+u-s:r.x-u+s,g=r.y<e.y?r.y+f:r.y-f;return tt.warn("sides calc abc89, Q ".concat(l,", q ").concat(f,", R ").concat(u,", r ").concat(s),{_x:p,_y:g}),0===s&&(p=e.x,g=e.y),0===u&&(p=e.x),0===l&&(g=e.y),{x:p,y:g}}(e,n,t);tt.warn("abc88 inside",t,n,a),tt.warn("abc88 intersection",a);var o=!1;r.forEach((function(t){o=o||t.x===a.x&&t.y===a.y})),r.some((function(t){return t.x===a.x&&t.y===a.y}))?tt.warn("abc88 no intersect",a,r):r.push(a),i=!0}})),tt.warn("abc88 returning points",r),r},Co=function(t,e,r,n){tt.info("Graph in recursive render: XXX",j.a(e),n);var i=e.graph().rankdir;tt.trace("Dir in recursive render - dir:",i);var a=t.insert("g").attr("class","root");e.nodes()?tt.info("Recursive render XXX",e.nodes()):tt.info("No nodes found for",e),e.edges().length>0&&tt.trace("Recursive edges",e.edge(e.edges()[0]));var o=a.insert("g").attr("class","clusters"),s=a.insert("g").attr("class","edgePaths"),c=a.insert("g").attr("class","edgeLabels"),l=a.insert("g").attr("class","nodes");e.nodes().forEach((function(t){var a=e.node(t);if(void 0!==n){var o=JSON.parse(JSON.stringify(n.clusterData));tt.info("Setting data for cluster XXX (",t,") ",o,n),e.setNode(n.id,o),e.parent(t)||(tt.trace("Setting parent",t,n.id),e.setParent(t,n.id,o))}if(tt.info("(Insert) Node XXX"+t+": "+JSON.stringify(e.node(t))),a&&a.clusterNode){tt.info("Cluster identified",t,a.width,e.node(t));var s=Co(l,a.graph,r,e.node(t)),c=s.elem;Va(a,c),a.diff=s.diff||0,tt.info("Node bounds (abc123)",t,a,a.width,a.x,a.y),function(t,e){go[e.id]=t}(c,a),tt.warn("Recursive render complete ",c,a)}else e.children(t).length>0?(tt.info("Cluster - the non recursive path XXX",t,a.id,a,e),tt.info(eo(a.id,e)),Xa[a.id]={id:eo(a.id,e),node:a}):(tt.info("Node - the non recursive path",t,a.id,a),yo(l,e.node(t),i))})),e.edges().forEach((function(t){var r=e.edge(t.v,t.w,t.name);tt.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),tt.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(e.edge(t))),tt.info("Fix",Xa,"ids:",t.v,t.w,"Translateing: ",Xa[t.v],Xa[t.w]),ko(c,r)})),e.edges().forEach((function(t){tt.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),tt.info("#############################################"),tt.info("### Layout ###"),tt.info("#############################################"),tt.info(e),Object(N.a)(e),tt.info("Graph after layout:",j.a(e));var u=0;return function(t){return io(t,t.children())}(e).forEach((function(t){var r=e.node(t);tt.info("Position "+t+": "+JSON.stringify(e.node(t))),tt.info("Position "+t+": ("+r.x,","+r.y,") width: ",r.width," height: ",r.height),r&&r.clusterNode?bo(r):e.children(t).length>0?(function(t,e){tt.trace("Inserting cluster");var r=e.shape||"rect";vo[e.id]=mo[r](t,e)}(o,r),Xa[r.id].node=r):bo(r)})),e.edges().forEach((function(t){var n=e.edge(t);tt.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(n),n),function(t,e){tt.info("Moving label abc78 ",t.id,t.label,_o[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var n=_o[t.id],i=t.x,a=t.y;if(r){var o=Cr.calcLabelPosition(r);tt.info("Moving label "+t.label+" from (",i,",",a,") to (",o.x,",",o.y,") abc78"),e.updatedPath&&(i=o.x,a=o.y)}n.attr("transform","translate("+i+", "+a+")")}if(t.startLabelLeft){var s=xo[t.id].startLeft,c=t.x,l=t.y;if(r){var u=Cr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);c=u.x,l=u.y}s.attr("transform","translate("+c+", "+l+")")}if(t.startLabelRight){var h=xo[t.id].startRight,d=t.x,f=t.y;if(r){var p=Cr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);d=p.x,f=p.y}h.attr("transform","translate("+d+", "+f+")")}if(t.endLabelLeft){var g=xo[t.id].endLeft,y=t.x,b=t.y;if(r){var m=Cr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);y=m.x,b=m.y}g.attr("transform","translate("+y+", "+b+")")}if(t.endLabelRight){var v=xo[t.id].endRight,_=t.x,x=t.y;if(r){var k=Cr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);_=k.x,x=k.y}v.attr("transform","translate("+_+", "+x+")")}}(n,function(t,e,r,n,i,a){var o=r.points,s=!1,c=a.node(e.v),l=a.node(e.w);tt.info("abc88 InsertEdge: ",r),l.intersect&&c.intersect&&((o=o.slice(1,r.points.length-1)).unshift(c.intersect(o[0])),tt.info("Last point",o[o.length-1],l,l.intersect(o[o.length-1])),o.push(l.intersect(o[o.length-1]))),r.toCluster&&(tt.info("to cluster abc88",n[r.toCluster]),o=To(r.points,n[r.toCluster].node),s=!0),r.fromCluster&&(tt.info("from cluster abc88",n[r.fromCluster]),o=To(o.reverse(),n[r.fromCluster].node).reverse(),s=!0);var u,h=o.filter((function(t){return!Number.isNaN(t.y)}));u=("graph"===i||"flowchart"===i)&&r.curve||_.d;var d,f=Object(_.y)().x((function(t){return t.x})).y((function(t){return t.y})).curve(u);switch(r.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;default:d=""}switch(r.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}var p=t.append("path").attr("d",f(h)).attr("id",r.id).attr("class"," "+d+(r.classes?" "+r.classes:"")).attr("style",r.style),g="";switch((Fr().flowchart.arrowMarkerAbsolute||Fr().state.arrowMarkerAbsolute)&&(g=(g=(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),tt.info("arrowTypeStart",r.arrowTypeStart),tt.info("arrowTypeEnd",r.arrowTypeEnd),r.arrowTypeStart){case"arrow_cross":p.attr("marker-start","url("+g+"#"+i+"-crossStart)");break;case"arrow_point":p.attr("marker-start","url("+g+"#"+i+"-pointStart)");break;case"arrow_barb":p.attr("marker-start","url("+g+"#"+i+"-barbStart)");break;case"arrow_circle":p.attr("marker-start","url("+g+"#"+i+"-circleStart)");break;case"aggregation":p.attr("marker-start","url("+g+"#"+i+"-aggregationStart)");break;case"extension":p.attr("marker-start","url("+g+"#"+i+"-extensionStart)");break;case"composition":p.attr("marker-start","url("+g+"#"+i+"-compositionStart)");break;case"dependency":p.attr("marker-start","url("+g+"#"+i+"-dependencyStart)");break;case"lollipop":p.attr("marker-start","url("+g+"#"+i+"-lollipopStart)")}switch(r.arrowTypeEnd){case"arrow_cross":p.attr("marker-end","url("+g+"#"+i+"-crossEnd)");break;case"arrow_point":p.attr("marker-end","url("+g+"#"+i+"-pointEnd)");break;case"arrow_barb":p.attr("marker-end","url("+g+"#"+i+"-barbEnd)");break;case"arrow_circle":p.attr("marker-end","url("+g+"#"+i+"-circleEnd)");break;case"aggregation":p.attr("marker-end","url("+g+"#"+i+"-aggregationEnd)");break;case"extension":p.attr("marker-end","url("+g+"#"+i+"-extensionEnd)");break;case"composition":p.attr("marker-end","url("+g+"#"+i+"-compositionEnd)");break;case"dependency":p.attr("marker-end","url("+g+"#"+i+"-dependencyEnd)");break;case"lollipop":p.attr("marker-end","url("+g+"#"+i+"-lollipopEnd)")}var y={};return s&&(y.updatedPath=o),y.originalPath=r.points,y}(s,t,n,Xa,r,e))})),e.nodes().forEach((function(t){var r=e.node(t);tt.info(t,r.type,r.diff),"group"===r.type&&(u=r.diff)})),{elem:a,diff:u}},Eo=function(t,e,r,n,i){Wa(t,r,n,i),go={},_o={},xo={},vo={},Ka={},Qa={},Xa={},tt.warn("Graph at first:",j.a(e)),function(t,e){!t||e>10?tt.debug("Opting out, no graph "):(tt.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(tt.warn("Cluster identified",e," Replacement id in edges: ",eo(e,t)),Ka[e]=to(e,t),Xa[e]={id:eo(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){var r=t.children(e),n=t.edges();r.length>0?(tt.debug("Cluster identified",e,Ka),n.forEach((function(t){t.v!==e&&t.w!==e&&(Za(t.v,e)^Za(t.w,e)&&(tt.warn("Edge: ",t," leaves cluster ",e),tt.warn("Decendants of XXX ",e,": ",Ka[e]),Xa[e].externalConnections=!0))}))):tt.debug("Not a cluster ",e,Ka)})),t.edges().forEach((function(e){var r=t.edge(e);tt.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),tt.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));var n=e.v,i=e.w;if(tt.warn("Fix XXX",Xa,"ids:",e.v,e.w,"Translating: ",Xa[e.v]," --- ",Xa[e.w]),Xa[e.v]&&Xa[e.w]&&Xa[e.v]===Xa[e.w]){tt.warn("Fixing and trixing link to self - removing XXX",e.v,e.w,e.name),tt.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),n=ro(e.v),i=ro(e.w),t.removeEdge(e.v,e.w,e.name);var a=e.w+"---"+e.v;t.setNode(a,{domId:a,id:a,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});var o=JSON.parse(JSON.stringify(r)),s=JSON.parse(JSON.stringify(r));o.label="",o.arrowTypeEnd="none",s.label="",o.fromCluster=e.v,s.toCluster=e.v,t.setEdge(n,a,o,e.name+"-cyclic-special"),t.setEdge(a,i,s,e.name+"-cyclic-special")}else(Xa[e.v]||Xa[e.w])&&(tt.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),n=ro(e.v),i=ro(e.w),t.removeEdge(e.v,e.w,e.name),n!==e.v&&(r.fromCluster=e.v),i!==e.w&&(r.toCluster=e.w),tt.warn("Fix Replacing with XXX",n,i,e.name),t.setEdge(n,i,r,e.name))})),tt.warn("Adjusted Graph",j.a(t)),no(t,0),tt.trace(Xa))}(e),tt.warn("Graph after:",j.a(e)),Co(t,e,n)},So=function(t){return ut.sanitizeText(t,Fr())},Ao={dividerMargin:10,padding:5,textHeight:10};function Oo(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}var Lo={setConf:function(t){Object.keys(t).forEach((function(e){Ao[e]=t[e]}))},draw:function(t,e,r,n){tt.info("Drawing class - ",e);var i=Fr().flowchart,a=Fr().securityLevel;tt.info("config:",i);var o,s=i.nodeSpacing||50,c=i.rankSpacing||50,u=new F.a({multigraph:!0,compound:!0}).setGraph({rankdir:n.db.getDirection(),nodesep:s,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),h=n.db.getClasses(),d=n.db.getRelations(),f=n.db.getNotes();tt.info(d),function(t,e,r,n){var i=Object.keys(t);tt.info("keys:",i),tt.info(t),i.forEach((function(r){var i=t[r],a="";i.cssClasses.length>0&&(a=a+" "+i.cssClasses.join(" "));var o={labelStyle:""},s=void 0!==i.text?i.text:i.id,c="";switch(i.type){case"class":c="class_box";break;default:c="class_box"}e.setNode(i.id,{labelStyle:o.labelStyle,shape:c,labelText:So(s),classData:i,rx:0,ry:0,class:a,style:o.style,id:i.id,domId:i.domId,tooltip:n.db.getTooltip(i.id)||"",haveCallback:i.haveCallback,link:i.link,width:"group"===i.type?500:void 0,type:i.type,padding:Fr().flowchart.padding}),tt.info("setNode",{labelStyle:o.labelStyle,shape:c,labelText:s,rx:0,ry:0,class:a,style:o.style,id:i.id,width:"group"===i.type?500:void 0,type:i.type,padding:Fr().flowchart.padding})}))}(h,u,0,n),function(t,e){var r=Fr().flowchart,n=0;t.forEach((function(i){n++;var a={classes:"relation"};a.pattern=1==i.relation.lineType?"dashed":"solid",a.id="id"+n,"arrow_open"===i.type?a.arrowhead="none":a.arrowhead="normal",tt.info(a,i),a.startLabelRight="none"===i.relationTitle1?"":i.relationTitle1,a.endLabelLeft="none"===i.relationTitle2?"":i.relationTitle2,a.arrowTypeStart=Oo(i.relation.type1),a.arrowTypeEnd=Oo(i.relation.type2);var o="",s="";if(void 0!==i.style){var c=cr(i.style);o=c.style,s=c.labelStyle}else o="fill:none";a.style=o,a.labelStyle=s,void 0!==i.interpolate?a.curve=or(i.interpolate,_.p):void 0!==t.defaultInterpolate?a.curve=or(t.defaultInterpolate,_.p):a.curve=or(r.curve,_.p),i.text=i.title,void 0===i.text?void 0!==i.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",Fr().flowchart.htmlLabels?(a.labelType="html",a.label='<span class="edgeLabel">'+i.text+"</span>"):(a.labelType="text",a.label=i.text.replace(ut.lineBreakRegex,"\n"),void 0===i.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),e.setEdge(i.id1,i.id2,a,n)}))}(d,u),function(t,e,r,n){tt.info(t),t.forEach((function(t,i){var a=t,o="",s="",c=a.text,l="note";if(e.setNode(a.id,{labelStyle:o,shape:l,labelText:So(c),noteData:a,rx:0,ry:0,class:"",style:s,id:a.id,domId:a.id,tooltip:"",type:"note",padding:Fr().flowchart.padding}),tt.info("setNode",{labelStyle:o,shape:l,labelText:c,rx:0,ry:0,style:s,id:a.id,type:"note",padding:Fr().flowchart.padding}),a.class&&a.class in n){var u=r+i,h={classes:"relation",pattern:"dotted"};h.id="edgeNote".concat(u),h.arrowhead="none",tt.info("Note edge: ".concat(JSON.stringify(h),", ").concat(JSON.stringify(a))),h.startLabelRight="",h.endLabelLeft="",h.arrowTypeStart="none",h.arrowTypeEnd="none";h.style="fill:none",h.labelStyle="",h.curve=or(Ao.curve,_.p),e.setEdge(a.id,a.class,h,u)}}))}(f,u,d.length+1,h),"sandbox"===a&&(o=Object(_.F)("#i"+e));var p="sandbox"===a?Object(_.F)(o.nodes()[0].contentDocument.body):Object(_.F)("body"),g=p.select('[id="'.concat(e,'"]')),y=p.select("#"+e+" g");if(Eo(y,u,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),Cr.insertTitle(g,"classTitleText",i.titleTopMargin,n.db.getDiagramTitle()),Wr(u,g,i.diagramPadding,i.useMaxWidth),!i.htmlLabels){var b,m="sandbox"===a?o.nodes()[0].contentDocument:document,v=m.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),x=Object(l.a)(v);try{for(x.s();!(b=x.n()).done;){var k=b.value,w=k.getBBox(),T=m.createElementNS("http://www.w3.org/2000/svg","rect");T.setAttribute("rx",0),T.setAttribute("ry",0),T.setAttribute("width",w.width),T.setAttribute("height",w.height),k.insertBefore(T,k.firstChild)}}catch(t){x.e(t)}finally{x.f()}}}},Bo=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,2],r=[1,5],n=[6,9,11,23,25,27,29,30,31,51],i=[1,17],a=[1,18],o=[1,19],s=[1,20],c=[1,21],l=[1,22],u=[1,25],h=[1,30],d=[1,31],f=[1,32],p=[1,33],g=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],y=[1,45],b=[30,31,48,49],m=[4,6,9,11,23,25,27,29,30,31,51],v=[44,45,46,47],_=[22,37],x=[1,65],k=[1,64],w=[22,37,39,41],T={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,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$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:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"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,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 12:n.addEntity(a[s-4]),n.addEntity(a[s-2]),n.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:n.addEntity(a[s-3]),n.addAttributes(a[s-3],a[s-1]);break;case 14:n.addEntity(a[s-2]);break;case 15:n.addEntity(a[s]);break;case 16:case 17:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 20:case 43:this.$=a[s];break;case 21:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 22:case 30:this.$=[a[s]];break;case 23:a[s].push(a[s-1]),this.$=a[s];break;case 24:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 26:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 27:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 28:case 29:case 32:this.$=a[s];break;case 31:a[s-2].push(a[s]),this.$=a[s-2];break;case 33:this.$=a[s].replace(/"/g,"");break;case 34:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 35:this.$=n.Cardinality.ZERO_OR_ONE;break;case 36:this.$=n.Cardinality.ZERO_OR_MORE;break;case 37:this.$=n.Cardinality.ONE_OR_MORE;break;case 38:this.$=n.Cardinality.ONLY_ONE;break;case 39:this.$=n.Identification.NON_IDENTIFYING;break;case 40:this.$=n.Identification.IDENTIFYING;break;case 44:n.parseDirective("%%{","open_directive");break;case 45:n.parseDirective(a[s],"type_directive");break;case 46:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 47:n.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,51:r},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,51:r},{13:8,52:[1,9]},{52:[2,44]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,25:a,27:o,29:s,30:c,31:l,51:r},{1:[2,2]},{14:23,15:[1,24],54:u},t([15,54],[2,45]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:15,10:26,12:4,17:16,23:i,25:a,27:o,29:s,30:c,31:l,51:r},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),t(n,[2,15],{18:27,42:29,20:[1,28],44:h,45:d,46:f,47:p}),{24:[1,34]},{26:[1,35]},{28:[1,36]},t(n,[2,19]),t(g,[2,20]),t(g,[2,21]),{11:[1,37]},{16:38,53:[1,39]},{11:[2,47]},t(n,[2,5]),{17:40,30:c,31:l},{21:41,22:[1,42],32:43,33:44,37:y},{43:46,48:[1,47],49:[1,48]},t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(m,[2,9]),{14:49,54:u},{54:[2,46]},{15:[1,50]},{22:[1,51]},t(n,[2,14]),{21:52,22:[2,22],32:43,33:44,37:y},{34:53,37:[1,54]},{37:[2,28]},{42:55,44:h,45:d,46:f,47:p},t(v,[2,39]),t(v,[2,40]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],50:[1,58]},t(n,[2,13]),{22:[2,23]},t(_,[2,24],{35:61,36:62,38:63,40:x,41:k}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(m,[2,10]),t(n,[2,12]),t(n,[2,41]),t(n,[2,42]),t(n,[2,43]),t(_,[2,25],{36:66,39:[1,67],41:k}),t(_,[2,26]),t(w,[2,30]),t(_,[2,33]),t(w,[2,32]),t(_,[2,27]),{38:68,40:x},t(w,[2,31])],defaultActions:{5:[2,44],7:[2,2],25:[2,47],39:[2,46],45:[2,28],52:[2,23]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},C={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){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"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:case 13:break;case 14:return 11;case 15:break;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 22:break;case 23:return 40;case 24:case 25:return 37;case 26:return 41;case 27:break;case 28:return this.popState(),22;case 29:return e.yytext[0];case 30:return 44;case 31:case 32:case 33:return 46;case 34:case 35:return 44;case 36:case 37:case 38:case 39:case 40:return 45;case 41:return 46;case 42:return 45;case 43:return 46;case 44:case 45:case 46:case 47:return 47;case 48:return 44;case 49:return 45;case 50:return 46;case 51:return 48;case 52:case 53:return 49;case 54:case 55:case 56:return 48;case 57:return 30;case 58:return e.yytext[0];case 59: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,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,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],inclusive:!0}}};function E(){this.yy={}}return T.lexer=C,E.prototype=T,T.Parser=E,new E}();Bo.parser=Bo;var Do=Bo,Mo=function(t){return null!==t.match(/^\s*erDiagram/)},Io={},No=[],Fo=function(t){return void 0===Io[t]&&(Io[t]={attributes:[]},tt.info("Added new entity :",t)),Io[t]},jo={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(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().er},addEntity:Fo,addAttributes:function(t,e){var r,n=Fo(t);for(r=e.length-1;r>=0;r--)n.attributes.push(e[r]),tt.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return Io},addRelationship:function(t,e,r,n){var i={entityA:t,roleA:e,entityB:r,relSpec:n};No.push(i),tt.debug("Added new relationship :",i)},getRelationships:function(){return No},clear:function(){Io={},No=[],un()},setAccTitle:hn,getAccTitle:dn,setAccDescription:fn,getAccDescription:pn,setDiagramTitle:gn,getDiagramTitle:yn},Ro={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"},Po=Ro,$o=function(t,e){var r;t.append("defs").append("marker").attr("id",Ro.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",Ro.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(r=t.append("defs").append("marker").attr("id",Ro.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(r=t.append("defs").append("marker").attr("id",Ro.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",Ro.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",Ro.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(r=t.append("defs").append("marker").attr("id",Ro.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(r=t.append("defs").append("marker").attr("id",Ro.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},zo=/[^\dA-Za-z](\W)*/g,Yo={},Uo=new Map,Wo=function(t,e,r){var n;return Object.keys(e).forEach((function(i){var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.replace(zo,"");return"".concat(Go(e)).concat(Go(r)).concat(W(t,Vo))}(i,"entity");Uo.set(i,a);var o=t.append("g").attr("id",a);n=void 0===n?a:n;var s="text-"+a,c=o.append("text").classed("er entityLabel",!0).attr("id",s).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Fr().fontFamily).style("font-size",Yo.fontSize+"px").text(i),l=function(t,e,r){var n=Yo.entityPadding/3,i=Yo.entityPadding/3,a=.85*Yo.fontSize,o=e.node().getBBox(),s=[],c=!1,l=!1,u=0,h=0,d=0,f=0,p=o.height+2*n,g=1;r.forEach((function(t){void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(c=!0),void 0!==t.attributeComment&&(l=!0)})),r.forEach((function(r){var i="".concat(e.node().id,"-attr-").concat(g),o=0,y=lt(r.attributeType),b=t.append("text").classed("er entityLabel",!0).attr("id","".concat(i,"-type")).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Fr().fontFamily).style("font-size",a+"px").text(y),m=t.append("text").classed("er entityLabel",!0).attr("id","".concat(i,"-name")).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Fr().fontFamily).style("font-size",a+"px").text(r.attributeName),v={};v.tn=b,v.nn=m;var _=b.node().getBBox(),x=m.node().getBBox();if(u=Math.max(u,_.width),h=Math.max(h,x.width),o=Math.max(_.height,x.height),c){var k=void 0!==r.attributeKeyTypeList?r.attributeKeyTypeList.join(","):"",w=t.append("text").classed("er entityLabel",!0).attr("id","".concat(i,"-key")).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Fr().fontFamily).style("font-size",a+"px").text(k);v.kn=w;var T=w.node().getBBox();d=Math.max(d,T.width),o=Math.max(o,T.height)}if(l){var C=t.append("text").classed("er entityLabel",!0).attr("id","".concat(i,"-comment")).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Fr().fontFamily).style("font-size",a+"px").text(r.attributeComment||"");v.cn=C;var E=C.node().getBBox();f=Math.max(f,E.width),o=Math.max(o,E.height)}v.height=o,s.push(v),p+=o+2*n,g+=1}));var y=4;c&&(y+=2),l&&(y+=2);var b=u+h+d+f,m={width:Math.max(Yo.minEntityWidth,Math.max(o.width+2*Yo.entityPadding,b+i*y)),height:r.length>0?p:Math.max(Yo.minEntityHeight,o.height+2*Yo.entityPadding)};if(r.length>0){var v=Math.max(0,(m.width-b-i*y)/(y/2));e.attr("transform","translate("+m.width/2+","+(n+o.height/2)+")");var _=o.height+2*n,x="attributeBoxOdd";s.forEach((function(e){var r=_+n+e.height/2;e.tn.attr("transform","translate("+i+","+r+")");var a=t.insert("rect","#"+e.tn.node().id).classed("er ".concat(x),!0).attr("x",0).attr("y",_).attr("width",u+2*i+v).attr("height",e.height+2*n),o=parseFloat(a.attr("x"))+parseFloat(a.attr("width"));e.nn.attr("transform","translate("+(o+i)+","+r+")");var s=t.insert("rect","#"+e.nn.node().id).classed("er ".concat(x),!0).attr("x",o).attr("y",_).attr("width",h+2*i+v).attr("height",e.height+2*n),p=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));if(c){e.kn.attr("transform","translate("+(p+i)+","+r+")");var g=t.insert("rect","#"+e.kn.node().id).classed("er ".concat(x),!0).attr("x",p).attr("y",_).attr("width",d+2*i+v).attr("height",e.height+2*n);p=parseFloat(g.attr("x"))+parseFloat(g.attr("width"))}l&&(e.cn.attr("transform","translate("+(p+i)+","+r+")"),t.insert("rect","#"+e.cn.node().id).classed("er ".concat(x),"true").attr("x",p).attr("y",_).attr("width",f+2*i+v).attr("height",e.height+2*n)),_+=e.height+2*n,x="attributeBoxOdd"===x?"attributeBoxEven":"attributeBoxOdd"}))}else m.height=Math.max(Yo.minEntityHeight,p),e.attr("transform","translate("+m.width/2+","+m.height/2+")");return m}(o,c,e[i].attributes),u=l.width,h=l.height,d=o.insert("rect","#"+s).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",u).attr("height",h).node().getBBox();r.setNode(a,{width:d.width,height:d.height,shape:"rect",id:a})})),n},qo=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},Ho=0,Vo="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function Go(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>0?"".concat(t,"-"):""}var Xo={setConf:function(t){for(var e=0,r=Object.keys(t);e<r.length;e++){var n=r[e];Yo[n]=t[n]}},draw:function(t,e,r,n){Yo=Fr().er,tt.info("Drawing ER diagram");var i,a=Fr().securityLevel;"sandbox"===a&&(i=Object(_.F)("#i"+e));var o,s=("sandbox"===a?Object(_.F)(i.nodes()[0].contentDocument.body):Object(_.F)("body")).select("[id='".concat(e,"']"));$o(s,Yo),o=new F.a({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Yo.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var c=Wo(s,n.db.getEntities(),o),l=function(t,e){return t.forEach((function(t){e.setEdge(Uo.get(t.entityA),Uo.get(t.entityB),{relationship:t},qo(t))})),t}(n.db.getRelationships(),o);Object(N.a)(o),function(t,e){e.nodes().forEach((function(r){void 0!==r&&void 0!==e.node(r)&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")}))}(s,o),l.forEach((function(t){!function(t,e,r,n,i){Ho++;var a=r.edge(Uo.get(e.entityA),Uo.get(e.entityB),qo(e)),o=Object(_.y)().x((function(t){return t.x})).y((function(t){return t.y})).curve(_.d),s=t.insert("path","#"+n).classed("er relationshipLine",!0).attr("d",o(a.points)).style("stroke",Yo.stroke).style("fill","none");e.relSpec.relType===i.db.Identification.NON_IDENTIFYING&&s.attr("stroke-dasharray","8,8");var c="";switch(Yo.arrowMarkerAbsolute&&(c=(c=(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e.relSpec.cardA){case i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-end","url("+c+"#"+Po.ZERO_OR_ONE_END+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-end","url("+c+"#"+Po.ZERO_OR_MORE_END+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-end","url("+c+"#"+Po.ONE_OR_MORE_END+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-end","url("+c+"#"+Po.ONLY_ONE_END+")")}switch(e.relSpec.cardB){case i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-start","url("+c+"#"+Po.ZERO_OR_ONE_START+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-start","url("+c+"#"+Po.ZERO_OR_MORE_START+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-start","url("+c+"#"+Po.ONE_OR_MORE_START+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-start","url("+c+"#"+Po.ONLY_ONE_START+")")}var l=s.node().getTotalLength(),u=s.node().getPointAtLength(.5*l),h="rel"+Ho,d=t.append("text").classed("er relationshipLabel",!0).attr("id",h).attr("x",u.x).attr("y",u.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Fr().fontFamily).style("font-size",Yo.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+h).classed("er relationshipLabelBox",!0).attr("x",u.x-d.width/2).attr("y",u.y-d.height/2).attr("width",d.width).attr("height",d.height)}(s,t,o,c,n)}));var u=Yo.diagramPadding;Cr.insertTitle(s,"entityTitleText",Yo.titleTopMargin,n.db.getDiagramTitle());var h=s.node().getBBox(),d=h.width+2*u,f=h.height+2*u;Ur(s,f,d,Yo.useMaxWidth),s.attr("viewBox","".concat(h.x-u," ").concat(h.y-u," ").concat(d," ").concat(f))}},Ko=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,9],r=[1,7],n=[1,6],i=[1,8],a=[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],o=[2,10],s=[1,20],c=[1,21],l=[1,22],u=[1,23],h=[1,30],d=[1,32],f=[1,33],p=[1,34],g=[1,62],y=[1,48],b=[1,52],m=[1,36],v=[1,37],_=[1,38],x=[1,39],k=[1,40],w=[1,56],T=[1,63],C=[1,51],E=[1,53],S=[1,55],A=[1,59],O=[1,60],L=[1,41],B=[1,42],D=[1,43],M=[1,44],I=[1,61],N=[1,50],F=[1,54],j=[1,57],R=[1,58],P=[1,49],$=[1,66],z=[1,71],Y=[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],U=[1,75],W=[1,74],q=[1,76],H=[20,21,23,81,82],V=[1,99],G=[1,104],X=[1,107],K=[1,108],Q=[1,101],Z=[1,106],J=[1,109],tt=[1,102],et=[1,114],rt=[1,113],nt=[1,103],it=[1,105],at=[1,110],ot=[1,111],st=[1,112],ct=[1,115],lt=[20,21,22,23,81,82],ut=[20,21,22,23,53,81,82],ht=[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],dt=[20,21,23],ft=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],pt=[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],gt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],yt=[1,149],bt=[1,157],mt=[1,158],vt=[1,159],_t=[1,160],xt=[1,144],kt=[1,145],wt=[1,141],Tt=[1,152],Ct=[1,153],Et=[1,154],St=[1,155],At=[1,156],Ot=[1,161],Lt=[1,162],Bt=[1,147],Dt=[1,150],Mt=[1,146],It=[1,143],Nt=[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],Ft=[1,165],jt=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Rt=[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],Pt=[12,21,22,24],$t=[22,106],zt=[1,250],Yt=[1,245],Ut=[1,246],Wt=[1,254],qt=[1,251],Ht=[1,248],Vt=[1,247],Gt=[1,249],Xt=[1,252],Kt=[1,253],Qt=[1,255],Zt=[1,273],Jt=[20,21,23,106],te=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ee={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(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 5:n.parseDirective("%%{","open_directive");break;case 6:n.parseDirective(a[s],"type_directive");break;case 7:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 8:n.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:this.$=a[s];break;case 19:n.setDirection("TB"),this.$="TB";break;case 20:n.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=n.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=n.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=n.addSubGraph(void 0,a[s-1],void 0);break;case 45:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 46:case 47:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 51:n.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 52:n.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 53:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 54:this.$={stmt:a[s],nodes:a[s]};break;case 55:this.$=[a[s]];break;case 56:this.$=a[s-4].concat(a[s]);break;case 57:this.$=[a[s-2]],n.setClass(a[s-2],a[s]);break;case 58:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"square");break;case 59:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"doublecircle");break;case 60:this.$=a[s-5],n.addVertex(a[s-5],a[s-2],"circle");break;case 61:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"ellipse");break;case 62:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"stadium");break;case 63:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"subroutine");break;case 64:this.$=a[s-7],n.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 65:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"cylinder");break;case 66:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"round");break;case 67:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"diamond");break;case 68:this.$=a[s-5],n.addVertex(a[s-5],a[s-2],"hexagon");break;case 69:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"odd");break;case 70:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"trapezoid");break;case 71:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 72:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"lean_right");break;case 73:this.$=a[s-3],n.addVertex(a[s-3],a[s-1],"lean_left");break;case 74:this.$=a[s],n.addVertex(a[s]);break;case 75:a[s-1].text=a[s],this.$=a[s-1];break;case 76:case 77:a[s-2].text=a[s-1],this.$=a[s-2];break;case 78:this.$=a[s];break;case 79:var c=n.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 80:c=n.destructLink(a[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 81:this.$=a[s-1];break;case 83:case 97:case 153:this.$=a[s-1]+""+a[s];break;case 98:case 99:this.$=a[s-4],n.addClass(a[s-2],a[s]);break;case 100:this.$=a[s-4],n.setClass(a[s-2],a[s]);break;case 101:case 109:this.$=a[s-1],n.setClickEvent(a[s-1],a[s]);break;case 102:case 110:this.$=a[s-3],n.setClickEvent(a[s-3],a[s-2]),n.setTooltip(a[s-3],a[s]);break;case 103:this.$=a[s-2],n.setClickEvent(a[s-2],a[s-1],a[s]);break;case 104:this.$=a[s-4],n.setClickEvent(a[s-4],a[s-3],a[s-2]),n.setTooltip(a[s-4],a[s]);break;case 105:case 111:this.$=a[s-1],n.setLink(a[s-1],a[s]);break;case 106:case 112:this.$=a[s-3],n.setLink(a[s-3],a[s-2]),n.setTooltip(a[s-3],a[s]);break;case 107:case 113:this.$=a[s-3],n.setLink(a[s-3],a[s-2],a[s]);break;case 108:case 114:this.$=a[s-5],n.setLink(a[s-5],a[s-4],a[s]),n.setTooltip(a[s-5],a[s-2]);break;case 115:this.$=a[s-4],n.addVertex(a[s-2],void 0,void 0,a[s]);break;case 116:case 118:this.$=a[s-4],n.updateLink(a[s-2],a[s]);break;case 117:this.$=a[s-4],n.updateLink([a[s-2]],a[s]);break;case 119:this.$=a[s-8],n.updateLinkInterpolate([a[s-6]],a[s-2]),n.updateLink([a[s-6]],a[s]);break;case 120:this.$=a[s-8],n.updateLinkInterpolate(a[s-6],a[s-2]),n.updateLink(a[s-6],a[s]);break;case 121:this.$=a[s-6],n.updateLinkInterpolate([a[s-4]],a[s]);break;case 122:this.$=a[s-6],n.updateLinkInterpolate(a[s-4],a[s]);break;case 123:case 125:this.$=[a[s]];break;case 124:case 126:a[s-2].push(a[s]),this.$=a[s-2];break;case 128:this.$=a[s-1]+a[s];break;case 150:this.$=a[s];break;case 151:this.$=a[s-1]+""+a[s];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:e,16:4,21:r,22:n,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:r,22:n,24:i},t(a,o,{17:11}),{7:12,13:[1,13]},{16:14,21:r,22:n,24:i},{16:15,21:r,22:n,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:31,44:d,46:f,48:p,50:35,51:45,52:g,54:46,66:y,67:b,86:m,87:v,88:_,89:x,90:k,91:w,95:T,105:C,106:E,109:S,111:A,112:O,116:47,118:L,119:B,120:D,121:M,122:I,123:N,124:F,125:j,126:R,127:P},{8:64,10:[1,65],15:$},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,68],21:[1,69],22:z,27:67,30:70},t(Y,[2,11]),t(Y,[2,12]),t(Y,[2,13]),t(Y,[2,14]),t(Y,[2,15]),t(Y,[2,16]),{9:72,20:U,21:W,23:q,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:U,21:W,23:q},{9:81,20:U,21:W,23:q},{9:82,20:U,21:W,23:q},{9:83,20:U,21:W,23:q},{9:84,20:U,21:W,23:q},{9:86,20:U,21:W,22:[1,85],23:q},t(Y,[2,44]),{45:[1,87]},{47:[1,88]},t(Y,[2,47]),t(H,[2,54],{30:89,22:z}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:V,52:G,66:X,67:K,84:[1,97],91:Q,97:96,98:[1,94],100:[1,95],105:Z,106:J,109:tt,111:et,112:rt,115:100,117:98,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(Y,[2,158]),t(Y,[2,159]),t(Y,[2,160]),t(Y,[2,161]),t(lt,[2,55],{53:[1,116]}),t(ut,[2,74],{116:129,40:[1,117],52:g,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:y,67:b,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:w,95:T,105:C,106:E,109:S,111:A,112:O,122:I,123:N,124:F,125:j,126:R,127:P}),t(ht,[2,150]),t(ht,[2,175]),t(ht,[2,176]),t(ht,[2,177]),t(ht,[2,178]),t(ht,[2,179]),t(ht,[2,180]),t(ht,[2,181]),t(ht,[2,182]),t(ht,[2,183]),t(ht,[2,184]),t(ht,[2,185]),t(ht,[2,186]),t(ht,[2,187]),t(ht,[2,188]),t(ht,[2,189]),t(ht,[2,190]),{9:130,20:U,21:W,23:q},{11:131,14:[1,132]},t(dt,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,133]},t(ft,[2,34],{30:134,22:z}),t(Y,[2,35]),{50:135,51:45,52:g,54:46,66:y,67:b,91:w,95:T,105:C,106:E,109:S,111:A,112:O,116:47,122:I,123:N,124:F,125:j,126:R,127:P},t(pt,[2,48]),t(pt,[2,49]),t(pt,[2,50]),t(gt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:yt,24:bt,26:mt,38:vt,39:139,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),t(Y,[2,36]),t(Y,[2,37]),t(Y,[2,38]),t(Y,[2,39]),t(Y,[2,40]),{22:yt,24:bt,26:mt,38:vt,39:163,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(Nt,o,{17:164}),t(Y,[2,45]),t(Y,[2,46]),t(H,[2,53],{52:Ft}),{26:V,52:G,66:X,67:K,91:Q,97:166,102:[1,167],105:Z,106:J,109:tt,111:et,112:rt,115:100,117:98,122:nt,123:it,124:at,125:ot,126:st,127:ct},{95:[1,168],103:169,105:[1,170]},{26:V,52:G,66:X,67:K,91:Q,95:[1,171],97:172,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:98,122:nt,123:it,124:at,125:ot,126:st,127:ct},{26:V,52:G,66:X,67:K,91:Q,97:173,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:98,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(dt,[2,101],{22:[1,174],99:[1,175]}),t(dt,[2,105],{22:[1,176]}),t(dt,[2,109],{115:100,117:178,22:[1,177],26:V,52:G,66:X,67:K,91:Q,105:Z,106:J,109:tt,111:et,112:rt,122:nt,123:it,124:at,125:ot,126:st,127:ct}),t(dt,[2,111],{22:[1,179]}),t(jt,[2,152]),t(jt,[2,154]),t(jt,[2,155]),t(jt,[2,156]),t(jt,[2,157]),t(Rt,[2,162]),t(Rt,[2,163]),t(Rt,[2,164]),t(Rt,[2,165]),t(Rt,[2,166]),t(Rt,[2,167]),t(Rt,[2,168]),t(Rt,[2,169]),t(Rt,[2,170]),t(Rt,[2,171]),t(Rt,[2,172]),t(Rt,[2,173]),t(Rt,[2,174]),{52:g,54:180,66:y,67:b,91:w,95:T,105:C,106:E,109:S,111:A,112:O,116:47,122:I,123:N,124:F,125:j,126:R,127:P},{22:yt,24:bt,26:mt,38:vt,39:181,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:182,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:184,42:_t,52:G,57:[1,183],66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:185,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:186,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:187,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{66:[1,188]},{22:yt,24:bt,26:mt,38:vt,39:189,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:190,42:_t,52:G,66:X,67:K,71:[1,191],73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:192,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:193,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:194,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(ht,[2,151]),t(Pt,[2,3]),{8:195,15:$},{15:[2,7]},t(a,[2,28]),t(ft,[2,33]),t(H,[2,51],{30:196,22:z}),t(gt,[2,75],{22:[1,197]}),{22:[1,198]},{22:yt,24:bt,26:mt,38:vt,39:199,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,66:X,67:K,73:xt,81:kt,82:[1,200],83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(Rt,[2,82]),t(Rt,[2,84]),t(Rt,[2,140]),t(Rt,[2,141]),t(Rt,[2,142]),t(Rt,[2,143]),t(Rt,[2,144]),t(Rt,[2,145]),t(Rt,[2,146]),t(Rt,[2,147]),t(Rt,[2,148]),t(Rt,[2,149]),t(Rt,[2,85]),t(Rt,[2,86]),t(Rt,[2,87]),t(Rt,[2,88]),t(Rt,[2,89]),t(Rt,[2,90]),t(Rt,[2,91]),t(Rt,[2,92]),t(Rt,[2,93]),t(Rt,[2,94]),t(Rt,[2,95]),{9:203,20:U,21:W,22:yt,23:q,24:bt,26:mt,38:vt,40:[1,202],42:_t,52:G,66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,204],43:31,44:d,46:f,48:p,50:35,51:45,52:g,54:46,66:y,67:b,86:m,87:v,88:_,89:x,90:k,91:w,95:T,105:C,106:E,109:S,111:A,112:O,116:47,118:L,119:B,120:D,121:M,122:I,123:N,124:F,125:j,126:R,127:P},{22:z,30:205},{22:[1,206],26:V,52:G,66:X,67:K,91:Q,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:178,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},t($t,[2,123]),{22:[1,211]},{22:[1,212],26:V,52:G,66:X,67:K,91:Q,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:178,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:[1,213],26:V,52:G,66:X,67:K,91:Q,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:178,122:nt,123:it,124:at,125:ot,126:st,127:ct},{84:[1,214]},t(dt,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},t(jt,[2,153]),{84:[1,219],101:[1,220]},t(lt,[2,57],{116:129,52:g,66:y,67:b,91:w,95:T,105:C,106:E,109:S,111:A,112:O,122:I,123:N,124:F,125:j,126:R,127:P}),{22:yt,24:bt,26:mt,38:vt,41:[1,221],42:_t,52:G,66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,56:[1,222],66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:223,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,58:[1,224],66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,60:[1,225],66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,62:[1,226],66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,64:[1,227],66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{67:[1,228]},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,66:X,67:K,70:[1,229],73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,66:X,67:K,72:[1,230],73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,39:231,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,41:[1,232],42:_t,52:G,66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,66:X,67:K,73:xt,75:[1,233],77:[1,234],81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,66:X,67:K,73:xt,75:[1,236],77:[1,235],81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{9:237,20:U,21:W,23:q},t(H,[2,52],{52:Ft}),t(gt,[2,77]),t(gt,[2,76]),{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,66:X,67:K,68:[1,238],73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(gt,[2,79]),t(Rt,[2,83]),{22:yt,24:bt,26:mt,38:vt,39:239,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(Nt,o,{17:240}),t(Y,[2,43]),{51:241,52:g,54:46,66:y,67:b,91:w,95:T,105:C,106:E,109:S,111:A,112:O,116:47,122:I,123:N,124:F,125:j,126:R,127:P},{22:zt,66:Yt,67:Ut,86:Wt,96:242,102:qt,105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},{22:zt,66:Yt,67:Ut,86:Wt,96:256,102:qt,105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},{22:zt,66:Yt,67:Ut,86:Wt,96:257,102:qt,104:[1,258],105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},{22:zt,66:Yt,67:Ut,86:Wt,96:259,102:qt,104:[1,260],105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},{105:[1,261]},{22:zt,66:Yt,67:Ut,86:Wt,96:262,102:qt,105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},{22:zt,66:Yt,67:Ut,86:Wt,96:263,102:qt,105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},{26:V,52:G,66:X,67:K,91:Q,97:264,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:98,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(dt,[2,102]),{84:[1,265]},t(dt,[2,106],{22:[1,266]}),t(dt,[2,107]),t(dt,[2,110]),t(dt,[2,112],{22:[1,267]}),t(dt,[2,113]),t(ut,[2,58]),t(ut,[2,59]),{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,58:[1,268],66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(ut,[2,66]),t(ut,[2,61]),t(ut,[2,62]),t(ut,[2,63]),{66:[1,269]},t(ut,[2,65]),t(ut,[2,67]),{22:yt,24:bt,26:mt,38:vt,42:_t,52:G,66:X,67:K,72:[1,270],73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(ut,[2,69]),t(ut,[2,70]),t(ut,[2,72]),t(ut,[2,71]),t(ut,[2,73]),t(Pt,[2,4]),t([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:yt,24:bt,26:mt,38:vt,41:[1,271],42:_t,52:G,66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,272],43:31,44:d,46:f,48:p,50:35,51:45,52:g,54:46,66:y,67:b,86:m,87:v,88:_,89:x,90:k,91:w,95:T,105:C,106:E,109:S,111:A,112:O,116:47,118:L,119:B,120:D,121:M,122:I,123:N,124:F,125:j,126:R,127:P},t(lt,[2,56]),t(dt,[2,115],{106:Zt}),t(Jt,[2,125],{108:274,22:zt,66:Yt,67:Ut,86:Wt,102:qt,105:Ht,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt}),t(te,[2,127]),t(te,[2,129]),t(te,[2,130]),t(te,[2,131]),t(te,[2,132]),t(te,[2,133]),t(te,[2,134]),t(te,[2,135]),t(te,[2,136]),t(te,[2,137]),t(te,[2,138]),t(te,[2,139]),t(dt,[2,116],{106:Zt}),t(dt,[2,117],{106:Zt}),{22:[1,275]},t(dt,[2,118],{106:Zt}),{22:[1,276]},t($t,[2,124]),t(dt,[2,98],{106:Zt}),t(dt,[2,99],{106:Zt}),t(dt,[2,100],{115:100,117:178,26:V,52:G,66:X,67:K,91:Q,105:Z,106:J,109:tt,111:et,112:rt,122:nt,123:it,124:at,125:ot,126:st,127:ct}),t(dt,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:U,21:W,23:q},t(Y,[2,42]),{22:zt,66:Yt,67:Ut,86:Wt,102:qt,105:Ht,107:283,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},t(te,[2,128]),{26:V,52:G,66:X,67:K,91:Q,97:284,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:98,122:nt,123:it,124:at,125:ot,126:st,127:ct},{26:V,52:G,66:X,67:K,91:Q,97:285,105:Z,106:J,109:tt,111:et,112:rt,115:100,117:98,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(dt,[2,108]),t(dt,[2,114]),t(ut,[2,60]),{22:yt,24:bt,26:mt,38:vt,39:286,42:_t,52:G,66:X,67:K,73:xt,81:kt,83:140,84:wt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},t(ut,[2,68]),t(Nt,o,{17:287}),t(Jt,[2,126],{108:274,22:zt,66:Yt,67:Ut,86:Wt,102:qt,105:Ht,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt}),t(dt,[2,121],{115:100,117:178,22:[1,288],26:V,52:G,66:X,67:K,91:Q,105:Z,106:J,109:tt,111:et,112:rt,122:nt,123:it,124:at,125:ot,126:st,127:ct}),t(dt,[2,122],{115:100,117:178,22:[1,289],26:V,52:G,66:X,67:K,91:Q,105:Z,106:J,109:tt,111:et,112:rt,122:nt,123:it,124:at,125:ot,126:st,127:ct}),{22:yt,24:bt,26:mt,38:vt,41:[1,290],42:_t,52:G,66:X,67:K,73:xt,81:kt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Ot,92:Lt,94:142,95:Bt,105:Z,106:J,109:Dt,111:et,112:rt,113:Mt,114:It,115:148,122:nt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,291],43:31,44:d,46:f,48:p,50:35,51:45,52:g,54:46,66:y,67:b,86:m,87:v,88:_,89:x,90:k,91:w,95:T,105:C,106:E,109:S,111:A,112:O,116:47,118:L,119:B,120:D,121:M,122:I,123:N,124:F,125:j,126:R,127:P},{22:zt,66:Yt,67:Ut,86:Wt,96:292,102:qt,105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},{22:zt,66:Yt,67:Ut,86:Wt,96:293,102:qt,105:Ht,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Kt,113:Qt},t(ut,[2,64]),t(Y,[2,41]),t(dt,[2,119],{106:Zt}),t(dt,[2,120],{106:Zt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},re={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,r,n){switch(r){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:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();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 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:case 41:case 42:case 43:return 101;case 44:return this.popState(),25;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:case 68:case 69:return 82;case 70:case 71:case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113: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]*)/,/^(?:flowchart-elk\b)/,/^(?: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:[44,45,46,47,48,49,50,51,52,53,54],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,43,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,113],inclusive:!0}}};function ne(){this.yy={}}return ee.lexer=re,ne.prototype=ee,ee.Parser=ne,new ne}();Ko.parser=Ko;var Qo,Zo,Jo=Ko,ts=function(t,e){var r,n;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&"elk"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*graph/)},es=function(t,e){var r,n;return"dagre-d3"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&"elk"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&(null!==t.match(/^\s*graph/)||null!==t.match(/^\s*flowchart/))},rs="flowchart-",ns=0,is=Fr(),as={},os=[],ss={},cs=[],ls={},us={},hs=0,ds=!0,fs=[],ps=function(t){return ut.sanitizeText(t,is)},gs=function(t,e,r){ef.parseDirective(this,t,e,r)},ys=function(t){for(var e=0,r=Object.keys(as);e<r.length;e++){var n=r[e];if(as[n].id===t)return as[n].domId}return t},bs=function(t,e,r,n,i,a){var o,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=t;void 0!==c&&0!==c.trim().length&&(void 0===as[c]&&(as[c]={id:c,domId:rs+c+"-"+ns,styles:[],classes:[]}),ns++,void 0!==e?(is=Fr(),'"'===(o=ps(e.trim()))[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),as[c].text=o):void 0===as[c].text&&(as[c].text=t),void 0!==r&&(as[c].type=r),null!=n&&n.forEach((function(t){as[c].styles.push(t)})),null!=i&&i.forEach((function(t){as[c].classes.push(t)})),void 0!==a&&(as[c].dir=a),void 0===as[c].props?as[c].props=s:void 0!==s&&Object.assign(as[c].props,s))},ms=function(t,e,r,n){var i={start:t,end:e,type:void 0,text:""};void 0!==(n=r.text)&&(i.text=ps(n.trim()),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==r&&(i.type=r.type,i.stroke=r.stroke,i.length=r.length),os.push(i)},vs=function(t,e,r,n){var i,a;for(i=0;i<t.length;i++)for(a=0;a<e.length;a++)ms(t[i],e[a],r,n)},_s=function(t,e){t.forEach((function(t){"default"===t?os.defaultInterpolate=e:os[t].interpolate=e}))},xs=function(t,e){t.forEach((function(t){"default"===t?os.defaultStyle=e:(-1===Cr.isSubstringInArray("fill",e)&&e.push("fill:none"),os[t].style=e)}))},ks=function(t,e){void 0===ss[t]&&(ss[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){var r=e.replace("fill","bgFill").replace("color","fill");ss[t].textStyles.push(r)}ss[t].styles.push(e)}))},ws=function(t){(Qo=t).match(/.*</)&&(Qo="RL"),Qo.match(/.*\^/)&&(Qo="BT"),Qo.match(/.*>/)&&(Qo="LR"),Qo.match(/.*v/)&&(Qo="TB"),"TD"===Qo&&(Qo="TB")},Ts=function(t,e){t.split(",").forEach((function(t){var r=t;void 0!==as[r]&&as[r].classes.push(e),void 0!==ls[r]&&ls[r].classes.push(e)}))},Cs=function(t,e,r){t.split(",").forEach((function(t){void 0!==as[t]&&(as[t].link=Cr.formatUrl(e,is),as[t].linkTarget=r)})),Ts(t,"clickable")},Es=function(t){return us[t]},Ss=function(t,e,r){t.split(",").forEach((function(t){!function(t,e,r){var n=ys(t);if("loose"===Fr().securityLevel&&void 0!==e){var i=[];if("string"==typeof r){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var a=0;a<i.length;a++){var o=i[a].trim();'"'===o.charAt(0)&&'"'===o.charAt(o.length-1)&&(o=o.substr(1,o.length-2)),i[a]=o}}0===i.length&&i.push(t),void 0!==as[t]&&(as[t].haveCallback=!0,fs.push((function(){var t=document.querySelector('[id="'.concat(n,'"]'));null!==t&&t.addEventListener("click",(function(){Cr.runFunc.apply(Cr,[e].concat(Object(h.a)(i)))}),!1)})))}}(t,e,r)})),Ts(t,"clickable")},As=function(t){fs.forEach((function(e){e(t)}))},Os=function(){return Qo.trim()},Ls=function(){return as},Bs=function(){return os},Ds=function(){return ss},Ms=function(t){var e=Object(_.F)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Object(_.F)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(_.F)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Object(_.F)(this);if(null!==t.attr("title")){var r=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Object(_.F)(this).classed("hover",!1)}))};fs.push(Ms);var Is=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gen-1";as={},ss={},os=[],fs=[Ms],cs=[],ls={},hs=0,us=[],ds=!0,Zo=t,un()},Ns=function(t){Zo=t||"gen-2"},Fs=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},js=function(t,e,r){var i=t.trim(),a=r;t===r&&r.match(/\s/)&&(i=void 0);var o=[],s=function(t){var e,r={boolean:{},number:{},string:{}},i=[];return{nodeList:t.filter((function(t){var a=Object(n.a)(t);return t.stmt&&"dir"===t.stmt?(e=t.value,!1):""!==t.trim()&&(a in r?!r[a].hasOwnProperty(t)&&(r[a][t]=!0):!i.includes(t)&&i.push(t))})),dir:e}}(o.concat.apply(o,e)),c=s.nodeList,l=s.dir;if(o=c,"gen-1"===Zo)for(var u=0;u<o.length;u++)o[u]=ys(o[u]);i=i||"subGraph"+hs,a=ps(a=a||""),hs+=1;var h={id:i,nodes:o,title:a.trim(),classes:[],dir:l};return tt.info("Adding",h.id,h.nodes,h.dir),h.nodes=Gs(h,cs).nodes,cs.push(h),ls[i]=h,i},Rs=function(t){var e,r=Object(l.a)(cs.entries());try{for(r.s();!(e=r.n()).done;){var n=Object(u.a)(e.value,2),i=n[0];if(n[1].id===t)return i}}catch(t){r.e(t)}finally{r.f()}return-1},Ps=-1,$s=[],zs=function(t,e){var r=cs[e].nodes;if(!((Ps+=1)>2e3)){if($s[Ps]=e,cs[e].id===t)return{result:!0,count:0};for(var n=0,i=1;n<r.length;){var a=Rs(r[n]);if(a>=0){var o=zs(t,a);if(o.result)return{result:!0,count:i+o.count};i+=o.count}n+=1}return{result:!1,count:i}}},Ys=function(t){return $s[t]},Us=function(){Ps=-1,cs.length>0&&zs("none",cs.length-1)},Ws=function(){return cs},qs=function(){return!!ds&&(ds=!1,!0)},Hs=function(t,e){var r,n=function(t){var e=t.trim(),r=e.slice(0,-1),n="arrow_open";switch(e.slice(-1)){case"x":n="arrow_cross","x"===e[0]&&(n="double_"+n,r=r.slice(1));break;case">":n="arrow_point","<"===e[0]&&(n="double_"+n,r=r.slice(1));break;case"o":n="arrow_circle","o"===e[0]&&(n="double_"+n,r=r.slice(1))}var i="normal",a=r.length-1;"="===r[0]&&(i="thick");var o=function(t,e){for(var r=e.length,n=0,i=0;i<r;++i)e[i]===t&&++n;return n}(".",r);return o&&(i="dotted",a=o),{type:n,stroke:i,length:a}}(t);if(e){if((r=function(t){var e=t.trim(),r="arrow_open";switch(e[0]){case"<":r="arrow_point",e=e.slice(1);break;case"x":r="arrow_cross",e=e.slice(1);break;case"o":r="arrow_circle",e=e.slice(1)}var n="normal";return e.includes("=")&&(n="thick"),e.includes(".")&&(n="dotted"),{type:r,stroke:n}}(e)).stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=n.type;else{if(r.type!==n.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=n.length,r}return n},Vs=function(t,e){var r=!1;return t.forEach((function(t){t.nodes.indexOf(e)>=0&&(r=!0)})),r},Gs=function(t,e){var r=[];return t.nodes.forEach((function(n,i){Vs(e,n)||r.push(t.nodes[i])})),{nodes:r}},Xs={firstGraph:qs},Ks={parseDirective:gs,defaultConfig:function(){return Sr.flowchart},setAccTitle:hn,getAccTitle:dn,getAccDescription:pn,setAccDescription:fn,addVertex:bs,lookUpDomId:ys,addLink:vs,updateLinkInterpolate:_s,updateLink:xs,addClass:ks,setDirection:ws,setClass:Ts,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(us["gen-1"===Zo?ys(t):t]=ps(e))}))},getTooltip:Es,setClickEvent:Ss,setLink:Cs,bindFunctions:As,getDirection:Os,getVertices:Ls,getEdges:Bs,getClasses:Ds,clear:Is,setGen:Ns,defaultStyle:Fs,addSubGraph:js,getDepthFirstPos:Ys,indexNodes:Us,getSubGraphs:Ws,destructLink:Hs,lex:Xs,exists:Vs,makeUniq:Gs,setDiagramTitle:gn,getDiagramTitle:yn},Qs=Object.freeze(Object.defineProperty({__proto__:null,addClass:ks,addLink:vs,addSingleLink:ms,addSubGraph:js,addVertex:bs,bindFunctions:As,clear:Is,default:Ks,defaultStyle:Fs,destructLink:Hs,firstGraph:qs,getClasses:Ds,getDepthFirstPos:Ys,getDirection:Os,getEdges:Bs,getSubGraphs:Ws,getTooltip:Es,getVertices:Ls,indexNodes:Us,lex:Xs,lookUpDomId:ys,parseDirective:gs,setClass:Ts,setClickEvent:Ss,setDirection:ws,setGen:Ns,setLink:Cs,updateLink:xs,updateLinkInterpolate:_s},Symbol.toStringTag,{value:"Module"}));var Zs={},Js=function(t){for(var e=0,r=Object.keys(t);e<r.length;e++){var n=r[e];Zs[n]=t[n]}},tc={},ec=function(t,e,r,n,i,a){var o=n.select('[id="'.concat(r,'"]'));Object.keys(t).forEach((function(r){var n=t[r],s="default";n.classes.length>0&&(s=n.classes.join(" "));var c,u=cr(n.styles),h=void 0!==n.text?n.text:n.id;if(ct(Fr().flowchart.htmlLabels)){var d={label:h.replace(/fa[blrs]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")}))};(c=Object(q.a)(o,d).node()).parentNode.removeChild(c)}else{var f=i.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("style",u.labelStyle.replace("color:","fill:"));var p,g=h.split(ut.lineBreakRegex),y=Object(l.a)(g);try{for(y.s();!(p=y.n()).done;){var b=p.value,m=i.createElementNS("http://www.w3.org/2000/svg","tspan");m.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),m.setAttribute("dy","1em"),m.setAttribute("x","1"),m.textContent=b,f.appendChild(m)}}catch(t){y.e(t)}finally{y.f()}c=f}var v=0,_="";switch(n.type){case"round":v=5,_="rect";break;case"square":_="rect";break;case"diamond":_="question";break;case"hexagon":_="hexagon";break;case"odd":_="rect_left_inv_arrow";break;case"lean_right":_="lean_right";break;case"lean_left":_="lean_left";break;case"trapezoid":_="trapezoid";break;case"inv_trapezoid":_="inv_trapezoid";break;case"odd_right":_="rect_left_inv_arrow";break;case"circle":_="circle";break;case"ellipse":_="ellipse";break;case"stadium":_="stadium";break;case"subroutine":_="subroutine";break;case"cylinder":_="cylinder";break;case"group":_="rect";break;case"doublecircle":_="doublecircle";break;default:_="rect"}e.setNode(n.id,{labelStyle:u.labelStyle,shape:_,labelText:h,rx:v,ry:v,class:s,style:u.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:a.db.getTooltip(n.id)||"",domId:a.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:"group"===n.type?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:Fr().flowchart.padding}),tt.info("setNode",{labelStyle:u.labelStyle,shape:_,labelText:h,rx:v,ry:v,class:s,style:u.style,id:n.id,domId:a.db.lookUpDomId(n.id),width:"group"===n.type?500:void 0,type:n.type,dir:n.dir,props:n.props,padding:Fr().flowchart.padding})}))},rc=function(t,e,r){tt.info("abc78 edges = ",t);var n,i,a=0,o={};if(void 0!==t.defaultStyle){var s=cr(t.defaultStyle);n=s.style,i=s.labelStyle}t.forEach((function(r){a++;var s="L-"+r.start+"-"+r.end;void 0===o[s]?(o[s]=0,tt.info("abc78 new entry",s,o[s])):(o[s]++,tt.info("abc78 new entry",s,o[s]));var c=s+"-"+o[s];tt.info("abc78 new link id to be used is",s,c,o[s]);var l="LS-"+r.start,u="LE-"+r.end,h={style:"",labelStyle:""};switch(h.minlen=r.length||1,"arrow_open"===r.type?h.arrowhead="none":h.arrowhead="normal",h.arrowTypeStart="arrow_open",h.arrowTypeEnd="arrow_open",r.type){case"double_arrow_cross":h.arrowTypeStart="arrow_cross";case"arrow_cross":h.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":h.arrowTypeStart="arrow_point";case"arrow_point":h.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":h.arrowTypeStart="arrow_circle";case"arrow_circle":h.arrowTypeEnd="arrow_circle"}var d="",f="";switch(r.stroke){case"normal":d="fill:none;",void 0!==n&&(d=n),void 0!==i&&(f=i),h.thickness="normal",h.pattern="solid";break;case"dotted":h.thickness="normal",h.pattern="dotted",h.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h.thickness="thick",h.pattern="solid",h.style="stroke-width: 3.5px;fill:none;"}if(void 0!==r.style){var p=cr(r.style);d=p.style,f=p.labelStyle}h.style=h.style+=d,h.labelStyle=h.labelStyle+=f,void 0!==r.interpolate?h.curve=or(r.interpolate,_.p):void 0!==t.defaultInterpolate?h.curve=or(t.defaultInterpolate,_.p):h.curve=or(tc.curve,_.p),void 0===r.text?void 0!==r.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c"),h.labelType="text",h.label=r.text.replace(ut.lineBreakRegex,"\n"),void 0===r.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),h.labelStyle=h.labelStyle.replace("color:","fill:"),h.id=c,h.classes="flowchart-link "+l+" "+u,e.setEdge(r.start,r.end,h,a)}))},nc={setConf:function(t){for(var e=0,r=Object.keys(t);e<r.length;e++){var n=r[e];tc[n]=t[n]}},addVertices:ec,addEdges:rc,getClasses:function(t,e){tt.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(t){return}},draw:function(t,e,r,n){tt.info("Drawing flowchart"),n.db.clear(),Ks.setGen("gen-2"),n.parser.parse(t);var i=n.db.getDirection();void 0===i&&(i="TD");var a,o=Fr(),s=o.securityLevel,c=o.flowchart,u=c.nodeSpacing||50,h=c.rankSpacing||50;"sandbox"===s&&(a=Object(_.F)("#i"+e));var d,f="sandbox"===s?Object(_.F)(a.nodes()[0].contentDocument.body):Object(_.F)("body"),p="sandbox"===s?a.nodes()[0].contentDocument:document,g=new F.a({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:u,ranksep:h,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}})),y=n.db.getSubGraphs();tt.info("Subgraphs - ",y);for(var b=y.length-1;b>=0;b--)d=y[b],tt.info("Subgraph - ",d),n.db.addVertex(d.id,d.title,"group",void 0,d.classes,d.dir);var m=n.db.getVertices(),v=n.db.getEdges();tt.info("Edges",v);var x=0;for(x=y.length-1;x>=0;x--){d=y[x],Object(_.G)("cluster").append("text");for(var k=0;k<d.nodes.length;k++)tt.info("Setting up subgraphs",d.nodes[k],d.id),g.setParent(d.nodes[k],d.id)}ec(m,g,e,f,p,n),rc(v,g);var w=f.select('[id="'.concat(e,'"]')),T=f.select("#"+e+" g");if(Eo(T,g,["point","circle","cross"],"flowchart",e),Cr.insertTitle(w,"flowchartTitleText",c.titleTopMargin,n.db.getDiagramTitle()),Wr(g,w,c.diagramPadding,c.useMaxWidth),n.db.indexNodes("subGraph"+x),!c.htmlLabels){var C,E=p.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),S=Object(l.a)(E);try{for(S.s();!(C=S.n()).done;){var A=C.value,O=A.getBBox(),L=p.createElementNS("http://www.w3.org/2000/svg","rect");L.setAttribute("rx",0),L.setAttribute("ry",0),L.setAttribute("width",O.width),L.setAttribute("height",O.height),A.insertBefore(L,A.firstChild)}}catch(t){S.e(t)}finally{S.f()}}Object.keys(m).forEach((function(t){var r=m[t];if(r.link){var n=Object(_.F)("#"+e+' [id="'+t+'"]');if(n){var i=p.createElementNS("http://www.w3.org/2000/svg","a");i.setAttributeNS("http://www.w3.org/2000/svg","class",r.classes.join(" ")),i.setAttributeNS("http://www.w3.org/2000/svg","href",r.link),i.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===s?i.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):r.linkTarget&&i.setAttributeNS("http://www.w3.org/2000/svg","target",r.linkTarget);var a=n.insert((function(){return i}),":first-child"),o=n.select(".label-container");o&&a.append((function(){return o.node()}));var c=n.select(".label");c&&a.append((function(){return c.node()}))}}}))}},ic=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,3],r=[1,5],n=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],l=[1,20],u=[1,21],h=[1,22],d=[1,23],f=[1,24],p=[1,25],g=[1,26],y=[1,27],b=[1,29],m=[1,31],v=[1,34],_=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],x={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,tickInterval: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:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"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,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 2:return a[s-1];case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 9:n.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:n.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:n.TopAxis(),this.$=a[s].substr(8);break;case 12:n.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 13:n.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 14:n.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 15:n.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 16:n.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 17:n.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 18:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 19:case 20:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 21:n.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 23:n.addTask(a[s-1],a[s]),this.$="task";break;case 27:this.$=a[s-1],n.setClickEvent(a[s-1],a[s],null);break;case 28:this.$=a[s-2],n.setClickEvent(a[s-2],a[s-1],a[s]);break;case 29:this.$=a[s-2],n.setClickEvent(a[s-2],a[s-1],null),n.setLink(a[s-2],a[s]);break;case 30:this.$=a[s-3],n.setClickEvent(a[s-3],a[s-2],a[s-1]),n.setLink(a[s-3],a[s]);break;case 31:this.$=a[s-2],n.setClickEvent(a[s-2],a[s],null),n.setLink(a[s-2],a[s-1]);break;case 32:this.$=a[s-3],n.setClickEvent(a[s-3],a[s-1],a[s]),n.setLink(a[s-3],a[s-2]);break;case 33:this.$=a[s-1],n.setLink(a[s-1],a[s]);break;case 34:case 40:this.$=a[s-1]+" "+a[s];break;case 35:case 36:case 38:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 37:case 39:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 41:n.parseDirective("%%{","open_directive");break;case 42:n.parseDirective(a[s],"type_directive");break;case 43:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 44:n.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,30:4,40:r},{1:[3]},{3:6,4:2,5:e,30:4,40:r},t(n,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:a,14:o,15:s,16:c,17:l,18:u,19:h,20:d,21:f,23:p,25:g,26:y,27:28,28:b,30:4,35:m,40:r},{32:32,33:[1,33],43:v},t([33,43],[2,42]),t(n,[2,8],{1:[2,2]}),t(n,[2,4]),{4:30,10:35,12:i,13:a,14:o,15:s,16:c,17:l,18:u,19:h,20:d,21:f,23:p,25:g,26:y,27:28,28:b,30:4,35:m,40:r},t(n,[2,6]),t(n,[2,7]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),{22:[1,36]},{24:[1,37]},t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),{29:[1,38]},t(n,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(n,[2,5]),t(n,[2,18]),t(n,[2,19]),t(n,[2,23]),t(n,[2,27],{37:[1,44],38:[1,45]}),t(n,[2,33],{36:[1,46]}),t(_,[2,25]),{32:47,43:v},{43:[2,43]},t(n,[2,28],{38:[1,48]}),t(n,[2,29]),t(n,[2,31],{37:[1,49]}),{11:[1,50]},t(n,[2,30]),t(n,[2,32]),t(_,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:break;case 15:return 11;case 16:case 17:case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48: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,/^(?:tickInterval\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,48],inclusive:!0}}};function w(){this.yy={}}return x.lexer=k,w.prototype=x,x.Parser=w,new w}();ic.parser=ic;var ac=ic,oc=function(t){return null!==t.match(/^\s*gantt/)};m.a.extend(V.a),m.a.extend(X.a),m.a.extend(Q.a);var sc,cc,lc="",uc="",hc=void 0,dc="",fc=[],pc=[],gc={},yc=[],bc=[],mc="",vc=["active","done","crit","milestone"],_c=[],xc=!1,kc=!1,wc=0,Tc=function(t,e,r,n){return!n.includes(t.format(e.trim()))&&(!!(t.isoWeekday()>=6&&r.includes("weekends"))||!!r.includes(t.format("dddd").toLowerCase())||r.includes(t.format(e.trim())))},Cc=function(t,e,r,n){if(r.length&&!t.manualEndTime){var i,a;i=(i=t.startTime instanceof Date?m()(t.startTime):m()(t.startTime,e,!0)).add(1,"d"),a=t.endTime instanceof Date?m()(t.endTime):m()(t.endTime,e,!0);var o=Ec(i,a,e,r,n),s=Object(u.a)(o,2),c=s[0],l=s[1];t.endTime=c.toDate(),t.renderEndTime=l}},Ec=function(t,e,r,n,i){for(var a=!1,o=null;t<=e;)a||(o=e.toDate()),(a=Tc(t,r,n,i))&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,o]},Sc=function(t,e,r){r=r.trim();var n=/^after\s+([\d\w- ]+)/.exec(r.trim());if(null!==n){var i=null;if(n[1].split(" ").forEach((function(t){var e=Ic(t);void 0!==e&&(i?e.endTime>i.endTime&&(i=e):i=e)})),i)return i.endTime;var a=new Date;return a.setHours(0,0,0,0),a}var o=m()(r,e.trim(),!0);if(o.isValid())return o.toDate();tt.debug("Invalid date:"+r),tt.debug("With date format:"+e.trim());var s=new Date(r);if(void 0===s||isNaN(s.getTime()))throw new Error("Invalid date:"+r);return s},Ac=function(t){var e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},Oc=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r=r.trim();var i=m()(r,e.trim(),!0);if(i.isValid())return n&&(i=i.add(1,"d")),i.toDate();var a=m()(t),o=Ac(r),s=Object(u.a)(o,2),c=s[0],l=s[1];if(!Number.isNaN(c)){var h=a.add(c,l);h.isValid()&&(a=h)}return a.toDate()},Lc=0,Bc=function(t){return void 0===t?"task"+(Lc+=1):t},Dc=[],Mc={},Ic=function(t){var e=Mc[t];return Dc[e]},Nc=function(){var t,e=function(t){var e=Dc[t],r="";switch(Dc[t].raw.startTime.type){case"prevTaskEnd":var n=Ic(e.prevTaskId);e.startTime=n.endTime;break;case"getStartDate":(r=Sc(0,lc,Dc[t].raw.startTime.startData))&&(Dc[t].startTime=r)}return Dc[t].startTime&&(Dc[t].endTime=Oc(Dc[t].startTime,lc,Dc[t].raw.endTime.data,xc),Dc[t].endTime&&(Dc[t].processed=!0,Dc[t].manualEndTime=m()(Dc[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Cc(Dc[t],lc,pc,fc))),Dc[t].processed},r=!0,n=Object(l.a)(Dc.entries());try{for(n.s();!(t=n.n()).done;){var i=Object(u.a)(t.value,2),a=i[0],o=i[1];e(a),r=r&&o.processed}}catch(t){n.e(t)}finally{n.f()}return r},Fc=function(t,e){t.split(",").forEach((function(t){var r=Ic(t);void 0!==r&&r.classes.push(e)}))},jc=function(t,e){_c.push((function(){var r=document.querySelector('[id="'.concat(t,'"]'));null!==r&&r.addEventListener("click",(function(){e()}))}),(function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));null!==r&&r.addEventListener("click",(function(){e()}))}))},Rc={parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().gantt},clear:function(){yc=[],bc=[],mc="",_c=[],Lc=0,sc=void 0,cc=void 0,Dc=[],lc="",uc="",hc=void 0,dc="",fc=[],pc=[],xc=!1,kc=!1,wc=0,gc={},un()},setDateFormat:function(t){lc=t},getDateFormat:function(){return lc},enableInclusiveEndDates:function(){xc=!0},endDatesAreInclusive:function(){return xc},enableTopAxis:function(){kc=!0},topAxisEnabled:function(){return kc},setAxisFormat:function(t){uc=t},getAxisFormat:function(){return uc},setTickInterval:function(t){hc=t},getTickInterval:function(){return hc},setTodayMarker:function(t){dc=t},getTodayMarker:function(){return dc},setAccTitle:hn,getAccTitle:dn,setDiagramTitle:gn,getDiagramTitle:yn,setAccDescription:fn,getAccDescription:pn,addSection:function(t){mc=t,yc.push(t)},getSections:function(){return yc},getTasks:function(){for(var t=Nc(),e=0;!t&&e<10;)t=Nc(),e++;return bc=Dc},addTask:function(t,e){var r={section:mc,type:mc,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},n=function(t,e){var r=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),n={};Pc(r,n,vc);for(var i=0;i<r.length;i++)r[i]=r[i].trim();switch(r.length){case 1:n.id=Bc(),n.startTime={type:"prevTaskEnd",id:t},n.endTime={data:r[0]};break;case 2:n.id=Bc(),n.startTime={type:"getStartDate",startData:r[0]},n.endTime={data:r[1]};break;case 3:n.id=Bc(r[0]),n.startTime={type:"getStartDate",startData:r[1]},n.endTime={data:r[2]}}return n}(cc,e);r.raw.startTime=n.startTime,r.raw.endTime=n.endTime,r.id=n.id,r.prevTaskId=cc,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.order=wc,wc++;var i=Dc.push(r);cc=r.id,Mc[r.id]=i-1},findTaskById:Ic,addTaskOrg:function(t,e){var r={section:mc,type:mc,description:t,task:t,classes:[]},n=function(t,e){var r=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),n={};Pc(r,n,vc);for(var i=0;i<r.length;i++)r[i]=r[i].trim();var a="";switch(r.length){case 1:n.id=Bc(),n.startTime=t.endTime,a=r[0];break;case 2:n.id=Bc(),n.startTime=Sc(0,lc,r[0]),a=r[1];break;case 3:n.id=Bc(r[0]),n.startTime=Sc(0,lc,r[1]),a=r[2]}return a&&(n.endTime=Oc(n.startTime,lc,a,xc),n.manualEndTime=m()(a,"YYYY-MM-DD",!0).isValid(),Cc(n,lc,pc,fc)),n}(sc,e);r.startTime=n.startTime,r.endTime=n.endTime,r.id=n.id,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,sc=r,bc.push(r)},setIncludes:function(t){fc=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return fc},setExcludes:function(t){pc=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return pc},setClickEvent:function(t,e,r){t.split(",").forEach((function(t){!function(t,e,r){if("loose"===Fr().securityLevel&&void 0!==e){var n=[];if("string"==typeof r){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var i=0;i<n.length;i++){var a=n[i].trim();'"'===a.charAt(0)&&'"'===a.charAt(a.length-1)&&(a=a.substr(1,a.length-2)),n[i]=a}}0===n.length&&n.push(t),void 0!==Ic(t)&&jc(t,(function(){Cr.runFunc.apply(Cr,[e].concat(Object(h.a)(n)))}))}}(t,e,r)})),Fc(t,"clickable")},setLink:function(t,e){var r=e;"loose"!==Fr().securityLevel&&(r=Object(v.sanitizeUrl)(e)),t.split(",").forEach((function(t){void 0!==Ic(t)&&(jc(t,(function(){window.open(r,"_self")})),gc[t]=r)})),Fc(t,"clickable")},getLinks:function(){return gc},bindFunctions:function(t){_c.forEach((function(e){e(t)}))},parseDuration:Ac,isInvalidDate:Tc};function Pc(t,e,r){for(var n=!0;n;)n=!1,r.forEach((function(r){var i=new RegExp("^\\s*"+r+"\\s*$");t[0].match(i)&&(e[r]=!0,t.shift(1),n=!0)}))}var $c,zc={setConf:function(){tt.debug("Something is calling, setConf, remove the call")},draw:function(t,e,r,n){var i,a=Fr().gantt,o=Fr().securityLevel;"sandbox"===o&&(i=Object(_.F)("#i"+e));var s="sandbox"===o?Object(_.F)(i.nodes()[0].contentDocument.body):Object(_.F)("body"),c="sandbox"===o?i.nodes()[0].contentDocument:document,h=c.getElementById(e);void 0===($c=h.parentElement.offsetWidth)&&($c=1200),void 0!==a.useWidth&&($c=a.useWidth);var d=n.db.getTasks(),f=d.length*(a.barHeight+a.barGap)+2*a.topPadding;h.setAttribute("viewBox","0 0 "+$c+" "+f);var p,g=s.select('[id="'.concat(e,'"]')),y=Object(_.E)().domain([Object(_.A)(d,(function(t){return t.startTime})),Object(_.z)(d,(function(t){return t.endTime}))]).rangeRound([0,$c-a.leftPadding-a.rightPadding]),b=[],v=Object(l.a)(d);try{for(v.s();!(p=v.n()).done;){var x=p.value;b.push(x.type)}}catch(t){v.e(t)}finally{v.f()}var k=b;function w(t,r,i,o,s,c,h){g.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*r+i-2})).attr("width",(function(){return h-a.rightPadding/2})).attr("height",r).attr("class",(function(t){var e,r=Object(l.a)(b.entries());try{for(r.s();!(e=r.n()).done;){var n=Object(u.a)(e.value,2),i=n[0],o=n[1];if(t.type===o)return"section section"+i%a.numberSectionStyles}}catch(t){r.e(t)}finally{r.f()}return"section section0"}));var d=g.append("g").selectAll("rect").data(t).enter(),f=n.db.getLinks();if(d.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?y(t.startTime)+o+.5*(y(t.endTime)-y(t.startTime))-.5*s:y(t.startTime)+o})).attr("y",(function(t,e){return t.order*r+i})).attr("width",(function(t){return t.milestone?s:y(t.renderEndTime||t.endTime)-y(t.startTime)})).attr("height",s).attr("transform-origin",(function(t,e){return e=t.order,(y(t.startTime)+o+.5*(y(t.endTime)-y(t.startTime))).toString()+"px "+(e*r+i+.5*s).toString()+"px"})).attr("class",(function(t){var e="";t.classes.length>0&&(e=t.classes.join(" "));var r,n=0,i=Object(l.a)(b.entries());try{for(i.s();!(r=i.n()).done;){var o=Object(u.a)(r.value,2),s=o[0],c=o[1];t.type===c&&(n=s%a.numberSectionStyles)}}catch(t){i.e(t)}finally{i.f()}var h="";return t.active?t.crit?h+=" activeCrit":h=" active":t.done?h=t.crit?" doneCrit":" done":t.crit&&(h+=" crit"),0===h.length&&(h=" task"),t.milestone&&(h=" milestone "+h),h+=n,"task"+(h+=" "+e)})),d.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",a.fontSize).attr("x",(function(t){var e=y(t.startTime),r=y(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(y(t.endTime)-y(t.startTime))-.5*s),t.milestone&&(r=e+s);var n=this.getBBox().width;return n>r-e?r+n+1.5*a.leftPadding>h?e+o-5:r+o+5:(r-e)/2+e+o})).attr("y",(function(t,e){return t.order*r+a.barHeight/2+(a.fontSize/2-2)+i})).attr("text-height",s).attr("class",(function(t){var e=y(t.startTime),r=y(t.endTime);t.milestone&&(r=e+s);var n=this.getBBox().width,i="";t.classes.length>0&&(i=t.classes.join(" "));var o,c=0,d=Object(l.a)(b.entries());try{for(d.s();!(o=d.n()).done;){var f=Object(u.a)(o.value,2),p=f[0],g=f[1];t.type===g&&(c=p%a.numberSectionStyles)}}catch(t){d.e(t)}finally{d.f()}var m="";return t.active&&(m=t.crit?"activeCritText"+c:"activeText"+c),t.done?m=t.crit?m+" doneCritText"+c:m+" doneText"+c:t.crit&&(m=m+" critText"+c),t.milestone&&(m+=" milestoneText"),n>r-e?r+n+1.5*a.leftPadding>h?i+" taskTextOutsideLeft taskTextOutside"+c+" "+m:i+" taskTextOutsideRight taskTextOutside"+c+" "+m+" width-"+n:i+" taskText taskText"+c+" "+m+" width-"+n})),"sandbox"===Fr().securityLevel){var p=Object(_.F)("#i"+e).nodes()[0].contentDocument;d.filter((function(t){return void 0!==f[t.id]})).each((function(t){var e=p.querySelector("#"+t.id),r=p.querySelector("#"+t.id+"-text"),n=e.parentNode,i=p.createElement("a");i.setAttribute("xlink:href",f[t.id]),i.setAttribute("target","_top"),n.appendChild(i),i.appendChild(e),i.appendChild(r)}))}}function T(t,e){var r,n=[],i=0,o=Object(l.a)(b.entries());try{for(o.s();!(r=o.n()).done;){var s=Object(u.a)(r.value,2),h=s[0],d=s[1];n[h]=[d,C(d,k)]}}catch(t){o.e(t)}finally{o.f()}g.append("g").selectAll("text").data(n).enter().append((function(t){var e=t[0].split(ut.lineBreakRegex),r=-(e.length-1)/2,n=c.createElementNS("http://www.w3.org/2000/svg","text");n.setAttribute("dy",r+"em");var i,a=Object(l.a)(e.entries());try{for(a.s();!(i=a.n()).done;){var o=Object(u.a)(i.value,2),s=o[0],h=o[1],d=c.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttribute("alignment-baseline","central"),d.setAttribute("x","10"),s>0&&d.setAttribute("dy","1em"),d.textContent=h,n.appendChild(d)}}catch(t){a.e(t)}finally{a.f()}return n})).attr("x",10).attr("y",(function(r,a){if(!(a>0))return r[1]*t/2+e;for(var o=0;o<a;o++)return i+=n[a-1][1],r[1]*t/2+i*t+e})).attr("font-size",a.sectionFontSize).attr("font-size",a.sectionFontSize).attr("class",(function(t){var e,r=Object(l.a)(b.entries());try{for(r.s();!(e=r.n()).done;){var n=Object(u.a)(e.value,2),i=n[0],o=n[1];if(t[0]===o)return"sectionTitle sectionTitle"+i%a.numberSectionStyles}}catch(t){r.e(t)}finally{r.f()}return"sectionTitle"}))}function C(t,e){return function(t){for(var e=t.length,r={};e;)r[t[--e]]=(r[t[e]]||0)+1;return r}(e)[t]||0}b=function(t){for(var e={},r=[],n=0,i=t.length;n<i;++n)Object.prototype.hasOwnProperty.call(e,t[n])||(e[t[n]]=!0,r.push(t[n]));return r}(b),d.sort((function(t,e){var r=t.startTime,n=e.startTime,i=0;return r>n?i=1:r<n&&(i=-1),i})),function(t,e,r){var i=a.barHeight,o=i+a.barGap,s=a.topPadding,c=a.leftPadding,l=Object(_.C)().domain([0,b.length]).range(["#00B9FA","#F95002"]).interpolate(_.x);(function(t,e,r,i,o,s,c,l){var u=s.reduce((function(t,e){var r=e.startTime;return t?Math.min(t,r):r}),0),h=s.reduce((function(t,e){var r=e.endTime;return t?Math.max(t,r):r}),0),d=n.db.getDateFormat();if(u&&h){for(var f=[],p=null,b=m()(u);b.valueOf()<=h;)n.db.isInvalidDate(b,d,c,l)?p?p.end=b:p={start:b,end:b}:p&&(f.push(p),p=null),b=b.add(1,"d");g.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return y(t.start)+r})).attr("y",a.gridLineStartPadding).attr("width",(function(t){var e=t.end.add(1,"day");return y(e)-y(t.start)})).attr("height",o-e-a.gridLineStartPadding).attr("transform-origin",(function(e,n){return(y(e.start)+r+.5*(y(e.end)-y(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"})).attr("class","exclude-range")}})(o,s,c,0,r,t,n.db.getExcludes(),n.db.getIncludes()),function(t,e,r,i){var o=Object(_.b)(y).tickSize(-i+e+a.gridLineStartPadding).tickFormat(Object(_.J)(n.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d")),s=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||a.tickInterval);if(null!==s){var c=s[1];switch(s[2]){case"minute":o.ticks(_.L.every(c));break;case"hour":o.ticks(_.K.every(c));break;case"day":o.ticks(_.I.every(c));break;case"week":o.ticks(_.N.every(c));break;case"month":o.ticks(_.M.every(c))}}if(g.append("g").attr("class","grid").attr("transform","translate("+t+", "+(i-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||a.topAxis){var l=Object(_.c)(y).tickSize(-i+e+a.gridLineStartPadding).tickFormat(Object(_.J)(n.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(null!==s){var u=s[1];switch(s[2]){case"minute":l.ticks(_.L.every(u));break;case"hour":l.ticks(_.K.every(u));break;case"day":l.ticks(_.I.every(u));break;case"week":l.ticks(_.N.every(u));break;case"month":l.ticks(_.M.every(u))}}g.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(c,s,0,r),w(t,o,s,c,i,l,e),T(o,s),function(t,e,r,i){var o=n.db.getTodayMarker();if("off"!==o){var s=g.append("g").attr("class","today"),c=new Date,l=s.append("line");l.attr("x1",y(c)+t).attr("x2",y(c)+t).attr("y1",a.titleTopMargin).attr("y2",i-a.titleTopMargin).attr("class","today"),""!==o&&l.attr("style",o.replace(/,/g,";"))}}(c,0,0,r)}(d,$c,f),Ur(g,f,$c,a.useMaxWidth),g.append("text").text(n.db.getDiagramTitle()).attr("x",$c/2).attr("y",a.titleTopMargin).attr("class","titleText")}},Yc=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[6,9,10],r={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(t,e,r,n,i,a,o){switch(a.length,i){case 1:return n;case 4:break;case 6:n.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},n={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){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 i(){this.yy={}}return r.lexer=n,i.prototype=r,r.Parser=i,new i}();Yc.parser=Yc;var Uc=Yc,Wc="",qc=!1,Hc={setMessage:function(t){tt.debug("Setting message to: "+t),Wc=t},getMessage:function(){return Wc},setInfo:function(t){qc=t},getInfo:function(){return qc},clear:un},Vc={draw:function(t,e,r){try{tt.debug("Rendering info diagram\n"+t);var n,i=Fr().securityLevel;"sandbox"===i&&(n=Object(_.F)("#i"+e));var a=("sandbox"===i?Object(_.F)(n.nodes()[0].contentDocument.body):Object(_.F)("body")).select("#"+e);a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+r),a.attr("height",100),a.attr("width",400)}catch(t){tt.error("Error while rendering info diagram"),tt.error(t.message)}}},Gc=function(t){return null!==t.match(/^\s*info/)},Xc=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,4],r=[1,5],n=[1,6],i=[1,7],a=[1,9],o=[1,11,13,15,17,19,20,26,27,28,29],s=[2,5],c=[1,6,11,13,15,17,19,20,26,27,28,29],l=[26,27,28],u=[2,8],h=[1,18],d=[1,19],f=[1,20],p=[1,21],g=[1,22],y=[1,23],b=[1,28],m=[6,26,27,28,29],v={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(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 4:n.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:n.addSection(a[s-1],n.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),n.setDiagramTitle(this.$);break;case 11:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 12:case 13:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 14:n.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 21:n.parseDirective("%%{","open_directive");break;case 22:n.parseDirective(a[s],"type_directive");break;case 23:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 24:n.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,21:8,26:r,27:n,28:i,29:a},{1:[3]},{3:10,4:2,5:3,6:e,21:8,26:r,27:n,28:i,29:a},{3:11,4:2,5:3,6:e,21:8,26:r,27:n,28:i,29:a},t(o,s,{7:12,8:[1,13]}),t(c,[2,18]),t(c,[2,19]),t(c,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(l,u,{21:8,9:16,10:17,5:24,1:[2,3],11:h,13:d,15:f,17:p,19:g,20:y,29:a}),t(o,s,{7:25}),{23:26,24:[1,27],32:b},t([24,32],[2,22]),t(o,[2,6]),{4:29,26:r,27:n,28:i},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(l,[2,13]),t(l,[2,14]),t(l,[2,15]),t(l,u,{21:8,9:16,10:17,5:24,1:[2,4],11:h,13:d,15:f,17:p,19:g,20:y,29:a}),t(m,[2,16]),{25:34,31:[1,35]},t(m,[2,24]),t(o,[2,7]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11]),t(l,[2,12]),{23:36,32:b},{32:[2,23]},t(m,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},_={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){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:break;case 7:return 26;case 8:case 9:break;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:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();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 x(){this.yy={}}return v.lexer=_,x.prototype=v,v.Parser=x,new x}();Xc.parser=Xc;var Kc,Qc=Xc,Zc=function(t){return null!==t.match(/^\s*pie/)||null!==t.match(/^\s*bar/)},Jc={},tl=!1,el={parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().pie},addSection:function(t,e){t=ut.sanitizeText(t,Fr()),void 0===Jc[t]&&(Jc[t]=e,tt.debug("Added new section :",t))},getSections:function(){return Jc},cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){Jc={},tl=!1,un()},setAccTitle:hn,getAccTitle:dn,setDiagramTitle:gn,getDiagramTitle:yn,setShowData:function(t){tl=t},getShowData:function(){return tl},getAccDescription:pn,setAccDescription:fn},rl=Fr(),nl={draw:function(t,e,r,n){try{rl=Fr(),tt.debug("Rendering info diagram\n"+t);var i,a=Fr().securityLevel;"sandbox"===a&&(i=Object(_.F)("#i"+e));var o="sandbox"===a?Object(_.F)(i.nodes()[0].contentDocument.body):Object(_.F)("body"),s="sandbox"===a?i.nodes()[0].contentDocument:document;n.db.clear(),n.parser.parse(t),tt.debug("Parsed info diagram");var c=s.getElementById(e);void 0===(Kc=c.parentElement.offsetWidth)&&(Kc=1200),void 0!==rl.useWidth&&(Kc=rl.useWidth),void 0!==rl.pie.useWidth&&(Kc=rl.pie.useWidth);var l=o.select("#"+e);Ur(l,450,Kc,rl.pie.useMaxWidth),c.setAttribute("viewBox","0 0 "+Kc+" 450");var u=18,h=Math.min(Kc,450)/2-40,d=l.append("g").attr("transform","translate("+Kc/2+",225)"),f=n.db.getSections(),p=0;Object.keys(f).forEach((function(t){p+=f[t]}));var g=rl.themeVariables,y=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],b=Object(_.D)().range(y),m=Object.entries(f).map((function(t,e){return{order:e,name:t[0],value:t[1]}})),v=Object(_.B)().value((function(t){return t.value})).sort((function(t,e){return t.order-e.order}))(m),x=Object(_.a)().innerRadius(0).outerRadius(h);d.selectAll("mySlices").data(v).enter().append("path").attr("d",x).attr("fill",(function(t){return b(t.data.name)})).attr("class","pieCircle"),d.selectAll("mySlices").data(v).enter().append("text").text((function(t){return(t.data.value/p*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+x.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),d.append("text").text(n.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var k=d.selectAll(".legend").data(b.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*b.domain().length/2)+")"}));k.append("rect").attr("width",u).attr("height",u).style("fill",b).style("stroke",b),k.data(v).append("text").attr("x",22).attr("y",14).text((function(t){return n.db.getShowData()||rl.showData||rl.pie.showData?t.data.name+" ["+t.data.value+"]":t.data.name}))}catch(t){tt.error("Error while rendering info diagram"),tt.error(t)}}},il=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,3],r=[1,5],n=[1,6],i=[1,7],a=[1,8],o=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],s=[1,22],c=[2,13],l=[1,26],u=[1,27],h=[1,28],d=[1,29],f=[1,30],p=[1,31],g=[1,24],y=[1,32],b=[1,33],m=[1,36],v=[71,72],_=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],x=[1,56],k=[1,57],w=[1,58],T=[1,59],C=[1,60],E=[1,61],S=[1,62],A=[62,63],O=[1,74],L=[1,70],B=[1,71],D=[1,72],M=[1,73],I=[1,75],N=[1,79],F=[1,80],j=[1,77],R=[1,78],P=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],$={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(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 6:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 7:case 8:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 9:n.parseDirective("%%{","open_directive");break;case 10:n.parseDirective(a[s],"type_directive");break;case 11:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 12:n.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:n.addRequirement(a[s-3],a[s-4]);break;case 20:n.setNewReqId(a[s-2]);break;case 21:n.setNewReqText(a[s-2]);break;case 22:n.setNewReqRisk(a[s-2]);break;case 23:n.setNewReqVerifyMethod(a[s-2]);break;case 26:this.$=n.RequirementType.REQUIREMENT;break;case 27:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=n.RiskLevel.LOW_RISK;break;case 33:this.$=n.RiskLevel.MED_RISK;break;case 34:this.$=n.RiskLevel.HIGH_RISK;break;case 35:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=n.VerifyType.VERIFY_TEST;break;case 39:n.addElement(a[s-3]);break;case 40:n.setNewElementType(a[s-2]);break;case 41:n.setNewElementDocRef(a[s-2]);break;case 44:n.addRelationship(a[s-2],a[s],a[s-4]);break;case 45:n.addRelationship(a[s-2],a[s-4],a[s]);break;case 46:this.$=n.Relationships.CONTAINS;break;case 47:this.$=n.Relationships.COPIES;break;case 48:this.$=n.Relationships.DERIVES;break;case 49:this.$=n.Relationships.SATISFIES;break;case 50:this.$=n.Relationships.VERIFIES;break;case 51:this.$=n.Relationships.REFINES;break;case 52:this.$=n.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:r,16:n,18:i,19:a},{1:[3]},{3:10,4:2,5:[1,9],6:e,9:4,14:r,16:n,18:i,19:a},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},t(o,[2,8]),{20:[2,9]},{3:16,4:2,6:e,9:4,14:r,16:n,18:i,19:a},{1:[2,2]},{4:21,5:s,7:17,8:c,9:4,14:r,16:n,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:p,53:g,71:y,72:b},{11:34,12:[1,35],22:m},t([12,22],[2,10]),t(o,[2,6]),t(o,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:s,7:38,8:c,9:4,14:r,16:n,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:p,53:g,71:y,72:b},{4:21,5:s,7:39,8:c,9:4,14:r,16:n,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:p,53:g,71:y,72:b},{4:21,5:s,7:40,8:c,9:4,14:r,16:n,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:p,53:g,71:y,72:b},{4:21,5:s,7:41,8:c,9:4,14:r,16:n,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:p,53:g,71:y,72:b},{4:21,5:s,7:42,8:c,9:4,14:r,16:n,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:p,53:g,71:y,72:b},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,30]),t(v,[2,31]),t(_,[2,55]),t(_,[2,56]),t(o,[2,4]),{13:51,21:[1,52]},t(o,[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:x,65:k,66:w,67:T,68:C,69:E,70:S},{61:63,64:x,65:k,66:w,67:T,68:C,69:E,70:S},{11:64,22:m},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},t(A,[2,46]),t(A,[2,47]),t(A,[2,48]),t(A,[2,49]),t(A,[2,50]),t(A,[2,51]),t(A,[2,52]),{63:[1,68]},t(o,[2,5]),{5:O,29:69,30:L,33:B,35:D,37:M,39:I},{5:N,39:F,55:76,56:j,58:R},{32:81,71:y,72:b},{32:82,71:y,72:b},t(P,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:O,29:87,30:L,33:B,35:D,37:M,39:I},t(P,[2,25]),t(P,[2,39]),{31:[1,88]},{31:[1,89]},{5:N,39:F,55:90,56:j,58:R},t(P,[2,43]),t(P,[2,44]),t(P,[2,45]),{32:91,71:y,72:b},{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]},t(P,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},t(P,[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:O,29:116,30:L,33:B,35:D,37:M,39:I},{5:O,29:117,30:L,33:B,35:D,37:M,39:I},{5:O,29:118,30:L,33:B,35:D,37:M,39:I},{5:O,29:119,30:L,33:B,35:D,37:M,39:I},{5:N,39:F,55:120,56:j,58:R},{5:N,39:F,55:121,56:j,58:R},t(P,[2,20]),t(P,[2,21]),t(P,[2,22]),t(P,[2,23]),t(P,[2,40]),t(P,[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(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},z={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){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: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 53:this.popState();break;case 54:return"qString";case 55:return e.yytext=e.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 Y(){this.yy={}}return $.lexer=z,Y.prototype=$,$.Parser=Y,new Y}();il.parser=il;var al=il,ol=function(t){return null!==t.match(/^\s*requirement(Diagram)?/)},sl=[],cl={},ll={},ul={},hl={},dl={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(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().req},addRequirement:function(t,e){return void 0===ll[t]&&(ll[t]={name:t,type:e,id:cl.id,text:cl.text,risk:cl.risk,verifyMethod:cl.verifyMethod}),cl={},ll[t]},getRequirements:function(){return ll},setNewReqId:function(t){void 0!==cl&&(cl.id=t)},setNewReqText:function(t){void 0!==cl&&(cl.text=t)},setNewReqRisk:function(t){void 0!==cl&&(cl.risk=t)},setNewReqVerifyMethod:function(t){void 0!==cl&&(cl.verifyMethod=t)},setAccTitle:hn,getAccTitle:dn,setAccDescription:fn,getAccDescription:pn,addElement:function(t){return void 0===hl[t]&&(hl[t]={name:t,type:ul.type,docRef:ul.docRef},tt.info("Added new requirement: ",t)),ul={},hl[t]},getElements:function(){return hl},setNewElementType:function(t){void 0!==ul&&(ul.type=t)},setNewElementDocRef:function(t){void 0!==ul&&(ul.docRef=t)},addRelationship:function(t,e,r){sl.push({type:t,src:e,dst:r})},getRelationships:function(){return sl},clear:function(){sl=[],cl={},ll={},ul={},hl={},un()}},fl={CONTAINS:"contains",ARROW:"arrow"},pl=fl,gl=function(t,e){var r=t.append("defs").append("marker").attr("id",fl.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");r.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),r.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),r.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",fl.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d","M0,0\n L".concat(e.line_height,",").concat(e.line_height/2,"\n M").concat(e.line_height,",").concat(e.line_height/2,"\n L0,").concat(e.line_height)).attr("stroke-width",1)},yl={},bl=0,ml=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",yl.rect_min_width+"px").attr("height",yl.rect_min_height+"px")},vl=function(t,e,r){var n=yl.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",n).attr("y",yl.rect_padding).attr("dominant-baseline","hanging"),a=0;r.forEach((function(t){0==a?i.append("tspan").attr("text-anchor","middle").attr("x",yl.rect_min_width/2).attr("dy",0).text(t):i.append("tspan").attr("text-anchor","middle").attr("x",yl.rect_min_width/2).attr("dy",.75*yl.line_height).text(t),a++}));var o=1.5*yl.rect_padding+a*yl.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",yl.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:i,y:o}},_l=function(t,e,r,n){var i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",yl.rect_padding).attr("y",n).attr("dominant-baseline","hanging"),a=0,o=[];return r.forEach((function(t){for(var e=t.length;e>30&&a<3;){var r=t.substring(0,30);e=(t=t.substring(30,t.length)).length,o[o.length]=r,a++}if(3==a){var n=o[o.length-1];o[o.length-1]=n.substring(0,n.length-4)+"..."}else o[o.length]=t;a=0})),o.forEach((function(t){i.append("tspan").attr("x",yl.rect_padding).attr("dy",yl.line_height).text(t)})),i},xl=function(t,e,r,n,i){var a=r.edge(kl(e.src),kl(e.dst)),o=Object(_.y)().x((function(t){return t.x})).y((function(t){return t.y})),s=t.insert("path","#"+n).attr("class","er relationshipLine").attr("d",o(a.points)).attr("fill","none");e.type==i.db.Relationships.CONTAINS?s.attr("marker-start","url("+ut.getUrl(yl.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(s.attr("stroke-dasharray","10,7"),s.attr("marker-end","url("+ut.getUrl(yl.arrowMarkerAbsolute)+"#"+pl.ARROW+"_line_ending)")),function(t,e,r,n){var i=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*i),o="rel"+bl;bl++;var s=t.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n).node().getBBox();t.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",a.x-s.width/2).attr("y",a.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")}(t,s,0,"<<".concat(e.type,">>"))},kl=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")},wl={draw:function(t,e,r,n){yl=Fr().requirement,n.db.clear(),n.parser.parse(t);var i,a=yl.securityLevel;"sandbox"===a&&(i=Object(_.F)("#i"+e));var o=("sandbox"===a?Object(_.F)(i.nodes()[0].contentDocument.body):Object(_.F)("body")).select("[id='".concat(e,"']"));gl(o,yl);var s=new F.a({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:yl.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}})),c=n.db.getRequirements(),l=n.db.getElements(),u=n.db.getRelationships();(function(t,e,r){Object.keys(t).forEach((function(n){var i=t[n];n=kl(n),tt.info("Added new requirement: ",n);var a=r.append("g").attr("id",n),o=ml(a,"req-"+n),s=vl(a,n+"_title",["<<".concat(i.type,">>"),"".concat(i.name)]);_l(a,n+"_body",["Id: ".concat(i.id),"Text: ".concat(i.text),"Risk: ".concat(i.risk),"Verification: ".concat(i.verifyMethod)],s.y);var c=o.node().getBBox();e.setNode(n,{width:c.width,height:c.height,shape:"rect",id:n})}))})(c,s,o),function(t,e,r){Object.keys(t).forEach((function(n){var i=t[n],a=kl(n),o=r.append("g").attr("id",a),s="element-"+a,c=ml(o,s),l=vl(o,s+"_title",["<<Element>>","".concat(n)]);_l(o,s+"_body",["Type: ".concat(i.type||"Not Specified"),"Doc Ref: ".concat(i.docRef||"None")],l.y);var u=c.node().getBBox();e.setNode(a,{width:u.width,height:u.height,shape:"rect",id:a})}))}(l,s,o),function(t,e){t.forEach((function(t){var r=kl(t.src),n=kl(t.dst);e.setEdge(r,n,{relationship:t})}))}(u,s),Object(N.a)(s),function(t,e){e.nodes().forEach((function(r){void 0!==r&&void 0!==e.node(r)&&(t.select("#"+r),t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )"))}))}(o,s),u.forEach((function(t){xl(o,t,s,e,n)}));var h=yl.rect_padding,d=o.node().getBBox(),f=d.width+2*h,p=d.height+2*h;Ur(o,p,f,yl.useMaxWidth),o.attr("viewBox","".concat(d.x-h," ").concat(d.y-h," ").concat(f," ").concat(p))}},Tl=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,2],r=[1,3],n=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,19],l=[1,21],u=[1,22],h=[1,23],d=[1,29],f=[1,30],p=[1,31],g=[1,32],y=[1,33],b=[1,34],m=[1,35],v=[1,36],_=[1,37],x=[1,38],k=[1,39],w=[1,40],T=[1,42],C=[1,43],E=[1,45],S=[1,46],A=[1,47],O=[1,48],L=[1,49],B=[1,50],D=[1,53],M=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],I=[4,5,21,54,56],N=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],F=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,53,54,56,57,62,63,64,65,73,83],j=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,52,54,56,57,62,63,64,65,73,83],R=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,54,56,57,62,63,64,65,73,83],P=[71,72,73],$=[1,125],z=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],Y={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,critical:48,option_sections:49,break:50,option:51,and:52,else:53,participant:54,AS:55,participant_actor:56,note:57,placement:58,text2:59,over:60,actor_pair:61,links:62,link:63,properties:64,details:65,spaceList:66,",":67,left_of:68,right_of:69,signaltype:70,"+":71,"-":72,ACTOR:73,SOLID_OPEN_ARROW:74,DOTTED_OPEN_ARROW:75,SOLID_ARROW:76,DOTTED_ARROW:77,SOLID_CROSS:78,DOTTED_CROSS:79,SOLID_POINT:80,DOTTED_POINT:81,TXT:82,open_directive:83,type_directive:84,arg_directive:85,close_directive:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"critical",50:"break",51:"option",52:"and",53:"else",54:"participant",55:"AS",56:"participant_actor",57:"note",60:"over",62:"links",63:"link",64:"properties",65:"details",67:",",68:"left_of",69:"right_of",71:"+",72:"-",73:"ACTOR",74:"SOLID_OPEN_ARROW",75:"DOTTED_OPEN_ARROW",76:"SOLID_ARROW",77:"DOTTED_ARROW",78:"SOLID_CROSS",79:"DOTTED_CROSS",80:"SOLID_POINT",81:"DOTTED_POINT",82:"TXT",83:"open_directive",84:"type_directive",85:"arg_directive",86:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[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],[49,1],[49,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[66,2],[66,1],[61,3],[61,1],[58,1],[58,1],[22,5],[22,5],[22,4],[27,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[59,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 4:return n.apply(a[s]),a[s];case 5:case 10:this.$=[];break;case 6:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:case 12:case 13:this.$=a[s];break;case 9:case 14:this.$=[];break;case 18:a[s-1].unshift({type:"boxStart",boxData:n.parseBoxData(a[s-2])}),a[s-1].push({type:"boxEnd",boxText:a[s-2]}),this.$=a[s-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:n.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:n.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 25:this.$={type:"activeEnd",signalType:n.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 31:n.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 32:n.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 33:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 34:case 35:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 36:a[s-1].unshift({type:"loopStart",loopText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:n.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:"rectStart",color:n.parseMessage(a[s-2]),signalType:n.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:n.parseMessage(a[s-2]),signalType:n.LINETYPE.RECT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:"optStart",optText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.OPT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:"altStart",altText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:n.LINETYPE.ALT_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:"parStart",parText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:n.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:"criticalStart",criticalText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.CRITICAL_START}),a[s-1].push({type:"criticalEnd",signalType:n.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:"breakStart",breakText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.BREAK_START}),a[s-1].push({type:"breakEnd",optText:n.parseMessage(a[s-2]),signalType:n.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 45:this.$=a[s-3].concat([{type:"option",optionText:n.parseMessage(a[s-1]),signalType:n.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 47:this.$=a[s-3].concat([{type:"and",parText:n.parseMessage(a[s-1]),signalType:n.LINETYPE.PAR_AND},a[s]]);break;case 49:this.$=a[s-3].concat([{type:"else",altText:n.parseMessage(a[s-1]),signalType:n.LINETYPE.ALT_ELSE},a[s]]);break;case 50:a[s-3].type="addParticipant",a[s-3].description=n.parseMessage(a[s-1]),this.$=a[s-3];break;case 51:a[s-1].type="addParticipant",this.$=a[s-1];break;case 52:a[s-3].type="addActor",a[s-3].description=n.parseMessage(a[s-1]),this.$=a[s-3];break;case 53:a[s-1].type="addActor",this.$=a[s-1];break;case 54:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 55:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:n.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 56:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 57:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 58:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 59:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-2],a[s]];break;case 63:this.$=a[s];break;case 64:this.$=n.PLACEMENT.LEFTOF;break;case 65:this.$=n.PLACEMENT.RIGHTOF;break;case 66:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeStart",signalType:n.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 67:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:n.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 68:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 69:this.$={type:"addParticipant",actor:a[s]};break;case 70:this.$=n.LINETYPE.SOLID_OPEN;break;case 71:this.$=n.LINETYPE.DOTTED_OPEN;break;case 72:this.$=n.LINETYPE.SOLID;break;case 73:this.$=n.LINETYPE.DOTTED;break;case 74:this.$=n.LINETYPE.SOLID_CROSS;break;case 75:this.$=n.LINETYPE.DOTTED_CROSS;break;case 76:this.$=n.LINETYPE.SOLID_POINT;break;case 77:this.$=n.LINETYPE.DOTTED_POINT;break;case 78:this.$=n.parseMessage(a[s].trim().substring(1));break;case 79:n.parseDirective("%%{","open_directive");break;case 80:n.parseDirective(a[s],"type_directive");break;case 81:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 82:n.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:r,6:4,7:n,14:6,83:i},{1:[3]},{3:8,4:e,5:r,6:4,7:n,14:6,83:i},{3:9,4:e,5:r,6:4,7:n,14:6,83:i},{3:10,4:e,5:r,6:4,7:n,14:6,83:i},t([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],a,{8:11}),{15:12,84:[1,13]},{84:[2,79]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{16:51,17:[1,52],86:D},t([17,86],[2,80]),t(M,[2,6]),{6:41,10:54,13:18,14:6,19:c,22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},t(M,[2,8]),t(M,[2,9]),t(M,[2,17]),{20:[1,55]},{5:[1,56]},{5:[1,59],24:[1,57],25:[1,58]},{27:60,73:B},{27:61,73:B},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},t(M,[2,31]),t(M,[2,32]),{37:[1,67]},{39:[1,68]},t(M,[2,35]),{20:[1,69]},{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},t(M,[2,43]),{27:76,73:B},{27:77,73:B},{70:78,74:[1,79],75:[1,80],76:[1,81],77:[1,82],78:[1,83],79:[1,84],80:[1,85],81:[1,86]},{58:87,60:[1,88],68:[1,89],69:[1,90]},{27:91,73:B},{27:92,73:B},{27:93,73:B},{27:94,73:B},t([5,55,67,74,75,76,77,78,79,80,81,82],[2,69]),{5:[1,95]},{18:96,85:[1,97]},{5:[2,82]},t(M,[2,7]),t(I,[2,10],{11:98}),t(M,[2,19]),{5:[1,100],24:[1,99]},{5:[1,101]},t(M,[2,23]),{5:[1,102]},{5:[1,103]},t(M,[2,26]),t(M,[2,27]),t(M,[2,28]),t(M,[2,29]),t(M,[2,30]),t(M,[2,33]),t(M,[2,34]),t(N,a,{8:104}),t(N,a,{8:105}),t(N,a,{8:106}),t(F,a,{45:107,8:108}),t(j,a,{47:109,8:110}),t(R,a,{49:111,8:112}),t(N,a,{8:113}),{5:[1,115],55:[1,114]},{5:[1,117],55:[1,116]},{27:120,71:[1,118],72:[1,119],73:B},t(P,[2,70]),t(P,[2,71]),t(P,[2,72]),t(P,[2,73]),t(P,[2,74]),t(P,[2,75]),t(P,[2,76]),t(P,[2,77]),{27:121,73:B},{27:123,61:122,73:B},{73:[2,64]},{73:[2,65]},{59:124,82:$},{59:126,82:$},{59:127,82:$},{59:128,82:$},t(z,[2,15]),{16:129,86:D},{86:[2,81]},{4:[1,132],5:[1,134],12:131,13:133,21:[1,130],54:T,56:C},{5:[1,135]},t(M,[2,21]),t(M,[2,22]),t(M,[2,24]),t(M,[2,25]),{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,136],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,137],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,138],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{21:[1,139]},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,48],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,53:[1,140],54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{21:[1,141]},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,46],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,52:[1,142],54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{21:[1,143]},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,44],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,51:[1,144],54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,145],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:p,38:g,40:y,41:b,42:m,43:v,44:_,46:x,48:k,50:w,54:T,56:C,57:E,62:S,63:A,64:O,65:L,73:B,83:i},{20:[1,146]},t(M,[2,51]),{20:[1,147]},t(M,[2,53]),{27:148,73:B},{27:149,73:B},{59:150,82:$},{59:151,82:$},{59:152,82:$},{67:[1,153],82:[2,63]},{5:[2,56]},{5:[2,78]},{5:[2,57]},{5:[2,58]},{5:[2,59]},{5:[1,154]},t(M,[2,18]),t(I,[2,11]),{13:155,54:T,56:C},t(I,[2,13]),t(I,[2,14]),t(M,[2,20]),t(M,[2,36]),t(M,[2,37]),t(M,[2,38]),t(M,[2,39]),{20:[1,156]},t(M,[2,40]),{20:[1,157]},t(M,[2,41]),{20:[1,158]},t(M,[2,42]),{5:[1,159]},{5:[1,160]},{59:161,82:$},{59:162,82:$},{5:[2,68]},{5:[2,54]},{5:[2,55]},{27:163,73:B},t(z,[2,16]),t(I,[2,12]),t(F,a,{8:108,45:164}),t(j,a,{8:110,47:165}),t(R,a,{8:112,49:166}),t(M,[2,50]),t(M,[2,52]),{5:[2,66]},{5:[2,67]},{82:[2,62]},{21:[2,49]},{21:[2,47]},{21:[2,45]}],defaultActions:{7:[2,79],8:[2,1],9:[2,2],10:[2,3],53:[2,82],89:[2,64],90:[2,65],97:[2,81],124:[2,56],125:[2,78],126:[2,57],127:[2,58],128:[2,59],150:[2,68],151:[2,54],152:[2,55],161:[2,66],162:[2,67],163:[2,62],164:[2,49],165:[2,47],166:[2,45]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},U={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;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"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return e.yytext=e.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67: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,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\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:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],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,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};function W(){this.yy={}}return Y.lexer=U,W.prototype=Y,Y.Parser=W,new W}();Tl.parser=Tl;var Cl,El=Tl,Sl=function(t){return null!==t.match(/^\s*sequenceDiagram/)},Al=void 0,Ol={},Ll=[],Bl=[],Dl=!1,Ml=void 0,Il=function(t,e,r,n){var i=Ml,a=Ol[t];if(a){if(Ml&&a.box&&Ml!==a.box)throw new Error("A same participant should only be defined in one Box: "+a.name+" can't be in '"+a.box.name+"' and in '"+Ml.name+"' at the same time.");if(i=a.box?a.box:Ml,a.box=i,a&&e===a.name&&null==r)return}null!=r&&null!=r.text||(r={text:e,wrap:null,type:n}),null!=n&&null!=r.text||(r={text:e,wrap:null,type:n}),Ol[t]={box:i,name:e,description:r.text,wrap:void 0===r.wrap&&Rl()||!!r.wrap,prevActor:Al,links:{},properties:{},actorCnt:null,rectData:null,type:n||"participant"},Al&&Ol[Al]&&(Ol[Al].nextActor=t),Ml&&Ml.actorKeys.push(t),Al=t},Nl=function(t){var e,r=0;for(e=0;e<Bl.length;e++)Bl[e].type===Pl.ACTIVE_START&&Bl[e].from.actor===t&&r++,Bl[e].type===Pl.ACTIVE_END&&Bl[e].from.actor===t&&r--;return r},Fl=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},n=arguments.length>3?arguments[3]:void 0;if(n===Pl.ACTIVE_END){var i=Nl(t.actor);if(i<1){var a=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw a.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}}return Bl.push({from:t,to:e,message:r.text,wrap:void 0===r.wrap&&Rl()||!!r.wrap,type:n}),!0},jl=function(t){return Ol[t]},Rl=function(){return void 0!==Cl?Cl:Fr().sequence.wrap},Pl={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},$l=function(t,e,r){r.text,void 0===r.wrap&&Rl()||r.wrap;var n=[].concat(t,t);Bl.push({from:n[0],to:n[1],message:r.text,wrap:void 0===r.wrap&&Rl()||!!r.wrap,type:Pl.NOTE,placement:e})},zl=function(t,e){var r=jl(t);try{var n=it(e.text,Fr());n=(n=n.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),Yl(r,JSON.parse(n))}catch(t){tt.error("error while parsing actor link text",t)}};function Yl(t,e){if(null==t.links)t.links=e;else for(var r in e)t.links[r]=e[r]}var Ul=function(t,e){var r=jl(t);try{var n=it(e.text,Fr());Wl(r,JSON.parse(n))}catch(t){tt.error("error while parsing actor properties text",t)}};function Wl(t,e){if(null==t.properties)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var ql=function(t,e){var r=jl(t),n=document.getElementById(e.text);try{var i=n.innerHTML,a=JSON.parse(i);a.properties&&Wl(r,a.properties),a.links&&Yl(r,a.links)}catch(t){tt.error("error while parsing actor details text",t)}},Hl=function(t){if(Array.isArray(t))t.forEach((function(t){Hl(t)}));else switch(t.type){case"sequenceIndex":Bl.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Il(t.actor,t.actor,t.description,"participant");break;case"addActor":Il(t.actor,t.actor,t.description,"actor");break;case"activeStart":case"activeEnd":Fl(t.actor,void 0,void 0,t.signalType);break;case"addNote":$l(t.actor,t.placement,t.text);break;case"addLinks":zl(t.actor,t.text);break;case"addALink":!function(t,e){var r=jl(t);try{var n={},i=it(e.text,Fr()),a=i.indexOf("@"),o=(i=(i=i.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,a-1).trim(),s=i.slice(a+1).trim();n[o]=s,Yl(r,n)}catch(t){tt.error("error while parsing actor link text",t)}}(t.actor,t.text);break;case"addProperties":Ul(t.actor,t.text);break;case"addDetails":ql(t.actor,t.text);break;case"addMessage":Fl(t.from,t.to,t.msg,t.signalType);break;case"boxStart":!function(t){Ll.push({name:t.text,wrap:void 0===t.wrap&&Rl()||!!t.wrap,fill:t.color,actorKeys:[]}),Ml=Ll.slice(-1)[0]}(t.boxData);break;case"boxEnd":Ml=void 0;break;case"loopStart":Fl(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":Fl(void 0,void 0,void 0,t.signalType);break;case"rectStart":Fl(void 0,void 0,t.color,t.signalType);break;case"rectEnd":Fl(void 0,void 0,void 0,t.signalType);break;case"optStart":Fl(void 0,void 0,t.optText,t.signalType);break;case"optEnd":Fl(void 0,void 0,void 0,t.signalType);break;case"altStart":case"else":Fl(void 0,void 0,t.altText,t.signalType);break;case"altEnd":Fl(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":hn(t.text);break;case"parStart":case"and":Fl(void 0,void 0,t.parText,t.signalType);break;case"parEnd":Fl(void 0,void 0,void 0,t.signalType);break;case"criticalStart":Fl(void 0,void 0,t.criticalText,t.signalType);break;case"option":Fl(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":Fl(void 0,void 0,void 0,t.signalType);break;case"breakStart":Fl(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":Fl(void 0,void 0,void 0,t.signalType)}},Vl={addActor:Il,addMessage:function(t,e,r,n){Bl.push({from:t,to:e,message:r.text,wrap:void 0===r.wrap&&Rl()||!!r.wrap,answer:n})},addSignal:Fl,addLinks:zl,addDetails:ql,addProperties:Ul,autoWrap:Rl,setWrap:function(t){Cl=t},enableSequenceNumbers:function(){Dl=!0},disableSequenceNumbers:function(){Dl=!1},showSequenceNumbers:function(){return Dl},getMessages:function(){return Bl},getActors:function(){return Ol},getActor:jl,getActorKeys:function(){return Object.keys(Ol)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:dn,getBoxes:function(){return Ll},getDiagramTitle:yn,setDiagramTitle:gn,parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().sequence},clear:function(){Ol={},Ll=[],Bl=[],Dl=!1,un()},parseMessage:function(t){var e=t.trim(),r={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return tt.debug("parseMessage:",r),r},parseBoxData:function(t){var e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/),r=null!=e&&e[1]?e[1].trim():"transparent",n=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",r)||(r="transparent",n=t.trim());else{var i=(new Option).style;i.color=r,i.color!==r&&(r="transparent",n=t.trim())}return{color:r,text:void 0!==n?it(n.replace(/^:?(?:no)?wrap:/,""),Fr()):void 0,wrap:void 0!==n?null!==n.match(/^:?wrap:/)||null===n.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:Pl,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:$l,setAccTitle:hn,apply:Hl,setAccDescription:fn,getAccDescription:pn,hasAtLeastOneBox:function(){return Ll.length>0},hasAtLeastOneBoxWithTitle:function(){return Ll.some((function(t){return t.name}))}},Gl=[],Xl=function(){Gl.forEach((function(t){t()})),Gl=[]},Kl=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),void 0!==e.class&&r.attr("class",e.class),r},Ql=function(t,e){!function(t){Gl.push(t)}((function(){var r=document.querySelectorAll(t);0!==r.length&&(r[0].addEventListener("mouseover",(function(){tu("actor"+e+"_popup")})),r[0].addEventListener("mouseout",(function(){eu("actor"+e+"_popup")})))}))},Zl=function(t,e,r,n){var i=t.append("image");i.attr("x",e),i.attr("y",r);var a=Object(v.sanitizeUrl)(n);i.attr("xlink:href",a)},Jl=function(t,e,r,n){var i=t.append("use");i.attr("x",e),i.attr("y",r);var a=Object(v.sanitizeUrl)(n);i.attr("xlink:href","#"+a)},tu=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},eu=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},ru=function(t,e){var r=0,n=0,i=e.text.split(ut.lineBreakRegex),a=Tr(e.fontSize),o=Object(u.a)(a,2),s=o[0],c=o[1],h=[],d=0,f=function(){return e.y};if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":f=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":f=function(){return Math.round(e.y+(r+n+e.textMargin)/2)};break;case"bottom":case"end":f=function(){return Math.round(e.y+(r+n+2*e.textMargin)-e.textMargin)}}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}var p,g=Object(l.a)(i.entries());try{for(g.s();!(p=g.n()).done;){var y=Object(u.a)(p.value,2),b=y[0],m=y[1];void 0!==e.textMargin&&0===e.textMargin&&void 0!==s&&(d=b*s);var v=t.append("text");if(v.attr("x",e.x),v.attr("y",f()),void 0!==e.anchor&&v.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&v.style("font-family",e.fontFamily),void 0!==c&&v.style("font-size",c),void 0!==e.fontWeight&&v.style("font-weight",e.fontWeight),void 0!==e.fill&&v.attr("fill",e.fill),void 0!==e.class&&v.attr("class",e.class),void 0!==e.dy?v.attr("dy",e.dy):0!==d&&v.attr("dy",d),e.tspan){var _=v.append("tspan");_.attr("x",e.x),void 0!==e.fill&&_.attr("fill",e.fill),_.text(m)}else v.text(m);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(n+=(v._groups||v)[0][0].getBBox().height,r=n),h.push(v)}}catch(t){g.e(t)}finally{g.f()}return h},nu=function(t,e){var r=t.append("polygon");return r.attr("points",function(t,e,r,n,i){return t+","+e+" "+(t+r)+","+e+" "+(t+r)+","+(e+n-i)+" "+(t+r-1.2*i)+","+(e+n)+" "+t+","+(e+n)}(e.x,e.y,e.width,e.height,7)),r.attr("class","labelBox"),e.y=e.y+e.height/2,ru(t,e),r},iu=-1,au=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},ou=function(t,e){Kl(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},su=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}},cu=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},lu=function(){function t(t,e,r,i,a,o,s){n(e.append("text").attr("x",r+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,r,i,a,o,s,c){for(var l=c.actorFontSize,h=c.actorFontFamily,d=c.actorFontWeight,f=Tr(l),p=Object(u.a)(f,2),g=p[0],y=p[1],b=t.split(ut.lineBreakRegex),m=0;m<b.length;m++){var v=m*g-g*(b.length-1)/2,_=e.append("text").attr("x",r+a/2).attr("y",i).style("text-anchor","middle").style("font-size",y).style("font-weight",d).style("font-family",h);_.append("tspan").attr("x",r+a/2).attr("dy",v).text(b[m]),_.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(_,s)}}function r(t,r,i,a,o,s,c,l){var u=r.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,s,c,l),n(h,c)}function n(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}return function(n){return"fo"===n.textPlacement?r:"old"===n.textPlacement?t:e}}(),uu=function(){function t(t,e,r,i,a,o,s){n(e.append("text").attr("x",r).attr("y",i).style("text-anchor","start").text(t),s)}function e(t,e,r,i,a,o,s,c){for(var l=c.actorFontSize,u=c.actorFontFamily,h=c.actorFontWeight,d=t.split(ut.lineBreakRegex),f=0;f<d.length;f++){var p=f*l-l*(d.length-1)/2,g=e.append("text").attr("x",r).attr("y",i).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",u);g.append("tspan").attr("x",r).attr("dy",p).text(d[f]),g.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(g,s)}}function r(t,r,i,a,o,s,c,l){var u=r.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,0,s,c,l),n(h,c)}function n(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}return function(n){return"fo"===n.textPlacement?r:"old"===n.textPlacement?t:e}}(),hu={drawRect:Kl,drawText:ru,drawLabel:nu,drawActor:function(t,e,r,n){switch(e.type){case"actor":return function(t,e,r,n){var i=e.x+e.width/2,a=e.y+80;n||(iu++,t.append("line").attr("id","actor"+iu).attr("x1",i).attr("y1",a).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var o=t.append("g");o.attr("class","actor-man");var s=cu();s.x=e.x,s.y=e.y,s.fill="#eaeaea",s.width=e.width,s.height=e.height,s.class="actor",s.rx=3,s.ry=3,o.append("line").attr("id","actor-man-torso"+iu).attr("x1",i).attr("y1",e.y+25).attr("x2",i).attr("y2",e.y+45),o.append("line").attr("id","actor-man-arms"+iu).attr("x1",i-18).attr("y1",e.y+33).attr("x2",i+18).attr("y2",e.y+33),o.append("line").attr("x1",i-18).attr("y1",e.y+60).attr("x2",i).attr("y2",e.y+45),o.append("line").attr("x1",i).attr("y1",e.y+45).attr("x2",i+16).attr("y2",e.y+60);var c=o.append("circle");c.attr("cx",e.x+e.width/2),c.attr("cy",e.y+10),c.attr("r",15),c.attr("width",e.width),c.attr("height",e.height);var l=o.node().getBBox();return e.height=l.height,lu(r)(e.description,o,s.x,s.y+35,s.width,s.height,{class:"actor"},r),e.height}(t,e,r,n);case"participant":return function(t,e,r,n){var i=e.x+e.width/2,a=e.y+5,o=t.append("g"),s=o;n||(iu++,s.append("line").attr("id","actor"+iu).attr("x1",i).attr("y1",a).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),s=o.append("g"),e.actorCnt=iu,null!=e.links&&(s.attr("id","root-"+iu),Ql("#root-"+iu,iu)));var c=cu(),l="actor";null!=e.properties&&e.properties.class?l=e.properties.class:c.fill="#eaeaea",c.x=e.x,c.y=e.y,c.width=e.width,c.height=e.height,c.class=l,c.rx=3,c.ry=3;var u=Kl(s,c);if(e.rectData=c,null!=e.properties&&e.properties.icon){var h=e.properties.icon.trim();"@"===h.charAt(0)?Jl(s,c.x+c.width-20,c.y+10,h.substr(1)):Zl(s,c.x+c.width-20,c.y+10,h)}lu(r)(e.description,s,c.x,c.y,c.width,c.height,{class:"actor"},r);var d=e.height;if(u.node){var f=u.node().getBBox();e.height=f.height,d=f.height}return d}(t,e,r,n)}},drawBox:function(t,e,r){var n=t.append("g");ou(n,e),e.name&&lu(r)(e.name,n,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),n.lower()},drawPopup:function(t,e,r,n,i){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};var a=e.links,o=e.actorCnt,s=e.rectData,c="none";i&&(c="block !important");var l=t.append("g");l.attr("id","actor"+o+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",c),Ql("#actor"+o+"_popup",o);var u="";void 0!==s.class&&(u=" "+s.class);var h=s.width>r?s.width:r,d=l.append("rect");if(d.attr("class","actorPopupMenuPanel"+u),d.attr("x",s.x),d.attr("y",s.height),d.attr("fill",s.fill),d.attr("stroke",s.stroke),d.attr("width",h),d.attr("height",s.height),d.attr("rx",s.rx),d.attr("ry",s.ry),null!=a){var f=20;for(var p in a){var g=l.append("a"),y=Object(v.sanitizeUrl)(a[p]);g.attr("xlink:href",y),g.attr("target","_blank"),uu(n)(p,g,s.x+10,s.height+f,h,20,{class:"actor"},n),f+=30}}return d.attr("height",f),{height:s.height+f,width:h}},drawImage:Zl,drawEmbeddedImage:Jl,anchorElement:function(t){return t.append("g")},drawActivation:function(t,e,r,n,i){var a=cu(),o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=r-e.starty,Kl(o,a)},drawLoop:function(t,e,r,n){var i=n.boxMargin,a=n.boxTextMargin,o=n.labelBoxHeight,s=n.labelBoxWidth,c=n.messageFontFamily,l=n.messageFontSize,u=n.messageFontWeight,h=t.append("g"),d=function(t,e,r,n){return h.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",n).attr("class","loopLine")};d(e.startx,e.starty,e.stopx,e.starty),d(e.stopx,e.starty,e.stopx,e.stopy),d(e.startx,e.stopy,e.stopx,e.stopy),d(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){d(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));var f=su();f.text=r,f.x=e.startx,f.y=e.starty,f.fontFamily=c,f.fontSize=l,f.fontWeight=u,f.anchor="middle",f.valign="middle",f.tspan=!1,f.width=s||50,f.height=o||20,f.textMargin=a,f.class="labelText",nu(h,f),(f=su()).text=e.title,f.x=e.startx+s/2+(e.stopx-e.startx)/2,f.y=e.starty+i+a,f.anchor="middle",f.valign="middle",f.textMargin=a,f.class="loopText",f.fontFamily=c,f.fontSize=l,f.fontWeight=u,f.wrap=!0;var p=ru(h,f);return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,r){if(t.message){f.text=t.message,f.x=e.startx+(e.stopx-e.startx)/2,f.y=e.sections[r].y+i+a,f.class="loopText",f.anchor="middle",f.valign="middle",f.tspan=!1,f.fontFamily=c,f.fontSize=l,f.fontWeight=u,f.wrap=e.wrap,p=ru(h,f);var n=Math.round(p.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));e.sections[r].height+=n-(i+a)}})),e.height=Math.round(e.stopy-e.starty),h},drawBackgroundRect:ou,insertArrowHead:function(t){t.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")},insertArrowFilledHead:function(t){t.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")},insertSequenceNumber:function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead:function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},insertDatabaseIcon:function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon:function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon:function(t){t.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")},getTextObj:su,getNoteRect:cu,popupMenu:function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},popdownMenu:function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},fixLifeLineHeights:au,sanitizeUrl:v.sanitizeUrl},du={},fu={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,0===this.actors.length?[0]:this.actors.map((function(t){return t.height||0})))+(0===this.loops.length?0:this.loops.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.messages.length?0:this.messages.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.notes.length?0:this.notes.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,vu(Fr())},updateVal:function(t,e,r,n){void 0===t[e]?t[e]=r:t[e]=n(r,t[e])},updateBounds:function(t,e,r,n){var i=this,a=0;function o(o){return function(s){a++;var c=i.sequenceItems.length-a+1;i.updateVal(s,"starty",e-c*du.boxMargin,Math.min),i.updateVal(s,"stopy",n+c*du.boxMargin,Math.max),i.updateVal(fu.data,"startx",t-c*du.boxMargin,Math.min),i.updateVal(fu.data,"stopx",r+c*du.boxMargin,Math.max),"activation"!==o&&(i.updateVal(s,"startx",t-c*du.boxMargin,Math.min),i.updateVal(s,"stopx",r+c*du.boxMargin,Math.max),i.updateVal(fu.data,"starty",e-c*du.boxMargin,Math.min),i.updateVal(fu.data,"stopy",n+c*du.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,r,n){var i=Math.min(t,r),a=Math.max(t,r),o=Math.min(e,n),s=Math.max(e,n);this.updateVal(fu.data,"startx",i,Math.min),this.updateVal(fu.data,"starty",o,Math.min),this.updateVal(fu.data,"stopx",a,Math.max),this.updateVal(fu.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},newActivation:function(t,e,r){var n=r[t.from.actor],i=_u(t.from.actor).length||0,a=n.x+n.width/2+(i-1)*du.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+du.activationWidth,stopy:void 0,actor:t.from.actor,anchored:hu.anchorElement(e)})},endActivation:function(t){var e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:fu.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},pu=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},gu=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},yu=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}};var bu=function(t,e,r,n,i,a,o){if(!0===i.hideUnusedParticipants){var s=new Set;a.forEach((function(t){s.add(t.from),s.add(t.to)})),r=r.filter((function(t){return s.has(t)}))}var c,u=0,h=0,d=0,f=void 0,p=Object(l.a)(r);try{for(p.s();!(c=p.n()).done;){var g=e[c.value],y=g.box;f&&f!=y&&(o||fu.models.addBox(f),h+=du.boxMargin+f.margin),y&&y!=f&&(o||(y.x=u+h,y.y=n),h+=y.margin),g.width=g.width||du.width,g.height=Math.max(g.height||du.height,du.height),g.margin=g.margin||du.actorMargin,g.x=u+h,g.y=fu.getVerticalPos();var b=hu.drawActor(t,g,du,o);d=Math.max(d,b),fu.insert(g.x,n,g.x+g.width,g.height),u+=g.width+h,g.box&&(g.box.width=u+y.margin-g.box.x),h=g.margin,f=g.box,fu.models.addActor(g)}}catch(t){p.e(t)}finally{p.f()}f&&!o&&fu.models.addBox(f),fu.bumpVerticalPos(d)},mu=function(t,e,r,n){var i,a=0,o=0,s=Object(l.a)(r);try{for(s.s();!(i=s.n()).done;){var c=e[i.value],u=wu(c),h=hu.drawPopup(t,c,u,du,du.forceMenus,n);h.height>a&&(a=h.height),h.width+c.x>o&&(o=h.width+c.x)}}catch(t){s.e(t)}finally{s.f()}return{maxHeight:a,maxWidth:o}},vu=function(t){er(du,t),t.fontFamily&&(du.actorFontFamily=du.noteFontFamily=du.messageFontFamily=t.fontFamily),t.fontSize&&(du.actorFontSize=du.noteFontSize=du.messageFontSize=t.fontSize),t.fontWeight&&(du.actorFontWeight=du.noteFontWeight=du.messageFontWeight=t.fontWeight)},_u=function(t){return fu.activations.filter((function(e){return e.actor===t}))},xu=function(t,e){var r=e[t],n=_u(t);return[n.reduce((function(t,e){return Math.min(t,e.startx)}),r.x+r.width/2),n.reduce((function(t,e){return Math.max(t,e.stopx)}),r.x+r.width/2)]};function ku(t,e,r,n,i){fu.bumpVerticalPos(r);var a=n;if(e.id&&e.message&&t[e.id]){var o=t[e.id].width,s=pu(du);e.message=Cr.wrapLabel("[".concat(e.message,"]"),o-2*du.wrapPadding,s),e.width=o,e.wrap=!0;var c=Cr.calculateTextDimensions(e.message,s),l=Math.max(c.height,du.labelBoxHeight);a=n+l,tt.debug("".concat(l," - ").concat(e.message))}i(e),fu.bumpVerticalPos(a)}var wu=function(t){var e=0,r=yu(du);for(var n in t.links){var i=Cr.calculateTextDimensions(n,r).width+2*du.wrapPadding+2*du.boxMargin;e<i&&(e=i)}return e};var Tu=function(t,e,r){var n=!1;if([r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(n=!0),!n)return{};var i=xu(t.from,e),a=xu(t.to,e),o=i[0]<=a[0]?1:0,s=i[0]<a[0]?0:1,c=[].concat(Object(h.a)(i),Object(h.a)(a)),l=Math.abs(a[s]-i[o]);t.wrap&&t.message&&(t.message=Cr.wrapLabel(t.message,Math.max(l+2*du.wrapPadding,du.width),pu(du)));var u=Cr.calculateTextDimensions(t.message,pu(du));return{width:Math.max(t.wrap?0:u.width+2*du.wrapPadding,l+2*du.wrapPadding,du.width),height:0,startx:i[o],stopx:a[s],starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,c),toBounds:Math.max.apply(null,c)}},Cu=function(t,e,r,n){var i,a,o,s={},c=[];return t.forEach((function(t){switch(t.id=Cr.random({length:10}),t.type){case n.db.LINETYPE.LOOP_START:case n.db.LINETYPE.ALT_START:case n.db.LINETYPE.OPT_START:case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.CRITICAL_START:case n.db.LINETYPE.BREAK_START:c.push({id:t.id,msg:t.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case n.db.LINETYPE.ALT_ELSE:case n.db.LINETYPE.PAR_AND:case n.db.LINETYPE.CRITICAL_OPTION:t.message&&(i=c.pop(),s[i.id]=i,s[t.id]=i,c.push(i));break;case n.db.LINETYPE.LOOP_END:case n.db.LINETYPE.ALT_END:case n.db.LINETYPE.OPT_END:case n.db.LINETYPE.PAR_END:case n.db.LINETYPE.CRITICAL_END:case n.db.LINETYPE.BREAK_END:i=c.pop(),s[i.id]=i;break;case n.db.LINETYPE.ACTIVE_START:var r=e[t.from?t.from.actor:t.to.actor],l=_u(t.from?t.from.actor:t.to.actor).length,u=r.x+r.width/2+(l-1)*du.activationWidth/2,h={startx:u,stopx:u+du.activationWidth,actor:t.from.actor,enabled:!0};fu.activations.push(h);break;case n.db.LINETYPE.ACTIVE_END:var d=fu.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);delete fu.activations.splice(d,1)[0]}void 0!==t.placement?(a=function(t,e,r){var n=e[t.from].x,i=e[t.to].x,a=t.wrap&&t.message,o=Cr.calculateTextDimensions(a?Cr.wrapLabel(t.message,du.width,gu(du)):t.message,gu(du)),s={width:a?du.width:Math.max(du.width,o.width+2*du.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===r.db.PLACEMENT.RIGHTOF?(s.width=a?Math.max(du.width,o.width):Math.max(e[t.from].width/2+e[t.to].width/2,o.width+2*du.noteMargin),s.startx=n+(e[t.from].width+du.actorMargin)/2):t.placement===r.db.PLACEMENT.LEFTOF?(s.width=a?Math.max(du.width,o.width+2*du.noteMargin):Math.max(e[t.from].width/2+e[t.to].width/2,o.width+2*du.noteMargin),s.startx=n-s.width+(e[t.from].width-du.actorMargin)/2):t.to===t.from?(o=Cr.calculateTextDimensions(a?Cr.wrapLabel(t.message,Math.max(du.width,e[t.from].width),gu(du)):t.message,gu(du)),s.width=a?Math.max(du.width,e[t.from].width):Math.max(e[t.from].width,du.width,o.width+2*du.noteMargin),s.startx=n+(e[t.from].width-s.width)/2):(s.width=Math.abs(n+e[t.from].width/2-(i+e[t.to].width/2))+du.actorMargin,s.startx=n<i?n+e[t.from].width/2-du.actorMargin/2:i+e[t.to].width/2-du.actorMargin/2),a&&(s.message=Cr.wrapLabel(t.message,s.width-2*du.wrapPadding,gu(du))),tt.debug("NM:[".concat(s.startx,",").concat(s.stopx,",").concat(s.starty,",").concat(s.stopy,":").concat(s.width,",").concat(s.height,"=").concat(t.message,"]")),s}(t,e,n),t.noteModel=a,c.forEach((function(t){(i=t).from=Math.min(i.from,a.startx),i.to=Math.max(i.to,a.startx+a.width),i.width=Math.max(i.width,Math.abs(i.from-i.to))-du.labelBoxWidth}))):(o=Tu(t,e,n),t.msgModel=o,o.startx&&o.stopx&&c.length>0&&c.forEach((function(r){if(i=r,o.startx===o.stopx){var n=e[t.from],a=e[t.to];i.from=Math.min(n.x-o.width/2,n.x-n.width/2,i.from),i.to=Math.max(a.x+o.width/2,a.x+n.width/2,i.to),i.width=Math.max(i.width,Math.abs(i.to-i.from))-du.labelBoxWidth}else i.from=Math.min(o.startx,i.from),i.to=Math.max(o.stopx,i.to),i.width=Math.max(i.width,o.width)-du.labelBoxWidth})))})),fu.activations=[],tt.debug("Loop type widths:",s),s},Eu={bounds:fu,drawActors:bu,drawActorsPopup:mu,setConf:vu,draw:function(t,e,r,n){var i,a=Fr(),o=a.securityLevel,s=a.sequence;du=s,n.db.clear(),n.parser.parse(t),"sandbox"===o&&(i=Object(_.F)("#i"+e));var c="sandbox"===o?Object(_.F)(i.nodes()[0].contentDocument.body):Object(_.F)("body"),l="sandbox"===o?i.nodes()[0].contentDocument:document;fu.init(),tt.debug(n.db);var u="sandbox"===o?c.select('[id="'.concat(e,'"]')):Object(_.F)('[id="'.concat(e,'"]')),h=n.db.getActors(),d=n.db.getBoxes(),f=n.db.getActorKeys(),p=n.db.getMessages(),g=n.db.getDiagramTitle(),y=n.db.hasAtLeastOneBox(),b=n.db.hasAtLeastOneBoxWithTitle(),m=function(t,e,r){var n={};return e.forEach((function(e){if(t[e.to]&&t[e.from]){var i=t[e.to];if(e.placement===r.db.PLACEMENT.LEFTOF&&!i.prevActor)return;if(e.placement===r.db.PLACEMENT.RIGHTOF&&!i.nextActor)return;var a=void 0!==e.placement,o=!a,s=a?gu(du):pu(du),c=e.wrap?Cr.wrapLabel(e.message,du.width-2*du.wrapPadding,s):e.message,l=Cr.calculateTextDimensions(c,s).width+2*du.wrapPadding;o&&e.from===i.nextActor?n[e.to]=Math.max(n[e.to]||0,l):o&&e.from===i.prevActor?n[e.from]=Math.max(n[e.from]||0,l):o&&e.from===e.to?(n[e.from]=Math.max(n[e.from]||0,l/2),n[e.to]=Math.max(n[e.to]||0,l/2)):e.placement===r.db.PLACEMENT.RIGHTOF?n[e.from]=Math.max(n[e.from]||0,l):e.placement===r.db.PLACEMENT.LEFTOF?n[i.prevActor]=Math.max(n[i.prevActor]||0,l):e.placement===r.db.PLACEMENT.OVER&&(i.prevActor&&(n[i.prevActor]=Math.max(n[i.prevActor]||0,l/2)),i.nextActor&&(n[e.from]=Math.max(n[e.from]||0,l/2)))}})),tt.debug("maxMessageWidthPerActor:",n),n}(h,p,n);du.height=function(t,e,r){var n=0;for(var i in Object.keys(t).forEach((function(e){var r=t[e];r.wrap&&(r.description=Cr.wrapLabel(r.description,du.width-2*du.wrapPadding,yu(du)));var i=Cr.calculateTextDimensions(r.description,yu(du));r.width=r.wrap?du.width:Math.max(du.width,i.width+2*du.wrapPadding),r.height=r.wrap?Math.max(i.height,du.height):du.height,n=Math.max(n,r.height)})),e){var a=t[i];if(a){var o=t[a.nextActor];if(o){var s=e[i]+du.actorMargin-a.width/2-o.width/2;a.margin=Math.max(s,du.actorMargin)}else{var c=e[i]+du.actorMargin-a.width/2;a.margin=Math.max(c,du.actorMargin)}}}var l=0;return r.forEach((function(e){var r=pu(du),n=e.actorKeys.reduce((function(e,r){return e+(t[r].width+(t[r].margin||0))}),0);n-=2*du.boxTextMargin,e.wrap&&(e.name=Cr.wrapLabel(e.name,n-2*du.wrapPadding,r));var i=Cr.calculateTextDimensions(e.name,r);l=Math.max(i.height,l);var a=Math.max(n,i.width+2*du.wrapPadding);if(e.margin=du.boxTextMargin,n<a){var o=(a-n)/2;e.margin+=o}})),r.forEach((function(t){return t.textMaxHeight=l})),Math.max(n,du.height)}(h,m,d),hu.insertComputerIcon(u),hu.insertDatabaseIcon(u),hu.insertClockIcon(u),y&&(fu.bumpVerticalPos(du.boxMargin),b&&fu.bumpVerticalPos(d[0].textMaxHeight)),bu(u,h,f,0,du,p,!1);var v=Cu(p,h,m,n);hu.insertArrowHead(u),hu.insertArrowCrossHead(u),hu.insertArrowFilledHead(u),hu.insertSequenceNumber(u);var x=1,k=1,w=[];p.forEach((function(t){var e,r,i;switch(t.type){case n.db.LINETYPE.NOTE:r=t.noteModel,function(t,e){fu.bumpVerticalPos(du.boxMargin),e.height=du.boxMargin,e.starty=fu.getVerticalPos();var r=hu.getNoteRect();r.x=e.startx,r.y=e.starty,r.width=e.width||du.width,r.class="note";var n=t.append("g"),i=hu.drawRect(n,r),a=hu.getTextObj();a.x=e.startx,a.y=e.starty,a.width=r.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=du.noteFontFamily,a.fontSize=du.noteFontSize,a.fontWeight=du.noteFontWeight,a.anchor=du.noteAlign,a.textMargin=du.noteMargin,a.valign="center";var o=ru(n,a),s=Math.round(o.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));i.attr("height",s+2*du.noteMargin),e.height+=s+2*du.noteMargin,fu.bumpVerticalPos(s+2*du.noteMargin),e.stopy=e.starty+s+2*du.noteMargin,e.stopx=e.startx+r.width,fu.insert(e.startx,e.starty,e.stopx,e.stopy),fu.models.addNote(e)}(u,r);break;case n.db.LINETYPE.ACTIVE_START:fu.newActivation(t,u,h);break;case n.db.LINETYPE.ACTIVE_END:!function(t,e){var r=fu.endActivation(t);r.starty+18>e&&(r.starty=e-6,e+=12),hu.drawActivation(u,r,e,du,_u(t.from.actor).length),fu.insert(r.startx,e-10,r.stopx,e)}(t,fu.getVerticalPos());break;case n.db.LINETYPE.LOOP_START:ku(v,t,du.boxMargin,du.boxMargin+du.boxTextMargin,(function(t){return fu.newLoop(t)}));break;case n.db.LINETYPE.LOOP_END:e=fu.endLoop(),hu.drawLoop(u,e,"loop",du),fu.bumpVerticalPos(e.stopy-fu.getVerticalPos()),fu.models.addLoop(e);break;case n.db.LINETYPE.RECT_START:ku(v,t,du.boxMargin,du.boxMargin,(function(t){return fu.newLoop(void 0,t.message)}));break;case n.db.LINETYPE.RECT_END:e=fu.endLoop(),hu.drawBackgroundRect(u,e),fu.models.addLoop(e),fu.bumpVerticalPos(e.stopy-fu.getVerticalPos());break;case n.db.LINETYPE.OPT_START:ku(v,t,du.boxMargin,du.boxMargin+du.boxTextMargin,(function(t){return fu.newLoop(t)}));break;case n.db.LINETYPE.OPT_END:e=fu.endLoop(),hu.drawLoop(u,e,"opt",du),fu.bumpVerticalPos(e.stopy-fu.getVerticalPos()),fu.models.addLoop(e);break;case n.db.LINETYPE.ALT_START:ku(v,t,du.boxMargin,du.boxMargin+du.boxTextMargin,(function(t){return fu.newLoop(t)}));break;case n.db.LINETYPE.ALT_ELSE:ku(v,t,du.boxMargin+du.boxTextMargin,du.boxMargin,(function(t){return fu.addSectionToLoop(t)}));break;case n.db.LINETYPE.ALT_END:e=fu.endLoop(),hu.drawLoop(u,e,"alt",du),fu.bumpVerticalPos(e.stopy-fu.getVerticalPos()),fu.models.addLoop(e);break;case n.db.LINETYPE.PAR_START:ku(v,t,du.boxMargin,du.boxMargin+du.boxTextMargin,(function(t){return fu.newLoop(t)}));break;case n.db.LINETYPE.PAR_AND:ku(v,t,du.boxMargin+du.boxTextMargin,du.boxMargin,(function(t){return fu.addSectionToLoop(t)}));break;case n.db.LINETYPE.PAR_END:e=fu.endLoop(),hu.drawLoop(u,e,"par",du),fu.bumpVerticalPos(e.stopy-fu.getVerticalPos()),fu.models.addLoop(e);break;case n.db.LINETYPE.AUTONUMBER:x=t.message.start||x,k=t.message.step||k,t.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:ku(v,t,du.boxMargin,du.boxMargin+du.boxTextMargin,(function(t){return fu.newLoop(t)}));break;case n.db.LINETYPE.CRITICAL_OPTION:ku(v,t,du.boxMargin+du.boxTextMargin,du.boxMargin,(function(t){return fu.addSectionToLoop(t)}));break;case n.db.LINETYPE.CRITICAL_END:e=fu.endLoop(),hu.drawLoop(u,e,"critical",du),fu.bumpVerticalPos(e.stopy-fu.getVerticalPos()),fu.models.addLoop(e);break;case n.db.LINETYPE.BREAK_START:ku(v,t,du.boxMargin,du.boxMargin+du.boxTextMargin,(function(t){return fu.newLoop(t)}));break;case n.db.LINETYPE.BREAK_END:e=fu.endLoop(),hu.drawLoop(u,e,"break",du),fu.bumpVerticalPos(e.stopy-fu.getVerticalPos()),fu.models.addLoop(e);break;default:try{(i=t.msgModel).starty=fu.getVerticalPos(),i.sequenceIndex=x,i.sequenceVisible=n.db.showSequenceNumbers();var a=function(t,e){fu.bumpVerticalPos(10);var r,n=e.startx,i=e.stopx,a=e.message,o=ut.splitBreaks(a).length,s=Cr.calculateTextDimensions(a,pu(du)),c=s.height/o;e.height+=c,fu.bumpVerticalPos(c);var l=s.height-10,u=s.width;if(n===i){r=fu.getVerticalPos()+l,du.rightAngles||(l+=du.boxMargin,r=fu.getVerticalPos()+l),l+=30;var h=Math.max(u/2,du.width/2);fu.insert(n-h,fu.getVerticalPos()-10+l,i+h,fu.getVerticalPos()+30+l)}else l+=du.boxMargin,r=fu.getVerticalPos()+l,fu.insert(n,r-10,i,r);return fu.bumpVerticalPos(l),e.height+=l,e.stopy=e.starty+e.height,fu.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),r}(0,i);w.push({messageModel:i,lineStartY:a}),fu.models.addMessage(i)}catch(t){tt.error("error while drawing message",t)}}[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(t.type)&&(x+=k)})),w.forEach((function(t){return function(t,e,r,n){var i=e.startx,a=e.stopx,o=e.starty,s=e.message,c=e.type,l=e.sequenceIndex,u=e.sequenceVisible,h=Cr.calculateTextDimensions(s,pu(du)),d=hu.getTextObj();d.x=i,d.y=o+10,d.width=a-i,d.class="messageText",d.dy="1em",d.text=s,d.fontFamily=du.messageFontFamily,d.fontSize=du.messageFontSize,d.fontWeight=du.messageFontWeight,d.anchor=du.messageAlign,d.valign="center",d.textMargin=du.wrapPadding,d.tspan=!1,ru(t,d);var f,p=h.width;i===a?f=du.rightAngles?t.append("path").attr("d","M ".concat(i,",").concat(r," H ").concat(i+Math.max(du.width/2,p/2)," V ").concat(r+25," H ").concat(i)):t.append("path").attr("d","M "+i+","+r+" C "+(i+60)+","+(r-10)+" "+(i+60)+","+(r+30)+" "+i+","+(r+20)):((f=t.append("line")).attr("x1",i),f.attr("y1",r),f.attr("x2",a),f.attr("y2",r)),c===n.db.LINETYPE.DOTTED||c===n.db.LINETYPE.DOTTED_CROSS||c===n.db.LINETYPE.DOTTED_POINT||c===n.db.LINETYPE.DOTTED_OPEN?(f.style("stroke-dasharray","3, 3"),f.attr("class","messageLine1")):f.attr("class","messageLine0");var g="";du.arrowMarkerAbsolute&&(g=(g=(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),f.attr("stroke-width",2),f.attr("stroke","none"),f.style("fill","none"),c!==n.db.LINETYPE.SOLID&&c!==n.db.LINETYPE.DOTTED||f.attr("marker-end","url("+g+"#arrowhead)"),c!==n.db.LINETYPE.SOLID_POINT&&c!==n.db.LINETYPE.DOTTED_POINT||f.attr("marker-end","url("+g+"#filled-head)"),c!==n.db.LINETYPE.SOLID_CROSS&&c!==n.db.LINETYPE.DOTTED_CROSS||f.attr("marker-end","url("+g+"#crosshead)"),(u||du.showSequenceNumbers)&&(f.attr("marker-start","url("+g+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",r+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))}(u,t.messageModel,t.lineStartY,n)})),du.mirrorActors&&(fu.bumpVerticalPos(2*du.boxMargin),bu(u,h,f,fu.getVerticalPos(),du,p,!0),fu.bumpVerticalPos(du.boxMargin),au(u,fu.getVerticalPos())),fu.models.boxes.forEach((function(t){t.height=fu.getVerticalPos()-t.y,fu.insert(t.x,t.y,t.x+t.width,t.height),t.startx=t.x,t.starty=t.y,t.stopx=t.startx+t.width,t.stopy=t.starty+t.height,t.stroke="rgb(0,0,0, 0.5)",hu.drawBox(u,t,du)})),y&&fu.bumpVerticalPos(du.boxMargin);var T=mu(u,h,f,l),C=fu.getBounds().bounds;tt.debug("For line height fix Querying: #"+e+" .actor-line"),Object(_.G)("#"+e+" .actor-line").attr("y2",C.stopy);var E=C.stopy-C.starty;E<T.maxHeight&&(E=T.maxHeight);var S=E+2*du.diagramMarginY;du.mirrorActors&&(S=S-du.boxMargin+du.bottomMarginAdj);var A=C.stopx-C.startx;A<T.maxWidth&&(A=T.maxWidth);var O=A+2*du.diagramMarginX;g&&u.append("text").text(g).attr("x",(C.stopx-C.startx)/2-2*du.diagramMarginX).attr("y",-25),Ur(u,S,O,du.useMaxWidth);var L=g?40:0;u.attr("viewBox",C.startx-du.diagramMarginX+" -"+(du.diagramMarginY+L)+" "+O+" "+(S+L)),tt.debug("models:",fu.models)}},Su=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,2],r=[1,3],n=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,21],l=[1,22],u=[1,23],h=[1,24],d=[1,37],f=[1,25],p=[1,26],g=[1,27],y=[1,28],b=[1,29],m=[1,32],v=[1,33],_=[1,34],x=[1,35],k=[1,36],w=[1,39],T=[1,40],C=[1,41],E=[1,42],S=[1,38],A=[1,45],O=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],B=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],D=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],M={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"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,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],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 4:return n.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:this.$=a[s];break;case 9:this.$="nl";break;case 12:this.$=a[s];break;case 13:var c=a[s-1];c.description=n.trimColon(a[s]),this.$=c;break;case 14:this.$={stmt:"relation",state1:a[s-2],state2:a[s]};break;case 15:var l=n.trimColon(a[s]);this.$={stmt:"relation",state1:a[s-3],state2:a[s-1],description:l};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 20:var u=a[s],h=a[s-2].trim();if(a[s].match(":")){var d=a[s].split(":");u=d[0],h=[h,d[1]]}this.$={stmt:"state",id:u,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:"state",id:a[s],type:"fork"};break;case 23:this.$={stmt:"state",id:a[s],type:"join"};break;case 24:this.$={stmt:"state",id:a[s],type:"choice"};break;case 25:this.$={stmt:"state",id:n.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 30:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:a[s-1].trim(),classes:a[s].trim()};break;case 35:this.$={stmt:"applyClass",id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:n.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:n.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:n.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:n.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[s].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:a[s-2].trim(),classes:[a[s].trim()],type:"default",description:""};break;case 50:n.parseDirective("%%{","open_directive");break;case 51:n.parseDirective(a[s],"type_directive");break;case 52:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 53:n.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:r,6:4,7:n,45:6,60:i},{1:[3]},{3:8,4:e,5:r,6:4,7:n,45:6,60:i},{3:9,4:e,5:r,6:4,7:n,45:6,60:i},{3:10,4:e,5:r,6:4,7:n,45:6,60:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],a,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:u,22:h,24:d,25:f,26:p,27:g,28:y,29:b,32:31,33:m,35:v,37:_,38:x,42:k,45:6,50:w,51:T,52:C,53:E,56:S,60:i},{47:43,48:[1,44],63:A},t([48,63],[2,51]),t(O,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:c,17:l,19:u,22:h,24:d,25:f,26:p,27:g,28:y,29:b,32:31,33:m,35:v,37:_,38:x,42:k,45:6,50:w,51:T,52:C,53:E,56:S,60:i},t(O,[2,8]),t(O,[2,9]),t(O,[2,10]),t(O,[2,11]),t(O,[2,12],{14:[1,47],15:[1,48]}),t(O,[2,16]),{18:[1,49]},t(O,[2,18],{20:[1,50]}),{23:[1,51]},t(O,[2,22]),t(O,[2,23]),t(O,[2,24]),t(O,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(O,[2,28]),t(O,[2,29]),{34:[1,56]},{36:[1,57]},t(O,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(L,[2,44],{57:[1,61]}),t(L,[2,45],{57:[1,62]}),t(O,[2,38]),t(O,[2,39]),t(O,[2,40]),t(O,[2,41]),t(B,[2,36]),{49:63,62:[1,64]},t(B,[2,53]),t(O,[2,7]),t(O,[2,13]),{13:65,24:d,56:S},t(O,[2,17]),t(D,a,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(O,[2,30]),t(O,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:A},{63:[2,52]},t(O,[2,14],{14:[1,76]}),{4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:u,21:[1,77],22:h,24:d,25:f,26:p,27:g,28:y,29:b,32:31,33:m,35:v,37:_,38:x,42:k,45:6,50:w,51:T,52:C,53:E,56:S,60:i},t(O,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(O,[2,33]),t(O,[2,34]),t(O,[2,35]),t(L,[2,46]),t(L,[2,47]),t(B,[2,37]),t(O,[2,15]),t(O,[2,19]),t(D,a,{8:81}),t(O,[2,26]),t(O,[2,27]),{4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:u,21:[1,82],22:h,24:d,25:f,26:p,27:g,28:y,29:b,32:31,33:m,35:v,37:_,38:x,42:k,45:6,50:w,51:T,52:C,53:E,56:S,60:i},t(O,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},I={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:case 11:break;case 12:return 5;case 13:case 14:case 15:case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 69:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 70:case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return e.yytext=e.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*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,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/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,/^(?:%%(?!\{)[^\n]*)/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,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};function N(){this.yy={}}return M.lexer=I,N.prototype=M,M.Parser=N,new N}();Su.parser=Su;var Au=Su,Ou=function(t,e){var r;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.state)?void 0:r.defaultRenderer)&&null!==t.match(/^\s*stateDiagram/)},Lu=function(t,e){var r;return null!==t.match(/^\s*stateDiagram-v2/)||!(!t.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(r=null==e?void 0:e.state)?void 0:r.defaultRenderer))},Bu="state",Du="relation",Mu="default",Iu="divider",Nu="[*]",Fu="start",ju=Nu,Ru="end",Pu="color",$u="fill";var zu="LR",Yu=[],Uu={},Wu={root:{relations:[],states:{},documents:{}}},qu=Wu.root,Hu=0,Vu=0,Gu=function(t){return JSON.parse(JSON.stringify(t))},Xu=function(t,e,r){if(e.stmt===Du)Xu(t,e.state1,!0),Xu(t,e.state2,!1);else if(e.stmt===Bu&&("[*]"===e.id?(e.id=r?t.id+"_start":t.id+"_end",e.start=r):e.id=e.id.trim()),e.doc){var n,i=[],a=[];for(n=0;n<e.doc.length;n++)if(e.doc[n].type===Iu){var o=Gu(e.doc[n]);o.doc=Gu(a),i.push(o),a=[]}else a.push(e.doc[n]);if(i.length>0&&a.length>0){var s={stmt:Bu,id:ur(),type:"divider",doc:Gu(a)};i.push(Gu(s)),e.doc=i}e.doc.forEach((function(t){return Xu(e,t,!0)}))}},Ku=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mu,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=null==t?void 0:t.trim();if(void 0===qu.states[l]?(tt.info("Adding state ",l,i),qu.states[l]={id:l,descriptions:[],type:e,doc:r,note:a,classes:[],styles:[],textStyles:[]}):(qu.states[l].doc||(qu.states[l].doc=r),qu.states[l].type||(qu.states[l].type=e)),i&&(tt.info("Setting state description",l,i),"string"==typeof i&&nh(l,i.trim()),"object"===Object(n.a)(i)&&i.forEach((function(t){return nh(l,t.trim())}))),a&&(qu.states[l].note=a,qu.states[l].note.text=ut.sanitizeText(qu.states[l].note.text,Fr())),o){tt.info("Setting state classes",l,o);var u="string"==typeof o?[o]:o;u.forEach((function(t){return ah(l,t.trim())}))}if(s){tt.info("Setting state styles",l,s);var h="string"==typeof s?[s]:s;h.forEach((function(t){return oh(l,t.trim())}))}if(c){tt.info("Setting state styles",l,s);var d="string"==typeof c?[c]:c;d.forEach((function(t){return sh(l,t.trim())}))}},Qu=function(t){qu=(Wu={root:{relations:[],states:{},documents:{}}}).root,Hu=0,Uu={},t||un()},Zu=function(t){return qu.states[t]};function Ju(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t;return t===Nu&&(Hu++,e="".concat(Fu).concat(Hu)),e}function th(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mu;return t===Nu?Fu:e}var eh,rh=function(t,e,r){if("object"===Object(n.a)(t))!function(t,e,r){var n=Ju(t.id.trim()),i=th(t.id.trim(),t.type),a=Ju(e.id.trim()),o=th(e.id.trim(),e.type);Ku(n,i,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),Ku(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),qu.relations.push({id1:n,id2:a,relationTitle:ut.sanitizeText(r,Fr())})}(t,e,r);else{var i=Ju(t.trim()),a=th(t),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t;return t===ju&&(Hu++,e="".concat(Ru).concat(Hu)),e}(e.trim()),s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mu;return t===ju?Ru:e}(e);Ku(i,a),Ku(o,s),qu.relations.push({id1:i,id2:o,title:ut.sanitizeText(r,Fr())})}},nh=function(t,e){var r=qu.states[t],n=e.startsWith(":")?e.replace(":","").trim():e;r.descriptions.push(ut.sanitizeText(n,Fr()))},ih=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";void 0===Uu[t]&&(Uu[t]={id:t,styles:[],textStyles:[]});var r=Uu[t];null!=e&&e.split(",").forEach((function(t){var e=t.replace(/([^;]*);/,"$1").trim();if(t.match(Pu)){var n=e.replace($u,"bgFill").replace(Pu,$u);r.textStyles.push(n)}r.styles.push(e)}))},ah=function(t,e){t.split(",").forEach((function(t){var r=Zu(t);if(void 0===r){var n=t.trim();Ku(n),r=Zu(n)}r.classes.push(e)}))},oh=function(t,e){var r=Zu(t);void 0!==r&&r.textStyles.push(e)},sh=function(t,e){var r=Zu(t);void 0!==r&&r.textStyles.push(e)},ch={parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().state},addState:Ku,clear:Qu,getState:Zu,getStates:function(){return qu.states},getRelations:function(){return qu.relations},getClasses:function(){return Uu},getDirection:function(){return zu},addRelation:rh,getDividerId:function(){return"divider-id-"+ ++Vu},setDirection:function(t){zu=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){tt.info("Documents = ",Wu)},getRootDoc:function(){return Yu},setRootDoc:function(t){tt.info("Setting root doc",t),Yu=t},getRootDocV2:function(){return Xu({id:"root"},{id:"root",doc:Yu},!0),{id:"root",doc:Yu}},extract:function(t){var e;e=t.doc?t.doc:t,tt.info(e),Qu(!0),tt.info("Extract",e),e.forEach((function(t){switch(t.stmt){case Bu:Ku(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case Du:rh(t.state1,t.state2,t.description);break;case"classDef":ih(t.id.trim(),t.classes);break;case"applyClass":ah(t.id.trim(),t.styleClass)}}))},trimColon:function(t){return t&&":"===t[0]?t.substr(1).trim():t.trim()},getAccTitle:dn,setAccTitle:hn,getAccDescription:pn,setAccDescription:fn,addStyleClass:ih,setCssClass:ah,addDescription:nh,setDiagramTitle:gn,getDiagramTitle:yn},lh={},uh=function(t,e){lh[t]=e},hh=function(t,e){var r=t.append("text").attr("x",2*Fr().state.padding).attr("y",Fr().state.textHeight+1.3*Fr().state.padding).attr("font-size",Fr().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),n=r.height,i=t.append("text").attr("x",Fr().state.padding).attr("y",n+.4*Fr().state.padding+Fr().state.dividerMargin+Fr().state.textHeight).attr("class","state-description"),a=!0,o=!0;e.descriptions.forEach((function(t){a||(function(t,e,r){var n=t.append("tspan").attr("x",2*Fr().state.padding).text(e);r||n.attr("dy",Fr().state.textHeight)}(i,t,o),o=!1),a=!1}));var s=t.append("line").attr("x1",Fr().state.padding).attr("y1",Fr().state.padding+n+Fr().state.dividerMargin/2).attr("y2",Fr().state.padding+n+Fr().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),l=Math.max(c.width,r.width);return s.attr("x2",l+3*Fr().state.padding),t.insert("rect",":first-child").attr("x",Fr().state.padding).attr("y",Fr().state.padding).attr("width",l+2*Fr().state.padding).attr("height",c.height+n+2*Fr().state.padding).attr("rx",Fr().state.radius),t},dh=function(t,e,r){var n,i=Fr().state.padding,a=2*Fr().state.padding,o=t.node().getBBox(),s=o.width,c=o.x,l=t.append("text").attr("x",0).attr("y",Fr().state.titleShift).attr("font-size",Fr().state.fontSize).attr("class","state-title").text(e.id),u=l.node().getBBox().width+a,h=Math.max(u,s);h===s&&(h+=a);var d=t.node().getBBox();e.doc,n=c-i,u>s&&(n=(s-h)/2+i),Math.abs(c-d.x)<i&&u>s&&(n=c-(u-s)/2);var f=1-Fr().state.textHeight;return t.insert("rect",":first-child").attr("x",n).attr("y",f).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",d.height+Fr().state.textHeight+Fr().state.titleShift+1).attr("rx","0"),l.attr("x",n+i),u<=s&&l.attr("x",c+(h-a)/2-u/2+i),t.insert("rect",":first-child").attr("x",n).attr("y",Fr().state.titleShift-Fr().state.textHeight-Fr().state.padding).attr("width",h).attr("height",3*Fr().state.textHeight).attr("rx",Fr().state.radius),t.insert("rect",":first-child").attr("x",n).attr("y",Fr().state.titleShift-Fr().state.textHeight-Fr().state.padding).attr("width",h).attr("height",d.height+3+2*Fr().state.textHeight).attr("rx",Fr().state.radius),t},fh=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",Fr().state.padding),n=function(t,e,r,n){var i=0,a=n.append("text");a.style("text-anchor","start"),a.attr("class","noteText");var o,s=t.replace(/\r\n/g,"<br/>"),c=(s=s.replace(/\n/g,"<br/>")).split(ut.lineBreakRegex),u=1.25*Fr().state.noteMargin,h=Object(l.a)(c);try{for(h.s();!(o=h.n()).done;){var d=o.value.trim();if(d.length>0){var f=a.append("tspan");if(f.text(d),0===u)u+=f.node().getBBox().height;i+=u,f.attr("x",e+Fr().state.noteMargin),f.attr("y",r+i+1.25*Fr().state.noteMargin)}}}catch(t){h.e(t)}finally{h.f()}return{textWidth:a.node().getBBox().width,textHeight:i}}(t,0,0,e.append("g")),i=n.textWidth,a=n.textHeight;return r.attr("height",a+2*Fr().state.noteMargin),r.attr("width",i+2*Fr().state.noteMargin),r},ph=function(t,e){var r=e.id,n={id:r,label:e.id,width:0,height:0},i=t.append("g").attr("id",r).attr("class","stateGroup");"start"===e.type&&function(t){t.append("circle").attr("class","start-state").attr("r",Fr().state.sizeUnit).attr("cx",Fr().state.padding+Fr().state.sizeUnit).attr("cy",Fr().state.padding+Fr().state.sizeUnit)}(i),"end"===e.type&&function(t){t.append("circle").attr("class","end-state-outer").attr("r",Fr().state.sizeUnit+Fr().state.miniPadding).attr("cx",Fr().state.padding+Fr().state.sizeUnit+Fr().state.miniPadding).attr("cy",Fr().state.padding+Fr().state.sizeUnit+Fr().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",Fr().state.sizeUnit).attr("cx",Fr().state.padding+Fr().state.sizeUnit+2).attr("cy",Fr().state.padding+Fr().state.sizeUnit+2)}(i),"fork"!==e.type&&"join"!==e.type||function(t,e){var r=Fr().state.forkWidth,n=Fr().state.forkHeight;if(e.parentId){var i=r;r=n,n=i}t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",Fr().state.padding).attr("y",Fr().state.padding)}(i,e),"note"===e.type&&fh(e.note.text,i),"divider"===e.type&&function(t){t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Fr().state.textHeight).attr("class","divider").attr("x2",2*Fr().state.textHeight).attr("y1",0).attr("y2",0)}(i),"default"===e.type&&0===e.descriptions.length&&function(t,e){var r=t.append("text").attr("x",2*Fr().state.padding).attr("y",Fr().state.textHeight+2*Fr().state.padding).attr("font-size",Fr().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();t.insert("rect",":first-child").attr("x",Fr().state.padding).attr("y",Fr().state.padding).attr("width",n.width+2*Fr().state.padding).attr("height",n.height+2*Fr().state.padding).attr("rx",Fr().state.radius)}(i,e),"default"===e.type&&e.descriptions.length>0&&hh(i,e);var a=i.node().getBBox();return n.width=a.width+2*Fr().state.padding,n.height=a.height+2*Fr().state.padding,uh(r,n),n},gh=0,yh=function(t,e,r){e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var n=e.points,i=Object(_.y)().x((function(t){return t.x})).y((function(t){return t.y})).curve(_.d),a=t.append("path").attr("d",i(n)).attr("id","edge"+gh).attr("class","transition"),o="";if(Fr().state.arrowMarkerAbsolute&&(o=(o=(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.attr("marker-end","url("+o+"#"+function(t){switch(t){case ch.relationType.AGGREGATION:return"aggregation";case ch.relationType.EXTENSION:return"extension";case ch.relationType.COMPOSITION:return"composition";case ch.relationType.DEPENDENCY:return"dependency"}}(ch.relationType.DEPENDENCY)+"End)"),void 0!==r.title){for(var s=t.append("g").attr("class","stateLabel"),c=Cr.calcLabelPosition(e.points),l=c.x,u=c.y,h=ut.getRows(r.title),d=0,f=[],p=0,g=0,y=0;y<=h.length;y++){var b=s.append("text").attr("text-anchor","middle").text(h[y]).attr("x",l).attr("y",u+d),m=b.node().getBBox();if(p=Math.max(p,m.width),g=Math.min(g,m.x),tt.info(m.x,l,u+d),0===d){var v=b.node().getBBox();d=v.height,tt.info("Title height",d,u)}f.push(b)}var x=d*h.length;if(h.length>1){var k=(h.length-1)*d*.5;f.forEach((function(t,e){return t.attr("y",u+e*d-k)})),x=d*h.length}var w=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",l-p/2-Fr().state.padding/2).attr("y",u-x/2-Fr().state.padding/2-3.5).attr("width",p+Fr().state.padding).attr("height",x+Fr().state.padding),tt.info(w)}gh++},bh={},mh=function(t){return t?t.length*eh.fontSizeFactor:1},vh=function(t,e,r,n,i,a,o){var s,c=new F.a({compound:!0,multigraph:!0}),l=!0;for(s=0;s<t.length;s++)if("relation"===t[s].stmt){l=!1;break}r?c.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:eh.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):c.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:eh.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),c.setDefaultEdgeLabel((function(){return{}})),o.db.extract(t);for(var u=o.db.getStates(),h=o.db.getRelations(),d=0,f=Object.keys(u);d<f.length;d++){var p=u[f[d]];r&&(p.parentId=r);var g=void 0;if(p.doc){var y=e.append("g").attr("id",p.id).attr("class","stateGroup");g=vh(p.doc,y,p.id,!n,i,a,o);var b=(y=dh(y,p,n)).node().getBBox();g.width=b.width,g.height=b.height+eh.padding/2,bh[p.id]={y:eh.compositTitleSize}}else g=ph(e,p);if(p.note){var m={descriptions:[],id:p.id+"-note",note:p.note,type:"note"},v=ph(e,m);"left of"===p.note.position?(c.setNode(g.id+"-note",v),c.setNode(g.id,g)):(c.setNode(g.id,g),c.setNode(g.id+"-note",v)),c.setParent(g.id,g.id+"-group"),c.setParent(g.id+"-note",g.id+"-group")}else c.setNode(g.id,g)}tt.debug("Count=",c.nodeCount(),c);var _=0;h.forEach((function(t){_++,tt.debug("Setting edge",t),c.setEdge(t.id1,t.id2,{relation:t,width:mh(t.title),height:eh.labelHeight*ut.getRows(t.title).length,labelpos:"c"},"id"+_)})),Object(N.a)(c),tt.debug("Graph after layout",c.nodes());var x=e.node();c.nodes().forEach((function(t){void 0!==t&&void 0!==c.node(t)?(tt.warn("Node "+t+": "+JSON.stringify(c.node(t))),i.select("#"+x.id+" #"+t).attr("transform","translate("+(c.node(t).x-c.node(t).width/2)+","+(c.node(t).y+(bh[t]?bh[t].y:0)-c.node(t).height/2)+" )"),i.select("#"+x.id+" #"+t).attr("data-x-shift",c.node(t).x-c.node(t).width/2),a.querySelectorAll("#"+x.id+" #"+t+" .divider").forEach((function(t){var e=t.parentElement,r=0,n=0;e&&(e.parentElement&&(r=e.parentElement.getBBox().width),n=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(n)&&(n=0)),t.setAttribute("x1",0-n+8),t.setAttribute("x2",r-n-8)}))):tt.debug("No Node "+t+": "+JSON.stringify(c.node(t)))}));var k=x.getBBox();c.edges().forEach((function(t){void 0!==t&&void 0!==c.edge(t)&&(tt.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(c.edge(t))),yh(e,c.edge(t),c.edge(t).relation))})),k=x.getBBox();var w={id:r||"root",label:r||"root",width:0,height:0};return w.width=k.width+2*eh.padding,w.height=k.height+2*eh.padding,tt.debug("Doc rendered",w,c),w},_h={setConf:function(){},draw:function(t,e,r,n){eh=Fr().state;var i,a=Fr().securityLevel;"sandbox"===a&&(i=Object(_.F)("#i"+e));var o="sandbox"===a?Object(_.F)(i.nodes()[0].contentDocument.body):Object(_.F)("body"),s="sandbox"===a?i.nodes()[0].contentDocument:document;tt.debug("Rendering diagram "+t);var c=o.select("[id='".concat(e,"']"));!function(t){t.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")}(c),new F.a({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var l=n.db.getRootDoc();vh(l,c,void 0,!1,o,s,n);var u=eh.padding,h=c.node().getBBox(),d=h.width+2*u,f=h.height+2*u;Ur(c,f,1.75*d,eh.useMaxWidth),c.attr("viewBox","".concat(h.x-eh.padding," ").concat(h.y-eh.padding," ")+d+" "+f)}},xh="rect",kh="rectWithTitle",wh="statediagram",Th="".concat(wh,"-").concat("state"),Ch="transition",Eh="".concat(Ch," ").concat("note-edge"),Sh="".concat(wh,"-").concat("note"),Ah="".concat(wh,"-").concat("cluster"),Oh="".concat(wh,"-").concat("cluster-alt"),Lh="----",Bh="".concat(Lh).concat("note"),Dh="".concat(Lh).concat("parent"),Mh="fill:none",Ih="fill: #333",Nh={},Fh=0;function jh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Lh,i=null!==r&&r.length>0?"".concat(n).concat(r):"";return"".concat("state","-").concat(t).concat(i,"-").concat(e)}var Rh=function(t,e,r,n,i,a){var o=r.id,s=function(t){return null==t?"":t.classes?t.classes.join(" "):""}(n[o]);if("root"!==o){var c=xh;!0===r.start&&(c="start"),!1===r.start&&(c="end"),r.type!==Mu&&(c=r.type),Nh[o]||(Nh[o]={id:o,shape:c,description:ut.sanitizeText(o,Fr()),classes:"".concat(s," ").concat(Th)});var l=Nh[o];r.description&&(Array.isArray(l.description)?(l.shape=kh,l.description.push(r.description)):l.description.length>0?(l.shape=kh,l.description===o?l.description=[r.description]:l.description=[l.description,r.description]):(l.shape=xh,l.description=r.description),l.description=ut.sanitizeTextOrArray(l.description,Fr())),1===l.description.length&&l.shape===kh&&(l.shape=xh),!l.type&&r.doc&&(tt.info("Setting cluster for ",o,$h(r)),l.type="group",l.dir=$h(r),l.shape=r.type===Iu?"divider":"roundedWithTitle",l.classes=l.classes+" "+Ah+" "+(a?Oh:""));var u={labelStyle:"",shape:l.shape,labelText:l.description,classes:l.classes,style:"",id:o,dir:l.dir,domId:jh(o,Fh),type:l.type,padding:15};if(r.note){var h={labelStyle:"",shape:"note",labelText:r.note.text,classes:Sh,style:"",id:o+Bh+"-"+Fh,domId:jh(o,Fh,"note"),type:l.type,padding:15},d={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:l.classes,style:"",id:o+Dh,domId:jh(o,Fh,"parent"),type:"group",padding:0};Fh++;var f=o+Dh;t.setNode(f,d),t.setNode(h.id,h),t.setNode(o,u),t.setParent(o,f),t.setParent(h.id,f);var p=o,g=h.id;"left of"===r.note.position&&(p=h.id,g=o),t.setEdge(p,g,{arrowhead:"none",arrowType:"",style:Mh,labelStyle:"",classes:Eh,arrowheadStyle:Ih,labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(o,u)}e&&"root"!==e.id&&(tt.trace("Setting node ",o," to be child of its parent ",e.id),t.setParent(o,e.id)),r.doc&&(tt.trace("Adding nodes children "),Ph(t,r,r.doc,n,i,!a))},Ph=function(t,e,r,n,i,a){tt.trace("items",r),r.forEach((function(r){switch(r.stmt){case Bu:case Mu:Rh(t,e,r,n,i,a);break;case Du:Rh(t,e,r.state1,n,i,a),Rh(t,e,r.state2,n,i,a);var o={id:"edge"+Fh,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Mh,labelStyle:"",label:ut.sanitizeText(r.description,Fr()),arrowheadStyle:Ih,labelpos:"c",labelType:"text",thickness:"normal",classes:Ch};t.setEdge(r.state1.id,r.state2.id,o,Fh),Fh++}}))},$h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TB",r=e;if(t.doc)for(var n=0;n<t.doc.length;n++){var i=t.doc[n];"dir"===i.stmt&&(r=i.value)}return r},zh={setConf:function(t){for(var e=0,r=Object.keys(t);e<r.length;e++){t[r[e]]}},getClasses:function(t,e){tt.trace("Extracting classes"),e.db.clear();try{return e.parser.parse(t),e.db.extract(e.db.getRootDocV2()),e.db.getClasses()}catch(t){return t}},draw:function(t,e,r,n){tt.info("Drawing state diagram (v2)",e),Nh={};var i=n.db.getDirection();void 0===i&&(i="LR");var a=Fr(),o=a.securityLevel,s=a.state,c=s.nodeSpacing||50,u=s.rankSpacing||50;tt.info(n.db.getRootDocV2()),n.db.extract(n.db.getRootDocV2()),tt.info(n.db.getRootDocV2());var h,d=n.db.getStates(),f=new F.a({multigraph:!0,compound:!0}).setGraph({rankdir:$h(n.db.getRootDocV2()),nodesep:c,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));Rh(f,void 0,n.db.getRootDocV2(),d,n.db,!0),"sandbox"===o&&(h=Object(_.F)("#i"+e));var p="sandbox"===o?Object(_.F)(h.nodes()[0].contentDocument.body):Object(_.F)("body"),g=p.select('[id="'.concat(e,'"]')),y=p.select("#"+e+" g");Eo(y,f,["barb"],wh,e);Cr.insertTitle(g,"statediagramTitleText",s.titleTopMargin,n.db.getDiagramTitle());var b=g.node().getBBox(),m=b.width+16,v=b.height+16;g.attr("class",wh);var x=g.node().getBBox();Ur(g,v,m,s.useMaxWidth);var k="".concat(x.x-8," ").concat(x.y-8," ").concat(m," ").concat(v);tt.debug("viewBox ".concat(k)),g.attr("viewBox",k);var w,T=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),C=Object(l.a)(T);try{for(C.s();!(w=C.n()).done;){var E=w.value,S=E.getBBox(),A=document.createElementNS("http://www.w3.org/2000/svg",xh);A.setAttribute("rx",0),A.setAttribute("ry",0),A.setAttribute("width",S.width),A.setAttribute("height",S.height),E.insertBefore(A,E.firstChild)}}catch(t){C.e(t)}finally{C.f()}}},Yh=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[1,2],r=[1,5],n=[6,9,11,17,18,20,22,23,24,26],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],l=[1,20],u=[1,24],h=[4,6,9,11,17,18,20,22,23,24,26],d={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(t,e,r,n,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 11:n.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 15:n.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 16:n.addTask(a[s-1],a[s]),this.$="task";break;case 18:n.parseDirective("%%{","open_directive");break;case 19:n.parseDirective(a[s],"type_directive");break;case 20:a[s]=a[s].trim().replace(/'/g,'"'),n.parseDirective(a[s],"arg_directive");break;case 21:n.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,26:r},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:r},{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:i,18:a,20:o,22:s,23:c,24:l,26:r},{1:[2,2]},{14:22,15:[1,23],29:u},t([15,29],[2,19]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:21,10:25,12:4,17:i,18:a,20:o,22:s,23:c,24:l,26:r},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,26]},{21:[1,27]},t(n,[2,14]),t(n,[2,15]),{25:[1,28]},t(n,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(n,[2,16]),t(h,[2,9]),{14:32,29:u},{29:[2,20]},{11:[1,33]},t(h,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var b=f.options&&f.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||f.lex()||h)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,x,k,w,T,C,E,S={};;){if(_=r[r.length-1],this.defaultActions[_]?x=this.defaultActions[_]:(null!=v||(v=m()),x=o[_]&&o[_][v]),void 0===x||!x.length||!x[0]){var A="";for(w in E=[],o[_])this.terminals_[w]&&w>u&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(x[0]){case 1:r.push(v),i.push(f.yytext),a.push(f.yylloc),r.push(x[1]),v=null,l=f.yyleng,s=f.yytext,c=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[x[1]][1],S.$=i[i.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},b&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[s,l,c,p.yy,x[1],i,a].concat(d))))return k;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[x[1]][0]),i.push(S.$),a.push(S._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},f={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){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:break;case 7:return 11;case 8:case 9:break;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 p(){this.yy={}}return d.lexer=f,p.prototype=d,d.Parser=p,new p}();Yh.parser=Yh;var Uh=Yh,Wh=function(t){return null!==t.match(/^\s*journey/)},qh="",Hh=[],Vh=[],Gh=[],Xh=function(){var t,e=function(t){return Gh[t].processed},r=!0,n=Object(l.a)(Gh.entries());try{for(n.s();!(t=n.n()).done;){var i=Object(u.a)(t.value,2),a=i[0],o=i[1];e(a),r=r&&o.processed}}catch(t){n.e(t)}finally{n.f()}return r},Kh={parseDirective:function(t,e,r){ef.parseDirective(this,t,e,r)},getConfig:function(){return Fr().journey},clear:function(){Hh.length=0,Vh.length=0,qh="",Gh.length=0,un()},setDiagramTitle:gn,getDiagramTitle:yn,setAccTitle:hn,getAccTitle:dn,setAccDescription:fn,getAccDescription:pn,addSection:function(t){qh=t,Hh.push(t)},getSections:function(){return Hh},getTasks:function(){for(var t=Xh(),e=0;!t&&e<100;)t=Xh(),e++;return Vh.push.apply(Vh,Gh),Vh},addTask:function(t,e){var r=e.substr(1).split(":"),n=0,i=[];1===r.length?(n=Number(r[0]),i=[]):(n=Number(r[0]),i=r[1].split(","));var a=i.map((function(t){return t.trim()})),o={section:qh,type:qh,people:a,task:t,score:n};Gh.push(o)},addTaskOrg:function(t){var e={section:qh,type:qh,description:t,task:t,classes:[]};Vh.push(e)},getActors:function(){return function(){var t=[];Vh.forEach((function(e){e.people&&t.push.apply(t,Object(h.a)(e.people))}));var e=new Set(t);return Object(h.a)(e).sort()}()}},Qh=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),void 0!==e.class&&r.attr("class",e.class),r},Zh=function(t,e){var r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),void 0!==r.class&&r.attr("class",r.class),void 0!==e.title&&r.append("title").text(e.title),r},Jh=function(t,e){var r=e.text.replace(/<br\s*\/?>/gi," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),void 0!==e.class&&n.attr("class",e.class);var i=n.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(r),n},td=-1,ed=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},rd=function(){function t(t,e,r,i,a,o,s,c){n(e.append("text").attr("x",r+a/2).attr("y",i+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,r,i,a,o,s,c,l){for(var u=c.taskFontSize,h=c.taskFontFamily,d=t.split(/<br\s*\/?>/gi),f=0;f<d.length;f++){var p=f*u-u*(d.length-1)/2,g=e.append("text").attr("x",r+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",u).style("font-family",h);g.append("tspan").attr("x",r+a/2).attr("dy",p).text(d[f]),g.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(g,s)}}function r(t,r,i,a,o,s,c,l){var u=r.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,s,c,l),n(h,c)}function n(t,e){for(var r in e)r in e&&t.attr(r,e[r])}return function(n){return"fo"===n.textPlacement?r:"old"===n.textPlacement?t:e}}(),nd=Zh,id=function(t,e,r){var n=t.append("g"),i=ed();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width,i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,Qh(n,i),rd(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},ad=Jh,od=function(t,e,r){var n=e.x+r.width/2,i=t.append("g");td++;i.append("line").attr("id","task"+td).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),function(t,e){var r=15,n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",r).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.score>3?function(t){var n=Object(_.a)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(i):e.score<3?function(t){var n=Object(_.a)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(i):function(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(i)}(i,{cx:n,cy:300+30*(5-e.score),score:e.score});var a=ed();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=r.width,a.height=r.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,Qh(i,a);var o=e.x+14;e.people.forEach((function(t){var r=e.actors[t].color,n={cx:o,cy:e.y,r:7,fill:r,stroke:"#000",title:t,pos:e.actors[t].position};Zh(i,n),o+=10})),rd(r)(e.task,i,a.x,a.y,a.width,a.height,{class:"task"},r,e.colour)},sd=function(t){t.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")},cd={};var ld=Fr().journey,ud=ld.leftMargin,hd={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(t,e,r,n){void 0===t[e]?t[e]=r:t[e]=n(r,t[e])},updateBounds:function(t,e,r,n){var i=Fr().journey,a=this,o=0;this.sequenceItems.forEach(function(s){return function(c){o++;var l=a.sequenceItems.length-o+1;a.updateVal(c,"starty",e-l*i.boxMargin,Math.min),a.updateVal(c,"stopy",n+l*i.boxMargin,Math.max),a.updateVal(hd.data,"startx",t-l*i.boxMargin,Math.min),a.updateVal(hd.data,"stopx",r+l*i.boxMargin,Math.max),"activation"!==s&&(a.updateVal(c,"startx",t-l*i.boxMargin,Math.min),a.updateVal(c,"stopx",r+l*i.boxMargin,Math.max),a.updateVal(hd.data,"starty",e-l*i.boxMargin,Math.min),a.updateVal(hd.data,"stopy",n+l*i.boxMargin,Math.max))}}())},insert:function(t,e,r,n){var i=Math.min(t,r),a=Math.max(t,r),o=Math.min(e,n),s=Math.max(e,n);this.updateVal(hd.data,"startx",i,Math.min),this.updateVal(hd.data,"starty",o,Math.min),this.updateVal(hd.data,"stopx",a,Math.max),this.updateVal(hd.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},dd=ld.sectionFills,fd=ld.sectionColours,pd=function(t,e,r){var n,i=Fr().journey,a="",o=r+(2*i.height+i.diagramMarginY),s=0,c="#CCC",h="black",d=0,f=Object(l.a)(e.entries());try{for(f.s();!(n=f.n()).done;){var p=Object(u.a)(n.value,2),g=p[0],y=p[1];if(a!==y.section){c=dd[s%dd.length],d=s%dd.length,h=fd[s%fd.length];var b={x:g*i.taskMargin+g*i.width+ud,y:50,text:y.section,fill:c,num:d,colour:h};id(t,b,i),a=y.section,s++}var m=y.people.reduce((function(t,e){return cd[e]&&(t[e]=cd[e]),t}),{});y.x=g*i.taskMargin+g*i.width+ud,y.y=o,y.width=i.diagramMarginX,y.height=i.diagramMarginY,y.colour=h,y.fill=c,y.num=d,y.actors=m,od(t,y,i),hd.insert(y.x,y.y,y.x+y.width+i.taskMargin,450)}}catch(t){f.e(t)}finally{f.f()}},gd={setConf:function(t){Object.keys(t).forEach((function(e){ld[e]=t[e]}))},draw:function(t,e,r,n){var i=Fr().journey;n.db.clear(),n.parser.parse(t+"\n");var a,o=Fr().securityLevel;"sandbox"===o&&(a=Object(_.F)("#i"+e));var s="sandbox"===o?Object(_.F)(a.nodes()[0].contentDocument.body):Object(_.F)("body");hd.init();var c=s.select("#"+e);sd(c);var l=n.db.getTasks(),u=n.db.getDiagramTitle(),h=n.db.getActors();for(var d in cd)delete cd[d];var f=0;h.forEach((function(t){cd[t]={color:i.actorColours[f%i.actorColours.length],position:f},f++})),function(t){var e=Fr().journey,r=60;Object.keys(cd).forEach((function(n){var i=cd[n].color,a={cx:20,cy:r,r:7,fill:i,stroke:"#000",pos:cd[n].position};nd(t,a);var o={x:40,y:r+7,fill:"#666",text:n,textMargin:5|e.boxTextMargin};ad(t,o),r+=20}))}(c),hd.insert(0,0,ud,50*Object.keys(cd).length),pd(c,l,0);var p=hd.getBounds();u&&c.append("text").text(u).attr("x",ud).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var g=p.stopy-p.starty+2*i.diagramMarginY,y=ud+p.stopx+2*i.diagramMarginX;Ur(c,g,y,i.useMaxWidth),c.append("line").attr("x1",ud).attr("y1",4*i.height).attr("x2",y-ud-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var b=u?70:0;c.attr("viewBox","".concat(p.startx," -25 ").concat(y," ").concat(g+b)),c.attr("preserveAspectRatio","xMinYMin meet"),c.attr("height",g+b+25)}},yd={},bd={setConf:function(t){yd=Object(s.a)(Object(s.a)({},yd),t)},draw:function(t,e,r){try{tt.debug("Renering svg for syntax error\n");var n=Object(_.F)("#"+e),i=n.append("g");i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+r),n.attr("height",100),n.attr("width",500),n.attr("viewBox","768 0 912 512")}catch(t){tt.error("Error while rendering info diagram"),tt.error(function(t){return t instanceof Error?t.message:String(t)}(t))}}},md="flowchart-elk",vd=function(){var t=Object(o.a)(Object(a.a)().m((function t(){var e,n;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e("chunk-a27fb06c").then(r.bind(null,"b43a"));case 1:return e=t.v,n=e.diagram,t.a(2,{id:md,diagram:n})}}),t)})));return function(){return t.apply(this,arguments)}}(),_d={id:md,detector:function(t,e){var r;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&"elk"===(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer))},loader:vd},xd="timeline",kd=function(){var t=Object(o.a)(Object(a.a)().m((function t(){var e,n;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e("chunk-6cbe5a9e").then(r.bind(null,"5bc2"));case 1:return e=t.v,n=e.diagram,t.a(2,{id:xd,diagram:n})}}),t)})));return function(){return t.apply(this,arguments)}}(),wd={id:xd,detector:function(t){return null!==t.match(/^\s*timeline/)},loader:kd},Td="mindmap",Cd=function(){var t=Object(o.a)(Object(a.a)().m((function t(){var e,n;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e("chunk-42d52f4e").then(r.bind(null,"cf1e7"));case 1:return e=t.v,n=e.diagram,t.a(2,{id:Td,diagram:n})}}),t)})));return function(){return t.apply(this,arguments)}}(),Ed={id:Td,detector:function(t){return null!==t.match(/^\s*mindmap/)},loader:Cd},Sd=!1,Ad=function(){Sd||(Sd=!0,Ze(_d,wd,Ed),On("error",{db:{clear:function(){}},styles:Vr,renderer:bd,parser:{parser:{yy:{}},parse:function(){}},init:function(){}},(function(t){return"error"===t.toLowerCase().trim()})),On("---",{db:{clear:function(){}},styles:Vr,renderer:bd,parser:{parser:{yy:{}},parse:function(){throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with unindented `---` blocks")}},init:function(){return null}},(function(t){return t.toLowerCase().trimStart().startsWith("---")})),On("c4",{parser:gi,db:Oi,renderer:la,styles:rn,init:function(t){la.setConf(t.c4)}},yi),On("class",{parser:ha,db:Oa,renderer:Ya,styles:qr,init:function(t){t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Oa.clear()}},da),On("classDiagram",{parser:ha,db:Oa,renderer:Lo,styles:qr,init:function(t){t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Oa.clear()}},fa),On("er",{parser:Do,db:jo,renderer:Xo,styles:Hr},Mo),On("gantt",{parser:ac,db:Rc,renderer:zc,styles:Xr},oc),On("info",{parser:Uc,db:Hc,renderer:Vc,styles:Kr},Gc),On("pie",{parser:Qc,db:el,renderer:nl,styles:Qr},Zc),On("requirement",{parser:al,db:dl,renderer:wl,styles:Zr},ol),On("sequence",{parser:El,db:Vl,renderer:Eu,styles:Jr,init:function(t){if(t.sequence||(t.sequence={}),t.sequence.arrowMarkerAbsolute=t.arrowMarkerAbsolute,"sequenceDiagram"in t)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");Vl.setWrap(t.wrap),Eu.setConf(t.sequence)}},Sl),On("state",{parser:Au,db:ch,renderer:_h,styles:tn,init:function(t){t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,ch.clear()}},Ou),On("stateDiagram",{parser:Au,db:ch,renderer:zh,styles:tn,init:function(t){t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,ch.clear()}},Lu),On("journey",{parser:Uh,db:Kh,renderer:gd,styles:en,init:function(t){gd.setConf(t.journey),Kh.clear()}},Wh),On("flowchart",{parser:Jo,db:Ks,renderer:nc,styles:Gr,init:function(t){t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Js(t.flowchart),Ks.clear(),Ks.setGen("gen-1")}},ts),On("flowchart-v2",{parser:Jo,db:Ks,renderer:nc,styles:Gr,init:function(t){t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Nr({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),nc.setConf(t.flowchart),Ks.clear(),Ks.setGen("gen-2")}},es),On("gitGraph",{parser:Dn,db:Kn,renderer:hi,styles:di},Mn))},Od=g((function t(e,r){var n,i,a=this;d(this,t),this.txt=e,this.type="graph",this.detectTypeFailed=!1;var o=Fr();this.txt=e;try{this.type=Qe(e,o)}catch(t){this.handleError(t,r),this.type="error",this.detectTypeFailed=!0}var s=Ln(this.type);tt.debug("Type "+this.type),this.db=s.db,null==(i=(n=this.db).clear)||i.call(n),this.renderer=s.renderer,this.parser=s.parser;var c=this.parser.parse.bind(this.parser);this.parser.parse=function(t){return c(function(t,e){var r,n=t.match(Ve);if(n){var i=He(n[1],{schema:qe});return(null==i?void 0:i.title)&&(null==(r=e.setDiagramTitle)||r.call(e,i.title)),t.slice(n[0].length)}return t}(t,a.db))},this.parser.parser.yy=this.db,s.init&&(s.init(o),tt.info("Initialized diagram "+this.type,o)),this.txt+="\n",this.parse(this.txt,r)}),[{key:"parse",value:function(t,e){var r,n;if(this.detectTypeFailed)return!1;try{return t+="\n",null==(n=(r=this.db).clear)||n.call(r),this.parser.parse(t),!0}catch(t){this.handleError(t,e)}return!1}},{key:"handleError",value:function(t,e){if(void 0===e)throw t;kr(t)?e(t.str,t.hash):e(t)}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}]),Ld=function(t,e){var r=Qe(t,Fr());try{Ln(r)}catch(i){var n=function(t){return Ke[t].loader}(r);if(!n)throw new Error("Diagram ".concat(r," not found."));return n().then((function(n){var i=n.diagram;return On(r,i,void 0),new Od(t,e)}))}return new Od(t,e)},Bd=Od;var Dd=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],Md="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Id="sandbox",Nd="http://www.w3.org/1999/xlink",Fd="http://www.w3.org/1999/xhtml",jd="border:0;margin:0;",Rd="margin:0",Pd="allow-top-navigation-by-user-activation allow-popups",$d='The "iframe" tag is not supported by your browser.',zd=["foreignobject"],Yd=["dominant-baseline"];function Ud(){return(Ud=Object(o.a)(Object(a.a)().m((function t(e,r){var n;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:return Ad(),t.n=1,Ld(e,r);case 1:return n=t.v,t.a(2,n.parse(e,r))}}),t)})))).apply(this,arguments)}var Wd=function(t){var e=t;return e=(e=(e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}))).replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}))).replace(/#\w+;/g,(function(t){var e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}))},qd=function(t){var e=t;return e=(e=(e=e.replace(/fl°°/g,"&#")).replace(/fl°/g,"&")).replace(/¶ß/g,";")},Hd=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return"\n.".concat(t," ").concat(e," { ").concat(r.join(" !important; ")," !important; }")},Vd=function(t,e,r,n){var i=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="";if(void 0!==t.themeCSS&&(i+="\n".concat(t.themeCSS)),void 0!==t.fontFamily&&(i+="\n:root { --mermaid-font-family: ".concat(t.fontFamily,"}")),void 0!==t.altFontFamily&&(i+="\n:root { --mermaid-alt-font-family: ".concat(t.altFontFamily,"}")),!Object(Z.a)(n)&&Dd.includes(e)){var a=t.htmlLabels||(null==(r=t.flowchart)?void 0:r.htmlLabels),o=["> *","span"],s=["rect","polygon","ellipse","circle","path"],c=a?o:s,l=function(){var t=n[u];Object(Z.a)(t.styles)||c.forEach((function(e){i+=Hd(t.id,e,t.styles)})),Object(Z.a)(t.textStyles)||(i+=Hd(t.id,"tspan",t.textStyles))};for(var u in n)l()}return i}(t,e,r),a=an(e,i,t.themeVariables);return Object(I.b)(Object(I.a)("".concat(n,"{").concat(a,"}")),I.c)},Gd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=t;return r||e||(n=n.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),n=(n=qd(n)).replace(/<br>/g,"<br/>")},Xd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r=e?e.viewBox.baseVal.height+"px":"100%",n=btoa('<body style="'+Rd+'">'+t+"</body>");return'<iframe style="width:'.concat("100%",";height:").concat(r,";").concat(jd,'" src="data:text/html;base64,').concat(n,'" sandbox="').concat(Pd,'">\n ').concat($d,"\n</iframe>")},Kd=function(t,e,r,n,i){var a=t.append("div");a.attr("id",r),n&&a.attr("style",n);var o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),t};function Qd(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}var Zd=function(t,e,r,n){var i,a,o;null==(i=t.getElementById(e))||i.remove(),null==(a=t.getElementById(r))||a.remove(),null==(o=t.getElementById(n))||o.remove()},Jd=function(){var t=Object(o.a)(Object(a.a)().m((function t(e,r,n,i){var o,s,c,l,u,h,d,f,p,g,y,b,m,v,x,w,T,C,E,S,A,O,L,B,D,M,I,N,F,j,R,P,$,z,Y,U,W;return Object(a.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:return Ad(),Pr(),(h=Cr.detectInit(r))&&(_r(h),Rr(h)),d=Fr(),tt.debug(d),r.length>(null!==(o=null==d?void 0:d.maxTextSize)&&void 0!==o?o:5e4)&&(r=Md),r=r.replace(/\r\n?/g,"\n"),f="#"+e,g="#"+(p="i"+e),b="#"+(y="d"+e),m=Object(_.F)("body"),v=d.securityLevel===Id,x="loose"===d.securityLevel,w=d.fontFamily,void 0!==i?(i&&(i.innerHTML=""),v?(T=Qd(Object(_.F)(i),p),(m=Object(_.F)(T.nodes()[0].contentDocument.body)).node().style.margin=0):m=Object(_.F)(i),Kd(m,e,y,"font-family: ".concat(w),Nd)):(Zd(document,e,y,p),v?(C=Qd(Object(_.F)("body"),p),(m=Object(_.F)(C.nodes()[0].contentDocument.body)).node().style.margin=0):m=Object(_.F)("body"),Kd(m,e,y)),r=Wd(r),t.p=1,t.n=2,Ld(r);case 2:E=t.v,t.n=4;break;case 3:t.p=3,Y=t.v,E=new Bd("error"),S=Y;case 4:return A=m.select(b).node(),O=E.type,L=A.firstChild,B=L.firstChild,D=Dd.includes(O)?E.renderer.getClasses(r,E):{},M=Vd(d,O,D,f),(I=document.createElement("style")).innerHTML=M,L.insertBefore(I,B),t.p=5,t.n=6,E.renderer.draw(r,e,Er,E);case 6:t.n=8;break;case 7:throw t.p=7,U=t.v,bd.draw(r,e,Er),U;case 8:if(N=m.select("".concat(b," svg")),F=null==(c=(s=E.db).getAccTitle)?void 0:c.call(s),j=null==(u=(l=E.db).getAccDescription)?void 0:u.call(l),tf(O,N,F,j),m.select('[id="'.concat(e,'"]')).selectAll("foreignobject > *").attr("xmlns",Fd),R=m.select(b).node().innerHTML,tt.debug("config.arrowMarkerAbsolute",d.arrowMarkerAbsolute),R=Gd(R,v,ct(d.arrowMarkerAbsolute)),v?(P=m.select(b+" svg").node(),R=Xd(R,P)):x||(R=k.a.sanitize(R,{ADD_TAGS:zd,ADD_ATTR:Yd})),void 0===n){t.n=14;break}W=O,t.n="flowchart"===W||"flowchart-v2"===W?9:"gantt"===W?10:"class"===W||"classDiagram"===W?11:12;break;case 9:return n(R,Ks.bindFunctions),t.a(3,13);case 10:return n(R,Rc.bindFunctions),t.a(3,13);case 11:return n(R,Oa.bindFunctions),t.a(3,13);case 12:n(R);case 13:t.n=15;break;case 14:tt.debug("CB = undefined!");case 15:if(Xl(),$=v?g:b,(z=Object(_.F)($).node())&&"remove"in z&&z.remove(),!S){t.n=16;break}throw S;case 16:return t.a(2,R)}}),t,null,[[5,7],[1,3]])})));return function(e,r,n,i){return t.apply(this,arguments)}}();function tf(t,e,r,n){(function(t,e){t.attr("role","graphics-document document"),Object(Z.a)(e)||t.attr("aria-roledescription",e)})(e,t),function(t,e,r,n){if(void 0!==t.insert&&(e||r)){if(r){var i="chart-desc-"+n;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){var a="chart-title-"+n;t.attr("aria-labelledby",a),t.insert("title",":first-child").attr("id",a).text(e)}}}(e,r,n,e.attr("id"))}var ef=Object.freeze({render:function(t,e,r,n){var i,a,o,s,c;Ad(),Pr();var l=Cr.detectInit(e);l&&(_r(l),Rr(l));var u=Fr();tt.debug(u),e.length>(null!==(i=null==u?void 0:u.maxTextSize)&&void 0!==i?i:5e4)&&(e=Md),e=e.replace(/\r\n?/g,"\n");var h,d,f="#"+t,p="i"+t,g="#"+p,y="d"+t,b="#"+y,m=Object(_.F)("body"),v=u.securityLevel===Id,x="loose"===u.securityLevel,w=u.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),v){var T=Qd(Object(_.F)(n),p);(m=Object(_.F)(T.nodes()[0].contentDocument.body)).node().style.margin=0}else m=Object(_.F)(n);Kd(m,t,y,"font-family: ".concat(w),Nd)}else{if(Zd(document,t,y,p),v){var C=Qd(Object(_.F)("body"),p);(m=Object(_.F)(C.nodes()[0].contentDocument.body)).node().style.margin=0}else m=Object(_.F)("body");Kd(m,t,y)}e=Wd(e);try{if("then"in(h=Ld(e)))throw new Error("Diagram is a promise. Use renderAsync.")}catch(t){h=new Bd("error"),d=t}var E=m.select(b).node(),S=h.type,A=E.firstChild,O=A.firstChild,L=Dd.includes(S)?h.renderer.getClasses(e,h):{},B=Vd(u,S,L,f),D=document.createElement("style");D.innerHTML=B,A.insertBefore(D,O);try{h.renderer.draw(e,t,Er,h)}catch(r){throw bd.draw(e,t,Er),r}tf(S,m.select("".concat(b," svg")),null==(o=(a=h.db).getAccTitle)?void 0:o.call(a),null==(c=(s=h.db).getAccDescription)?void 0:c.call(s)),m.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns",Fd);var M=m.select(b).node().innerHTML;if(tt.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),M=Gd(M,v,ct(u.arrowMarkerAbsolute)),v){var I=m.select(b+" svg").node();M=Xd(M,I)}else x||(M=k.a.sanitize(M,{ADD_TAGS:zd,ADD_ATTR:Yd}));if(void 0!==r)switch(S){case"flowchart":case"flowchart-v2":r(M,Ks.bindFunctions);break;case"gantt":r(M,Rc.bindFunctions);break;case"class":case"classDiagram":r(M,Oa.bindFunctions);break;default:r(M)}else tt.debug("CB = undefined!");Xl();var N=v?g:b,F=Object(_.F)(N).node();if(F&&"remove"in F&&F.remove(),d)throw d;return M},renderAsync:Jd,parse:function(t,e){return Ad(),new Bd(t,e).parse(t,e)},parseAsync:function(t,e){return Ud.apply(this,arguments)},parseDirective:_n,initialize:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(null==e?void 0:e.fontFamily)&&!(null==(t=e.themeVariables)?void 0:t.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),Mr(e),(null==e?void 0:e.theme)&&e.theme in vt?e.themeVariables=vt[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=vt.default.getThemeVariables(e.themeVariables));var r="object"===Object(n.a)(e)?Dr(e):Ir();et(r.logLevel),Ad()},getConfig:Fr,setConfig:Nr,getSiteConfig:Ir,updateSiteConfig:function(t){return Ar=er(Ar,t),Br(Ar,Or),Ar},reset:function(){Pr()},globalReset:function(){Pr(Sr)},defaultConfig:Sr});et(Fr().logLevel),Pr(Fr());var rf=function(){var t=Object(o.a)(Object(a.a)().m((function t(e,r,n){var i;return Object(a.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,of(e,r,n);case 1:t.n=3;break;case 2:t.p=2,i=t.v,tt.warn("Syntax Error rendering"),kr(i)&&tt.warn(i.str),df.parseError&&df.parseError(i);case 3:return t.a(2)}}),t,null,[[0,2]])})));return function(e,r,n){return t.apply(this,arguments)}}(),nf=function(t,e,r){tt.warn(t),kr(t)?(r&&r(t.str,t.hash),e.push(Object(s.a)(Object(s.a)({},t),{},{message:t.str,error:t}))):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},af=function(){var t=Object(o.a)(Object(a.a)().m((function t(){var e,r,n,i,s,c,u,h,d=arguments;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:for(e=d.length,r=new Array(e),n=0;n<e;n++)r[n]=d[n];return tt.debug("Loading ".concat(r.length," external diagrams")),t.n=1,Promise.allSettled(r.map(function(){var t=Object(o.a)(Object(a.a)().m((function t(e){var r,n,i,o,s;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:return r=e.id,n=e.detector,i=e.loader,t.n=1,i();case 1:o=t.v,s=o.diagram,On(r,s,n);case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 1:if(i=t.v,!((s=i.filter((function(t){return"rejected"===t.status}))).length>0)){t.n=2;break}tt.error("Failed to load ".concat(s.length," external diagrams")),c=Object(l.a)(s);try{for(c.s();!(u=c.n()).done;)h=u.value,tt.error(h)}catch(t){c.e(t)}finally{c.f()}throw new Error("Failed to load ".concat(s.length," external diagrams"));case 2:return t.a(2)}}),t)})));return function(){return t.apply(this,arguments)}}(),of=function(){var t=Object(o.a)(Object(a.a)().m((function t(e,r,n){var o,s,c,l,u,h,d,f;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:if(o=ef.getConfig(),e&&(df.sequenceConfig=e),tt.debug("".concat(n?"":"No ","Callback function found")),void 0!==r){t.n=1;break}s=document.querySelectorAll(".mermaid"),t.n=5;break;case 1:if("string"!=typeof r){t.n=2;break}s=document.querySelectorAll(r),t.n=5;break;case 2:if(!(r instanceof HTMLElement)){t.n=3;break}s=[r],t.n=5;break;case 3:if(!(r instanceof NodeList)){t.n=4;break}s=r,t.n=5;break;case 4:throw new Error("Invalid argument nodes for mermaid.init");case 5:tt.debug("Found ".concat(s.length," diagrams")),void 0!==(null==e?void 0:e.startOnLoad)&&(tt.debug("Start On Load: "+(null==e?void 0:e.startOnLoad)),ef.updateSiteConfig({startOnLoad:null==e?void 0:e.startOnLoad})),c=new Cr.initIdGenerator(o.deterministicIds,o.deterministicIDSeed),u=[],h=Object(a.a)().m((function t(){var e,r,i,o;return Object(a.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:/*! Check if previously processed */if(e=f[d],tt.info("Rendering diagram: "+e.id),!e.getAttribute("data-processed")){t.n=1;break}return t.a(2,1);case 1:return e.setAttribute("data-processed","true"),r="mermaid-".concat(c.next()),l=e.innerHTML,l=Object(y.a)(Cr.entityDecode(l)).trim().replace(/<br\s*\/?>/gi,"<br/>"),(i=Cr.detectInit(l))&&tt.debug("Detected early reinit: ",i),t.p=2,t.n=3,ef.renderAsync(r,l,(function(t,i){e.innerHTML=t,void 0!==n&&n(r),i&&i(e)}),e);case 3:t.n=5;break;case 4:t.p=4,o=t.v,nf(o,u,df.parseError);case 5:return t.a(2)}}),t,null,[[2,4]])})),d=0,f=Array.from(s);case 6:if(!(d<f.length)){t.n=9;break}return t.d(i(h()),7);case 7:if(!t.v){t.n=8;break}return t.a(3,8);case 8:d++,t.n=6;break;case 9:if(!(u.length>0)){t.n=10;break}throw u[0];case 10:return t.a(2)}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),sf=function(){var t=Object(o.a)(Object(a.a)().m((function t(e){var r,n,i=arguments;return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:if(r=i.length>1&&void 0!==i[1]?i[1]:{},n=r.lazyLoad,!(void 0===n||n)){t.n=1;break}Ze.apply(void 0,Object(h.a)(e)),t.n=2;break;case 1:return t.n=2,af.apply(void 0,Object(h.a)(e));case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}(),cf=function(){df.startOnLoad&&(ef.getConfig().startOnLoad&&df.init().catch((function(t){return tt.error("Mermaid failed to initialize",t)})))};"undefined"!=typeof document&&
2
+ /*!
3
+ * Wait for document loaded before starting the execution
4
+ */
5
+ window.addEventListener("load",cf,!1);var lf=[],uf=!1,hf=function(){var t=Object(o.a)(Object(a.a)().m((function t(){var e,r;return Object(a.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(!uf){t.n=1;break}return t.a(2);case 1:uf=!0;case 2:if(!(lf.length>0)){t.n=7;break}if(!(e=lf.shift())){t.n=6;break}return t.p=3,t.n=4,e();case 4:t.n=6;break;case 5:t.p=5,r=t.v,tt.error("Error executing queue",r);case 6:t.n=2;break;case 7:uf=!1;case 8:return t.a(2)}}),t,null,[[3,5]])})));return function(){return t.apply(this,arguments)}}(),df={startOnLoad:!0,diagrams:{},mermaidAPI:ef,parse:function(t){return ef.parse(t,df.parseError)},parseAsync:function(t){return new Promise((function(e,r){lf.push((function(){return new Promise((function(n,i){ef.parseAsync(t,df.parseError).then((function(t){n(t),e(t)}),(function(t){tt.error("Error parsing",t),i(t),r(t)}))}))})),hf().catch(r)}))},render:ef.render,renderAsync:function(t,e,r,n){return new Promise((function(i,a){lf.push((function(){return new Promise((function(o,s){ef.renderAsync(t,e,r,n).then((function(t){o(t),i(t)}),(function(t){tt.error("Error parsing",t),s(t),a(t)}))}))})),hf().catch(a)}))},init:rf,initThrowsErrors:function(t,e,r){var n,i=ef.getConfig();if(t&&(df.sequenceConfig=t),tt.debug("".concat(r?"":"No ","Callback function found")),void 0===e)n=document.querySelectorAll(".mermaid");else if("string"==typeof e)n=document.querySelectorAll(e);else if(e instanceof HTMLElement)n=[e];else{if(!(e instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");n=e}tt.debug("Found ".concat(n.length," diagrams")),void 0!==(null==t?void 0:t.startOnLoad)&&(tt.debug("Start On Load: "+(null==t?void 0:t.startOnLoad)),ef.updateSiteConfig({startOnLoad:null==t?void 0:t.startOnLoad}));for(var a,o=new Cr.initIdGenerator(i.deterministicIds,i.deterministicIDSeed),s=[],c=function(){var t=u[l];/*! Check if previously processed */if(tt.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))return 1;t.setAttribute("data-processed","true");var e="mermaid-".concat(o.next());a=t.innerHTML,a=Object(y.a)(Cr.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");var n=Cr.detectInit(a);n&&tt.debug("Detected early reinit: ",n);try{ef.render(e,a,(function(n,i){t.innerHTML=n,void 0!==r&&r(e),i&&i(t)}),t)}catch(t){nf(t,s,df.parseError)}},l=0,u=Array.from(n);l<u.length;l++)c();if(s.length>0)throw s[0]},initThrowsErrorsAsync:of,registerExternalDiagrams:sf,initialize:function(t){ef.initialize(t)},parseError:void 0,contentLoaded:cf,setParseErrorHandler:function(t){df.parseError=t}}},b620:function(t,e,r){"use strict";var n=r("cfe9"),i=r("7282"),a=r("c6b6"),o=n.ArrayBuffer,s=n.TypeError;t.exports=o&&i(o.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==a(t))throw new s("ArrayBuffer expected");return t.byteLength}},b680:function(t,e,r){"use strict";var n=r("23e7"),i=r("e330"),a=r("5926"),o=r("408a"),s=r("1148"),c=r("d039"),l=RangeError,u=String,h=Math.floor,d=i(s),f=i("".slice),p=i(1.1.toFixed),g=function(t,e,r){return 0===e?r:e%2==1?g(t,e-1,r*t):g(t*t,e/2,r)},y=function(t,e,r){for(var n=-1,i=r;++n<6;)i+=e*t[n],t[n]=i%1e7,i=h(i/1e7)},b=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=h(n/e),n=n%e*1e7},m=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=u(t[e]);r=""===r?n:r+d("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(t){var e,r,n,i,s=o(this),c=a(t),h=[0,0,0,0,0,0],p="",v="0";if(c<0||c>20)throw new l("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return u(s);if(s<0&&(p="-",s=-s),s>1e-21)if(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(s*g(2,69,1))-69,r=e<0?s*g(2,-e,1):s/g(2,e,1),r*=4503599627370496,(e=52-e)>0){for(y(h,0,r),n=c;n>=7;)y(h,1e7,0),n-=7;for(y(h,g(10,n,1),0),n=e-1;n>=23;)b(h,1<<23),n-=23;b(h,1<<n),y(h,1,1),b(h,2),v=m(h)}else y(h,0,r),y(h,1<<-e,0),v=m(h)+d("0",c);return c>0?v=p+((i=v.length)<=c?"0."+d("0",c-i)+v:f(v,0,i-c)+"."+f(v,i-c)):v=p+v,v}})},b703:function(t,e,r){"use strict";e.a=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},b7ef:function(t,e,r){"use strict";var n=r("23e7"),i=r("cfe9"),a=r("d066"),o=r("5c6c"),s=r("9bf2").f,c=r("1a2d"),l=r("19aa"),u=r("7156"),h=r("e391"),d=r("cf98"),f=r("0d26"),p=r("83ab"),g=r("c430"),y="DOMException",b=a("Error"),m=a(y),v=function(){l(this,_);var t=arguments.length,e=h(t<1?void 0:arguments[0]),r=h(t<2?void 0:arguments[1],"Error"),n=new m(e,r),i=new b(e);return i.name=y,s(n,"stack",o(1,f(i.stack,1))),u(n,this,v),n},_=v.prototype=m.prototype,x="stack"in new b(y),k="stack"in new m(1,2),w=m&&p&&Object.getOwnPropertyDescriptor(i,y),T=!(!w||w.writable&&w.configurable),C=x&&!T&&!k;n({global:!0,constructor:!0,forced:g||C},{DOMException:C?v:m});var E=a(y),S=E.prototype;if(S.constructor!==E)for(var A in g||s(S,"constructor",o(1,E)),d)if(c(d,A)){var O=d[A],L=O.s;c(E,L)||s(E,L,o(6,O.c))}},b84d:function(t,e,r){"use strict";var n=r("0305");e.a=function(t,e,r){"__proto__"==e&&n.a?Object(n.a)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},b85c:function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r("a4d3"),r("e01a"),r("d28b"),r("d9e2"),r("d3b7"),r("3ca3"),r("ddb0");var n=r("06c5");function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Object(n.a)(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}},b917:function(t,e,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n+"+/",a=n+"-_",o=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:i,c2i:o(i),i2cUrl:a,c2iUrl:o(a)}},b93d:function(t,e,r){"use strict";var n=r("b4f1"),i=r("ca54"),a=r("f5fe"),o=r("ff51"),s=i.a?i.a.isConcatSpreadable:void 0;var c=function(t){return Object(o.a)(t)||Object(a.a)(t)||!!(s&&t&&t[s])};e.a=function t(e,r,i,a,o){var s=-1,l=e.length;for(i||(i=c),o||(o=[]);++s<l;){var u=e[s];r>0&&i(u)?r>1?t(u,r-1,i,a,o):Object(n.a)(o,u):a||(o[o.length]=u)}return o}},bb2f:function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc59:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty;var i=function(t,e){return null!=t&&n.call(t,e)},a=r("362e");e.a=function(t,e){return null!=t&&Object(a.a)(t,e,i)}},bc9b:function(t,e,r){"use strict";var n=r("f0ce"),i=r("2332");e.a=function(t){if(!Object(i.a)(t))return!1;var e=Object(n.a)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},bcbf:function(t,e,r){"use strict";var n=r("f5df");t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},bd8f:function(t,e,r){"use strict";var n=r("ff51"),i=r("1bc6"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.a=function(t,e){if(Object(n.a)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Object(i.a)(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},be56:function(t,e){var r=Math.floor,n=Math.random;t.exports=function(t,e){return t+r(n()*(e-t+1))}},be8e:function(t,e,r){"use strict";var n=r("fc1b");t.exports=Math.fround||function(t){return n(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},c07a:function(t,e,r){"use strict";var n=r("0629");r.d(e,"a",(function(){return n.a}))},c0c4:function(t,e,r){
6
+ /*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
7
+ t.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,r){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function n(t,i,a){return(n=r()?Reflect.construct:function(t,r,n){var i=[null];i.push.apply(i,r);var a=new(Function.bind.apply(t,i));return n&&e(a,n.prototype),a}).apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var o=Object.hasOwnProperty,s=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,h=Object.freeze,d=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,g=p.apply,y=p.construct;g||(g=function(t,e,r){return t.apply(e,r)}),h||(h=function(t){return t}),d||(d=function(t){return t}),y||(y=function(t,e){return n(t,i(e))});var b=A(Array.prototype.forEach),m=A(Array.prototype.pop),v=A(Array.prototype.push),_=A(String.prototype.toLowerCase),x=A(String.prototype.toString),k=A(String.prototype.match),w=A(String.prototype.replace),T=A(String.prototype.indexOf),C=A(String.prototype.trim),E=A(RegExp.prototype.test),S=function(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return y(t,r)}}(TypeError);function A(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return g(t,e,n)}}function O(t,e,r){r=r||_,s&&s(t,null);for(var n=e.length;n--;){var i=e[n];if("string"==typeof i){var a=r(i);a!==i&&(c(e)||(e[n]=a),i=a)}t[i]=!0}return t}function L(t){var e,r=f(null);for(e in t)!0===g(o,t,[e])&&(r[e]=t[e]);return r}function B(t,e){for(;null!==t;){var r=u(t,e);if(r){if(r.get)return A(r.get);if("function"==typeof r.value)return A(r.value)}t=l(t)}return function(t){return null}}var D=h(["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"]),M=h(["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"]),I=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=h(["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"]),F=h(["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"]),j=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=h(["#text"]),P=h(["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"]),$=h(["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"]),z=h(["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"]),Y=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=d(/<%[\w\W]*|[\w\W]*%>/gm),q=d(/\${[\w\W]*}/gm),H=d(/^data-[\-\w.\u00B7-\uFFFF]/),V=d(/^aria-[\-\w]+$/),G=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=d(/^(?:\w+script|data):/i),K=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=d(/^html$/i),Z=function(){return"undefined"==typeof window?null:window},J=function(e,r){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return null}};return function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z(),n=function(t){return e(t)};if(n.version="2.4.3",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var a=r.document,o=r.document,s=r.DocumentFragment,c=r.HTMLTemplateElement,l=r.Node,u=r.Element,d=r.NodeFilter,f=r.NamedNodeMap,p=void 0===f?r.NamedNodeMap||r.MozNamedAttrMap:f,g=r.HTMLFormElement,y=r.DOMParser,A=r.trustedTypes,tt=u.prototype,et=B(tt,"cloneNode"),rt=B(tt,"nextSibling"),nt=B(tt,"childNodes"),it=B(tt,"parentNode");if("function"==typeof c){var at=o.createElement("template");at.content&&at.content.ownerDocument&&(o=at.content.ownerDocument)}var ot=J(A,a),st=ot?ot.createHTML(""):"",ct=o,lt=ct.implementation,ut=ct.createNodeIterator,ht=ct.createDocumentFragment,dt=ct.getElementsByTagName,ft=a.importNode,pt={};try{pt=L(o).documentMode?o.documentMode:{}}catch(t){}var gt={};n.isSupported="function"==typeof it&&lt&&void 0!==lt.createHTMLDocument&&9!==pt;var yt,bt,mt=U,vt=W,_t=q,xt=H,kt=V,wt=X,Tt=K,Ct=G,Et=null,St=O({},[].concat(i(D),i(M),i(I),i(F),i(R))),At=null,Ot=O({},[].concat(i(P),i($),i(z),i(Y))),Lt=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}})),Bt=null,Dt=null,Mt=!0,It=!0,Nt=!1,Ft=!1,jt=!1,Rt=!1,Pt=!1,$t=!1,zt=!1,Yt=!1,Ut=!0,Wt=!1,qt="user-content-",Ht=!0,Vt=!1,Gt={},Xt=null,Kt=O({},["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"]),Qt=null,Zt=O({},["audio","video","img","source","image","track"]),Jt=null,te=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",ie=ne,ae=!1,oe=null,se=O({},[ee,re,ne],x),ce=["application/xhtml+xml","text/html"],le="text/html",ue=null,he=o.createElement("form"),de=function(t){return t instanceof RegExp||t instanceof Function},fe=function(e){ue&&ue===e||(e&&"object"===t(e)||(e={}),e=L(e),yt=yt=-1===ce.indexOf(e.PARSER_MEDIA_TYPE)?le:e.PARSER_MEDIA_TYPE,bt="application/xhtml+xml"===yt?x:_,Et="ALLOWED_TAGS"in e?O({},e.ALLOWED_TAGS,bt):St,At="ALLOWED_ATTR"in e?O({},e.ALLOWED_ATTR,bt):Ot,oe="ALLOWED_NAMESPACES"in e?O({},e.ALLOWED_NAMESPACES,x):se,Jt="ADD_URI_SAFE_ATTR"in e?O(L(te),e.ADD_URI_SAFE_ATTR,bt):te,Qt="ADD_DATA_URI_TAGS"in e?O(L(Zt),e.ADD_DATA_URI_TAGS,bt):Zt,Xt="FORBID_CONTENTS"in e?O({},e.FORBID_CONTENTS,bt):Kt,Bt="FORBID_TAGS"in e?O({},e.FORBID_TAGS,bt):{},Dt="FORBID_ATTR"in e?O({},e.FORBID_ATTR,bt):{},Gt="USE_PROFILES"in e&&e.USE_PROFILES,Mt=!1!==e.ALLOW_ARIA_ATTR,It=!1!==e.ALLOW_DATA_ATTR,Nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=e.SAFE_FOR_TEMPLATES||!1,jt=e.WHOLE_DOCUMENT||!1,$t=e.RETURN_DOM||!1,zt=e.RETURN_DOM_FRAGMENT||!1,Yt=e.RETURN_TRUSTED_TYPE||!1,Pt=e.FORCE_BODY||!1,Ut=!1!==e.SANITIZE_DOM,Wt=e.SANITIZE_NAMED_PROPS||!1,Ht=!1!==e.KEEP_CONTENT,Vt=e.IN_PLACE||!1,Ct=e.ALLOWED_URI_REGEXP||Ct,ie=e.NAMESPACE||ne,e.CUSTOM_ELEMENT_HANDLING&&de(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Lt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&de(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Lt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Lt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ft&&(It=!1),zt&&($t=!0),Gt&&(Et=O({},i(R)),At=[],!0===Gt.html&&(O(Et,D),O(At,P)),!0===Gt.svg&&(O(Et,M),O(At,$),O(At,Y)),!0===Gt.svgFilters&&(O(Et,I),O(At,$),O(At,Y)),!0===Gt.mathMl&&(O(Et,F),O(At,z),O(At,Y))),e.ADD_TAGS&&(Et===St&&(Et=L(Et)),O(Et,e.ADD_TAGS,bt)),e.ADD_ATTR&&(At===Ot&&(At=L(At)),O(At,e.ADD_ATTR,bt)),e.ADD_URI_SAFE_ATTR&&O(Jt,e.ADD_URI_SAFE_ATTR,bt),e.FORBID_CONTENTS&&(Xt===Kt&&(Xt=L(Xt)),O(Xt,e.FORBID_CONTENTS,bt)),Ht&&(Et["#text"]=!0),jt&&O(Et,["html","head","body"]),Et.table&&(O(Et,["tbody"]),delete Bt.tbody),h&&h(e),ue=e)},pe=O({},["mi","mo","mn","ms","mtext"]),ge=O({},["foreignobject","desc","title","annotation-xml"]),ye=O({},["title","style","font","a","script"]),be=O({},M);O(be,I),O(be,N);var me=O({},F);O(me,j);var ve=function(t){var e=it(t);e&&e.tagName||(e={namespaceURI:ie,tagName:"template"});var r=_(t.tagName),n=_(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===re?e.namespaceURI===ne?"svg"===r:e.namespaceURI===ee?"svg"===r&&("annotation-xml"===n||pe[n]):Boolean(be[r]):t.namespaceURI===ee?e.namespaceURI===ne?"math"===r:e.namespaceURI===re?"math"===r&&ge[n]:Boolean(me[r]):t.namespaceURI===ne?!(e.namespaceURI===re&&!ge[n])&&!(e.namespaceURI===ee&&!pe[n])&&!me[r]&&(ye[r]||!be[r]):!("application/xhtml+xml"!==yt||!oe[t.namespaceURI]))},_e=function(t){v(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=st}catch(e){t.remove()}}},xe=function(t,e){try{v(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){v(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!At[t])if($t||zt)try{_e(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ke=function(t){var e,r;if(Pt)t="<remove></remove>"+t;else{var n=k(t,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===yt&&ie===ne&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=ot?ot.createHTML(t):t;if(ie===ne)try{e=(new y).parseFromString(i,yt)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ie,"template",null);try{e.documentElement.innerHTML=ae?st:i}catch(t){}}var a=e.body||e.documentElement;return t&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),ie===ne?dt.call(e,jt?"html":"body")[0]:jt?e.documentElement:a},we=function(t){return ut.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},Te=function(t){return t instanceof g&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ce=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ee=function(t,e,r){gt[t]&&b(gt[t],(function(t){t.call(n,e,r,ue)}))},Se=function(t){var e;if(Ee("beforeSanitizeElements",t,null),Te(t))return _e(t),!0;if(E(/[\u0080-\uFFFF]/,t.nodeName))return _e(t),!0;var r=bt(t.nodeName);if(Ee("uponSanitizeElement",t,{tagName:r,allowedTags:Et}),t.hasChildNodes()&&!Ce(t.firstElementChild)&&(!Ce(t.content)||!Ce(t.content.firstElementChild))&&E(/<[/\w]/g,t.innerHTML)&&E(/<[/\w]/g,t.textContent))return _e(t),!0;if("select"===r&&E(/<template/i,t.innerHTML))return _e(t),!0;if(!Et[r]||Bt[r]){if(!Bt[r]&&Oe(r)){if(Lt.tagNameCheck instanceof RegExp&&E(Lt.tagNameCheck,r))return!1;if(Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(r))return!1}if(Ht&&!Xt[r]){var i=it(t)||t.parentNode,a=nt(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(et(a[o],!0),rt(t))}return _e(t),!0}return t instanceof u&&!ve(t)?(_e(t),!0):"noscript"!==r&&"noembed"!==r||!E(/<\/no(script|embed)/i,t.innerHTML)?(Ft&&3===t.nodeType&&(e=t.textContent,e=w(e,mt," "),e=w(e,vt," "),e=w(e,_t," "),t.textContent!==e&&(v(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ee("afterSanitizeElements",t,null),!1):(_e(t),!0)},Ae=function(t,e,r){if(Ut&&("id"===e||"name"===e)&&(r in o||r in he))return!1;if(It&&!Dt[e]&&E(xt,e));else if(Mt&&E(kt,e));else if(!At[e]||Dt[e]){if(!(Oe(t)&&(Lt.tagNameCheck instanceof RegExp&&E(Lt.tagNameCheck,t)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(t))&&(Lt.attributeNameCheck instanceof RegExp&&E(Lt.attributeNameCheck,e)||Lt.attributeNameCheck instanceof Function&&Lt.attributeNameCheck(e))||"is"===e&&Lt.allowCustomizedBuiltInElements&&(Lt.tagNameCheck instanceof RegExp&&E(Lt.tagNameCheck,r)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(r))))return!1}else if(Jt[e]);else if(E(Ct,w(r,Tt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==T(r,"data:")||!Qt[t])if(Nt&&!E(wt,w(r,Tt,"")));else if(r)return!1;return!0},Oe=function(t){return t.indexOf("-")>0},Le=function(e){var r,i,a,o;Ee("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};for(o=s.length;o--;){var l=r=s[o],u=l.name,h=l.namespaceURI;if(i="value"===u?r.value:C(r.value),a=bt(u),c.attrName=a,c.attrValue=i,c.keepAttr=!0,c.forceKeepAttr=void 0,Ee("uponSanitizeAttribute",e,c),i=c.attrValue,!c.forceKeepAttr&&(xe(u,e),c.keepAttr))if(E(/\/>/i,i))xe(u,e);else{Ft&&(i=w(i,mt," "),i=w(i,vt," "),i=w(i,_t," "));var d=bt(e.nodeName);if(Ae(d,a,i)){if(!Wt||"id"!==a&&"name"!==a||(xe(u,e),i=qt+i),ot&&"object"===t(A)&&"function"==typeof A.getAttributeType)if(h);else switch(A.getAttributeType(d,a)){case"TrustedHTML":i=ot.createHTML(i);break;case"TrustedScriptURL":i=ot.createScriptURL(i)}try{h?e.setAttributeNS(h,u,i):e.setAttribute(u,i),m(n.removed)}catch(t){}}}}Ee("afterSanitizeAttributes",e,null)}},Be=function t(e){var r,n=we(e);for(Ee("beforeSanitizeShadowDOM",e,null);r=n.nextNode();)Ee("uponSanitizeShadowNode",r,null),Se(r)||(r.content instanceof s&&t(r.content),Le(r));Ee("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(e){var i,o,c,u,h,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ae=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ce(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!n.isSupported){if("object"===t(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof e)return r.toStaticHTML(e);if(Ce(e))return r.toStaticHTML(e.outerHTML)}return e}if(Rt||fe(d),n.removed=[],"string"==typeof e&&(Vt=!1),Vt){if(e.nodeName){var f=bt(e.nodeName);if(!Et[f]||Bt[f])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(o=(i=ke("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!$t&&!Ft&&!jt&&-1===e.indexOf("<"))return ot&&Yt?ot.createHTML(e):e;if(!(i=ke(e)))return $t?null:Yt?st:""}i&&Pt&&_e(i.firstChild);for(var p=we(Vt?e:i);c=p.nextNode();)3===c.nodeType&&c===u||Se(c)||(c.content instanceof s&&Be(c.content),Le(c),u=c);if(u=null,Vt)return e;if($t){if(zt)for(h=ht.call(i.ownerDocument);i.firstChild;)h.appendChild(i.firstChild);else h=i;return At.shadowroot&&(h=ft.call(a,h,!0)),h}var g=jt?i.outerHTML:i.innerHTML;return jt&&Et["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&E(Q,i.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+g),Ft&&(g=w(g,mt," "),g=w(g,vt," "),g=w(g,_t," ")),ot&&Yt?ot.createHTML(g):g},n.setConfig=function(t){fe(t),Rt=!0},n.clearConfig=function(){ue=null,Rt=!1},n.isValidAttribute=function(t,e,r){ue||fe({});var n=bt(t),i=bt(e);return Ae(n,i,r)},n.addHook=function(t,e){"function"==typeof e&&(gt[t]=gt[t]||[],v(gt[t],e))},n.removeHook=function(t){if(gt[t])return m(gt[t])},n.removeHooks=function(t){gt[t]&&(gt[t]=[])},n.removeAllHooks=function(){gt={}},n}()}()},c14f:function(t,e,r){"use strict";function n(t,e,r,i){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}(n=function(t,e,r,i){if(e)a?a(t,e,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[e]=r;else{var o=function(e,r){n(t,e,(function(t){return this._invoke(e,r,t)}))};o("next",0),o("throw",1),o("return",2)}})(t,e,r,i)}function i(){
8
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
9
+ var t,e,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function s(r,i,a,o){var s=i&&i.prototype instanceof l?i:l,u=Object.create(s.prototype);return n(u,"_invoke",function(r,n,i){var a,o,s,l=0,u=i||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,r){return a=e,o=0,s=t,d.n=r,c}};function f(r,n){for(o=r,s=n,e=0;!h&&l&&!i&&e<u.length;e++){var i,a=u[e],f=d.p,p=a[2];r>3?(i=p===n)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=t):a[0]<=f&&((i=r<2&&f<a[1])?(o=0,d.v=n,d.n=a[1]):f<p&&(i=r<3||a[0]>n||n>p)&&(a[4]=r,a[5]=n,d.n=p,o=0))}if(i||r>1)return c;throw h=!0,n}return function(i,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),o=u,s=p;(e=o<2?t:s)||!h;){a||(o?o<3?(o>1&&(d.n=-1),f(o,s)):d.n=s:d.v=s);try{if(l=2,a){if(o||(i="next"),e=a[i]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,o<2&&(o=0)}else 1===o&&(e=a.return)&&e.call(a),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=t}else if((e=(h=d.n<0)?s:r.call(n,d))!==c)break}catch(e){a=t,o=1,s=e}finally{l=1}}return{value:e,done:h}}}(r,a,o),!0),u}var c={};function l(){}function u(){}function h(){}e=Object.getPrototypeOf;var d=[][a]?e(e([][a]())):(n(e={},a,(function(){return this})),e),f=h.prototype=l.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,n(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=h,n(f,"constructor",h),n(h,"constructor",u),u.displayName="GeneratorFunction",n(h,o,"GeneratorFunction"),n(f),n(f,o,"Generator"),n(f,a,(function(){return this})),n(f,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:s,m:p}})()}r.d(e,"a",(function(){return i})),r("a4d3"),r("e01a"),r("d9e2"),r("3410"),r("1f68"),r("131a"),r("d3b7")},c19f:function(t,e,r){"use strict";var n=r("23e7"),i=r("cfe9"),a=r("621a"),o=r("2626"),s="ArrayBuffer",c=a[s];n({global:!0,constructor:!0,forced:i[s]!==c},{ArrayBuffer:c}),o(s)},c1a1:function(t,e,r){"use strict";var n=r("23e7"),i=r("b4bc");n({target:"Set",proto:!0,real:!0,forced:!r("dad2")("isDisjointFrom",(function(t){return!t}))},{isDisjointFrom:i})},c1ac:function(t,e,r){"use strict";var n=r("ebb5"),i=r("b727").filter,a=r("30f2"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},c1f9:function(t,e,r){"use strict";var n=r("23e7"),i=r("2266"),a=r("8418");n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,r){a(e,t,r)}),{AS_ENTRIES:!0}),e}})},c35a:function(t,e,r){"use strict";var n=r("23e7"),i=r("7e12");n({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},c56b:function(t,e,r){"use strict";var n=r("b93d");e.a=function(t){return(null==t?0:t.length)?Object(n.a)(t,1):[]}},c619:function(t,e,r){"use strict";var n=r("706c"),i=r("0305"),a=r("f976"),o=i.a?function(t,e){return Object(i.a)(t,"toString",{configurable:!0,enumerable:!1,value:Object(n.a)(e),writable:!0})}:a.a,s=Date.now;var c=function(t){var e=0,r=0;return function(){var n=s(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(o);e.a=c},c6eb:function(t,e,r){"use strict";(function(t){var n=r("5ea3"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i&&n.a.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();e.a=s}).call(this,r("dd40")(t))},c95f:function(t,e,r){"use strict";function n(t,e){var r,n,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),r=0===s?0:l*o/s,n=l):(o<0&&(c=-c),r=c,n=0===o?0:c*s/o),{x:i+r,y:a+n}}r.d(e,"a",(function(){return n}))},ca54:function(t,e,r){"use strict";var n=r("26ee").a.Symbol;e.a=n},ca91:function(t,e,r){"use strict";var n=r("ebb5"),i=r("d58f").left,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},cb09:function(t,e,r){"use strict";var n=/\s/;var i=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e},a=/^\s+/;var o=function(t){return t?t.slice(0,i(t)+1).replace(a,""):t},s=r("2332"),c=r("1bc6"),l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;var f=function(t){if("number"==typeof t)return t;if(Object(c.a)(t))return NaN;if(Object(s.a)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Object(s.a)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var r=u.test(t);return r||h.test(t)?d(t.slice(2),r?2:8):l.test(t)?NaN:+t};e.a=function(t){return t?(t=f(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},cb27:function(t,e,r){"use strict";var n=r("e330"),i=Set.prototype;t.exports={Set:Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},cb29:function(t,e,r){"use strict";var n=r("23e7"),i=r("81d5"),a=r("44d2");n({target:"Array",proto:!0},{fill:i}),a("fill")},cd26:function(t,e,r){"use strict";var n=r("ebb5"),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,r=i(e).length,n=o(r/2),a=0;a<n;)t=e[a],e[a++]=e[--r],e[r]=t;return e}))},ce69:function(t,e,r){"use strict";var n=r("b703"),i=r("7f2c"),a=r("5ace"),o=r("ff51");e.a=function(t,e){return(Object(o.a)(t)?n.a:a.a)(t,Object(i.a)(e,3))}},cf98:function(t,e,r){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},d139:function(t,e,r){"use strict";var n=r("ebb5"),i=r("b727").find,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},d429:function(t,e,r){"use strict";var n=r("07fa"),i=r("5926"),a=RangeError;t.exports=function(t,e,r,o){var s=n(t),c=i(r),l=c<0?s+c:c;if(l>=s||l<0)throw new a("Incorrect index");for(var u=new e(s),h=0;h<s;h++)u[h]=h===l?o:t[h];return u}},d5d6:function(t,e,r){"use strict";var n=r("ebb5"),i=r("b727").forEach,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},d866:function(t,e,r){"use strict";var n=r("23e7"),i=r("c65b"),a=r("2266"),o=r("59ed"),s=r("825a"),c=r("46c4"),l=r("2a62"),u=r("f99f")("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(t){s(this);try{o(t)}catch(t){l(this,"throw",t)}if(u)return i(u,this,t);var e=c(this),r=0;return!a(e,(function(e,n){if(!t(e,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},d86b:function(t,e,r){"use strict";var n=r("d039");t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},dad2:function(t,e,r){"use strict";var n=r("d066"),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var r=n("Set");try{(new r)[t](i(0));try{return(new r)[t](i(-1)),!1}catch(n){if(!e)return!0;try{return(new r)[t](a(-1/0)),!1}catch(n){var o=new r;return o.add(1),o.add(2),e(o[t](a(1/0)))}}}catch(t){return!1}}},db72:function(t,e,r){"use strict";var n=r("b84d"),i=r("6071"),a=Object.prototype.hasOwnProperty;e.a=function(t,e,r){var o=t[e];a.call(t,e)&&Object(i.a)(o,r)&&(void 0!==r||e in t)||Object(n.a)(t,e,r)}},db97:function(t,e,r){"use strict";var n=r("b4f1"),i=r("ff51");e.a=function(t,e,r){var a=e(t);return Object(i.a)(t)?a:Object(n.a)(a,r(t))}},dba9:function(t,e,r){"use strict";var n=r("1b99"),i=r("e56b");var a=function(t,e){return function(r,n){if(null==r)return r;if(!Object(i.a)(r))return t(r,n);for(var a=r.length,o=e?a:-1,s=Object(r);(e?o--:++o<a)&&!1!==n(s[o],o,s););return r}}(n.a);e.a=a},dbe5:function(t,e,r){"use strict";var n=r("cfe9"),i=r("d039"),a=r("1212"),o=r("8558"),s=n.structuredClone;t.exports=!!s&&!i((function(){if("DENO"===o&&a>92||"NODE"===o&&a>94||"BROWSER"===o&&a>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},dc19:function(t,e,r){"use strict";var n=r("cb27").has;t.exports=function(t){return n(t),t}},dc5b:function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return a}));var n=r("025c");const i={};for(let t=0;t<=255;t++)i[t]=n.a.unit.dec2hex(t);const a={ALL:0,RGB:1,HSL:2}},dc7a:function(t,e,r){"use strict";e.a=function(t){return void 0===t}},dca8:function(t,e,r){"use strict";var n=r("23e7"),i=r("bb2f"),a=r("d039"),o=r("861d"),s=r("f183").onFreeze,c=Object.freeze;n({target:"Object",stat:!0,forced:a((function(){c(1)})),sham:!i},{freeze:function(t){return c&&o(t)?c(s(t)):t}})},dd40:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},ddc9:function(t,e,r){"use strict";var n=r("63bc"),i=r("26ee"),a=Object(n.a)(i.a,"Map");e.a=a},df7e:function(t,e,r){"use strict";var n=r("07fa");t.exports=function(t,e){for(var r=n(t),i=new e(r),a=0;a<r;a++)i[a]=t[r-a-1];return i}},dfa8:function(t,e,r){"use strict";r.d(e,"a",(function(){return nr}));var n=r("3997"),i=r("7e9e"),a=r("bc59"),o=r("706c"),s=r("c56b"),c=r("ce69"),l=r("5e1b"),u=r("c07a");class h{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return d(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&d(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,f)),r=r._prev;return"["+t.join(", ")+"]"}}function d(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function f(t,e){if("_next"!==t&&"_prev"!==t)return e}var p=o.a(1);function g(t,e){if(t.nodeCount()<=1)return[];var r=b(t,e||p),n=function(t,e,r){var n,i=[],a=e[e.length-1],o=e[0];for(;t.nodeCount();){for(;n=o.dequeue();)y(t,e,r,n);for(;n=a.dequeue();)y(t,e,r,n);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(n=e[s].dequeue()){i=i.concat(y(t,e,r,n,!0));break}}return i}(r.graph,r.buckets,r.zeroIdx);return s.a(c.a(n,(function(e){return t.outEdges(e.v,e.w)})))}function y(t,e,r,i,a){var o=a?[]:void 0;return n.a(t.inEdges(i.v),(function(n){var i=t.edge(n),s=t.node(n.v);a&&o.push({v:n.v,w:n.w}),s.out-=i,m(e,r,s)})),n.a(t.outEdges(i.v),(function(n){var i=t.edge(n),a=n.w,o=t.node(a);o.in-=i,m(e,r,o)})),t.removeNode(i.v),o}function b(t,e){var r=new u.a,i=0,a=0;n.a(t.nodes(),(function(t){r.setNode(t,{v:t,in:0,out:0})})),n.a(t.edges(),(function(t){var n=r.edge(t.v,t.w)||0,o=e(t),s=n+o;r.setEdge(t.v,t.w,s),a=Math.max(a,r.node(t.v).out+=o),i=Math.max(i,r.node(t.w).in+=o)}));var o=l.a(a+i+3).map((function(){return new h})),s=i+1;return n.a(r.nodes(),(function(t){m(o,s,r.node(t))})),{graph:r,buckets:o,zeroIdx:s}}function m(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}function v(t){var e="greedy"===t.graph().acyclicer?g(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],r={},i={};return n.a(t.nodes(),(function o(s){a.a(i,s)||(i[s]=!0,r[s]=!0,n.a(t.outEdges(s),(function(t){a.a(r,t.w)?e.push(t):o(t.w)})),delete r[s])})),e}(t);n.a(e,(function(e){var r=t.edge(e);t.removeEdge(e),r.forwardName=e.name,r.reversed=!0,t.setEdge(e.w,e.v,r,i.a("rev"))}))}var _=r("a12c"),x=r("b84d"),k=r("6071");var w=function(t,e,r){(void 0!==r&&!Object(k.a)(t[e],r)||void 0===r&&!(e in t))&&Object(x.a)(t,e,r)},T=r("6999"),C=r("dff1"),E=r("1b89"),S=r("7804"),A=r("8583"),O=r("f5fe"),L=r("ff51"),B=r("010c"),D=r("58e0"),M=r("bc9b"),I=r("2332"),N=r("e8b2"),F=r("a187");var j=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},R=r("f842"),P=r("e3fa");var $=function(t){return Object(R.a)(t,Object(P.a)(t))};var z=function(t,e,r,n,i,a,o){var s=j(t,r),c=j(e,r),l=o.get(c);if(l)w(t,r,l);else{var u=a?a(s,c,r+"",t,e,o):void 0,h=void 0===u;if(h){var d=Object(L.a)(c),f=!d&&Object(D.a)(c),p=!d&&!f&&Object(F.a)(c);u=c,d||f||p?Object(L.a)(s)?u=s:Object(B.a)(s)?u=Object(S.a)(s):f?(h=!1,u=Object(C.a)(c,!0)):p?(h=!1,u=Object(E.a)(c,!0)):u=[]:Object(N.a)(c)||Object(O.a)(c)?(u=s,Object(O.a)(s)?u=$(s):Object(I.a)(s)&&!Object(M.a)(s)||(u=Object(A.a)(c))):h=!1}h&&(o.set(c,u),i(u,c,n,a,o),o.delete(c)),w(t,r,u)}};var Y=function t(e,r,n,i,a){e!==r&&Object(T.a)(r,(function(o,s){if(a||(a=new _.a),Object(I.a)(o))z(e,r,s,n,t,i,a);else{var c=i?i(j(e,s),o,s+"",e,r,a):void 0;void 0===c&&(c=o),w(e,s,c)}}),P.a)},U=r("2d5d"),W=r("5c59");var q=function(t){return Object(U.a)((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,o&&Object(W.a)(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,a)}return e}))}((function(t,e,r){Y(t,e,r)})),H=r("070e"),V=r("e247"),G=r("1bc6");var X=function(t,e,r){for(var n=-1,i=t.length;++n<i;){var a=t[n],o=e(a);if(null!=o&&(void 0===s?o==o&&!Object(G.a)(o):r(o,s)))var s=o,c=a}return c};var K=function(t,e){return t>e},Q=r("f976");var Z=function(t){return t&&t.length?X(t,Q.a,K):void 0};var J=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},tt=r("1b99"),et=r("7f2c");var rt=function(t,e){var r={};return e=Object(et.a)(e,3),Object(tt.a)(t,(function(t,n,i){Object(x.a)(r,n,e(t,n,i))})),r},nt=r("db72");var it=function(t,e,r){for(var n=-1,i=t.length,a=e.length,o={};++n<i;){var s=n<a?e[n]:void 0;r(o,t[n],s)}return o};var at=function(t,e){return it(t||[],e||[],nt.a)},ot=r("dc7a");var st=function(t,e){return t<e};var ct=function(t){return t&&t.length?X(t,Q.a,st):void 0},lt=r("26ee"),ut=function(){return lt.a.Date.now()};function ht(t,e,r,n){var a;do{a=i.a(n)}while(t.hasNode(a));return r.dummy=e,t.setNode(a,r),a}function dt(t){var e=(new u.a).setGraph(t.graph());return n.a(t.nodes(),(function(r){e.setNode(r,t.node(r))})),n.a(t.edges(),(function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})})),e}function ft(t){var e=new u.a({multigraph:t.isMultigraph()}).setGraph(t.graph());return n.a(t.nodes(),(function(r){t.children(r).length||e.setNode(r,t.node(r))})),n.a(t.edges(),(function(r){e.setEdge(r,t.edge(r))})),e}function pt(t,e){var r,n,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),r=l*o/s,n=l):(o<0&&(c=-c),r=c,n=c*s/o),{x:i+r,y:a+n}}function gt(t){var e=c.a(l.a(bt(t)+1),(function(){return[]}));return n.a(t.nodes(),(function(r){var n=t.node(r),i=n.rank;ot.a(i)||(e[i][n.order]=r)})),e}function yt(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),ht(t,"border",i,e)}function bt(t){return Z(c.a(t.nodes(),(function(e){var r=t.node(e).rank;if(!ot.a(r))return r})))}function mt(t,e){ut();try{return e()}finally{}}function vt(t,e){return e()}function _t(t,e,r,n,i,a){var o={width:0,height:0,rank:a,borderType:e},s=i[e][a-1],c=ht(t,"border",o,r);i[e][a]=c,t.setParent(c,n),s&&t.setEdge(s,c,{weight:1})}function xt(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){n.a(t.nodes(),(function(e){Tt(t.node(e))})),n.a(t.edges(),(function(e){var r=t.edge(e);n.a(r.points,Tt),a.a(r,"y")&&Tt(r)}))}(t),"lr"!==e&&"rl"!==e||(function(t){n.a(t.nodes(),(function(e){Ct(t.node(e))})),n.a(t.edges(),(function(e){var r=t.edge(e);n.a(r.points,Ct),a.a(r,"x")&&Ct(r)}))}(t),kt(t))}function kt(t){n.a(t.nodes(),(function(e){wt(t.node(e))})),n.a(t.edges(),(function(e){wt(t.edge(e))}))}function wt(t){var e=t.width;t.width=t.height,t.height=e}function Tt(t){t.y=-t.y}function Ct(t){var e=t.x;t.x=t.y,t.y=e}function Et(t){t.graph().dummyChains=[],n.a(t.edges(),(function(e){!function(t,e){var r=e.v,n=t.node(r).rank,i=e.w,a=t.node(i).rank,o=e.name,s=t.edge(e),c=s.labelRank;if(a!==n+1){var l,u,h;for(t.removeEdge(e),h=0,++n;n<a;++h,++n)s.points=[],l=ht(t,"edge",u={width:0,height:0,edgeLabel:s,edgeObj:e,rank:n},"_d"),n===c&&(u.width=s.width,u.height=s.height,u.dummy="edge-label",u.labelpos=s.labelpos),t.setEdge(r,l,{weight:s.weight},o),0===h&&t.graph().dummyChains.push(l),r=l;t.setEdge(r,i,{weight:s.weight},o)}}(t,e)}))}var St=function(t,e){return t&&t.length?X(t,Object(et.a)(e,2),st):void 0};function At(t){var e={};n.a(t.sources(),(function r(n){var i=t.node(n);if(a.a(e,n))return i.rank;e[n]=!0;var o=ct(c.a(t.outEdges(n),(function(e){return r(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),i.rank=o}))}function Ot(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function Lt(t){var e,r,n=new u.a({directed:!1}),i=t.nodes()[0],a=t.nodeCount();for(n.setNode(i,{});Bt(n,t)<a;)e=Dt(n,t),r=n.hasNode(e.v)?Ot(t,e):-Ot(t,e),Mt(n,t,r);return n}function Bt(t,e){return n.a(t.nodes(),(function r(i){n.a(e.nodeEdges(i),(function(n){var a=n.v,o=i===a?n.w:a;t.hasNode(o)||Ot(e,n)||(t.setNode(o,{}),t.setEdge(i,o,{}),r(o))}))})),t.nodeCount()}function Dt(t,e){return St(e.edges(),(function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return Ot(e,r)}))}function Mt(t,e,r){n.a(t.nodes(),(function(t){e.node(t).rank+=r}))}var It=r("e56b"),Nt=r("9a4b");var Ft=function(t){return function(e,r,n){var i=Object(e);if(!Object(It.a)(e)){var a=Object(et.a)(r,3);e=Object(Nt.a)(e),r=function(t){return a(i[t],t,i)}}var o=t(e,r,n);return o>-1?i[a?e[o]:o]:void 0}},jt=r("1b70"),Rt=r("cb09");var Pt=function(t){var e=Object(Rt.a)(t),r=e%1;return e==e?r?e-r:e:0},$t=Math.max;var zt=Ft((function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:Pt(r);return i<0&&(i=$t(n+i,0)),Object(jt.a)(t,Object(et.a)(e,3),i)})),Yt=r("6740");o.a(1),r("20b6"),r("7378"),r("52e7"),o.a(1);r("8cc4"),r("60ce"),r("f0ce"),r("1147");var Ut=r("1522");Object(Ut.a)("length"),RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Wt="\\ud800-\\udfff",qt="["+Wt+"]",Ht="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vt="\\ud83c[\\udffb-\\udfff]",Gt="[^"+Wt+"]",Xt="(?:\\ud83c[\\udde6-\\uddff]){2}",Kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="(?:"+Ht+"|"+Vt+")"+"?",Zt="[\\ufe0e\\ufe0f]?",Jt=Zt+Qt+("(?:\\u200d(?:"+[Gt,Xt,Kt].join("|")+")"+Zt+Qt+")*"),te="(?:"+[Gt+Ht+"?",Ht,Xt,Kt,qt].join("|")+")";RegExp(Vt+"(?="+Vt+")|"+te+Jt,"g");function ee(){}function re(t,e,r){L.a(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],o={};return n.a(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);ne(t,e,"post"===r,o,i,a)})),a}function ne(t,e,r,i,o,s){a.a(i,e)||(i[e]=!0,r||s.push(e),n.a(o(e),(function(e){ne(t,e,r,i,o,s)})),r&&s.push(e))}function ie(t){At(t=dt(t));var e,r=Lt(t);for(se(r),ae(r,t);e=le(r);)he(r,t,e,ue(r,t,e))}function ae(t,e){var r=function(t,e){return re(t,e,"post")}(t,t.nodes());r=r.slice(0,r.length-1),n.a(r,(function(r){!function(t,e,r){var n=t.node(r).parent;t.edge(r,n).cutvalue=oe(t,e,r)}(t,e,r)}))}function oe(t,e,r){var i=t.node(r).parent,a=!0,o=e.edge(r,i),s=0;return o||(a=!1,o=e.edge(i,r)),s=o.weight,n.a(e.nodeEdges(r),(function(n){var o=n.v===r,c=o?n.w:n.v;if(c!==i){var l=o===a,u=e.edge(n).weight;if(s+=l?u:-u,function(t,e,r){return t.hasEdge(e,r)}(t,r,c)){var h=t.edge(r,c).cutvalue;s+=l?-h:h}}})),s}function se(t,e){arguments.length<2&&(e=t.nodes()[0]),ce(t,{},1,e)}function ce(t,e,r,i,o){var s=r,c=t.node(i);return e[i]=!0,n.a(t.neighbors(i),(function(n){a.a(e,n)||(r=ce(t,e,r,n,i))})),c.low=s,c.lim=r++,o?c.parent=o:delete c.parent,r}function le(t){return zt(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function ue(t,e,r){var n=r.v,i=r.w;e.hasEdge(n,i)||(n=r.w,i=r.v);var a=t.node(n),o=t.node(i),s=a,c=!1;a.lim>o.lim&&(s=o,c=!0);var l=Yt.a(e.edges(),(function(e){return c===fe(t,t.node(e.v),s)&&c!==fe(t,t.node(e.w),s)}));return St(l,(function(t){return Ot(e,t)}))}function he(t,e,r,n){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(n.v,n.w,{}),se(t),ae(t,e),de(t,e)}function de(t,e){var r=zt(t.nodes(),(function(t){return!e.node(t).parent})),i=function(t,e){return re(t,e,"pre")}(t,r);i=i.slice(1),n.a(i,(function(r){var n=t.node(r).parent,i=e.edge(r,n),a=!1;i||(i=e.edge(n,r),a=!0),e.node(r).rank=e.node(n).rank+(a?i.minlen:-i.minlen)}))}function fe(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}function pe(t){switch(t.graph().ranker){case"network-simplex":ye(t);break;case"tight-tree":!function(t){At(t),Lt(t)}(t);break;case"longest-path":ge(t);break;default:ye(t)}}ee.prototype=new Error,r("0629"),ie.initLowLimValues=se,ie.initCutValues=ae,ie.calcCutValue=oe,ie.leaveEdge=le,ie.enterEdge=ue,ie.exchangeEdges=he;var ge=At;function ye(t){ie(t)}var be=r("4c60"),me=r("a305");function ve(t){var e=ht(t,"root",{},"_root"),r=function(t){var e={};function r(i,a){var o=t.children(i);o&&o.length&&n.a(o,(function(t){r(t,a+1)})),e[i]=a}return n.a(t.children(),(function(t){r(t,1)})),e}(t),i=Z(be.a(r))-1,a=2*i+1;t.graph().nestingRoot=e,n.a(t.edges(),(function(e){t.edge(e).minlen*=a}));var o=function(t){return me.a(t.edges(),(function(e,r){return e+t.edge(r).weight}),0)}(t)+1;n.a(t.children(),(function(n){_e(t,e,a,o,i,r,n)})),t.graph().nodeRankFactor=a}function _e(t,e,r,i,a,o,s){var c=t.children(s);if(c.length){var l=yt(t,"_bt"),u=yt(t,"_bb"),h=t.node(s);t.setParent(l,s),h.borderTop=l,t.setParent(u,s),h.borderBottom=u,n.a(c,(function(n){_e(t,e,r,i,a,o,n);var c=t.node(n),h=c.borderTop?c.borderTop:n,d=c.borderBottom?c.borderBottom:n,f=c.borderTop?i:2*i,p=h!==d?1:a-o[s]+1;t.setEdge(l,h,{weight:f,minlen:p,nestingEdge:!0}),t.setEdge(d,u,{weight:f,minlen:p,nestingEdge:!0})})),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:a+o[s]})}else s!==e&&t.setEdge(e,s,{weight:0,minlen:r})}var xe=r("09f4");var ke=function(t){return Object(xe.a)(t,5)};function we(t){for(var e;t.hasNode(e=i.a("_root")););return e}var Te=r("b93d"),Ce=r("b703"),Ee=r("5132"),Se=r("5ace");var Ae=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Oe=r("a2fb");var Le=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,a=Object(G.a)(t),o=void 0!==e,s=null===e,c=e==e,l=Object(G.a)(e);if(!s&&!l&&!a&&t>e||a&&o&&c&&!s&&!l||n&&o&&c||!r&&c||!i)return 1;if(!n&&!a&&!l&&t<e||l&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!c)return-1}return 0};var Be=function(t,e,r){for(var n=-1,i=t.criteria,a=e.criteria,o=i.length,s=r.length;++n<o;){var c=Le(i[n],a[n]);if(c)return n>=s?c:c*("desc"==r[n]?-1:1)}return t.index-e.index};var De=function(t,e,r){e=e.length?Object(Ce.a)(e,(function(t){return Object(L.a)(t)?function(e){return Object(Ee.a)(e,1===t.length?t[0]:t)}:t})):[Q.a];var n=-1;e=Object(Ce.a)(e,Object(Oe.a)(et.a));var i=Object(Se.a)(t,(function(t,r,i){return{criteria:Object(Ce.a)(e,(function(e){return e(t)})),index:++n,value:t}}));return Ae(i,(function(t,e){return Be(t,e,r)}))},Me=Object(U.a)((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Object(W.a)(t,e[0],e[1])?e=[]:r>2&&Object(W.a)(e[0],e[1],e[2])&&(e=[e[0]]),De(t,Object(Te.a)(e,1),[])}));function Ie(t,e){for(var r=0,n=1;n<e.length;++n)r+=Ne(t,e[n-1],e[n]);return r}function Ne(t,e,r){for(var i=at(r,c.a(r,(function(t,e){return e}))),a=s.a(c.a(e,(function(e){return Me(c.a(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")}))),o=1;o<r.length;)o<<=1;var l=2*o-1;o-=1;var u=c.a(new Array(l),(function(){return 0})),h=0;return n.a(a.forEach((function(t){var e=t.pos+o;u[e]+=t.weight;for(var r=0;e>0;)e%2&&(r+=u[e+1]),u[e=e-1>>1]+=t.weight;h+=t.weight*r}))),h}function Fe(t){var e={},r=Yt.a(t.nodes(),(function(e){return!t.children(e).length})),i=Z(c.a(r,(function(e){return t.node(e).rank}))),o=c.a(l.a(i+1),(function(){return[]}));var s=Me(r,(function(e){return t.node(e).rank}));return n.a(s,(function r(i){if(!a.a(e,i)){e[i]=!0;var s=t.node(i);o[s.rank].push(i),n.a(t.successors(i),r)}})),o}function je(t,e){return c.a(e,(function(e){var r=t.inEdges(e);if(r.length){var n=me.a(r,(function(e,r){var n=t.edge(r),i=t.node(r.v);return{sum:e.sum+n.weight*i.order,weight:e.weight+n.weight}}),{sum:0,weight:0});return{v:e,barycenter:n.sum/n.weight,weight:n.weight}}return{v:e}}))}function Re(t,e){var r={};return n.a(t,(function(t,e){var n=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};ot.a(t.barycenter)||(n.barycenter=t.barycenter,n.weight=t.weight)})),n.a(e.edges(),(function(t){var e=r[t.v],n=r[t.w];ot.a(e)||ot.a(n)||(n.indegree++,e.out.push(r[t.w]))})),function(t){var e=[];function r(t){return function(e){e.merged||(ot.a(e.barycenter)||ot.a(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}for(;t.length;){var a=t.pop();e.push(a),n.a(a.in.reverse(),r(a)),n.a(a.out,i(a))}return c.a(Yt.a(e,(function(t){return!t.merged})),(function(t){return H.a(t,["vs","i","barycenter","weight"])}))}(Yt.a(r,(function(t){return!t.indegree})))}function Pe(t,e){var r=function(t,e){var r={lhs:[],rhs:[]};return n.a(t,(function(t){e(t)?r.lhs.push(t):r.rhs.push(t)})),r}(t,(function(t){return a.a(t,"barycenter")})),i=r.lhs,o=Me(r.rhs,(function(t){return-t.i})),c=[],l=0,u=0,h=0;i.sort(function(t){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:t?r.i-e.i:e.i-r.i}}(!!e)),h=$e(c,o,h),n.a(i,(function(t){h+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,u+=t.weight,h=$e(c,o,h)}));var d={vs:s.a(c)};return u&&(d.barycenter=l/u,d.weight=u),d}function $e(t,e,r){for(var n;e.length&&(n=J(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function ze(t,e,r,i){var o=t.children(e),c=t.node(e),l=c?c.borderLeft:void 0,u=c?c.borderRight:void 0,h={};l&&(o=Yt.a(o,(function(t){return t!==l&&t!==u})));var d=je(t,o);n.a(d,(function(e){if(t.children(e.v).length){var n=ze(t,e.v,r,i);h[e.v]=n,a.a(n,"barycenter")&&function(t,e){ot.a(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(e,n)}}));var f=Re(d,r);!function(t,e){n.a(t,(function(t){t.vs=s.a(t.vs.map((function(t){return e[t]?e[t].vs:t})))}))}(f,h);var p=Pe(f,i);if(l&&(p.vs=s.a([l,p.vs,u]),t.predecessors(l).length)){var g=t.node(t.predecessors(l)[0]),y=t.node(t.predecessors(u)[0]);a.a(p,"barycenter")||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+g.order+y.order)/(p.weight+2),p.weight+=2}return p}function Ye(t,e,r){return c.a(e,(function(e){return function(t,e,r){var i=we(t),o=new u.a({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return n.a(t.nodes(),(function(s){var c=t.node(s),l=t.parent(s);(c.rank===e||c.minRank<=e&&e<=c.maxRank)&&(o.setNode(s),o.setParent(s,l||i),n.a(t[r](s),(function(e){var r=e.v===s?e.w:e.v,n=o.edge(r,s),i=ot.a(n)?0:n.weight;o.setEdge(r,s,{weight:t.edge(e).weight+i})})),a.a(c,"minRank")&&o.setNode(s,{borderLeft:c.borderLeft[e],borderRight:c.borderRight[e]}))})),o}(t,e,r)}))}function Ue(t,e){var r=new u.a;n.a(t,(function(t){var i=t.graph().root,a=ze(t,i,r,e);n.a(a.vs,(function(e,r){t.node(e).order=r})),function(t,e,r){var i,a={};n.a(r,(function(r){for(var n,o,s=t.parent(r);s;){if((n=t.parent(s))?(o=a[n],a[n]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=n}}))}(t,r,a.vs)}))}function We(t,e){n.a(e,(function(e){n.a(e,(function(e,r){t.node(e).order=r}))}))}function qe(t){var e=function(t){var e={},r=0;return n.a(t.children(),(function i(a){var o=r;n.a(t.children(a),i),e[a]={low:o,lim:r++}})),e}(t);n.a(t.graph().dummyChains,(function(r){for(var n=t.node(r),i=n.edgeObj,a=function(t,e,r,n){var i,a,o=[],s=[],c=Math.min(e[r].low,e[n].low),l=Math.max(e[r].lim,e[n].lim);i=r;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||l>e[i].lim));a=i,i=n;for(;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;r!==i.w;){if(n=t.node(r),u){for(;(l=o[c])!==s&&t.node(l).maxRank<n.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&t.node(l=o[c+1]).minRank<=n.rank;)c++;l=o[c]}t.setParent(r,l),r=t.successors(r)[0]}}))}var He=r("6677");var Ve=function(t,e){return null==t?t:Object(T.a)(t,Object(He.a)(e),P.a)};function Ge(t,e){var r={};return me.a(e,(function(e,i){var a=0,o=0,s=e.length,c=J(i);return n.a(i,(function(e,l){var u=function(t,e){if(t.node(e).dummy)return zt(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=u?t.node(u).order:s;(u||e===c)&&(n.a(i.slice(o,l+1),(function(e){n.a(t.predecessors(e),(function(n){var i=t.node(n),o=i.order;!(o<a||h<o)||i.dummy&&t.node(e).dummy||Xe(r,n,e)}))})),o=l+1,a=h)})),i})),r}function Xe(t,e,r){if(e>r){var n=e;e=r,r=n}var i=t[e];i||(t[e]=i={}),i[r]=!0}function Ke(t,e,r){if(e>r){var n=e;e=r,r=n}return a.a(t[e],r)}function Qe(t,e,r,i){var a={},o={},s={};return n.a(e,(function(t){n.a(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),n.a(e,(function(t){var e=-1;n.a(t,(function(t){var n=i(t);if(n.length)for(var c=((n=Me(n,(function(t){return s[t]}))).length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var h=n[l];o[t]===t&&e<s[h]&&!Ke(r,t,h)&&(o[h]=t,o[t]=a[t]=a[h],e=s[h])}}))})),{root:a,align:o}}function Ze(t,e,r,i,a){var o={},s=Je(t,e,r,a),c=a?"borderLeft":"borderRight";function l(t,e){for(var r=s.nodes(),n=r.pop(),i={};n;)i[n]?t(n):(i[n]=!0,r.push(n),r=r.concat(e(n))),n=r.pop()}return l((function(t){o[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,o[e.v]+s.edge(e))}),0)}),s.predecessors.bind(s)),l((function(e){var r=s.outEdges(e).reduce((function(t,e){return Math.min(t,o[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),n=t.node(e);r!==Number.POSITIVE_INFINITY&&n.borderType!==c&&(o[e]=Math.max(o[e],r))}),s.successors.bind(s)),n.a(i,(function(t){o[t]=o[r[t]]})),o}function Je(t,e,r,i){var a=new u.a,o=t.graph(),s=er(o.nodesep,o.edgesep,i);return n.a(e,(function(e){var i;n.a(e,(function(e){var n=r[e];if(a.setNode(n),i){var o=r[i],c=a.edge(o,n);a.setEdge(o,n,Math.max(s(t,e,i),c||0))}i=e}))})),a}function tr(t){var e,r=gt(t),i=q(Ge(t,r),function(t,e){var r={};function i(e,i,a,o,s){var c;n.a(l.a(i,a),(function(i){c=e[i],t.node(c).dummy&&n.a(t.predecessors(c),(function(e){var n=t.node(e);n.dummy&&(n.order<o||n.order>s)&&Xe(r,e,c)}))}))}return me.a(e,(function(e,r){var a,o=-1,s=0;return n.a(r,(function(n,c){if("border"===t.node(n).dummy){var l=t.predecessors(n);l.length&&(a=t.node(l[0]).order,i(r,s,c,o,a),s=c,o=a)}i(r,s,r.length,a,e.length)})),r})),r}(t,r)),a={};n.a(["u","d"],(function(o){e="u"===o?r:be.a(r).reverse(),n.a(["l","r"],(function(r){"r"===r&&(e=c.a(e,(function(t){return be.a(t).reverse()})));var n=("u"===o?t.predecessors:t.successors).bind(t),s=Qe(0,e,i,n),l=Ze(t,e,s.root,s.align,"r"===r);"r"===r&&(l=rt(l,(function(t){return-t}))),a[o+r]=l}))}));var o=function(t,e){return St(be.a(e),(function(e){var r=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY;return Ve(e,(function(e,i){var a=function(t,e){return t.node(e).width}(t,i)/2;r=Math.max(e+a,r),n=Math.min(e-a,n)})),r-n}))}(t,a);return function(t,e){var r=be.a(e),i=ct(r),a=Z(r);n.a(["u","d"],(function(r){n.a(["l","r"],(function(n){var o,s=r+n,c=t[s];if(c!==e){var l=be.a(c);(o="l"===n?i-ct(l):a-Z(l))&&(t[s]=rt(c,(function(t){return t+o})))}}))}))}(a,o),function(t,e){return rt(t.ul,(function(r,n){if(e)return t[e.toLowerCase()][n];var i=Me(c.a(t,n));return(i[1]+i[2])/2}))}(a,t.graph().align)}function er(t,e,r){return function(n,i,o){var s,c=n.node(i),l=n.node(o),u=0;if(u+=c.width/2,a.a(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=-c.width/2;break;case"r":s=c.width/2}if(s&&(u+=r?s:-s),s=0,u+=(c.dummy?e:t)/2,u+=(l.dummy?e:t)/2,u+=l.width/2,a.a(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=l.width/2;break;case"r":s=-l.width/2}return s&&(u+=r?s:-s),s=0,u}}function rr(t){(function(t){var e=gt(t),r=t.graph().ranksep,i=0;n.a(e,(function(e){var a=Z(c.a(e,(function(e){return t.node(e).height})));n.a(e,(function(e){t.node(e).y=i+a/2})),i+=a+r}))})(t=ft(t)),n.a(tr(t),(function(e,r){t.node(r).x=e}))}function nr(t,e){var r=e&&e.debugTiming?mt:vt;r("layout",(function(){var e=r(" buildLayoutGraph",(function(){return function(t){var e=new u.a({multigraph:!0,compound:!0}),r=fr(t.graph());return e.setGraph(q({},ar,dr(r,ir),H.a(r,or))),n.a(t.nodes(),(function(r){var n=fr(t.node(r));e.setNode(r,V.a(dr(n,sr),cr)),e.setParent(r,t.parent(r))})),n.a(t.edges(),(function(r){var n=fr(t.edge(r));e.setEdge(r,q({},ur,dr(n,lr),H.a(n,hr)))})),e}(t)}));r(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,n.a(t.edges(),(function(r){var n=t.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){n.a(t.edges(),(function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){v(t)})),e(" nestingGraph.run",(function(){ve(t)})),e(" rank",(function(){pe(ft(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){n.a(t.edges(),(function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};ht(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){!function(t){var e=ct(c.a(t.nodes(),(function(e){return t.node(e).rank}))),r=[];n.a(t.nodes(),(function(n){var i=t.node(n).rank-e;r[i]||(r[i]=[]),r[i].push(n)}));var i=0,a=t.graph().nodeRankFactor;n.a(r,(function(e,r){ot.a(e)&&r%a!=0?--i:i&&n.a(e,(function(e){t.node(e).rank+=i}))}))}(t)})),e(" nestingGraph.cleanup",(function(){!function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,n.a(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}(t)})),e(" normalizeRanks",(function(){!function(t){var e=ct(c.a(t.nodes(),(function(e){return t.node(e).rank})));n.a(t.nodes(),(function(r){var n=t.node(r);a.a(n,"rank")&&(n.rank-=e)}))}(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;n.a(t.nodes(),(function(r){var n=t.node(r);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,e=Z(e,n.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){n.a(t.nodes(),(function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){Et(t)})),e(" parentDummyChains",(function(){qe(t)})),e(" addBorderSegments",(function(){!function(t){n.a(t.children(),(function e(r){var i=t.children(r),o=t.node(r);if(i.length&&n.a(i,e),a.a(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,c=o.maxRank+1;s<c;++s)_t(t,"borderLeft","_bl",r,o,s),_t(t,"borderRight","_br",r,o,s)}}))}(t)})),e(" order",(function(){!function(t){var e=bt(t),r=Ye(t,l.a(1,e+1),"inEdges"),n=Ye(t,l.a(e-1,-1,-1),"outEdges"),i=Fe(t);We(t,i);for(var a,o=Number.POSITIVE_INFINITY,s=0,c=0;c<4;++s,++c){Ue(s%2?r:n,s%4>=2);var u=Ie(t,i=gt(t));u<o&&(c=0,a=ke(i),o=u)}We(t,a)}(t)})),e(" insertSelfEdges",(function(){!function(t){var e=gt(t);n.a(e,(function(e){var r=0;n.a(e,(function(e,i){var a=t.node(e);a.order=i+r,n.a(a.selfEdges,(function(e){ht(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++r,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){!function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||kt(t)}(t)})),e(" position",(function(){rr(t)})),e(" positionSelfEdges",(function(){!function(t){n.a(t.nodes(),(function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),i=n.x+n.width/2,a=n.y,o=r.x-i,s=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],r.label.x=r.x,r.label.y=r.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){n.a(t.nodes(),(function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(J(r.borderLeft)),o=t.node(J(r.borderRight));r.width=Math.abs(o.x-a.x),r.height=Math.abs(i.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}})),n.a(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){!function(t){n.a(t.graph().dummyChains,(function(e){var r,n=t.node(e),i=n.edgeLabel;for(t.setEdge(n.edgeObj,i);n.dummy;)r=t.successors(e)[0],t.removeNode(e),i.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(i.x=n.x,i.y=n.y,i.width=n.width,i.height=n.height),e=r,n=t.node(e)}))}(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){n.a(t.edges(),(function(e){var r=t.edge(e);if(a.a(r,"x"))switch("l"!==r.labelpos&&"r"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){xt(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),c=s.marginx||0,l=s.marginy||0;function u(t){var n=t.x,a=t.y,s=t.width,c=t.height;e=Math.min(e,n-s/2),r=Math.max(r,n+s/2),i=Math.min(i,a-c/2),o=Math.max(o,a+c/2)}n.a(t.nodes(),(function(e){u(t.node(e))})),n.a(t.edges(),(function(e){var r=t.edge(e);a.a(r,"x")&&u(r)})),e-=c,i-=l,n.a(t.nodes(),(function(r){var n=t.node(r);n.x-=e,n.y-=i})),n.a(t.edges(),(function(r){var o=t.edge(r);n.a(o.points,(function(t){t.x-=e,t.y-=i})),a.a(o,"x")&&(o.x-=e),a.a(o,"y")&&(o.y-=i)})),s.width=r-e+c,s.height=o-i+l}(t)})),e(" assignNodeIntersects",(function(){!function(t){n.a(t.edges(),(function(e){var r,n,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(r=i.points[0],n=i.points[i.points.length-1]):(i.points=[],r=o,n=a),i.points.unshift(pt(a,r)),i.points.push(pt(o,n))}))}(t)})),e(" reversePoints",(function(){!function(t){n.a(t.edges(),(function(e){var r=t.edge(e);r.reversed&&r.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){!function(t){n.a(t.edges(),(function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}}))}(t)}))}(e,r)})),r(" updateInputGraph",(function(){!function(t,e){n.a(t.nodes(),(function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))})),n.a(t.edges(),(function(r){var n=t.edge(r),i=e.edge(r);n.points=i.points,a.a(i,"x")&&(n.x=i.x,n.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))}var ir=["nodesep","edgesep","ranksep","marginx","marginy"],ar={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},or=["acyclicer","ranker","rankdir","align"],sr=["width","height"],cr={width:0,height:0},lr=["minlen","weight","width","height","labeloffset"],ur={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},hr=["labelpos"];function dr(t,e){return rt(H.a(t,e),Number)}function fr(t){var e={};return n.a(t,(function(t,r){e[r.toLowerCase()]=t})),e}},dfb9:function(t,e,r){"use strict";var n=r("07fa");t.exports=function(t,e,r){for(var i=0,a=arguments.length>2?r:n(e),o=new t(a);a>i;)o[i]=e[i++];return o}},dff1:function(t,e,r){"use strict";(function(t){var n=r("26ee"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.a.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}}).call(this,r("dd40")(t))},e247:function(t,e,r){"use strict";var n=r("2d5d"),i=r("6071"),a=r("5c59"),o=r("e3fa"),s=Object.prototype,c=s.hasOwnProperty,l=Object(n.a)((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&Object(a.a)(e[0],e[1],l)&&(n=1);++r<n;)for(var u=e[r],h=Object(o.a)(u),d=-1,f=h.length;++d<f;){var p=h[d],g=t[p];(void 0===g||Object(i.a)(g,s[p])&&!c.call(t,p))&&(t[p]=u[p])}return t}));e.a=l},e3fa:function(t,e,r){"use strict";var n=r("ee03"),i=r("2332"),a=r("a724");var o=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e},s=Object.prototype.hasOwnProperty;var c=function(t){if(!Object(i.a)(t))return o(t);var e=Object(a.a)(t),r=[];for(var n in t)("constructor"!=n||!e&&s.call(t,n))&&r.push(n);return r},l=r("e56b");e.a=function(t){return Object(l.a)(t)?Object(n.a)(t,!0):c(t)}},e56b:function(t,e,r){"use strict";var n=r("bc9b"),i=r("26ce");e.a=function(t){return null!=t&&Object(i.a)(t.length)&&!Object(n.a)(t)}},e58c:function(t,e,r){"use strict";var n=r("2ba4"),i=r("fc6a"),a=r("5926"),o=r("07fa"),s=r("a640"),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),d=u||!h;t.exports=d?function(t){if(u)return n(l,this,arguments)||0;var e=i(this),r=o(e);if(0===r)return-1;var s=r-1;for(arguments.length>1&&(s=c(s,a(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:l},e6e1:function(t,e,r){"use strict";r("23e7")({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},e8b2:function(t,e,r){"use strict";var n=r("f0ce"),i=r("52e7"),a=r("1147"),o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);e.a=function(t){if(!Object(a.a)(t)||"[object Object]"!=Object(n.a)(t))return!1;var e=Object(i.a)(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==u}},e91f:function(t,e,r){"use strict";var n=r("ebb5"),i=r("4d64").indexOf,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},e9bc:function(t,e,r){"use strict";var n=r("dc19"),i=r("cb27").add,a=r("83b9e"),o=r("7f65"),s=r("5388");t.exports=function(t){var e=n(this),r=o(t).getIterator(),c=a(e);return s(r,(function(t){i(c,t)})),c}},eac50:function(t,e,r){"use strict";var n=r("861d"),i=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&i(t)===t}},ebb5:function(t,e,r){"use strict";var n,i,a,o=r("4b11"),s=r("83ab"),c=r("cfe9"),l=r("1626"),u=r("861d"),h=r("1a2d"),d=r("f5df"),f=r("0d51"),p=r("9112"),g=r("cb2d"),y=r("edd0"),b=r("3a9b"),m=r("e163"),v=r("d2bb"),_=r("b622"),x=r("90e3"),k=r("69f3"),w=k.enforce,T=k.get,C=c.Int8Array,E=C&&C.prototype,S=c.Uint8ClampedArray,A=S&&S.prototype,O=C&&m(C),L=E&&m(E),B=Object.prototype,D=c.TypeError,M=_("toStringTag"),I=x("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",F=o&&!!v&&"Opera"!==d(c.opera),j=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},$=function(t){var e=m(t);if(u(e)){var r=T(e);return r&&h(r,N)?r[N]:$(e)}},z=function(t){if(!u(t))return!1;var e=d(t);return h(R,e)||h(P,e)};for(n in R)(a=(i=c[n])&&i.prototype)?w(a)[N]=i:F=!1;for(n in P)(a=(i=c[n])&&i.prototype)&&(w(a)[N]=i);if((!F||!l(O)||O===Function.prototype)&&(O=function(){throw new D("Incorrect invocation")},F))for(n in R)c[n]&&v(c[n],O);if((!F||!L||L===B)&&(L=O.prototype,F))for(n in R)c[n]&&v(c[n].prototype,L);if(F&&m(A)!==L&&v(A,L),s&&!h(L,M))for(n in j=!0,y(L,M,{configurable:!0,get:function(){return u(this)?this[I]:void 0}}),R)c[n]&&p(c[n],I,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:j&&I,aTypedArray:function(t){if(z(t))return t;throw new D("Target is not a typed array")},aTypedArrayConstructor:function(t){if(l(t)&&(!v||b(O,t)))return t;throw new D(f(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(s){if(r)for(var i in R){var a=c[i];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(r){try{a.prototype[t]=e}catch(t){}}}L[t]&&!r||g(L,t,r?e:F&&E[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,i;if(s){if(v){if(r)for(n in R)if((i=c[n])&&h(i,t))try{delete i[t]}catch(t){}if(O[t]&&!r)return;try{return g(O,t,r?e:F&&O[t]||e)}catch(t){}}for(n in R)!(i=c[n])||i[t]&&!r||g(i,t,e)}},getTypedArrayConstructor:$,isView:function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||h(R,e)||h(P,e)},isTypedArray:z,TypedArray:O,TypedArrayPrototype:L}},ee03:function(t,e,r){"use strict";var n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},i=r("f5fe"),a=r("ff51"),o=r("58e0"),s=r("7129"),c=r("a187"),l=Object.prototype.hasOwnProperty;e.a=function(t,e){var r=Object(a.a)(t),u=!r&&Object(i.a)(t),h=!r&&!u&&Object(o.a)(t),d=!r&&!u&&!h&&Object(c.a)(t),f=r||u||h||d,p=f?n(t.length,String):[],g=p.length;for(var y in t)!e&&!l.call(t,y)||f&&("length"==y||h&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||Object(s.a)(y,g))||p.push(y);return p}},eee7:function(t,e,r){"use strict";r("02ec");var n=r("23e7"),i=r("67b6");n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},f0ce:function(t,e,r){"use strict";var n=r("ca54"),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n.a?n.a.toStringTag:void 0;var c=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=o.call(t);return n&&(e?t[s]=r:delete t[s]),i},l=Object.prototype.toString;var u=function(t){return l.call(t)},h=n.a?n.a.toStringTag:void 0;e.a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?c(t):u(t)}},f183:function(t,e,r){"use strict";var n=r("23e7"),i=r("e330"),a=r("d012"),o=r("861d"),s=r("1a2d"),c=r("9bf2").f,l=r("241c"),u=r("057f"),h=r("4fad"),d=r("90e3"),f=r("bb2f"),p=!1,g=d("meta"),y=0,b=function(t){c(t,g,{value:{objectID:"O"+y++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},p=!0;var t=l.f,e=i([].splice),r={};r[g]=1,t(r).length&&(l.f=function(r){for(var n=t(r),i=0,a=n.length;i<a;i++)if(n[i]===g){e(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,g)){if(!h(t))return"F";if(!e)return"E";b(t)}return t[g].objectID},getWeakData:function(t,e){if(!s(t,g)){if(!h(t))return!0;if(!e)return!1;b(t)}return t[g].weakData},onFreeze:function(t){return f&&p&&h(t)&&!s(t,g)&&b(t),t}};a[g]=!0},f495:function(t,e,r){"use strict";var n=r("c04e"),i=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},f5fe:function(t,e,r){"use strict";var n=r("f0ce"),i=r("1147");var a=function(t){return Object(i.a)(t)&&"[object Arguments]"==Object(n.a)(t)},o=Object.prototype,s=o.hasOwnProperty,c=o.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(t){return Object(i.a)(t)&&s.call(t,"callee")&&!c.call(t,"callee")};e.a=l},f665:function(t,e,r){"use strict";var n=r("23e7"),i=r("c65b"),a=r("2266"),o=r("59ed"),s=r("825a"),c=r("46c4"),l=r("2a62"),u=r("f99f")("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(t){s(this);try{o(t)}catch(t){l(this,"throw",t)}if(u)return i(u,this,t);var e=c(this),r=0;return a(e,(function(e,n){if(t(e,r++))return n(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},f748:function(t,e,r){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},f842:function(t,e,r){"use strict";var n=r("db72"),i=r("b84d");e.a=function(t,e,r,a){var o=!r;r||(r={});for(var s=-1,c=e.length;++s<c;){var l=e[s],u=a?a(r[l],t[l],l,r,t):void 0;void 0===u&&(u=t[l]),o?Object(i.a)(r,l,u):Object(n.a)(r,l,u)}return r}},f8cd:function(t,e,r){"use strict";var n=r("5926"),i=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new i("The argument can't be less than 0");return e}},f906:function(t,e,r){t.exports=function(){"use strict";var t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),r=60*e[1]+(+e[2]||0);return 0===r?0:"+"===e[0]?-r:r}(t)}],u=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},h=function(t,e){var r,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(t.indexOf(n(i,0,e))>-1){r=i>12;break}}else r=t===(e?"pm":"PM");return r},d={A:[a,function(t){this.afternoon=h(t,!1)}],a:[a,function(t){this.afternoon=h(t,!0)}],Q:[r,function(t){this.month=3*(t-1)+1}],S:[r,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[n,c("day")],Do:[a,function(t){var e=o.ordinal,r=t.match(/\d+/);if(this.day=r[0],e)for(var n=1;n<=31;n+=1)e(n).replace(/\[|\]/g,"")===t&&(this.day=n)}],w:[i,c("week")],ww:[n,c("week")],M:[i,c("month")],MM:[n,c("month")],MMM:[a,function(t){var e=u("months"),r=(u("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[a,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[n,function(t){this.year=s(t)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l};function f(r){var n,i;n=r,i=o&&o.formats;for(var a=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,n){var a=n&&n.toUpperCase();return r||i[n]||t[n]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}))).match(e),s=a.length,c=0;c<s;c+=1){var l=a[c],u=d[l],h=u&&u[0],f=u&&u[1];a[c]=f?{regex:h,parser:f}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},r=0,n=0;r<s;r+=1){var i=a[r];if("string"==typeof i)n+=i.length;else{var o=i.regex,c=i.parser,l=t.slice(n),u=o.exec(l)[0];c.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var r=t.hours;e?r<12&&(t.hours+=12):12===r&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,r){r.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(s=t.parseTwoDigitYear);var n=e.prototype,i=n.parse;n.parse=function(t){var e=t.date,n=t.utc,a=t.args;this.$u=n;var s=a[1];if("string"==typeof s){var c=!0===a[2],l=!0===a[3],u=c||l,h=a[2];l&&(h=a[2]),o=this.$locale(),!c&&h&&(o=r.Ls[h]),this.$d=function(t,e,r,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=f(e)(t),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,h=i.milliseconds,d=i.zone,p=i.week,g=new Date,y=s||(a||o?1:g.getDate()),b=a||g.getFullYear(),m=0;a&&!o||(m=o>0?o-1:g.getMonth());var v,_=c||0,x=l||0,k=u||0,w=h||0;return d?new Date(Date.UTC(b,m,y,_,x,k,w+60*d.offset*1e3)):r?new Date(Date.UTC(b,m,y,_,x,k,w)):(v=new Date(b,m,y,_,x,k,w),p&&(v=n(v).week(p).toDate()),v)}catch(t){return new Date("")}}(e,s,n,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&e!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var d=s.length,p=1;p<=d;p+=1){a[1]=s[p-1];var g=r.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===d&&(this.$d=new Date(""))}else i.call(this,t)}}}()},f976:function(t,e,r){"use strict";e.a=function(t){return t}},fc1b:function(t,e,r){"use strict";var n=r("f748"),i=r("82e3"),a=Math.abs;t.exports=function(t,e,r,o){var s=+t,c=a(s),l=n(s);if(c<o)return l*i(c/o/e)*o*e;var u=(1+e/2220446049250313e-31)*c,h=u-(u-c);return h>r||h!=h?l*(1/0):l*h}},ff22:function(t,e,r){"use strict";e.a=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from("string"==typeof t?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce((function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map((function(t){var e,r;return null!==(r=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==r?r:0}))):t}),[]);if(i.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");n=n.map((function(t){return t.replace(a,"\n")}))}n[0]=n[0].replace(/^\r?\n/,"");var o=n[0];return e.forEach((function(t,e){var r=o.match(/(?:^|\n)( *)$/),i=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map((function(t,e){return 0===e?t:""+i+t})).join("\n")),o+=a+n[e+1]})),o}},ff51:function(t,e,r){"use strict";var n=Array.isArray;e.a=n}}]);