dsh-vt-web-chat 1.2.1 → 2.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 (168) hide show
  1. package/README.md +66 -33
  2. package/client.js +355 -798
  3. package/docs/research/01-chat-demo-embedding.md +322 -0
  4. package/index.js +36 -8
  5. package/locale/en.json +1 -1
  6. package/locale/zh.json +1 -1
  7. package/package.json +15 -6
  8. package/scripts/dev-server.mjs +54 -0
  9. package/scripts/sync-upstream.mjs +106 -0
  10. package/src/auth.js +65 -0
  11. package/src/maintenance.js +240 -0
  12. package/src/proxy.js +139 -0
  13. package/src/route.js +307 -0
  14. package/src/settings.js +74 -0
  15. package/webview/UPSTREAM.json +6 -0
  16. package/webview/dist/LICENSE +21 -0
  17. package/webview/dist/index.html +1 -0
  18. package/webview/dist/static/css/async/4959.1382f613.css +1 -0
  19. package/webview/dist/static/css/main.27198ffe.css +1 -0
  20. package/webview/dist/static/js/async/1031.575fa503.js +1 -0
  21. package/webview/dist/static/js/async/1085.769e13d5.js +1 -0
  22. package/webview/dist/static/js/async/1086.4d3be1fa.js +1 -0
  23. package/webview/dist/static/js/async/1097.4f798919.js +117 -0
  24. package/webview/dist/static/js/async/1299.0ef86619.js +1 -0
  25. package/webview/dist/static/js/async/1393.6ef1efab.js +1 -0
  26. package/webview/dist/static/js/async/1401.88487cba.js +1 -0
  27. package/webview/dist/static/js/async/1505.8913966f.js +1 -0
  28. package/webview/dist/static/js/async/160.81018107.js +55 -0
  29. package/webview/dist/static/js/async/1679.153f9f03.js +1 -0
  30. package/webview/dist/static/js/async/1690.fe25bdfe.js +1 -0
  31. package/webview/dist/static/js/async/2110.a1d33f2f.js +215 -0
  32. package/webview/dist/static/js/async/2152.97b0a90c.js +1 -0
  33. package/webview/dist/static/js/async/2168.9925ab2d.js +1 -0
  34. package/webview/dist/static/js/async/2312.4fd0ef8e.js +1 -0
  35. package/webview/dist/static/js/async/2348.41564e59.js +148 -0
  36. package/webview/dist/static/js/async/2356.631a6aca.js +1 -0
  37. package/webview/dist/static/js/async/2415.00900482.js +1 -0
  38. package/webview/dist/static/js/async/2461.15199935.js +1 -0
  39. package/webview/dist/static/js/async/2541.f8eac009.js +1 -0
  40. package/webview/dist/static/js/async/2607.abb8bc11.js +1 -0
  41. package/webview/dist/static/js/async/265.b43cee3f.js +1 -0
  42. package/webview/dist/static/js/async/2696.60d5ecf0.js +1 -0
  43. package/webview/dist/static/js/async/3014.c8e9b88f.js +1 -0
  44. package/webview/dist/static/js/async/3111.e2cca965.js +1 -0
  45. package/webview/dist/static/js/async/3251.0b9c608e.js +1 -0
  46. package/webview/dist/static/js/async/3339.ed293391.js +1 -0
  47. package/webview/dist/static/js/async/3376.3aa54d1a.js +93 -0
  48. package/webview/dist/static/js/async/3465.845187e8.js +1 -0
  49. package/webview/dist/static/js/async/3477.94bd21ab.js +5 -0
  50. package/webview/dist/static/js/async/3594.edfe4411.js +1 -0
  51. package/webview/dist/static/js/async/3806.28abb895.js +1 -0
  52. package/webview/dist/static/js/async/3909.4b4bd806.js +1 -0
  53. package/webview/dist/static/js/async/4138.104dbc81.js +1 -0
  54. package/webview/dist/static/js/async/426.6fedaabe.js +1 -0
  55. package/webview/dist/static/js/async/4387.151c5858.js +1 -0
  56. package/webview/dist/static/js/async/4468.d0c907eb.js +1 -0
  57. package/webview/dist/static/js/async/4471.b0874c8d.js +158 -0
  58. package/webview/dist/static/js/async/4568.cf5e547d.js +1 -0
  59. package/webview/dist/static/js/async/4580.f1bc120a.js +131 -0
  60. package/webview/dist/static/js/async/4695.8f4b8910.js +1 -0
  61. package/webview/dist/static/js/async/4959.deb41780.js +1 -0
  62. package/webview/dist/static/js/async/509.f3e093b4.js +59 -0
  63. package/webview/dist/static/js/async/5172.e1e3bd11.js +43 -0
  64. package/webview/dist/static/js/async/535.e10ba324.js +1 -0
  65. package/webview/dist/static/js/async/5546.89da376c.js +24 -0
  66. package/webview/dist/static/js/async/5597.3018e134.js +36 -0
  67. package/webview/dist/static/js/async/5636.61075f0b.js +174 -0
  68. package/webview/dist/static/js/async/5638.7cfdcd7e.js +1 -0
  69. package/webview/dist/static/js/async/5706.d34ac064.js +1 -0
  70. package/webview/dist/static/js/async/5856.d75c4e3b.js +1 -0
  71. package/webview/dist/static/js/async/6061.7cfcc3e9.js +1 -0
  72. package/webview/dist/static/js/async/6152.d3a64904.js +1 -0
  73. package/webview/dist/static/js/async/6297.6e694780.js +1 -0
  74. package/webview/dist/static/js/async/6325.cafe9e55.js +1 -0
  75. package/webview/dist/static/js/async/6332.682f48c9.js +1 -0
  76. package/webview/dist/static/js/async/6349.e9992b47.js +56 -0
  77. package/webview/dist/static/js/async/6389.1bb952e3.js +1 -0
  78. package/webview/dist/static/js/async/6443.95da1923.js +1 -0
  79. package/webview/dist/static/js/async/6526.56ce7dc4.js +1 -0
  80. package/webview/dist/static/js/async/6600.6e0dfb69.js +1 -0
  81. package/webview/dist/static/js/async/6689.d0bd8935.js +262 -0
  82. package/webview/dist/static/js/async/6751.54c80aba.js +1 -0
  83. package/webview/dist/static/js/async/680.5aa7dcb4.js +1 -0
  84. package/webview/dist/static/js/async/6948.9cd716f4.js +1 -0
  85. package/webview/dist/static/js/async/7262.f680270f.js +88 -0
  86. package/webview/dist/static/js/async/7515.20c14480.js +1 -0
  87. package/webview/dist/static/js/async/7536.34769b35.js +1 -0
  88. package/webview/dist/static/js/async/7630.ed725458.js +1 -0
  89. package/webview/dist/static/js/async/7853.0a4b794a.js +1 -0
  90. package/webview/dist/static/js/async/8180.4d4299ef.js +1 -0
  91. package/webview/dist/static/js/async/828.56686119.js +1 -0
  92. package/webview/dist/static/js/async/8379.1b75211c.js +1 -0
  93. package/webview/dist/static/js/async/8389.4f120664.js +1 -0
  94. package/webview/dist/static/js/async/8538.d5f92d14.js +24 -0
  95. package/webview/dist/static/js/async/8560.1bdf90ec.js +1 -0
  96. package/webview/dist/static/js/async/8794.759831e8.js +60 -0
  97. package/webview/dist/static/js/async/8821.2b444259.js +29 -0
  98. package/webview/dist/static/js/async/925.548cc1b9.js +1 -0
  99. package/webview/dist/static/js/async/9252.3c22a9cd.js +1 -0
  100. package/webview/dist/static/js/async/9261.1e796956.js +1 -0
  101. package/webview/dist/static/js/async/9324.b3518ebf.js +1 -0
  102. package/webview/dist/static/js/async/9354.4425ac3c.js +1 -0
  103. package/webview/dist/static/js/async/9501.a7851380.js +4 -0
  104. package/webview/dist/static/js/async/9560.d604e606.js +166 -0
  105. package/webview/dist/static/js/async/9640.5f6a6734.js +1 -0
  106. package/webview/dist/static/js/async/9765.ecc8b5dc.js +1 -0
  107. package/webview/dist/static/js/async/9821.b1897048.js +63 -0
  108. package/webview/dist/static/js/main.7c5f914e.js +3 -0
  109. package/webview/dist/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  110. package/webview/dist/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  111. package/webview/dist/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  112. package/webview/dist/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  113. package/webview/dist/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  114. package/webview/dist/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  115. package/webview/dist/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  116. package/webview/dist/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  117. package/webview/dist/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  118. package/webview/dist/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  119. package/webview/dist/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  120. package/webview/dist/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  121. package/webview/dist/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  122. package/webview/dist/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  123. package/webview/dist/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  124. package/webview/dist/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  125. package/webview/dist/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  126. package/webview/dist/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
  127. package/webview/dist/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  128. package/webview/dist/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  129. package/webview/dist/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  130. package/webview/dist/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  131. package/webview/dist/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  132. package/webview/dist/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
  133. package/webview/dist/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  134. package/webview/dist/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  135. package/webview/dist/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  136. package/webview/dist/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  137. package/webview/dist/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  138. package/webview/dist/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  139. package/webview/dist/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
  140. package/webview/dist/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
  141. package/webview/dist/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  142. package/webview/dist/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  143. package/webview/dist/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  144. package/webview/dist/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  145. package/webview/dist/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  146. package/webview/dist/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  147. package/webview/dist/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  148. package/webview/dist/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  149. package/webview/dist/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  150. package/webview/dist/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  151. package/webview/dist/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  152. package/webview/dist/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
  153. package/webview/dist/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  154. package/webview/dist/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  155. package/webview/dist/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  156. package/webview/dist/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  157. package/webview/dist/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
  158. package/webview/dist/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  159. package/webview/dist/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  160. package/webview/dist/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  161. package/webview/dist/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  162. package/webview/dist/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  163. package/webview/dist/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  164. package/webview/dist/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  165. package/webview/dist/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  166. package/webview/dist/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  167. package/webview/dist/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  168. package/webview/dist/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
@@ -0,0 +1,158 @@
1
+ (self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[4471],{4371(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},4674(t,e,r){"use strict";e.J=function(t){if(!t)return i.BLANK_URL;var e,r=a(t.trim());do e=(r=a(r=r.replace(i.ctrlCharactersRegex,"").replace(i.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(i.htmlCtrlEntityRegex,"").replace(i.ctrlCharactersRegex,"").replace(i.whitespaceEscapeCharsRegex,"").trim())).match(i.ctrlCharactersRegex)||r.match(i.htmlEntitiesRegex)||r.match(i.htmlCtrlEntityRegex)||r.match(i.whitespaceEscapeCharsRegex);while(e&&e.length>0);var n=r;if(!n)return i.BLANK_URL;if(i.relativeFirstCharacters.indexOf(n[0])>-1)return n;var o=n.trimStart(),s=o.match(i.urlSchemeRegex);if(!s)return n;var l=s[0].toLowerCase().trim();if(i.invalidProtocolRegex.test(l))return i.BLANK_URL;var h=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return h;if("http:"===l||"https:"===l){if(!URL.canParse(h))return i.BLANK_URL;var c=new URL(h);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return h};var i=r(4371);function a(t){try{return decodeURIComponent(t)}catch(e){return t}}},9182(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",i="hour",a="week",n="month",o="quarter",s="year",l="date",h="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|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,u=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},p="en",f={};f[p]={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])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof k||!(!t||!t[g])},y=function t(e,r,i){var a;if(!e)return p;if("string"==typeof e){var n=e.toLowerCase();f[n]&&(a=n),r&&(f[n]=r,a=n);var o=e.split("-");if(!a&&o.length>1)return t(o[0])}else{var s=e.name;f[s]=e,a=s}return!i&&a&&(p=a),a||!i&&p},x=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},b={s:u,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+u(Math.floor(r/60),2,"0")+":"+u(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),a=e.clone().add(i,n),o=r-a<0,s=e.clone().add(i+(o?-1:1),n);return+(-(i+(r-a)/(o?a-s:s-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return({M:n,y:s,w:a,d:"day",D:l,h:i,m:r,s:e,ms:t,Q:o})[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};b.l=y,b.i=m,b.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function u(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=u.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(c);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(e)}(t),this.init()},p.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()},p.$utils=function(){return b},p.isValid=function(){return this.$d.toString()!==h},p.isSame=function(t,e){var r=x(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return x(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<x(t)},p.$g=function(t,e,r){return b.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,o){var h=this,c=!!b.u(o)||o,d=b.p(t),u=function(t,e){var r=b.w(h.$u?Date.UTC(h.$y,e,t):new Date(h.$y,e,t),h);return c?r:r.endOf("day")},p=function(t,e){return b.w(h.toDate()[t].apply(h.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),h)},f=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case s:return c?u(1,0):u(31,11);case n:return c?u(1,g):u(0,g+1);case a:var x=this.$locale().weekStart||0,k=(f<x?f+7:f)-x;return u(c?m-k:m+(6-k),g);case"day":case l:return p(y+"Hours",0);case i:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(a,o){var h,c=b.p(a),d="set"+(this.$u?"UTC":""),u=((h={}).day=d+"Date",h[l]=d+"Date",h[n]=d+"Month",h[s]=d+"FullYear",h[i]=d+"Hours",h[r]=d+"Minutes",h[e]=d+"Seconds",h[t]=d+"Milliseconds",h)[c],p="day"===c?this.$D+(o-this.$W):o;if(c===n||c===s){var f=this.clone().set(l,1);f.$d[u](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else u&&this.$d[u](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[b.p(t)]()},p.add=function(t,o){var l,h=this;t=Number(t);var c=b.p(o),d=function(e){var r=x(h);return b.w(r.date(r.date()+Math.round(e*t)),h)};if(c===n)return this.set(n,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return d(1);if(c===a)return d(7);var u=((l={})[r]=6e4,l[i]=36e5,l[e]=1e3,l)[c]||1,p=this.$d.getTime()+t*u;return b.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var i=t||"YYYY-MM-DDTHH:mm:ssZ",a=b.z(this),n=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,p=function(t,r,a,n){return t&&(t[r]||t(e,i))||a[r].slice(0,n)},f=function(t){return b.s(n%12||12,t,"0")},g=u||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(d,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,l,2);case"ddd":return p(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(n);case"HH":return b.s(n,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(n,o,!0);case"A":return g(n,o,!1);case"m":return String(o);case"mm":return b.s(o,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,h){var c,d=this,u=b.p(l),p=x(t),f=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return b.m(d,p)};switch(u){case s:c=m()/12;break;case n:c=m();break;case o:c=m()/3;break;case a:c=(g-f)/6048e5;break;case"day":c=(g-f)/864e5;break;case i:c=g/36e5;break;case r:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return h?c:b.a(c)},p.daysInMonth=function(){return this.endOf(n).$D},p.$locale=function(){return f[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=y(t,e,!0);return i&&(r.$L=i),r},p.clone=function(){return b.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},u}(),C=k.prototype;return x.prototype=C,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",n],["$y",s],["$D",l]].forEach(function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),x.extend=function(t,e){return t.$i||(t(e,k,x),t.$i=!0),x},x.locale=y,x.isDayjs=m,x.unix=function(t){return x(1e3*t)},x.en=f[p],x.Ls=f,x.p={},x}()},726(t,e,r){"use strict";function i(t,e,r){if(t&&t.length){let[i,a]=e,n=Math.PI/180*r,o=Math.cos(n),s=Math.sin(n);for(let e of t){let[t,r]=e;e[0]=(t-i)*o-(r-a)*s+i,e[1]=(t-i)*s+(r-a)*o+a}}}function a(t,e){var r;let a=e.hachureAngle+90,n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=n),function(t,e,r,a=1){let n=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)i(t,s,r);let l=function(t,e,r){let i=[];for(let e of t){var a,n;let t=[...e];a=t[0],n=t[t.length-1],a[0]===n[0]&&a[1]===n[1]||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of i)for(let e=0;e<t.length-1;e++){let r=t[e],i=t[e+1];if(r[1]!==i[1]){let t=Math.min(r[1],i[1]);s.push({ymin:t,ymax:Math.max(r[1],i[1]),x:t===r[1]?r[0]:i[0],islope:(i[0]-r[0])/(i[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],h=s[0].ymin,c=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>h);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:h,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=h))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||c%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,i=l[e].edge;o.push([[Math.round(r.x),h],[Math.round(i.x),h]])}h+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),c++}return o}(o,n,a);if(r){let t;for(let t of o)i(t,s,-r);t=[],l.forEach(e=>t.push(...e)),i(t,s,-r)}return l}(t,n,a,o||1)}r.d(e,{A:()=>X});class n{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=a(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends n{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let i=a(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),n=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(n),h=.5*r*Math.sin(n);for(let[t,e]of i)o([t,e])&&s.push([[t[0]-l,t[1]+h],[...e]],[[t[0]+l,t[1]-h],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends n{fillPolygons(t,e){let r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(t,i);return r.ops=r.ops.concat(a.ops),r}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=a(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);let n=i/4;for(let s of t){let t=o(s),l=Math.ceil(t/i)-1,h=t-l*i,c=(s[0][0]+s[1][0])/2-i/4,d=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=c-n+2*Math.random()*n,s=d+h+t*i-n+2*Math.random()*n,l=this.helper.ellipse(o,s,a,a,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=a(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,a=[];return t.forEach(t=>{let n=o(t),s=Math.floor(n/(r+i)),l=(n+i-s*(r+i))/2,h=t[0],c=t[1];h[0]>c[0]&&(h=t[1],c=t[0]);let d=Math.atan((c[1]-h[1])/(c[0]-h[0]));for(let t=0;t<s;t++){let n=t*(r+i),o=n+r,s=[h[0]+n*Math.cos(d)+l*Math.cos(d),h[1]+n*Math.sin(d)+l*Math.sin(d)],c=[h[0]+o*Math.cos(d)+l*Math.cos(d),h[1]+o*Math.sin(d)+l*Math.sin(d)];a.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}}),a}}class d{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?r:e.zigzagOffset,n=a(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(n,i,e)}}zigzagLines(t,e,r){let i=[];return t.forEach(t=>{let a=Math.round(o(t)/(2*e)),n=t[0],s=t[1];n[0]>s[0]&&(n=t[1],s=t[0]);let l=Math.atan((s[1]-n[1])/(s[0]-n[0]));for(let t=0;t<a;t++){let a=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),h=[n[0]+a*Math.cos(l),n[1]+a*Math.sin(l)],c=[n[0]+o*Math.cos(l),n[1]+o*Math.sin(l)],d=[h[0]+s*Math.cos(l+Math.PI/4),h[1]+s*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(h[0],h[1],d[0],d[1],r),...this.helper.doubleLineOps(d[0],d[1],c[0],c[1],r))}}),i}}let u={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let f={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),i="BOD",a=0,n=r[0];for(;2!==n.type;){let o=0,s=[];if("BOD"===i){if("M"!==n.text&&"m"!==n.text)return g("M0,0"+t);a++,o=f[n.text],i=n.text}else 1===n.type?o=f[i]:(a++,o=f[n.text],i=n.text);if(!(a+o<r.length))throw Error("Path data ended short");for(let t=a;t<a+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+i+","+e.text);s[s.length]=+e.text}if("number"!=typeof f[i])throw Error("Bad segment: "+i);{let t={key:i,data:s};e.push(t),a+=o,n=r[a],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function m(t){let e=0,r=0,i=0,a=0,n=[];for(let{key:o,data:s}of t)switch(o){case"M":n.push({key:"M",data:[...s]}),[e,r]=s,[i,a]=s;break;case"m":e+=s[0],r+=s[1],n.push({key:"M",data:[e,r]}),i=e,a=r;break;case"L":n.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],n.push({key:"L",data:[e,r]});break;case"C":n.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,i)=>i%2?t+r:t+e);n.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":n.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,i)=>i%2?t+r:t+e);n.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":n.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],n.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":n.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],n.push({key:"V",data:[r]});break;case"S":n.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,i)=>i%2?t+r:t+e);n.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":n.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],n.push({key:"T",data:[e,r]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=i,r=a}return n}function y(t){let e=[],r="",i=0,a=0,n=0,o=0,s=0,l=0;for(let{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,a]=c,[n,o]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],a=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,a]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,a]});break;case"V":a=c[0],e.push({key:"L",data:[i,a]});break;case"S":{let t=0,n=0;"C"===r||"S"===r?(t=i+(i-s),n=a+(a-l)):(t=i,n=a),e.push({key:"C",data:[t,n,...c]}),s=c[0],l=c[1],i=c[2],a=c[3];break}case"T":{let[t,n]=c,o=0,h=0;"Q"===r||"T"===r?(o=i+(i-s),h=a+(a-l)):(o=i,h=a);let d=i+2*(o-i)/3,u=a+2*(h-a)/3,p=t+2*(o-t)/3,f=n+2*(h-n)/3;e.push({key:"C",data:[d,u,p,f,t,n]}),s=o,l=h,i=t,a=n;break}case"Q":{let[t,r,n,o]=c,h=i+2*(t-i)/3,d=a+2*(r-a)/3,u=n+2*(t-n)/3,p=o+2*(r-o)/3;e.push({key:"C",data:[h,d,u,p,n,o]}),s=t,l=r,i=n,a=o;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),n=c[2],o=c[3],s=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,a,l,h,l,h]}),i=l,a=h):(i!==l||a!==h)&&((function t(e,r,i,a,n,o,s,l,h,c){let d=Math.PI*s/180,u=[],p=0,f=0,g=0,m=0;if(c)[p,f,g,m]=c;else{[e,r]=x(e,r,-d),[i,a]=x(i,a,-d);let t=(e-i)/2,s=(r-a)/2,c=t*t/(n*n)+s*s/(o*o);c>1&&(n*=c=Math.sqrt(c),o*=c);let u=n*n,y=o*o,b=(l===h?-1:1)*Math.sqrt(Math.abs((u*y-u*s*s-y*t*t)/(u*s*s+y*t*t)));g=b*n*s/o+(e+i)/2,m=-(b*o)*t/n+(r+a)/2,p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),f=Math.asin(parseFloat(((a-m)/o).toFixed(9))),e<g&&(p=Math.PI-p),i<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),h&&p>f&&(p-=2*Math.PI),!h&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){let e=f,r=i,l=a;u=t(i=g+n*Math.cos(f=h&&f>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),a=m+o*Math.sin(f),r,l,n,o,s,0,h,[f,e,g,m])}y=f-p;let b=Math.cos(p),k=Math.cos(f),C=Math.tan(y/4),w=4/3*n*C,_=4/3*o*C,S=[e,r],v=[e+w*Math.sin(p),r-_*b],A=[i+w*Math.sin(f),a-_*k],T=[i,a];if(v[0]=2*S[0]-v[0],v[1]=2*S[1]-v[1],c)return[v,A,T].concat(u);{u=[v,A,T].concat(u);let t=[];for(let e=0;e<u.length;e+=3){let r=x(u[e][0],u[e][1],d),i=x(u[e+1][0],u[e+1][1],d),a=x(u[e+2][0],u[e+2][1],d);t.push([r[0],r[1],i[0],i[1],a[0],a[1]])}return t}})(i,a,l,h,t,r,n,o,s).forEach(function(t){e.push({key:"C",data:t})}),i=l,a=h);break}case"Z":e.push({key:"Z",data:[]}),i=n,a=o}r=h}return e}function x(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let b={randOffset:function(t,e){return $(t,e)},randOffsetWithRange:function(t,e,r){return F(t,e,r)},ellipse:function(t,e,r,i,a){let n=_(r,i,a);return S(t,e,a,n).opset},doubleLineOps:function(t,e,r,i,a){return E(t,e,r,i,a,!0)}};function k(t,e,r,i,a){return{type:"path",ops:E(t,e,r,i,a)}}function C(t,e,r){let i=(t||[]).length;if(i>2){let a=[];for(let e=0;e<i-1;e++)a.push(...E(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&a.push(...E(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:a}}return 2===i?k(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function w(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,i=D(r[0],+(1+.2*e.roughness),e),a=e.disableMultiStroke?[]:D(r[0],1.5*(1+.22*e.roughness),L(e));for(let t=1;t<r.length;t++){let n=r[t];if(n.length){let t=D(n,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:D(n,1.5*(1+.22*e.roughness),L(e));for(let e of t)"move"!==e.op&&i.push(e);for(let t of r)"move"!==t.op&&a.push(t)}}return{type:"path",ops:i.concat(a)}}return{type:"path",ops:[]}}function _(t,e,r){let i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),a=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),n=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return n+=$(n*s,r),o+=$(o*s,r),{increment:a,rx:n,ry:o}}function S(t,e,r,i){let[a,n]=I(i.increment,t,e,i.rx,i.ry,1,i.increment*F(.1,F(.4,1,r),r),r),o=R(a,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[a]=I(i.increment,t,e,i.rx,i.ry,1.5,0,r),n=R(a,null,r);o=o.concat(n)}return{estimatedPoints:n,opset:{type:"path",ops:o}}}function v(t,e,r,i,a,n,o,s,l){let h=Math.abs(r/2),c=Math.abs(i/2);h+=$(.01*h,l),c+=$(.01*c,l);let d=a,u=n;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(u-d)/2),f=z(p,t,e,h,c,d,u,1,l);if(!l.disableMultiStroke){let r=z(p,t,e,h,c,d,u,1.5,l);f.push(...r)}return o&&(s?f.push(...E(t,e,t+h*Math.cos(d),e+c*Math.sin(d),l),...E(t,e,t+h*Math.cos(u),e+c*Math.sin(u),l)):f.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+h*Math.cos(d),e+c*Math.sin(d)]})),{type:"path",ops:f}}function A(t,e){let r=y(m(g(t))),i=[],a=[0,0],n=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":n=[o[0],o[1]],a=[o[0],o[1]];break;case"L":i.push(...E(n[0],n[1],o[0],o[1],e)),n=[o[0],o[1]];break;case"C":{let[t,r,a,s,l,h]=o;i.push(...function(t,e,r,i,a,n,o,s){let l=[],h=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],d=s.disableMultiStroke?1:2,u=s.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(u?0:$(h[0],s)),o[1]+(u?0:$(h[0],s))]}),c=u?[a,n]:[a+$(h[p],s),n+$(h[p],s)],l.push({op:"bcurveTo",data:[t+$(h[p],s),e+$(h[p],s),r+$(h[p],s),i+$(h[p],s),c[0],c[1]]});return l}(t,r,a,s,l,h,n,e)),n=[l,h];break}case"Z":i.push(...E(n[0],n[1],a[0],a[1],e)),n=[a[0],a[1]]}return{type:"path",ops:i}}function T(t,e){let r=[];for(let i of t)if(i.length){let t=e.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+$(t,e),i[0][1]+$(t,e)]});for(let n=1;n<a;n++)r.push({op:"lineTo",data:[i[n][0]+$(t,e),i[n][1]+$(t,e)]})}}return{type:"fillPath",ops:r}}function B(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!u[r])switch(r){case"zigzag":u[r]||(u[r]=new s(e));break;case"cross-hatch":u[r]||(u[r]=new l(e));break;case"dots":u[r]||(u[r]=new h(e));break;case"dashed":u[r]||(u[r]=new c(e));break;case"zigzag-line":u[r]||(u[r]=new d(e));break;default:u[r="hachure"]||(u[r]=new n(e))}return u[r]})(e,b).fillPolygons(t,e)}function L(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function M(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function F(t,e,r,i=1){return r.roughness*i*(M(r)*(e-t)+t)}function $(t,e,r=1){return F(-t,t,e,r)}function E(t,e,r,i,a,n=!1){let o=n?a.disableMultiStrokeFill:a.disableMultiStroke,s=O(t,e,r,i,a,!0,!1);if(o)return s;let l=O(t,e,r,i,a,!0,!0);return s.concat(l)}function O(t,e,r,i,a,n,o){let s=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(s),h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=a.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);let d=c/2,u=.2+.2*M(a),p=a.bowing*a.maxRandomnessOffset*(i-e)/200,f=a.bowing*a.maxRandomnessOffset*(t-r)/200;p=$(p,a,h),f=$(f,a,h);let g=[],m=a.preserveVertices;return n&&(o?g.push({op:"move",data:[t+(m?0:$(d,a,h)),e+(m?0:$(d,a,h))]}):g.push({op:"move",data:[t+(m?0:$(c,a,h)),e+(m?0:$(c,a,h))]})),o?g.push({op:"bcurveTo",data:[p+t+(r-t)*u+$(d,a,h),f+e+(i-e)*u+$(d,a,h),p+t+2*(r-t)*u+$(d,a,h),f+e+2*(i-e)*u+$(d,a,h),r+(m?0:$(d,a,h)),i+(m?0:$(d,a,h))]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*u+$(c,a,h),f+e+(i-e)*u+$(c,a,h),p+t+2*(r-t)*u+$(c,a,h),f+e+2*(i-e)*u+$(c,a,h),r+(m?0:$(c,a,h)),i+(m?0:$(c,a,h))]}),g}function D(t,e,r){if(!t.length)return[];let i=[];i.push([t[0][0]+$(e,r),t[0][1]+$(e,r)]),i.push([t[0][0]+$(e,r),t[0][1]+$(e,r)]);for(let a=1;a<t.length;a++)i.push([t[a][0]+$(e,r),t[a][1]+$(e,r)]),a===t.length-1&&i.push([t[a][0]+$(e,r),t[a][1]+$(e,r)]);return R(i,null,r)}function R(t,e,r){let i=t.length,a=[];if(i>3){let n=[],o=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){let r=t[e];n[0]=[r[0],r[1]],n[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],n[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],n[3]=[t[e+1][0],t[e+1][1]],a.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[3][0],n[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;a.push({op:"lineTo",data:[e[0]+$(t,r),e[1]+$(t,r)]})}}else 3===i?(a.push({op:"move",data:[t[1][0],t[1][1]]}),a.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&a.push(...O(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return a}function I(t,e,r,i,a,n,o,s){let l=[],h=[];if(0===s.roughness){t/=4,h.push([e+i*Math.cos(-t),r+a*Math.sin(-t)]);for(let n=0;n<=2*Math.PI;n+=t){let t=[e+i*Math.cos(n),r+a*Math.sin(n)];l.push(t),h.push(t)}h.push([e+ +i,r+0*a]),h.push([e+i*Math.cos(t),r+a*Math.sin(t)])}else{let c=$(.5,s)-Math.PI/2;h.push([$(n,s)+e+.9*i*Math.cos(c-t),$(n,s)+r+.9*a*Math.sin(c-t)]);let d=2*Math.PI+c-.01;for(let o=c;o<d;o+=t){let t=[$(n,s)+e+i*Math.cos(o),$(n,s)+r+a*Math.sin(o)];l.push(t),h.push(t)}h.push([$(n,s)+e+i*Math.cos(c+2*Math.PI+.5*o),$(n,s)+r+a*Math.sin(c+2*Math.PI+.5*o)]),h.push([$(n,s)+e+.98*i*Math.cos(c+o),$(n,s)+r+.98*a*Math.sin(c+o)]),h.push([$(n,s)+e+.9*i*Math.cos(c+.5*o),$(n,s)+r+.9*a*Math.sin(c+.5*o)])}return[h,l]}function z(t,e,r,i,a,n,o,s,l){let h=n+$(.1,l),c=[];c.push([$(s,l)+e+.9*i*Math.cos(h-t),$(s,l)+r+.9*a*Math.sin(h-t)]);for(let n=h;n<=o;n+=t)c.push([$(s,l)+e+i*Math.cos(n),$(s,l)+r+a*Math.sin(n)]);return c.push([e+i*Math.cos(o),r+a*Math.sin(o)]),c.push([e+i*Math.cos(o),r+a*Math.sin(o)]),R(c,null,l)}function K(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let i=[];if(3===r)i.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let a=[],n=1-e;i.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];a[0]=[e[0],e[1]],a[1]=[e[0]+(n*r[t+1][0]-n*r[t-1][0])/6,e[1]+(n*r[t+1][1]-n*r[t-1][1])/6],a[2]=[r[t+1][0]+(n*r[t][0]-n*r[t+2][0])/6,r[t+1][1]+(n*r[t][1]-n*r[t+2][1])/6],a[3]=[r[t+1][0],r[t+1][1]],i.push(a[1],a[2],a[3])}}return i}function P(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function q(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function N(t,e,r,i,a){let n=a||[],o=t[e],s=t[r-1],l=0,h=1;for(let i=e+1;i<r-1;++i){let e=function(t,e,r){let i=P(e,r);if(0===i)return P(t,e);let a=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return P(t,q(e,r,a=Math.max(0,Math.min(1,a))))}(t[i],o,s);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(N(t,e,h+1,i,n),N(t,h,r,i,n)):(n.length||n.push(o),n.push(s)),n}function j(t,e=.15,r){let i=[],a=(t.length-1)/3;for(let r=0;r<a;r++)!function t(e,r,i,a){let n,o,s,l,h,c,d,u,p=a||[];if(n=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],h=3*o[0]-2*n[0]-l[0],h*=h,c=3*o[1]-2*n[1]-l[1],c*=c,d=3*s[0]-2*l[0]-n[0],d*=d,u=3*s[1]-2*l[1]-n[1],u*=u,h<d&&(h=d),c<u&&(c=u),h+c<i){let t=e[r+0];p.length?Math.sqrt(P(p[p.length-1],t))>1&&p.push(t):p.push(t),p.push(e[r+3])}else{let a=e[r+0],n=e[r+1],o=e[r+2],s=e[r+3],l=q(a,n,.5),h=q(n,o,.5),c=q(o,s,.5),d=q(l,h,.5),u=q(h,c,.5),f=q(d,u,.5);t([a,l,d,f],0,i,p),t([f,u,c,s],0,i,p)}return p}(t,3*r,e,i);return r&&r>0?N(i,0,i.length,r):i}let W="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,a){let n=this._o(a);return this._d("line",[k(t,e,r,i,n)],n)}rectangle(t,e,r,i,a){var n,o,s,l;let h=this._o(a),c=[],d=C([[n=t,o=e],[n+(s=r),o],[n+s,o+(l=i)],[n,o+l]],!0,h);if(h.fill){let a=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===h.fillStyle?c.push(T([a],h)):c.push(B([a],h))}return h.stroke!==W&&c.push(d),this._d("rectangle",c,h)}ellipse(t,e,r,i,a){let n=this._o(a),o=[],s=_(r,i,n),l=S(t,e,n,s);if(n.fill)if("solid"===n.fillStyle){let r=S(t,e,n,s).opset;r.type="fillPath",o.push(r)}else o.push(B([l.estimatedPoints],n));return n.stroke!==W&&o.push(l.opset),this._d("ellipse",o,n)}circle(t,e,r,i){let a=this.ellipse(t,e,r,r,i);return a.shape="circle",a}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[C(t,!1,r)],r)}arc(t,e,r,i,a,n,o=!1,s){let l=this._o(s),h=[],c=v(t,e,r,i,a,n,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=v(t,e,r,i,a,n,!0,!1,o);s.type="fillPath",h.push(s)}else h.push(function(t,e,r,i,a,n,o){let s=Math.abs(r/2),l=Math.abs(i/2);s+=$(.01*s,o),l+=$(.01*l,o);let h=a,c=n;for(;h<0;)h+=2*Math.PI,c+=2*Math.PI;c-h>2*Math.PI&&(h=0,c=2*Math.PI);let d=(c-h)/o.curveStepCount,u=[];for(let r=h;r<=c;r+=d)u.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return u.push([t+s*Math.cos(c),e+l*Math.sin(c)]),u.push([t,e]),B([u],o)}(t,e,r,i,a,n,l));return l.stroke!==W&&h.push(c),this._d("arc",h,l)}curve(t,e){let r=this._o(e),i=[],a=w(t,r);if(r.fill&&r.fill!==W)if("solid"===r.fillStyle){let e=w(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let i of"number"==typeof t[0][0]?[t]:t)i.length<3?e.push(...i):3===i.length?e.push(...j(K([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...j(K(i),10,(1+r.roughness)/2));e.length&&i.push(B([e],r))}return r.stroke!==W&&i.push(a),this._d("curve",i,r)}polygon(t,e){let r=this._o(e),i=[],a=C(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(T([t],r)):i.push(B([t],r))),r.stroke!==W&&i.push(a),this._d("polygon",i,r)}path(t,e){let r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=r.fill&&"transparent"!==r.fill&&r.fill!==W,n=r.stroke!==W,o=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=y(m(g(t))),i=[],a=[],n=[0,0],o=[],s=()=>{o.length>=4&&a.push(...j(o,1)),o=[]},l=()=>{s(),a.length&&(i.push(a),a=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),n=[e[0],e[1]],a.push(n);break;case"L":s(),a.push([e[0],e[1]]);break;case"C":if(!o.length){let t=a.length?a[a.length-1]:n;o.push([t[0],t[1]])}o.push([e[0],e[1]]),o.push([e[2],e[3]]),o.push([e[4],e[5]]);break;case"Z":s(),a.push([n[0],n[1]])}if(l(),!e)return i;let h=[];for(let t of i){let r=N(t,0,t.length,e);r.length&&h.push(r)}return h}(t,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=A(t,r);if(a)if("solid"===r.fillStyle)if(1===s.length){let e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(T(s,r));else i.push(B(s,r));return n&&(o?s.forEach(t=>{i.push(C(t,!1,r))}):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(let i of t.ops){let t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:W};break;case"fillPath":e={d:this.opsToPath(t),stroke:W,strokeWidth:0,fill:r.fill||W};break;case"fillSketch":e=this.fillSketch(t,r)}e&&i.push(e)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||W,strokeWidth:r,fill:W}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class G{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(let n of e)switch(n.type){case"path":i.save(),i.strokeStyle="none"===r.stroke?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,n,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(i,n,a,e),i.restore();break}case"fillSketch":this.fillSketch(i,n,r)}}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,i="nonzero"){for(let i of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?i.data.map(t=>+t.toFixed(r)):i.data;switch(i.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,i,a){let n=this.gen.line(t,e,r,i,a);return this.draw(n),n}rectangle(t,e,r,i,a){let n=this.gen.rectangle(t,e,r,i,a);return this.draw(n),n}ellipse(t,e,r,i,a){let n=this.gen.ellipse(t,e,r,i,a);return this.draw(n),n}circle(t,e,r,i){let a=this.gen.circle(t,e,r,i);return this.draw(a),a}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,i,a,n,o=!1,s){let l=this.gen.arc(t,e,r,i,a,n,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let Y="http://www.w3.org/2000/svg";class U{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(Y,"g"),n=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(o,n)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(o,n)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,o,r)}e&&a.appendChild(e)}return a}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);let a=t.createElementNS(Y,"path");return a.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,a){let n=this.gen.line(t,e,r,i,a);return this.draw(n)}rectangle(t,e,r,i,a){let n=this.gen.rectangle(t,e,r,i,a);return this.draw(n)}ellipse(t,e,r,i,a){let n=this.gen.ellipse(t,e,r,i,a);return this.draw(n)}circle(t,e,r,i){let a=this.gen.circle(t,e,r,i);return this.draw(a)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,a,n,o=!1,s){let l=this.gen.arc(t,e,r,i,a,n,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var X={canvas:(t,e)=>new G(t,e),svg:(t,e)=>new U(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},6040(t,e,r){"use strict";r.d(e,{Lt:()=>P});var i="http://www.w3.org/1999/xhtml",a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function n(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),a.hasOwnProperty(e)?{space:a[e],local:t}:t}function o(t){var e=n(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===i&&e.documentElement.namespaceURI===i?e.createElement(t):e.createElementNS(r,t)}})(e)}function s(){}function l(t){return null==t?s:function(){return this.querySelector(t)}}function h(){return[]}function c(t){return function(e){return e.matches(t)}}var d=Array.prototype.find;function u(){return this.firstElementChild}var p=Array.prototype.filter;function f(){return Array.from(this.children)}function g(t){return Array(t.length)}function m(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function y(t,e,r,i,a,n){for(var o,s=0,l=e.length,h=n.length;s<h;++s)(o=e[s])?(o.__data__=n[s],i[s]=o):r[s]=new m(t,n[s]);for(;s<l;++s)(o=e[s])&&(a[s]=o)}function x(t,e,r,i,a,n,o){var s,l,h,c=new Map,d=e.length,u=n.length,p=Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=h=o.call(l,l.__data__,s,e)+"",c.has(h)?a[s]=l:c.set(h,l));for(s=0;s<u;++s)h=o.call(t,n[s],s,n)+"",(l=c.get(h))?(i[s]=l,l.__data__=n[s],c.delete(h)):r[s]=new m(t,n[s]);for(s=0;s<d;++s)(l=e[s])&&c.get(p[s])===l&&(a[s]=l)}function b(t){return t.__data__}function k(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function C(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function w(t){return t.trim().split(/^|\s+/)}function _(t){return t.classList||new S(t)}function S(t){this._node=t,this._names=w(t.getAttribute("class")||"")}function v(t,e){for(var r=_(t),i=-1,a=e.length;++i<a;)r.add(e[i])}function A(t,e){for(var r=_(t),i=-1,a=e.length;++i<a;)r.remove(e[i])}function T(){this.textContent=""}function B(){this.innerHTML=""}function L(){this.nextSibling&&this.parentNode.appendChild(this)}function M(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function F(){return null}function $(){var t=this.parentNode;t&&t.removeChild(this)}function E(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function O(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function D(t){return function(){var e=this.__on;if(e){for(var r,i=0,a=-1,n=e.length;i<n;++i)(r=e[i],t.type&&r.type!==t.type||r.name!==t.name)?e[++a]=r:this.removeEventListener(r.type,r.listener,r.options);++a?e.length=a:delete this.__on}}}function R(t,e,r){return function(){var i,a=this.__on,n=function(t){e.call(this,t,this.__data__)};if(a){for(var o=0,s=a.length;o<s;++o)if((i=a[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=n,i.options=r),i.value=e;return}}this.addEventListener(t.type,n,r),i={type:t.type,name:t.name,value:e,listener:n,options:r},a?a.push(i):this.__on=[i]}}function I(t,e,r){var i=C(t),a=i.CustomEvent;"function"==typeof a?a=new a(e,r):(a=i.document.createEvent("Event"),r?(a.initEvent(e,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}m.prototype={constructor:m,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)}},S.prototype={add:function(t){0>this._names.indexOf(t)&&(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}};var z=[null];function K(t,e){this._groups=t,this._parents=e}function P(t){return"string"==typeof t?new K([[document.querySelector(t)]],[document.documentElement]):new K([[t]],z)}K.prototype=(function(){return new K([[document.documentElement]],z)}).prototype={constructor:K,select:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,r=e.length,i=Array(r),a=0;a<r;++a)for(var n,o,s=e[a],h=s.length,c=i[a]=Array(h),d=0;d<h;++d)(n=s[d])&&(o=t.call(n,n.__data__,d,s))&&("__data__"in n&&(o.__data__=n.__data__),c[d]=o);return new K(i,this._parents)},selectAll:function(t){"function"==typeof t?(o=t,t=function(){var t;return t=o.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}):t=null==(s=t)?h:function(){return this.querySelectorAll(s)};for(var e=this._groups,r=e.length,i=[],a=[],n=0;n<r;++n)for(var o,s,l,c=e[n],d=c.length,u=0;u<d;++u)(l=c[u])&&(i.push(t.call(l,l.__data__,u,c)),a.push(l));return new K(i,a)},selectChild:function(t){var e;return this.select(null==t?u:(e="function"==typeof t?t:c(t),function(){return d.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?f:(e="function"==typeof t?t:c(t),function(){return p.call(this.children,e)}))},filter:function(t){var e;"function"!=typeof t&&(e=t,t=function(){return this.matches(e)});for(var r=this._groups,i=r.length,a=Array(i),n=0;n<i;++n)for(var o,s=r[n],l=s.length,h=a[n]=[],c=0;c<l;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&h.push(o);return new K(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,b);var r=e?x:y,i=this._parents,a=this._groups;"function"!=typeof t&&(C=t,t=function(){return C});for(var n=a.length,o=Array(n),s=Array(n),l=Array(n),h=0;h<n;++h){var c=i[h],d=a[h],u=d.length,p="object"==typeof(k=t.call(c,c&&c.__data__,h,i))&&"length"in k?k:Array.from(k),f=p.length,g=s[h]=Array(f),m=o[h]=Array(f);r(c,d,g,m,l[h]=Array(u),p,e);for(var k,C,w,_,S=0,v=0;S<f;++S)if(w=g[S]){for(S>=v&&(v=S+1);!(_=m[v])&&++v<f;);w._next=_||null}}return(o=new K(o,i))._enter=s,o._exit=l,o},enter:function(){return new K(this._enter||this._groups.map(g),this._parents)},exit:function(){return new K(this._exit||this._groups.map(g),this._parents)},join:function(t,e,r){var i=this.enter(),a=this,n=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(a=e(a))&&(a=a.selection()),null==r?n.remove():r(n),i&&a?i.merge(a).order():a},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,a=r.length,n=i.length,o=Math.min(a,n),s=Array(a),l=0;l<o;++l)for(var h,c=r[l],d=i[l],u=c.length,p=s[l]=Array(u),f=0;f<u;++f)(h=c[f]||d[f])&&(p[f]=h);for(;l<a;++l)s[l]=r[l];return new K(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i,a=t[e],n=a.length-1,o=a[n];--n>=0;)(i=a[n])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=k);for(var r=this._groups,i=r.length,a=Array(i),n=0;n<i;++n){for(var o,s=r[n],l=s.length,h=a[n]=Array(l),c=0;c<l;++c)(o=s[c])&&(h[c]=o);h.sort(e)}return new K(a,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 i=t[e],a=0,n=i.length;a<n;++a){var o=i[a];if(o)return o}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var a,n=e[r],o=0,s=n.length;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this},attr:function(t,e){var r=n(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?r.local?function(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)}}:function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}:r.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(r,e))},style:function(t,e,r){var i,a;return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):(i=this.node(),a=t,i.style.getPropertyValue(a)||C(i).getComputedStyle(i,null).getPropertyValue(a))},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=w(t+"");if(arguments.length<2){for(var i=_(this.node()),a=-1,n=r.length;++a<n;)if(!i.contains(r[a]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?v:A)(this,t)}}:e?function(t){return function(){v(this,t)}}:function(t){return function(){A(this,t)}})(r,e))},text:function(t){return arguments.length?this.each(null==t?T:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?B:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(L)},lower:function(){return this.each(M)},append:function(t){var e="function"==typeof t?t:o(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:o(t),i=null==e?F:"function"==typeof e?e:l(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each($)},clone:function(t){return this.select(t?O:E)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var i,a,n=(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}}),o=n.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,h=0,c=s.length;h<c;++h)for(i=0,l=s[h];i<o;++i)if((a=n[i]).type===l.type&&a.name===l.name)return l.value}return}for(i=0,s=e?R:D;i<o;++i)this.each(s(n[i],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return I(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return I(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i,a=t[e],n=0,o=a.length;n<o;++n)(i=a[n])&&(yield i)}};var q=0;function N(){this._="@"+(++q).toString(36)}N.prototype=(function(){return new N}).prototype={constructor:N,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},2631(t,e,r){"use strict";r.d(e,{JL:()=>B,qr:()=>H,Yu:()=>Y,IA:()=>X,Wi:()=>P,PG:()=>q,OE:()=>Q,y8:()=>te,ol:()=>ti,Ir:()=>tn,oD:()=>tl,Q7:()=>tc,cV:()=>tu,lU:()=>F,Lx:()=>tf,nV:()=>tC,ux:()=>tw,Xf:()=>tv,GZ:()=>tT,UP:()=>tL,dy:()=>tB,n8:()=>O,rL:()=>I});let i=Math.PI,a=2*i,n=a-1e-6;function o(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function s(t,e,r,i){return t===r&&e===i}class l{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?o:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return o;let r=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t),this._equal=null==t?s:function(t){let e=Math.floor(t);if(!(e<=15))return s;let r=10**e,i=function(t){return Math.round(t*r)};return function(t,e,r,a){return i(t)===i(r)&&i(e)===i(a)}}(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,i){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,e,r,i,a,n){this._append`C${+t},${+e},${+r},${+i},${this._x1=+a},${this._y1=+n}`}arcTo(t,e,r,a,n){if(t*=1,e*=1,r*=1,a*=1,(n*=1)<0)throw Error(`negative radius: ${n}`);let o=this._x1,s=this._y1,l=r-t,h=a-e,c=o-t,d=s-e,u=c*c+d*d;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(u>1e-6)if(Math.abs(d*l-h*c)>1e-6&&n){let p=r-o,f=a-s,g=l*l+h*h,m=Math.sqrt(g),y=Math.sqrt(u),x=n*Math.tan((i-Math.acos((g+u-(p*p+f*f))/(2*m*y)))/2),b=x/y,k=x/m;Math.abs(b-1)>1e-6&&this._append`L${t+b*c},${e+b*d}`,this._append`A${n},${n},0,0,${+(d*p>c*f)},${this._x1=t+k*l},${this._y1=e+k*h}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,o,s,l){if(t*=1,e*=1,r*=1,l=!!l,r<0)throw Error(`negative radius: ${r}`);let h=r*Math.cos(o),c=r*Math.sin(o),d=t+h,u=e+c,p=1^l,f=l?o-s:s-o;if(null===this._x1?this._append`M${d},${u}`:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-u)>1e-6)&&this._append`L${d},${u}`,r){if(f<0&&(f=f%a+a),f>n)this._append`A${r},${r},0,1,${p},${t-h},${e-c}A${r},${r},0,1,${p},${this._x1=d},${this._y1=u}`;else if(f>1e-6){let a=t+r*Math.cos(s),n=e+r*Math.sin(s);if(f>=i&&this._equal(d,u,a,n)){let a=o+(f/=2);this._append`A${r},${r},0,${+(f>=i)},${p},${t+r*Math.cos(a)},${e+r*Math.sin(a)}`}this._append`A${r},${r},0,${+(f>=i)},${p},${this._x1=a},${this._y1=n}`}}}rect(t,e,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+i}h${-r}Z`}toString(){return this._}}function h(t){return function(){return t}}l.prototype;let c=Math.abs,d=Math.atan2,u=Math.cos,p=Math.max,f=Math.min,g=Math.sin,m=Math.sqrt,y=Math.PI,x=y/2,b=2*y;function k(t){return t>=1?x:t<=-1?-x:Math.asin(t)}function C(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new l(e)}function w(t){return t.innerRadius}function _(t){return t.outerRadius}function S(t){return t.startAngle}function v(t){return t.endAngle}function A(t){return t&&t.padAngle}function T(t,e,r,i,a,n,o){var s=t-r,l=e-i,h=(o?n:-n)/m(s*s+l*l),c=h*l,d=-h*s,u=t+c,f=e+d,g=r+c,y=i+d,x=(u+g)/2,b=(f+y)/2,k=g-u,C=y-f,w=k*k+C*C,_=a-n,S=u*y-g*f,v=(C<0?-1:1)*m(p(0,_*_*w-S*S)),A=(S*C-k*v)/w,T=(-S*k-C*v)/w,B=(S*C+k*v)/w,L=(-S*k+C*v)/w,M=A-x,F=T-b,$=B-x,E=L-b;return M*M+F*F>$*$+E*E&&(A=B,T=L),{cx:A,cy:T,x01:-c,y01:-d,x11:A*(a/_-1),y11:T*(a/_-1)}}function B(){var t=w,e=_,r=h(0),i=null,a=S,n=v,o=A,s=null,l=C(p);function p(){var h,p,C=+t.apply(this,arguments),w=+e.apply(this,arguments),_=a.apply(this,arguments)-x,S=n.apply(this,arguments)-x,v=c(S-_),A=S>_;if(s||(s=h=l()),w<C&&(p=w,w=C,C=p),w>1e-12)if(v>b-1e-12)s.moveTo(w*u(_),w*g(_)),s.arc(0,0,w,_,S,!A),C>1e-12&&(s.moveTo(C*u(S),C*g(S)),s.arc(0,0,C,S,_,A));else{var B,L,M=_,F=S,$=_,E=S,O=v,D=v,R=o.apply(this,arguments)/2,I=R>1e-12&&(i?+i.apply(this,arguments):m(C*C+w*w)),z=f(c(w-C)/2,+r.apply(this,arguments)),K=z,P=z;if(I>1e-12){var q=k(I/C*g(R)),N=k(I/w*g(R));(O-=2*q)>1e-12?(q*=A?1:-1,$+=q,E-=q):(O=0,$=E=(_+S)/2),(D-=2*N)>1e-12?(N*=A?1:-1,M+=N,F-=N):(D=0,M=F=(_+S)/2)}var j=w*u(M),W=w*g(M),H=C*u(E),G=C*g(E);if(z>1e-12){var Y,U=w*u(F),X=w*g(F),Z=C*u($),V=C*g($);if(v<y)if(Y=function(t,e,r,i,a,n,o,s){var l=r-t,h=i-e,c=o-a,d=s-n,u=d*l-c*h;if(!(u*u<1e-12))return u=(c*(e-n)-d*(t-a))/u,[t+u*l,e+u*h]}(j,W,Z,V,U,X,H,G)){var Q,J=j-Y[0],tt=W-Y[1],te=U-Y[0],tr=X-Y[1],ti=1/g(((Q=(J*te+tt*tr)/(m(J*J+tt*tt)*m(te*te+tr*tr)))>1?0:Q<-1?y:Math.acos(Q))/2),ta=m(Y[0]*Y[0]+Y[1]*Y[1]);K=f(z,(C-ta)/(ti-1)),P=f(z,(w-ta)/(ti+1))}else K=P=0}D>1e-12?P>1e-12?(B=T(Z,V,j,W,w,P,A),L=T(U,X,H,G,w,P,A),s.moveTo(B.cx+B.x01,B.cy+B.y01),P<z?s.arc(B.cx,B.cy,P,d(B.y01,B.x01),d(L.y01,L.x01),!A):(s.arc(B.cx,B.cy,P,d(B.y01,B.x01),d(B.y11,B.x11),!A),s.arc(0,0,w,d(B.cy+B.y11,B.cx+B.x11),d(L.cy+L.y11,L.cx+L.x11),!A),s.arc(L.cx,L.cy,P,d(L.y11,L.x11),d(L.y01,L.x01),!A))):(s.moveTo(j,W),s.arc(0,0,w,M,F,!A)):s.moveTo(j,W),C>1e-12&&O>1e-12?K>1e-12?(B=T(H,G,U,X,C,-K,A),L=T(j,W,Z,V,C,-K,A),s.lineTo(B.cx+B.x01,B.cy+B.y01),K<z?s.arc(B.cx,B.cy,K,d(B.y01,B.x01),d(L.y01,L.x01),!A):(s.arc(B.cx,B.cy,K,d(B.y01,B.x01),d(B.y11,B.x11),!A),s.arc(0,0,C,d(B.cy+B.y11,B.cx+B.x11),d(L.cy+L.y11,L.cx+L.x11),A),s.arc(L.cx,L.cy,K,d(L.y11,L.x11),d(L.y01,L.x01),!A))):s.arc(0,0,C,E,$,A):s.lineTo(H,G)}else s.moveTo(0,0);if(s.closePath(),h)return s=null,h+""||null}return p.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+a.apply(this,arguments)+ +n.apply(this,arguments))/2-y/2;return[u(i)*r,g(i)*r]},p.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:h(+e),p):t},p.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:h(+t),p):e},p.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:h(+t),p):r},p.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:h(+t),p):i},p.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:h(+t),p):a},p.endAngle=function(t){return arguments.length?(n="function"==typeof t?t:h(+t),p):n},p.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:h(+t),p):o},p.context=function(t){return arguments.length?(s=null==t?null:t,p):s},p}function L(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function M(t){this._context=t}function F(t){return new M(t)}function $(t){return t[0]}function E(t){return t[1]}function O(t,e){var r=h(!0),i=null,a=F,n=null,o=C(s);function s(s){var l,h,c,d=(s=L(s)).length,u=!1;for(null==i&&(n=a(c=o())),l=0;l<=d;++l)!(l<d&&r(h=s[l],l,s))===u&&((u=!u)?n.lineStart():n.lineEnd()),u&&n.point(+t(h,l,s),+e(h,l,s));if(c)return n=null,c+""||null}return t="function"==typeof t?t:void 0===t?$:h(t),e="function"==typeof e?e:void 0===e?E:h(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:h(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:h(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:h(!!t),s):r},s.curve=function(t){return arguments.length?(a=t,null!=i&&(n=a(i)),s):a},s.context=function(t){return arguments.length?(null==t?i=n=null:n=a(i=t),s):i},s}function D(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function R(t){return t}function I(){var t=R,e=D,r=null,i=h(0),a=h(b),n=h(0);function o(o){var s,l,h,c,d,u=(o=L(o)).length,p=0,f=Array(u),g=Array(u),m=+i.apply(this,arguments),y=Math.min(b,Math.max(-b,a.apply(this,arguments)-m)),x=Math.min(Math.abs(y)/u,n.apply(this,arguments)),k=x*(y<0?-1:1);for(s=0;s<u;++s)(d=g[f[s]=s]=+t(o[s],s,o))>0&&(p+=d);for(null!=e?f.sort(function(t,r){return e(g[t],g[r])}):null!=r&&f.sort(function(t,e){return r(o[t],o[e])}),s=0,h=p?(y-u*k)/p:0;s<u;++s,m=c)c=m+((d=g[l=f[s]])>0?d*h:0)+k,g[l]={data:o[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:x};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:h(+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?(i="function"==typeof t?t:h(+t),o):i},o.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:h(+t),o):a},o.padAngle=function(t){return arguments.length?(n="function"==typeof t?t:h(+t),o):n},o}function z(t){this._curve=t}Array.prototype.slice,M.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*=1,e*=1,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)}}},V=F,z.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),-(e*Math.cos(t)))}};class K{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*=1,e*=1,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 P(t){return new K(t,!0)}function q(t){return new K(t,!1)}function N(){}function j(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 W(t){this._context=t}function H(t){return new W(t)}function G(t){this._context=t}function Y(t){return new G(t)}function U(t){this._context=t}function X(t){return new U(t)}function Z(t,e){this._basis=new W(t),this._beta=e}m(3),m(1/3),g(y/10),g(7*y/10),g(b/10),u(b/10),m(3),m(3),m(3),m(12),W.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:j(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*=1,e*=1,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:j(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},G.prototype={areaStart:N,areaEnd:N,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*=1,e*=1,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:j(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},U.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*=1,e*=1,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,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:j(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Z.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 i,a=t[0],n=e[0],o=t[r]-a,s=e[r]-n,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+i*o),this._beta*e[l]+(1-this._beta)*(n+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var V,Q=function t(e){function r(t){return 1===e?new W(t):new Z(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function J(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 tt(t,e){this._context=t,this._k=(1-e)/6}tt.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:J(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*=1,e*=1,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:J(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 te=function t(e){function r(t){return new tt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function tr(t,e){this._context=t,this._k=(1-e)/6}tr.prototype={areaStart:N,areaEnd:N,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*=1,e*=1,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:J(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 ti=function t(e){function r(t){return new tr(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ta(t,e){this._context=t,this._k=(1-e)/6}ta.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*=1,e*=1,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:J(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 tn=function t(e){function r(t){return new ta(t,e)}return r.tension=function(e){return t(+e)},r}(0);function to(t,e,r){var i=t._x1,a=t._y1,n=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,a=(a*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);n=(n*h+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,a,n,o,t._x2,t._y2)}function ts(t,e){this._context=t,this._alpha=e}ts.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*=1,e*=1,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:to(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 tl=function t(e){function r(t){return e?new ts(t,e):new tt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function th(t,e){this._context=t,this._alpha=e}th.prototype={areaStart:N,areaEnd:N,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*=1,e*=1,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:to(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 tc=function t(e){function r(t){return e?new th(t,e):new tr(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function td(t,e){this._context=t,this._alpha=e}td.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*=1,e*=1,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:to(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 tu=function t(e){function r(t){return e?new td(t,e):new ta(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function tp(t){this._context=t}function tf(t){return new tp(t)}function tg(t,e,r){var i=t._x1-t._x0,a=e-t._x1,n=(t._y1-t._y0)/(i||a<0&&-0),o=(r-t._y1)/(a||i<0&&-0);return((n<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(n),Math.abs(o),.5*Math.abs((n*a+o*i)/(i+a)))||0}function tm(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ty(t,e,r){var i=t._x0,a=t._y0,n=t._x1,o=t._y1,s=(n-i)/3;t._context.bezierCurveTo(i+s,a+s*e,n-s,o-s*r,n,o)}function tx(t){this._context=t}function tb(t){this._context=new tk(t)}function tk(t){this._context=t}function tC(t){return new tx(t)}function tw(t){return new tb(t)}function t_(t){this._context=t}function tS(t){var e,r,i=t.length-1,a=Array(i),n=Array(i),o=Array(i);for(a[0]=0,n[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)a[e]=1,n[e]=4,o[e]=4*t[e]+2*t[e+1];for(a[i-1]=2,n[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=a[e]/n[e-1],n[e]-=r,o[e]-=r*o[e-1];for(a[i-1]=o[i-1]/n[i-1],e=i-2;e>=0;--e)a[e]=(o[e]-a[e+1])/n[e];for(e=0,n[i-1]=(t[i]+a[i-1])/2;e<i-1;++e)n[e]=2*t[e+1]-a[e+1];return[a,n]}function tv(t){return new t_(t)}function tA(t,e){this._context=t,this._t=e}function tT(t){return new tA(t,.5)}function tB(t){return new tA(t,0)}function tL(t){return new tA(t,1)}tp.prototype={areaStart:N,areaEnd:N,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},tx.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:ty(this,this._t0,tm(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*=1,(t*=1)!==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,ty(this,tm(this,r=tg(this,t,e)),r);break;default:ty(this,this._t0,r=tg(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(tb.prototype=Object.create(tx.prototype)).point=function(t,e){tx.prototype.point.call(this,e,t)},tk.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,i,a,n){this._context.bezierCurveTo(e,t,i,r,n,a)}},t_.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 i=tS(t),a=tS(e),n=0,o=1;o<r;++n,++o)this._context.bezierCurveTo(i[0][n],a[0][n],i[1][n],a[1][n],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)}},tA.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*=1,e*=1,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}}},3064(t,e,r){"use strict";function i(t,e){this.v=t,this.k=e}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function n(t){var e,r;function a(e,r){try{var o=t[e](r),s=o.value,l=s instanceof i;Promise.resolve(l?s.v:s).then(function(r){if(l){var i="return"===e&&s.k?e:"next";if(!s.k||r.done)return a(i,r);r=t[i](r).value}n(!!o.done,r)},function(t){a("throw",t)})}catch(t){n(2,t)}}function n(t,i){2===t?e.reject(i):e.resolve({value:i,done:t}),(e=e.next)?a(e.key,e.arg):r=null}this._invoke=function(t,i){return new Promise(function(n,o){var s={key:t,arg:i,resolve:n,reject:o,next:null};r?r=r.next=s:(e=r=s,a(t,i))})},"function"!=typeof t.return&&(this.return=void 0)}r.d(e,{A:()=>tw}),n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(t){return this._invoke("next",t)},n.prototype.throw=function(t){return this._invoke("throw",t)},n.prototype.return=function(t){return this._invoke("return",t)};let o=Object.entries,s=Object.setPrototypeOf,l=Object.isFrozen,h=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,d=Object.freeze,u=Object.seal,p=Object.create,f="u">typeof Reflect&&Reflect,g=f.apply,m=f.construct;d||(d=function(t){return t}),u||(u=function(t){return t}),g||(g=function(t,e){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return t.apply(e,i)}),m||(m=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});let y=q(Array.prototype.forEach);Array.prototype.indexOf;let x=q(Array.prototype.lastIndexOf),b=q(Array.prototype.pop),k=q(Array.prototype.push),C=q(Array.prototype.slice),w=q(Array.prototype.splice),_=Array.isArray,S=N(Set),v=q(Set.prototype.add),A=q(Set.prototype.has),T=q(String.prototype.toLowerCase),B=q(String.prototype.toString),L=q(String.prototype.match),M=q(String.prototype.replace),F=q(String.prototype.indexOf),$=q(String.prototype.trim),E=q(Number.prototype.toString),O=q(Boolean.prototype.toString),D="u"<typeof BigInt?null:q(BigInt.prototype.toString),R="u"<typeof Symbol?null:q(Symbol.prototype.toString),I=q(Object.prototype.hasOwnProperty),z=q(Object.prototype.toString),K=q(RegExp.prototype.test),P=N(TypeError);function q(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return g(t,e,i)}}function N(t){return function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return m(t,r)}}function j(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;if(s&&s(t,null),!_(e))return t;let i=e.length;for(;i--;){let a=e[i];if("string"==typeof a){let t=r(a);t!==a&&(l(e)||(e[i]=t),a=t)}t[a]=!0}return t}function W(t){let e=p(null);for(let i of o(t)){var r=function(t){if(Array.isArray(t))return t}(i)||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,a,n,o=[],s=!0,l=!1;try{a=(e=e.call(t)).next,!1;for(;!(s=(r=a.call(e)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=e.return&&(n=e.return(),Object(n)!==n))return}finally{if(l)throw i}}return o}}(i)||function(t){if(t){if("string"==typeof t)return a(t,2);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,2):void 0}}(i)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let n=r[0],o=r[1];I(t,n)&&(_(o)?e[n]=function(t){for(let e=0;e<t.length;e++)I(t,e)||(t[e]=null);return t}(o):o&&"object"==typeof o&&o.constructor===Object?e[n]=W(o):e[n]=o)}return e}function H(t,e){for(;null!==t;){let r=c(t,e);if(r){if(r.get)return q(r.get);if("function"==typeof r.value)return q(r.value)}t=h(t)}return function(){return null}}let G=d(["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","search","section","select","shadow","slot","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"]),Y=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=d(["animate","color-profile","cursor","discard","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"]),Z=d(["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","mprescripts"]),V=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=d(["#text"]),J=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),tt=d(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","dominant-baseline","dur","edgemode","elevation","end","exponent","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","intercept","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","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","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","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),te=d(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),tr=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ti=u(/{{[\w\W]*|^[\w\W]*}}/g),ta=u(/<%[\w\W]*|^[\w\W]*%>/g),tn=u(/\${[\w\W]*/g),to=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),ts=u(/^aria-[\-\w]+$/),tl=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),th=u(/^(?:\w+script|data):/i),tc=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),td=u(/^html$/i),tu=u(/^[a-z][.\w]*(-[.\w]+)+$/i),tp=u(/<[/\w!]/g),tf=u(/<[/\w]/g),tg=u(/<\/no(script|embed|frames)/i),tm=u(/\/>/i),ty=d(j({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),tx=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));let a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}},tb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tk=function(t,e,r,i){return I(t,e)&&_(t[e])?j(i.base?W(i.base):{},t[e],i.transform):r},tC=function(t,e,r){let i=I(t,e)?t[e]:void 0;return i&&"object"==typeof i?W(i):r()};var tw=function t(){let e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=e=>t(e);if(a.version="3.4.17",a.removed=[],!i||!i.document||9!==i.document.nodeType||!i.Element)return a.isSupported=!1,a;let n=i.document,s=n,l=s.currentScript;i.DocumentFragment;let f=i.HTMLTemplateElement,g=i.Node,m=i.Element,N=i.NodeFilter;void 0===i.NamedNodeMap&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let tw=i.DOMParser,t_=i.trustedTypes,tS=m.prototype,tv=H(tS,"cloneNode"),tA=H(tS,"remove"),tT=H(tS,"removeAttributeNode"),tB=H(tS,"nextSibling"),tL=H(tS,"childNodes"),tM=H(tS,"parentNode"),tF=H(tS,"shadowRoot"),t$=H(tS,"attributes"),tE=g&&g.prototype?H(g.prototype,"nodeType"):null,tO=g&&g.prototype?H(g.prototype,"nodeName"):null,tD=g&&g.prototype?H(g.prototype,"ownerDocument"):null,tR=function(t){return tE?tE(t):t.nodeType},tI=function(t){return tO?tO(t):t.nodeName},tz=function(t,e){for(;null!==t;){let r=c(t,e);if(r)return r.get?q(r.get):null;t=h(t)}return null}(tS,"namespaceURI"),tK=function(t){return tz?tz(t):t.namespaceURI};if("function"==typeof f){let t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let tP="",tq=!1,tN=0,tj=function(){if(tN>0)throw P('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tW=function(t){tj(),tN++;try{return e.createHTML(t)}finally{tN--}},tH=function(t){tj(),tN++;try{return e.createScriptURL(t)}finally{tN--}},tG=n,tY=tG.implementation,tU=tG.createNodeIterator,tX=tG.createDocumentFragment,tZ=tG.getElementsByTagName,tV=s.importNode,tQ=tb();a.isSupported="function"==typeof o&&"function"==typeof tM&&tY&&void 0!==tY.createHTMLDocument;let tJ=tl,t0=null,t1=j({},[...G,...Y,...U,...Z,...Q]),t2=null,t5=j({},[...J,...tt,...te,...tr]),t3=Object.seal(p(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}})),t4=null,t6=null,t8=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),t9=!0,t7=!0,et=!1,ee=!0,er=!1,ei=!0,ea=!1,en=!1,eo=null,es=null,el=!1,eh=!1,ec=!1,ed=!1,eu=!0,ep=!1,ef="user-content-",eg=!0,em=!1,ey=null,ex={},eb=null,ek=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),eC=null,ew=j({},["audio","video","img","source","image","track"]),e_=null,eS=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ev="http://www.w3.org/1998/Math/MathML",eA="http://www.w3.org/2000/svg",eT="http://www.w3.org/1999/xhtml",eB=eT,eL=!1,eM=null,eF=j({},[ev,eA,eT],B),e$=d(["mi","mo","mn","ms","mtext"]),eE=j({},e$),eO=d(["annotation-xml"]),eD=j({},eO),eR=j({},["title","style","font","a","script"]),eI=null,ez=["application/xhtml+xml","text/html"],eK=null,eP=null,eq=n.createElement("form"),eN=function(t){return t instanceof RegExp||t instanceof Function},ej=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eP&&eP===t)return;t&&"object"==typeof t||(t={}),t=W(t),eK="application/xhtml+xml"===(eI=-1===ez.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?B:T,t0=tk(t,"ALLOWED_TAGS",t1,{transform:eK}),t2=tk(t,"ALLOWED_ATTR",t5,{transform:eK}),eM=tk(t,"ALLOWED_NAMESPACES",eF,{transform:B}),e_=tk(t,"ADD_URI_SAFE_ATTR",eS,{transform:eK,base:eS}),eC=tk(t,"ADD_DATA_URI_TAGS",ew,{transform:eK,base:ew}),eb=tk(t,"FORBID_CONTENTS",ek,{transform:eK}),t4=tk(t,"FORBID_TAGS",W({}),{transform:eK}),t6=tk(t,"FORBID_ATTR",W({}),{transform:eK}),ex=!!I(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?W(t.USE_PROFILES):t.USE_PROFILES),t9=!1!==t.ALLOW_ARIA_ATTR,t7=!1!==t.ALLOW_DATA_ATTR,et=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,er=t.SAFE_FOR_TEMPLATES||!1,ei=!1!==t.SAFE_FOR_XML,ea=t.WHOLE_DOCUMENT||!1,eh=t.RETURN_DOM||!1,ec=t.RETURN_DOM_FRAGMENT||!1,ed=t.RETURN_TRUSTED_TYPE||!1,el=t.FORCE_BODY||!1,eu=!1!==t.SANITIZE_DOM,ep=t.SANITIZE_NAMED_PROPS||!1,eg=!1!==t.KEEP_CONTENT,em=t.IN_PLACE||!1,tJ=!function(t){try{return K(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?tl:t.ALLOWED_URI_REGEXP,eB="string"==typeof t.NAMESPACE?t.NAMESPACE:eT,eE=tC(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>j({},e$)),eD=tC(t,"HTML_INTEGRATION_POINTS",()=>j({},eO));let i=tC(t,"CUSTOM_ELEMENT_HANDLING",()=>p(null));if(t3=p(null),I(i,"tagNameCheck")&&eN(i.tagNameCheck)&&(t3.tagNameCheck=i.tagNameCheck),I(i,"attributeNameCheck")&&eN(i.attributeNameCheck)&&(t3.attributeNameCheck=i.attributeNameCheck),I(i,"allowCustomizedBuiltInElements")&&"boolean"==typeof i.allowCustomizedBuiltInElements&&(t3.allowCustomizedBuiltInElements=i.allowCustomizedBuiltInElements),u(t3),er&&(t7=!1),ec&&(eh=!0),ex&&(t0=j({},Q),t2=p(null),!0===ex.html&&(j(t0,G),j(t2,J)),!0===ex.svg&&(j(t0,Y),j(t2,tt),j(t2,tr)),!0===ex.svgFilters&&(j(t0,U),j(t2,tt),j(t2,tr)),!0===ex.mathMl&&(j(t0,Z),j(t2,te),j(t2,tr))),t8.tagCheck=null,t8.attributeCheck=null,I(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?t8.tagCheck=t.ADD_TAGS:_(t.ADD_TAGS)&&(t0===t1&&(t0=W(t0)),j(t0,t.ADD_TAGS,eK))),I(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?t8.attributeCheck=t.ADD_ATTR:_(t.ADD_ATTR)&&(t2===t5&&(t2=W(t2)),j(t2,t.ADD_ATTR,eK))),I(t,"ADD_FORBID_CONTENTS")&&_(t.ADD_FORBID_CONTENTS)&&(eb===ek&&(eb=W(eb)),j(eb,t.ADD_FORBID_CONTENTS,eK)),eg&&(t0["#text"]=!0),ea&&j(t0,["html","head","body"]),t0.table&&(j(t0,["tbody"]),delete t4.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tP=tW("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tP=""):(void 0===e&&(tq||(r=tx(t_,l),tq=!0),e=r),e&&"string"==typeof tP&&(tP=tW("")));d&&d(t),eP=t},eW=j({},[...Y,...U,...X]),eH=j({},[...Z,...V]),eG=function(t){var e,r,i,a,n,o;let s,l,h=tK(t),c=T(tI(t)),d=tM(t);return d&&1===tR(d)?(s={namespaceURI:tK(d)},l=T(tI(d))):(s={namespaceURI:eB},l="template"),!!eM[h]&&(h===eA?(e=s,r=l,e.namespaceURI===eT?"svg"===c:e.namespaceURI===ev?"svg"===c&&("annotation-xml"===r||eE[r]):!!eW[c]):h===ev?(i=s,a=l,i.namespaceURI===eT?"math"===c:i.namespaceURI===eA?"math"===c&&eD[a]:!!eH[c]):h===eT?(n=s,o=l,(n.namespaceURI!==eA||!!eD[o])&&(n.namespaceURI!==ev||!!eE[o])&&!eH[c]&&(eR[c]||!eW[c])):"application/xhtml+xml"===eI&&!!eM[h])},eY=function(t){k(a.removed,{element:t});try{tM(t).removeChild(t)}catch(e){if(tA(t),!tM(t))throw P("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eU=function(t,e,r){try{tT(t,e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eX=function(t){eJ(t);let e=tL(t);e&&y(C(e),t=>{try{tA(t)}catch(t){}});let r=1===tR(t)?t$(t):null;if(r)for(let e=r.length-1;e>=0;--e){let i=r[e],a=i&&i.name;"string"==typeof a&&eU(t,i,a)}},eZ=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}k(a.removed,{attribute:r||null,from:e});try{r?tT(e,r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(eh||ec)try{eY(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},eV=function(t){let e=t$(t);if(e)for(let r=e.length-1;r>=0;--r){let i=e[r],a=i&&i.name;"string"!=typeof a||t2[eK(a)]||eU(t,i,a)}},eQ=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[t];for(;i.length>0;){let t=i.pop();if(!1===e(t))continue;if(r&&1===tR(t)){let e=tF(t);ra(e)&&i.push(e)}let a=tL(t);if(a)for(let t=a.length-1;t>=0;--t)i.push(a[t])}},eJ=function(t){eQ(t,t=>{1===tR(t)&&eV(t)})},e0=function(t){let e=[];return eQ(t,t=>{e.push(t)},!0),e},e1=function(t,e){let r=S();y(e0(t),t=>{1===tR(t)&&v(r,t)}),y(e,t=>{1!==tR(t)||A(r,t)||eV(t)})},e2=function(t,e){let r=!1;return y(a.removed,e=>{e.element&&(r=r||e.element===t,eJ(e.element))}),e1(t,e),r},e5=function(t,e){let r=ey,i=null,a=()=>(i||(i=S(),y(e,t=>{v(i,t)})),i);for(let e=0;;e++){let i=e0(t),n=[t],o=!1;if(y(i,t=>{11===tR(t)?k(n,t):o||A(r,t)||(o=A(a(),t))}),!o)return;if(e>=8)throw P("the tree kept changing during in-place sanitization; refusing to return it");y(n,(e,r)=>{e3(e,r>0,t,a())})}},e3=function(t,e,r,i){let a,n=e7(t);for(;a=n.nextNode();)!(!A(i,a)||A(ey,a))&&(e&&ro(tQ.uponSanitizeShadowNode,a,null),rd(a,r),rx(a,r),ra(a.content)&&rb(a.content))},e4=function(t){ey&&v(ey,t)},e6=function(t,e){return!!ei&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},e8=function(t){ei&&eQ(t,t=>{let e=tR(t);if(7===e||8===e&&K(tf,t.data)){try{tA(t)}catch(t){}return!1}if(1===e){let e=eK(tI(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&e6("for",e)&&t.removeAttribute("for")}catch(t){}}return!0})},e9=function(t){let r=null,i=null;if(el)t="<remove></remove>"+t;else{let e=L(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===eI&&eB===eT&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let a=e?tW(t):t;if(eB===eT)try{r=new tw().parseFromString(a,eI)}catch(t){}if(!r||!r.documentElement){r=tY.createDocument(eB,"template",null);try{r.documentElement.innerHTML=eL?tP:a}catch(t){}}let o=r.body||r.documentElement;return(t&&i&&o.insertBefore(n.createTextNode(i),o.childNodes[0]||null),eB===eT)?tZ.call(r,ea?"html":"body")[0]:ea?r.documentElement:o},e7=function(t){let e=tD?tD(t):t.ownerDocument;return tU.call(e||t,t,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},rt=function(t){return t=M(t,ti," "),t=M(t,ta," "),t=M(t,tn," ")},re=function(t){var e;rr(t);let r=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");r&&y(r,t=>{ra(t.content)&&re(t.content)})},rr=function(t){t.normalize();let e=tD?tD(t):t.ownerDocument,r=tU.call(e||t,t,N.SHOW_TEXT|N.SHOW_COMMENT|N.SHOW_CDATA_SECTION|N.SHOW_PROCESSING_INSTRUCTION,null),i=r.nextNode();for(;i;)i.data=rt(i.data),i=r.nextNode()},ri=function(t){let e=tO?tO(t):null;return"string"==typeof e&&"form"===eK(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==t$(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tE(t)||t.childNodes!==tL(t))},ra=function(t){if(!tE||"object"!=typeof t||null===t)return!1;try{return 11===tE(t)}catch(t){return!1}},rn=function(t){if(!tE||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tE(t)}catch(t){return!1}};function ro(t,e,r){0!==t.length&&y(t,t=>{t.call(a,e,r,eP)})}let rs=function(t,e){if(t instanceof RegExp)return K(t,e);if(t instanceof Function){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return!!t(e,...i)}return!1},rl=function(t,e,r){if(!t4[e]&&rf(e)&&rs(t3.tagNameCheck,e))return!1;if(eg&&!eb[e]&&!eb[T(e)]){let e=tM(t),i=tL(t);if(i&&e){let a=i.length;for(let n=a-1;n>=0;--n){let a=t===r?tv(i[n],!0):i[n];e.insertBefore(a,tB(t))}}}return eY(t),!0},rh=function(t,e,r,i){return 0===t.length?e:e===r||e===i?W(e):e},rc=function(t,e){return t!==e&&null===tM(t)&&(em&&eJ(t),!0)},rd=function(t,e){if(e4(t),ro(tQ.beforeSanitizeElements,t,null),rc(t,e))return!0;if(ri(t))return eY(t),!0;let r=eK(tI(t));if(t0=rh(tQ.uponSanitizeElement,t0,t1,eo),ro(tQ.uponSanitizeElement,t,{tagName:r,allowedTags:t0}),rc(t,e))return!0;if(ei&&t.hasChildNodes()&&!rn(t.firstElementChild)&&K(tp,t.textContent)&&K(tp,t.innerHTML)||ei&&ty[r]&&1===tR(t)&&tK(t)===eT&&(rn(t.firstElementChild)||"string"==typeof t.textContent&&K(tp,t.textContent))||7===t.nodeType||ei&&8===t.nodeType&&K(tf,t.data))return eY(t),!0;if(t4[r]||!(t8.tagCheck instanceof Function&&t8.tagCheck(r))&&!t0[r]){let i=rl(t,r,e);return!!(!1===i&&(ro(tQ.afterSanitizeElements,t,null),rc(t,e)))||i}if(1===tR(t)&&!eG(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&K(tg,t.innerHTML))return eY(t),!0;if(er&&3===t.nodeType){let e=rt(t.textContent);t.textContent!==e&&(k(a.removed,{element:t.cloneNode()}),t.textContent=e)}return ro(tQ.afterSanitizeElements,t,null),rc(t,e)},ru=function(t,e,r){if(t6[e]||e6(e,t)||eu&&("id"===e||"name"===e)&&(r in n||r in eq))return!1;let i=t2[e]||t8.attributeCheck instanceof Function&&t8.attributeCheck(e,t);return!!(t7&&K(to,e)||t9&&K(ts,e))||(i?!(!(e_[e]||K(tJ,M(r,tc,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==F(r,"data:")||!eC[t])&&(!et||K(th,M(r,tc,""))))||!r:rf(t)&&rs(t3.tagNameCheck,t)&&rs(t3.attributeNameCheck,e,t)||"is"===e&&t3.allowCustomizedBuiltInElements&&rs(t3.tagNameCheck,r))},rp=j({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),rf=function(t){return!rp[T(t)]&&K(tu,t)},rg=function(t,r,i,a){if(e&&"object"==typeof t_&&"function"==typeof t_.getAttributeType&&!i)switch(t_.getAttributeType(t,r)){case"TrustedHTML":return tW(a);case"TrustedScriptURL":return tH(a)}return a},rm=function(t,e,r,i){try{if(r?t.setAttributeNS(r,e,i):t.setAttribute(e,i),ri(t))return eY(t),!1;return!0}catch(r){return eZ(e,t),!1}},ry=function(t,e){return!!(ei&&K(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===T(t)&&null!==L(e,"href")},rx=function(t,e){if(ro(tQ.beforeSanitizeAttributes,t,null),rc(t,e))return;let r=t.attributes;if(!r||ri(t))return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:t2=rh(tQ.uponSanitizeAttribute,t2,t5,es),forceKeepAttr:void 0},n=r.length,o=eK(t.nodeName);for(;n--;){let e=r[n],s=e.name,l=e.namespaceURI,h=e.value,c=eK(s),d="value"===s?h:$(h),u=!1;if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,ro(tQ.uponSanitizeAttribute,t,i),d=i.attrValue,ep&&("id"===c||"name"===c)&&0!==F(d,ef)&&(eZ(s,t,e),d=ef+d,u=!0),ry(s,d)){eZ(s,t,e);continue}if(!i.forceKeepAttr){if(!i.keepAttr||!ee&&K(tm,d)||(er&&(d=rt(d)),!ru(o,c,d))){eZ(s,t,e);continue}(d=rg(o,c,l,d))!==h&&rm(t,s,l,d)&&u&&b(a.removed)}}ro(tQ.afterSanitizeAttributes,t,null),rc(t,e)},rb=function(t){let e=null,r=e7(t);for(ro(tQ.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(ro(tQ.uponSanitizeShadowNode,e,null),rd(e,t),rx(e,t),ra(e.content)&&rb(e.content),1===tR(e)){let t=tF(e);ra(t)&&(rk(t),rb(t))}er&&rr(t),ro(tQ.afterSanitizeShadowDOM,t,null)},rk=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){rb(t.shadow);continue}let r=t.node,i=1===tR(r),a=tL(r);if(a)for(let t=a.length-1;t>=0;--t)e.push({node:a[t],shadow:null});if(i){let t=tO?tO(r):null;if("string"==typeof t&&"template"===eK(t)){let t=r.content;ra(t)&&e.push({node:t,shadow:null})}}if(i){let t=tF(r);ra(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return a.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,n=null,o=null,l=null;if((eL=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!rn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return E(t);case"boolean":return O(t);case"bigint":return D?D(t):"0";case"symbol":return R?R(t):"Symbol()";case"undefined":default:return z(t);case"function":case"object":{if(null===t)return z(t);let e=H(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:z(r)}return z(t)}}}(t)))throw P("dirty is not a string, aborting");if(!a.isSupported)return t;en?(t0=eo,t2=es):ej(r),(tQ.uponSanitizeElement.length>0||tQ.uponSanitizeAttribute.length>0)&&(t0=W(t0)),tQ.uponSanitizeAttribute.length>0&&(t2=W(t2)),a.removed=[];let h=em&&"string"!=typeof t&&rn(t),c=[],d=ey;if(h){e8(t);let e=tI(t);if("string"==typeof e){let r=eK(e);if(!t0[r]||t4[r])throw eX(t),P("root node is forbidden and cannot be sanitized in-place")}if(ri(t))throw eX(t),P("root node is clobbered and cannot be sanitized in-place");c=e0(t),ey=S()}else if(rn(t))1===(n=(i=e9("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n),rk(i);else{if(!eh&&!er&&!ea&&-1===t.indexOf("<"))return e&&ed?tW(t):t;if(!(i=e9(t)))return eh?null:ed?tP:""}i&&el&&eY(i.firstChild);let u=h?t:i;try{h&&rk(t);let e=e7(u);for(;o=e.nextNode();)rd(o,u),rx(o,u),ra(o.content)&&rb(o.content);h&&e5(t,c)}catch(e){throw h&&(eX(t),e2(t,c)),e}finally{ey=d}if(h){if(e2(t,c))throw P("a node selected for removal could not be safely returned; refusing to sanitize in place");return er&&re(t),t}if(eh){if(er&&re(i),ec)for(l=tX.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(t2.shadowroot||t2.shadowrootmode)&&(l=tV.call(s,l,!0)),l}let p=ea?i.outerHTML:i.innerHTML;return ea&&t0["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&K(td,i.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+p),er&&(p=rt(p)),e&&ed?tW(p):p},a.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ej(t),en=!0,eo=t0,es=t2},a.clearConfig=function(){eP=null,en=!1,eo=null,es=null,e=r,tP=""},a.isValidAttribute=function(t,e,r){eP||ej({});let i=eK(t),a=eK(e);return!("string"==typeof r&&(ry(e,r)||!ee&&K(tm,r)))&&ru(i,a,r)},a.addHook=function(t,e){"function"!=typeof e||I(tQ,t)&&k(tQ[t],e)},a.removeHook=function(t,e){if(I(tQ,t)){if(void 0!==e){let r=x(tQ[t],e);return -1===r?void 0:w(tQ[t],r,1)[0]}return b(tQ[t])}},a.removeHooks=function(t){I(tQ,t)&&(tQ[t]=[])},a.removeAllHooks=function(){tQ=tb()},a}()},8019(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(5566),a=r(8819);let n=class{constructor(){this.type=a.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=a.Z.ALL}is(t){return this.type===t}},o=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new n}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=a.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:a}=t;void 0===e&&(t.h=i.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=i.A.channel.rgb2hsl(t,"s")),void 0===a&&(t.l=i.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:a}=t;void 0===e&&(t.r=i.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=i.A.channel.hsl2rgb(t,"g")),void 0===a&&(t.b=i.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(a.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(a.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(a.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(a.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(a.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(a.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(a.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(a.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(a.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(a.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(a.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(a.Z.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")},8479(t,e,r){"use strict";r.d(e,{A:()=>c});var i=r(8019),a=r(8819);let n={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(n.re);if(!e)return;let r=e[1],a=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,h=l?1:17,c=l?8:4,d=s?0:-1,u=l?255:15;return i.A.set({r:(a>>c*(d+3)&u)*h,g:(a>>c*(d+2)&u)*h,b:(a>>c*(d+1)&u)*h,a:s?(a&u)*h/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:n}=t;return n<1?`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(i)]}${a.Y[Math.round(255*n)]}`:`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(i)]}`}};var o=r(5566);let s={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=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.A.channel.clamp.h(.9*parseFloat(t));case"rad":return o.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.A.channel.clamp.h(360*parseFloat(t))}}return o.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,a,n,l,h,c]=r;return i.A.set({h:s._hue2deg(a),s:o.A.channel.clamp.s(parseFloat(n)),l:o.A.channel.clamp.l(parseFloat(l)),a:h?o.A.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a}=t;return a<1?`hsla(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(i)}%, ${a})`:`hsl(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(i)}%)`}},l={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();let e=l.colors[t];if(e)return n.parse(e)},stringify:t=>{let e=n.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},h={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=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(h.re);if(!r)return;let[,a,n,s,l,c,d,u,p]=r;return i.A.set({r:o.A.channel.clamp.r(n?2.55*parseFloat(a):parseFloat(a)),g:o.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.A.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:u?o.A.channel.clamp.a(p?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a}=t;return a<1?`rgba(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(i)}, ${o.A.lang.round(a)})`:`rgb(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(i)})`}},c={format:{keyword:l,hex:n,rgb:h,rgba:h,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=n.parse(t)||h.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(a.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?n.stringify(t):h.stringify(t)}},8819(t,e,r){"use strict";r.d(e,{Y:()=>a,Z:()=>n});var i=r(5566);let a={};for(let t=0;t<=255;t++)a[t]=i.A.unit.dec2hex(t);let n={ALL:0,RGB:1,HSL:2}},1628(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(5566),a=r(8479);let n=(t,e,r)=>{let n=a.A.parse(t),o=n[e],s=i.A.channel.clamp[e](o+r);return o!==s&&(n[e]=s),a.A.stringify(n)}},1763(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(5566),a=r(8479);let n=(t,e)=>{let r=a.A.parse(t);for(let t in e)r[t]=i.A.channel.clamp[t](e[t]);return a.A.stringify(r)}},9515(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(1628);let a=(t,e)=>(0,i.A)(t,"l",-e)},3614(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(5566),a=r(8479);let n=t=>!((t=>{let{r:e,g:r,b:n}=a.A.parse(t),o=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(n);return i.A.lang.round(o)})(t)>=.5)},8480(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(1628);let a=(t,e)=>(0,i.A)(t,"l",e)},941(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(5566),a=r(8019),n=r(8479),o=r(1763);let s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,o.A)(t,{a:e});let l=a.A.set({r:i.A.channel.clamp.r(t),g:i.A.channel.clamp.g(e),b:i.A.channel.clamp.b(r),a:i.A.channel.clamp.a(s)});return n.A.stringify(l)}},5566(t,e,r){"use strict";r.d(e,{A:()=>a});let i={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=>{let 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+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},a)=>{if(!e)return 2.55*r;t/=360,e/=100;let n=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-n;switch(a){case"r":return 255*i.hue2rgb(o,n,t+1/3);case"g":return 255*i.hue2rgb(o,n,t);case"b":return 255*i.hue2rgb(o,n,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{let a=Math.max(t/=255,e/=255,r/=255),n=Math.min(t,e,r),o=(a+n)/2;if("l"===i)return 100*o;if(a===n)return 0;let s=a-n;if("s"===i)return 100*(o>.5?s/(2-a-n):s/(a+n));switch(a){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},a={channel:i,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=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},7156(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(778);let a=function(t,e){for(var r=t.length;r--;)if((0,i.A)(t[r][0],e))return r;return -1};var n=Array.prototype.splice;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}o.prototype.clear=function(){this.__data__=[],this.size=0},o.prototype.delete=function(t){var e=this.__data__,r=a(e,t);return!(r<0)&&(r==e.length-1?e.pop():n.call(e,r,1),--this.size,!0)},o.prototype.get=function(t){var e=this.__data__,r=a(e,t);return r<0?void 0:e[r][1]},o.prototype.has=function(t){return a(this.__data__,t)>-1},o.prototype.set=function(t,e){var r=this.__data__,i=a(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};let s=o},9421(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(5058),a=r(1523);let n=(0,i.A)(a.A,"Map")},6396(t,e,r){"use strict";r.d(e,{A:()=>u});var i=(0,r(5058).A)(Object,"create"),a=Object.prototype.hasOwnProperty,n=Object.prototype.hasOwnProperty;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}o.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},o.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},o.prototype.get=function(t){var e=this.__data__;if(i){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(e,t)?e[t]:void 0},o.prototype.has=function(t){var e=this.__data__;return i?void 0!==e[t]:n.call(e,t)},o.prototype.set=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};var s=r(7156),l=r(9421);let h=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},c=function(t,e){var r=t.__data__;return h(e)?r["string"==typeof e?"string":"hash"]:r.map};function d(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new o,map:new(l.A||s.A),string:new o}},d.prototype.delete=function(t){var e=c(this,t).delete(t);return this.size-=!!e,e},d.prototype.get=function(t){return c(this,t).get(t)},d.prototype.has=function(t){return c(this,t).has(t)},d.prototype.set=function(t,e){var r=c(this,t),i=r.size;return r.set(t,e),this.size+=+(r.size!=i),this};let u=d},4123(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(5058),a=r(1523);let n=(0,i.A)(a.A,"Set")},1508(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(7156),a=r(9421),n=r(6396);function o(t){var e=this.__data__=new i.A(t);this.size=e.size}o.prototype.clear=function(){this.__data__=new i.A,this.size=0},o.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},o.prototype.get=function(t){return this.__data__.get(t)},o.prototype.has=function(t){return this.__data__.has(t)},o.prototype.set=function(t,e){var r=this.__data__;if(r instanceof i.A){var o=r.__data__;if(!a.A||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new n.A(o)}return r.set(t,e),this.size=r.size,this};let s=o},2999(t,e,r){"use strict";r.d(e,{A:()=>i});let i=r(1523).A.Symbol},5330(t,e,r){"use strict";r.d(e,{A:()=>i});let i=r(1523).A.Uint8Array},75(t,e,r){"use strict";r.d(e,{A:()=>c});let i=function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i};var a=r(9925),n=r(5635),o=r(8867),s=r(1143),l=r(5240),h=Object.prototype.hasOwnProperty;let c=function(t,e){var r=(0,n.A)(t),c=!r&&(0,a.A)(t),d=!r&&!c&&(0,o.A)(t),u=!r&&!c&&!d&&(0,l.A)(t),p=r||c||d||u,f=p?i(t.length,String):[],g=f.length;for(var m in t)(e||h.call(t,m))&&!(p&&("length"==m||d&&("offset"==m||"parent"==m)||u&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,s.A)(m,g)))&&f.push(m);return f}},8533(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(4738),a=r(778),n=Object.prototype.hasOwnProperty;let o=function(t,e,r){var o=t[e];n.call(t,e)&&(0,a.A)(o,r)&&(void 0!==r||e in t)||(0,i.A)(t,e,r)}},4738(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(6049);let a=function(t,e,r){"__proto__"==e&&i.A?(0,i.A)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},24(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e,r){for(var i=-1,a=Object(t),n=r(t),o=n.length;o--;){var s=n[++i];if(!1===e(a[s],s,a))break}return t}},1711(t,e,r){"use strict";r.d(e,{A:()=>d});var i=r(2999),a=Object.prototype,n=a.hasOwnProperty,o=a.toString,s=i.A?i.A.toStringTag:void 0;let l=function(t){var e=n.call(t,s),r=t[s];try{t[s]=void 0;var i=!0}catch(t){}var a=o.call(t);return i&&(e?t[s]=r:delete t[s]),a};var h=Object.prototype.toString,c=i.A?i.A.toStringTag:void 0;let d=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?l(t):h.call(t)}},9004(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(3941),a=(0,r(9849).A)(Object.keys,Object),n=Object.prototype.hasOwnProperty;let o=function(t){if(!(0,i.A)(t))return a(t);var e=[];for(var r in Object(t))n.call(t,r)&&"constructor"!=r&&e.push(r);return e}},5376(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(2854),a=r(3056),n=r(4063);let o=function(t,e){return(0,n.A)((0,a.A)(t,e,i.A),t+"")}},9339(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return function(e){return t(e)}}},7251(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(5330);let a=function(t){var e=new t.constructor(t.byteLength);return new i.A(e).set(new i.A(t)),e}},7060(t,e,r){"use strict";r.d(e,{A:()=>l});var i=r(1523),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,n=a&&"object"==typeof module&&module&&!module.nodeType&&module,o=n&&n.exports===a?i.A.Buffer:void 0,s=o?o.allocUnsafe:void 0;let l=function(t,e){if(e)return t.slice();var r=t.length,i=s?s(r):new t.constructor(r);return t.copy(i),i}},3907(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(7251);let a=function(t,e){var r=e?(0,i.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},5749(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}},1857(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(8533),a=r(4738);let n=function(t,e,r,n){var o=!r;r||(r={});for(var s=-1,l=e.length;++s<l;){var h=e[s],c=n?n(r[h],t[h],h,r,t):void 0;void 0===c&&(c=t[h]),o?(0,a.A)(r,h,c):(0,i.A)(r,h,c)}return r}},6049(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(5058);let a=function(){try{var t=(0,i.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},2942(t,e,r){"use strict";r.d(e,{A:()=>i});let i="object"==typeof global&&global&&global.Object===Object&&global},5058(t,e,r){"use strict";r.d(e,{A:()=>g});var i,a=r(8132),n=r(1523).A["__core-js_shared__"],o=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",s=r(115),l=r(503),h=/^\[object .+?Constructor\]$/,c=Object.prototype,d=Function.prototype.toString,u=c.hasOwnProperty,p=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let f=function(t){return!!(0,s.A)(t)&&(!o||!(o in t))&&((0,a.A)(t)?p:h).test((0,l.A)(t))},g=function(t,e){var r=null==t?void 0:t[e];return f(r)?r:void 0}},2545(t,e,r){"use strict";r.d(e,{A:()=>i});let i=(0,r(9849).A)(Object.getPrototypeOf,Object)},7059(t,e,r){"use strict";r.d(e,{A:()=>_});var i=r(5058),a=r(1523),n=(0,i.A)(a.A,"DataView"),o=r(9421),s=(0,i.A)(a.A,"Promise"),l=r(4123),h=(0,i.A)(a.A,"WeakMap"),c=r(1711),d=r(503),u="[object Map]",p="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,d.A)(n),x=(0,d.A)(o.A),b=(0,d.A)(s),k=(0,d.A)(l.A),C=(0,d.A)(h),w=c.A;(n&&w(new n(new ArrayBuffer(1)))!=m||o.A&&w(new o.A)!=u||s&&w(s.resolve())!=p||l.A&&w(new l.A)!=f||h&&w(new h)!=g)&&(w=function(t){var e=(0,c.A)(t),r="[object Object]"==e?t.constructor:void 0,i=r?(0,d.A)(r):"";if(i)switch(i){case y:return m;case x:return u;case b:return p;case k:return f;case C:return g}return e});let _=w},5088(t,e,r){"use strict";r.d(e,{A:()=>l});var i=r(115),a=Object.create,n=function(){function t(){}return function(e){if(!(0,i.A)(e))return{};if(a)return a(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),o=r(2545),s=r(3941);let l=function(t){return"function"!=typeof t.constructor||(0,s.A)(t)?{}:n((0,o.A)(t))}},1143(t,e,r){"use strict";r.d(e,{A:()=>a});var i=/^(?:0|[1-9]\d*)$/;let a=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}},2513(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(778),a=r(2908),n=r(1143),o=r(115);let s=function(t,e,r){if(!(0,o.A)(r))return!1;var s=typeof e;return("number"==s?!!((0,a.A)(r)&&(0,n.A)(e,r.length)):"string"==s&&e in r)&&(0,i.A)(r[e],t)}},3941(t,e,r){"use strict";r.d(e,{A:()=>a});var i=Object.prototype;let a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},9899(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(2942),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,n=a&&"object"==typeof module&&module&&!module.nodeType&&module,o=n&&n.exports===a&&i.A.process;let s=function(){try{var t=n&&n.require&&n.require("util").types;if(t)return t;return o&&o.binding&&o.binding("util")}catch(t){}}()},9849(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){return function(r){return t(e(r))}}},3056(t,e,r){"use strict";r.d(e,{A:()=>n});let i=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)};var a=Math.max;let n=function(t,e,r){return e=a(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,s=a(n.length-e,0),l=Array(s);++o<s;)l[o]=n[e+o];o=-1;for(var h=Array(e+1);++o<e;)h[o]=n[o];return h[e]=r(l),i(t,this,h)}}},1523(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(2942),a="object"==typeof self&&self&&self.Object===Object&&self;let n=i.A||a||Function("return this")()},4063(t,e,r){"use strict";r.d(e,{A:()=>c});var i,a,n=r(8076),o=r(6049),s=r(2854),l=o.A?function(t,e){return(0,o.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,n.A)(e),writable:!0})}:s.A,h=Date.now;let c=(i=0,a=0,function(){var t=h(),e=16-(t-a);if(a=t,e>0){if(++i>=800)return arguments[0]}else i=0;return l.apply(void 0,arguments)})},503(t,e,r){"use strict";r.d(e,{A:()=>a});var i=Function.prototype.toString;let a=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},8076(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return function(){return t}}},778(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){return t===e||t!=t&&e!=e}},2854(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return t}},9925(t,e,r){"use strict";r.d(e,{A:()=>h});var i=r(1711),a=r(620);let n=function(t){return(0,a.A)(t)&&"[object Arguments]"==(0,i.A)(t)};var o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable;let h=n(function(){return arguments}())?n:function(t){return(0,a.A)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},5635(t,e,r){"use strict";r.d(e,{A:()=>i});let i=Array.isArray},2908(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(8132),a=r(604);let n=function(t){return null!=t&&(0,a.A)(t.length)&&!(0,i.A)(t)}},3963(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(2908),a=r(620);let n=function(t){return(0,a.A)(t)&&(0,i.A)(t)}},8867(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(1523),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,n=a&&"object"==typeof module&&module&&!module.nodeType&&module,o=n&&n.exports===a?i.A.Buffer:void 0;let s=(o?o.isBuffer:void 0)||function(){return!1}},4555(t,e,r){"use strict";r.d(e,{A:()=>u});var i=r(9004),a=r(7059),n=r(9925),o=r(5635),s=r(2908),l=r(8867),h=r(3941),c=r(5240),d=Object.prototype.hasOwnProperty;let u=function(t){if(null==t)return!0;if((0,s.A)(t)&&((0,o.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.A)(t)||(0,c.A)(t)||(0,n.A)(t)))return!t.length;var e=(0,a.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,h.A)(t))return!(0,i.A)(t).length;for(var r in t)if(d.call(t,r))return!1;return!0}},8132(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(1711),a=r(115);let n=function(t){if(!(0,a.A)(t))return!1;var e=(0,i.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},604(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},115(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},620(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return null!=t&&"object"==typeof t}},5240(t,e,r){"use strict";r.d(e,{A:()=>c});var i=r(1711),a=r(604),n=r(620),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=r(9339),l=r(9899),h=l.A&&l.A.isTypedArray;let c=h?(0,s.A)(h):function(t){return(0,n.A)(t)&&(0,a.A)(t.length)&&!!o[(0,i.A)(t)]}},4652(t,e,r){"use strict";r.d(e,{A:()=>c});var i=r(75),a=r(115),n=r(3941);let o=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var s=Object.prototype.hasOwnProperty;let l=function(t){if(!(0,a.A)(t))return o(t);var e=(0,n.A)(t),r=[];for(var i in t)"constructor"==i&&(e||!s.call(t,i))||r.push(i);return r};var h=r(2908);let c=function(t){return(0,h.A)(t)?(0,i.A)(t,!0):l(t)}},3046(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(6396);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var i=arguments,a=e?e.apply(this,i):i[0],n=r.cache;if(n.has(a))return n.get(a);var o=t.apply(this,i);return r.cache=n.set(a,o)||n,o};return r.cache=new(a.Cache||i.A),r}a.Cache=i.A;let n=a},7959(t,e,r){"use strict";r.d(e,{A:()=>D});var i,a=r(1508),n=r(4738),o=r(778);let s=function(t,e,r){(void 0===r||(0,o.A)(t[e],r))&&(void 0!==r||e in t)||(0,n.A)(t,e,r)};var l=r(24),h=r(7060),c=r(3907),d=r(5749),u=r(5088),p=r(9925),f=r(5635),g=r(3963),m=r(8867),y=r(8132),x=r(115),b=r(1711),k=r(2545),C=r(620),w=Object.prototype,_=Function.prototype.toString,S=w.hasOwnProperty,v=_.call(Object);let A=function(t){if(!(0,C.A)(t)||"[object Object]"!=(0,b.A)(t))return!1;var e=(0,k.A)(t);if(null===e)return!0;var r=S.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&_.call(r)==v};var T=r(5240);let B=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var L=r(1857),M=r(4652);let F=function(t,e,r,i,a,n,o){var l=B(t,r),b=B(e,r),k=o.get(b);if(k)return void s(t,r,k);var C=n?n(l,b,r+"",t,e,o):void 0,w=void 0===C;if(w){var _=(0,f.A)(b),S=!_&&(0,m.A)(b),v=!_&&!S&&(0,T.A)(b);(C=b,_||S||v)?(0,f.A)(l)?C=l:(0,g.A)(l)?C=(0,d.A)(l):S?(w=!1,C=(0,h.A)(b,!0)):v?(w=!1,C=(0,c.A)(b,!0)):C=[]:A(b)||(0,p.A)(b)?(C=l,(0,p.A)(l))?C=(0,L.A)(l,(0,M.A)(l)):(!(0,x.A)(l)||(0,y.A)(l))&&(C=(0,u.A)(b)):w=!1}w&&(o.set(b,C),a(C,b,i,n,o),o.delete(b)),s(t,r,C)},$=function t(e,r,i,n,o){e!==r&&(0,l.A)(r,function(l,h){if(o||(o=new a.A),(0,x.A)(l))F(e,r,h,i,t,n,o);else{var c=n?n(B(e,h),l,h+"",e,r,o):void 0;void 0===c&&(c=l),s(e,h,c)}},M.A)};var E=r(5376),O=r(2513);let D=(i=function(t,e,r){$(t,e,r)},(0,E.A)(function(t,e){var r=-1,a=e.length,n=a>1?e[a-1]:void 0,o=a>2?e[2]:void 0;for(n=i.length>3&&"function"==typeof n?(a--,n):void 0,o&&(0,O.A)(e[0],e[1],o)&&(n=a<3?void 0:n,a=1),t=Object(t);++r<a;){var s=e[r];s&&i(t,s,r)}return t}))},3573(t,e,r){"use strict";r.d(e,{n:()=>i});var i={name:"mermaid",version:"11.10.1",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},3919(t,e,r){"use strict";r.d(e,{W6:()=>t0,GZ:()=>t3,WY:()=>tq,pC:()=>tz,hE:()=>t5,Gc:()=>tD});var i=r(3218),a=r(8755);let n=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),o=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),l=Object.freeze({...o,...s}),h=Object.freeze({...l,body:"",hidden:!1});function c(t,e){let r,i,a=(r={},!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0),(i=((t.rotate||0)+(e.rotate||0))%4)&&(r.rotate=i),r);for(let r in h)r in s?r in t&&!(r in a)&&(a[r]=s[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function d(t,e,r){let i=t.icons,a=t.aliases||Object.create(null),n={};function o(t){n=c(i[t]||a[t],n)}return o(e),r.forEach(o),c(t,n)}let u=Object.freeze({...Object.freeze({width:null,height:null}),...s}),p=/(-?[0-9.]*[0-9]+[0-9.]*)/g,f=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let i=t.split(p);if(null===i||!i.length)return t;let a=[],n=i.shift(),o=f.test(n);for(;;){if(o){let t=parseFloat(n);isNaN(t)?a.push(n):a.push(Math.ceil(t*e*r)/r)}else a.push(n);if(void 0===(n=i.shift()))return a.join("");o=!o}}let m=/\sid="(\S+)"/g,y="IconifyId"+Date.now().toString(16)+(0x1000000*Math.random()|0).toString(16),x=0;var b=r(6040);function k(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var C=k(),w={exec:()=>null};function _(t,e=""){let r="string"==typeof t?t:t.source,i={replace:(t,e)=>{let a="string"==typeof e?e:e.source;return a=a.replace(v.caret,"$1"),r=r.replace(t,a),i},getRegex:()=>new RegExp(r,e)};return i}var S=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),v={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},A=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T=/(?:[*+-]|\d{1,9}[.)])/,B=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,L=_(B).replace(/bull/g,T).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),M=_(B).replace(/bull/g,T).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,E=_(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),O=_(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,T).getRegex(),D="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",R=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,I=_("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",R).replace("tag",D).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z=_(F).replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),K={blockquote:_(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",z).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:E,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:A,html:I,lheading:L,list:O,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:z,table:w,text:/^[^\n]+/},P=_("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),q={...K,lheading:M,table:P,paragraph:_(F).replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex()},N={...K,html:_("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_(F).replace("hr",A).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",L).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},j=/^( {2,}|\\)\n(?!\s*$)/,W=/[\p{P}\p{S}]/u,H=/[\s\p{P}\p{S}]/u,G=/[^\s\p{P}\p{S}]/u,Y=_(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,H).getRegex(),U=/(?!~)[\p{P}\p{S}]/u,X=_(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",S?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,V=_(Z,"u").replace(/punct/g,W).getRegex(),Q=_(Z,"u").replace(/punct/g,U).getRegex(),J="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",tt=_(J,"gu").replace(/notPunctSpace/g,G).replace(/punctSpace/g,H).replace(/punct/g,W).getRegex(),te=_(J,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,U).getRegex(),tr=_("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G).replace(/punctSpace/g,H).replace(/punct/g,W).getRegex(),ti=_(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),ta=_(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),tn=_(R).replace("(?:--\x3e|$)","--\x3e").getRegex(),to=_("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",tn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ts=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,tl=_(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ts).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),th=_(/^!?\[(label)\]\[(ref)\]/).replace("label",ts).replace("ref",$).getRegex(),tc=_(/^!?\[(ref)\](?:\[\])?/).replace("ref",$).getRegex(),td=_("reflink|nolink(?!\\()","g").replace("reflink",th).replace("nolink",tc).getRegex(),tu=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,tp={_backpedal:w,anyPunctuation:ti,autolink:ta,blockSkip:X,br:j,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:w,emStrongLDelim:V,emStrongRDelimAst:tt,emStrongRDelimUnd:tr,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:tl,nolink:tc,punctuation:Y,reflink:th,reflinkSearch:td,tag:to,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:w},tf={...tp,link:_(/^!?\[(label)\]\((.*?)\)/).replace("label",ts).getRegex(),reflink:_(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ts).getRegex()},tg={...tp,emStrongRDelimAst:te,emStrongLDelim:Q,url:_(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tu).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tu).getRegex()},tm={...tg,br:_(j).replace("{2,}","*").getRegex(),text:_(tg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ty={normal:K,gfm:q,pedantic:N},tx={normal:tp,gfm:tg,breaks:tm,pedantic:tf},tb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tk=t=>tb[t];function tC(t,e){if(e){if(v.escapeTest.test(t))return t.replace(v.escapeReplace,tk)}else if(v.escapeTestNoEncode.test(t))return t.replace(v.escapeReplaceNoEncode,tk);return t}function tw(t){try{t=encodeURI(t).replace(v.percentDecode,"%")}catch{return null}return t}function t_(t,e){let r=t.replace(v.findPipe,(t,e,r)=>{let i=!1,a=e;for(;--a>=0&&"\\"===r[a];)i=!i;return i?"|":" |"}).split(v.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(v.slashPipe,"|");return r}function tS(t,e,r){let i=t.length;if(0===i)return"";let a=0;for(;a<i;){let n=t.charAt(i-a-1);if(n!==e||r)if(n!==e&&r)a++;else break;else a++}return t.slice(0,i-a)}function tv(t,e,r,i,a){let n=e.href,o=e.title||null,s=t[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:n,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}var tA=class{options;rules;lexer;constructor(t){this.options=t||C}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:tS(t,`
3
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(null===i)return e;let a=i[1];return e.split(`
4
+ `).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[i]=e;return i.length>=a.length?t.slice(a.length):t}).join(`
5
+ `)}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=tS(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tS(e[0],`
6
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tS(e[0],`
7
+ `).split(`
8
+ `),r="",i="",a=[];for(;t.length>0;){let e=!1,n=[],o;for(o=0;o<t.length;o++)if(this.rules.other.blockquoteStart.test(t[o]))n.push(t[o]),e=!0;else if(e)break;else n.push(t[o]);t=t.slice(o);let s=n.join(`
9
+ `),l=s.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
11
+ ${s}`:s,i=i?`${i}
12
+ ${l}`:l;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,a,!0),this.lexer.state.top=h,0===t.length)break;let c=a.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let e=c.raw+`
13
+ `+t.join(`
14
+ `),n=this.blockquote(e);a[a.length-1]=n,r=r.substring(0,r.length-c.raw.length)+n.raw,i=i.substring(0,i.length-c.text.length)+n.text;break}if(c?.type==="list"){let e=c.raw+`
15
+ `+t.join(`
16
+ `),n=this.list(e);a[a.length-1]=n,r=r.substring(0,r.length-c.raw.length)+n.raw,i=i.substring(0,i.length-c.raw.length)+n.raw,t=e.substring(a.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:r,tokens:a,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),i=r.length>1,a={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let n=this.rules.other.listItemRegex(r),o=!1;for(;t;){let r=!1,i="",s="";if(!(e=n.exec(t))||this.rules.block.hr.test(t))break;i=e[0],t=t.substring(i.length);let l=e[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),h=t.split(`
19
+ `,1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):c?d=e[1].length+1:(d=(d=e[2].search(this.rules.other.nonSpaceChar))>4?1:d,s=l.slice(d),d+=e[1].length),c&&this.rules.other.blankLine.test(h)&&(i+=h+`
20
+ `,t=t.substring(h.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),a=this.rules.other.fencesBeginRegex(d),n=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;t;){let u=t.split(`
21
+ `,1)[0],p;if(h=u,p=this.options.pedantic?h=h.replace(this.rules.other.listReplaceNesting," "):h.replace(this.rules.other.tabCharGlobal," "),a.test(h)||n.test(h)||o.test(h)||e.test(h)||r.test(h))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!h.trim())s+=`
22
+ `+p.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||a.test(l)||n.test(l)||r.test(l))break;s+=`
23
+ `+h}c||h.trim()||(c=!0),i+=u+`
24
+ `,t=t.substring(u.length+1),l=p.slice(d)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(o=!0));let u=null,p;this.options.gfm&&(u=this.rules.other.listIsTask.exec(s))&&(p="[ ] "!==u[0],s=s.replace(this.rules.other.listReplaceTask,"")),a.items.push({type:"list_item",raw:i,task:!!u,checked:p,loose:!1,text:s,tokens:[]}),a.raw+=i}let s=a.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),a.raw=a.raw.trimEnd();for(let t=0;t<a.items.length;t++)if(this.lexer.state.top=!1,a.items[t].tokens=this.lexer.blockTokens(a.items[t].text,[]),!a.loose){let e=a.items[t].tokens.filter(t=>"space"===t.type);a.loose=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw))}if(a.loose)for(let t=0;t<a.items.length;t++)a.items[t].loose=!0;return a}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:i}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=t_(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],n={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let t of i)this.rules.other.tableAlignRight.test(t)?n.align.push("right"):this.rules.other.tableAlignCenter.test(t)?n.align.push("center"):this.rules.other.tableAlignLeft.test(t)?n.align.push("left"):n.align.push(null);for(let t=0;t<r.length;t++)n.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:n.align[t]});for(let t of a)n.rows.push(t_(t,n.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:n.align[e]})));return n}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=tS(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return -1;let e=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if("("===t[r])e++;else if(")"===t[r]&&--e<0)return r;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),tv(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return tv(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...i[0]].length-1,a,n,o=r,s=0,l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(i=l.exec(e));){if(!(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6]))continue;if(n=[...a].length,i[3]||i[4]){o+=n;continue}if((i[5]||i[6])&&r%3&&!((r+n)%3)){s+=n;continue}if((o-=n)>0)continue;n=Math.min(n,n+o+s);let e=[...i[0]][0].length,l=t.slice(0,r+i.index+e+n);if(Math.min(r,n)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let h=l.slice(2,-2);return{type:"strong",raw:l,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),i=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&i&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return r="@"===e[2]?"mailto:"+(t=e[1]):t=e[1],{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])r="mailto:"+(t=e[0]);else{let i;do i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(i!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},tT=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||C,this.options.tokenizer=this.options.tokenizer||new tA,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:v,block:ty.normal,inline:tx.normal};this.options.pedantic?(e.block=ty.pedantic,e.inline=tx.pedantic):this.options.gfm&&(e.block=ty.gfm,this.options.breaks?e.inline=tx.breaks:e.inline=tx.gfm),this.tokenizer.rules=e}static get rules(){return{block:ty,inline:tx}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(v.carriageReturn,`
27
+ `),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(v.tabCharGlobal," ").replace(v.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(r=>!!(i=r.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let r=e.at(-1);1===i.raw.length&&void 0!==r?r.raw+=`
28
+ `:e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
29
+ `)?"":`
30
+ `)+i.raw,r.text+=`
31
+ `+i.text,this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if((i=this.tokenizer.fences(t))||(i=this.tokenizer.heading(t))||(i=this.tokenizer.hr(t))||(i=this.tokenizer.blockquote(t))||(i=this.tokenizer.list(t))||(i=this.tokenizer.html(t))){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
32
+ `)?"":`
33
+ `)+i.raw,r.text+=`
34
+ `+i.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},e.push(i));continue}if((i=this.tokenizer.table(t))||(i=this.tokenizer.lheading(t))){t=t.substring(i.raw.length),e.push(i);continue}let a=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),i;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&i>=0&&(e=Math.min(e,i))}),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let n=e.at(-1);r&&n?.type==="paragraph"?(n.raw+=(n.raw.endsWith(`
35
+ `)?"":`
36
+ `)+i.raw,n.text+=`
37
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(i),r=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
38
+ `)?"":`
39
+ `)+i.raw,r.text+=`
40
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,i=t,a=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(i));)t.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(i));)r=a[2]?a[2].length:0,i=i.slice(0,a.index+r)+"["+"a".repeat(a[0].length-r-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let n=!1,o="";for(;t;){let r;if(n||(o=""),n=!1,this.options.extensions?.inline?.some(i=>!!(r=i.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if((r=this.tokenizer.escape(t))||(r=this.tokenizer.tag(t))||(r=this.tokenizer.link(t))){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let i=e.at(-1);"text"===r.type&&i?.type==="text"?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,i,o))||(r=this.tokenizer.codespan(t))||(r=this.tokenizer.br(t))||(r=this.tokenizer.del(t))||(r=this.tokenizer.autolink(t))||!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let a=t;if(this.options.extensions?.startInline){let e=1/0,r=t.slice(1),i;this.options.extensions.startInline.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&i>=0&&(e=Math.min(e,i))}),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(a)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),n=!0;let i=e.at(-1);i?.type==="text"?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},tB=class{options;parser;constructor(t){this.options=t||C}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(v.notSpaceStart)?.[0],a=t.replace(v.endingNewline,"")+`
41
+ `;return i?'<pre><code class="language-'+tC(i)+'">'+(r?a:tC(a,!0))+`</code></pre>
42
+ `:"<pre><code>"+(r?a:tC(a,!0))+`</code></pre>
43
+ `}blockquote({tokens:t}){return`<blockquote>
44
+ ${this.parser.parse(t)}</blockquote>
45
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
46
+ `}hr(t){return`<hr>
47
+ `}list(t){let e=t.ordered,r=t.start,i="";for(let e=0;e<t.items.length;e++){let r=t.items[e];i+=this.listitem(r)}let a=e?"ol":"ul";return"<"+a+(e&&1!==r?' start="'+r+'"':"")+`>
48
+ `+i+"</"+a+`>
49
+ `}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+tC(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
50
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
51
+ `}table(t){let e="",r="";for(let e=0;e<t.header.length;e++)r+=this.tablecell(t.header[e]);e+=this.tablerow({text:r});let i="";for(let e=0;e<t.rows.length;e++){let a=t.rows[e];r="";for(let t=0;t<a.length;t++)r+=this.tablecell(a[t]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
52
+ <thead>
53
+ `+e+`</thead>
54
+ `+i+`</table>
55
+ `}tablerow({text:t}){return`<tr>
56
+ ${t}</tr>
57
+ `}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
58
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${tC(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),a=tw(t);if(null===a)return i;let n='<a href="'+(t=a)+'"';return e&&(n+=' title="'+tC(e)+'"'),n+=">"+i+"</a>"}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let a=tw(t);if(null===a)return tC(r);t=a;let n=`<img src="${t}" alt="${r}"`;return e&&(n+=` title="${tC(e)}"`),n+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tC(t.text)}},tL=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},tM=class t{options;renderer;textRenderer;constructor(t){this.options=t||C,this.options.renderer=this.options.renderer||new tB,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tL}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let t=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){r+=t||"";continue}}switch(a.type){case"space":r+=this.renderer.space(a);continue;case"hr":r+=this.renderer.hr(a);continue;case"heading":r+=this.renderer.heading(a);continue;case"code":r+=this.renderer.code(a);continue;case"table":r+=this.renderer.table(a);continue;case"blockquote":r+=this.renderer.blockquote(a);continue;case"list":r+=this.renderer.list(a);continue;case"html":r+=this.renderer.html(a);continue;case"def":r+=this.renderer.def(a);continue;case"paragraph":r+=this.renderer.paragraph(a);continue;case"text":{let n=a,o=this.renderer.text(n);for(;i+1<t.length&&"text"===t[i+1].type;)n=t[++i],o+=`
59
+ `+this.renderer.text(n);e?r+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):r+=o;continue}default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let t=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=t||"";continue}}switch(a.type){case"escape":case"text":r+=e.text(a);break;case"html":r+=e.html(a);break;case"link":r+=e.link(a);break;case"image":r+=e.image(a);break;case"strong":r+=e.strong(a);break;case"em":r+=e.em(a);break;case"codespan":r+=e.codespan(a);break;case"br":r+=e.br(a);break;case"del":r+=e.del(a);break;default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}},tF=class{options;block;constructor(t){this.options=t||C}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?tT.lex:tT.lexInline}provideParser(){return this.block?tM.parse:tM.parseInline}},t$=new class{defaults=k();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tM;Renderer=tB;TextRenderer=tL;Lexer=tT;Tokenizer=tA;Hooks=tF;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":for(let t of i.header)r=r.concat(this.walkTokens(t.tokens,e));for(let t of i.rows)for(let i of t)r=r.concat(this.walkTokens(i.tokens,e));break;case"list":r=r.concat(this.walkTokens(i.items,e));break;default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let a=t[i].flat(1/0);r=r.concat(this.walkTokens(a,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];r?e.renderers[t.name]=function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=r.apply(this,e)),i}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new tB(this.defaults);for(let r in t.renderer){if(!(r in e))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let i=t.renderer[r],a=e[r];e[r]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=a.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new tA(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let i=t.tokenizer[r],a=e[r];e[r]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tF;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let i=t.hooks[r],a=e[r];tF.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tF.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await i.call(e,t);return a.call(e,r)})();let n=i.call(e,t);return a.call(e,n)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await i.apply(e,t);return!1===r&&(r=await a.apply(e,t)),r})();let r=i.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,i=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(i.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tT.lex(t,e??this.defaults)}parser(t,e){return tM.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},a={...this.defaults,...i},n=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===i.async)return n(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return n(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return n(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let r=a.hooks?await a.hooks.preprocess(e):e,i=await (a.hooks?await a.hooks.provideLexer():t?tT.lex:tT.lexInline)(r,a),n=a.hooks?await a.hooks.processAllTokens(i):i;a.walkTokens&&await Promise.all(this.walkTokens(n,a.walkTokens));let o=await (a.hooks?await a.hooks.provideParser():t?tM.parse:tM.parseInline)(n,a);return a.hooks?await a.hooks.postprocess(o):o})().catch(n);try{a.hooks&&(e=a.hooks.preprocess(e));let r=(a.hooks?a.hooks.provideLexer():t?tT.lex:tT.lexInline)(e,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let i=(a.hooks?a.hooks.provideParser():t?tM.parse:tM.parseInline)(r,a);return a.hooks&&(i=a.hooks.postprocess(i)),i}catch(t){return n(t)}}}onError(t,e){return r=>{if(r.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tC(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function tE(t,e){return t$.parse(t,e)}tE.options=tE.setOptions=function(t){return t$.setOptions(t),tE.defaults=t$.defaults,C=tE.defaults,tE},tE.getDefaults=k,tE.defaults=C,tE.use=function(...t){return t$.use(...t),tE.defaults=t$.defaults,C=tE.defaults,tE},tE.walkTokens=function(t,e){return t$.walkTokens(t,e)},tE.parseInline=t$.parseInline,tE.Parser=tM,tE.parser=tM.parse,tE.Renderer=tB,tE.TextRenderer=tL,tE.Lexer=tT,tE.lexer=tT.lex,tE.Tokenizer=tA,tE.Hooks=tF,tE.parse=tE,tE.options,tE.setOptions,tE.use,tE.walkTokens,tE.parseInline,tM.parse,tT.lex;var tO=r(1357),tD={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},tR=new Map,tI=new Map,tz=(0,a.K2)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(a.Rm.debug("Registering icon pack:",e.name),"loader"in e)tI.set(e.name,e.loader);else if("icons"in e)tR.set(e.name,e.icons);else throw a.Rm.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),tK=(0,a.K2)(async(t,e)=>{let r=((t,e,r,i="")=>{let a=t.split(":");if("@"===t.slice(0,1)){if(a.length<2||a.length>3)return null;i=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){let t=a.pop(),r=a.pop(),o={provider:a.length>0?a[0]:i,prefix:r,name:t};return e&&!n(o)?null:o}let o=a[0],s=o.split("-");if(s.length>1){let t={provider:i,prefix:s.shift(),name:s.join("-")};return e&&!n(t)?null:t}if(r&&""===i){let t={provider:i,prefix:"",name:o};return e&&!n(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let i=r.prefix||e;if(!i)throw Error(`Icon name must contain a prefix: ${t}`);let o=tR.get(i);if(!o){let t=tI.get(i);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{o={...await t(),prefix:i},tR.set(i,o)}catch(t){throw a.Rm.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){var r;let i,a,n;if(t.icons[e])return d(t,e,[]);let o=(r=[e],i=t.icons,a=t.aliases||Object.create(null),n=Object.create(null),(r||Object.keys(i).concat(Object.keys(a))).forEach(function t(e){if(i[e])return n[e]=[];if(!(e in n)){n[e]=null;let r=a[e]&&a[e].parent,i=r&&t(r);i&&(n[e]=[r].concat(i))}return n[e]}),n)[e];return o?d(t,e,o):null}(o,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),tP=(0,a.K2)(async t=>{try{return await tK(t),!0}catch{return!1}},"isIconAvailable"),tq=(0,a.K2)(async(t,e,r)=>{var i;let n,o,s,h,c,d,p,f,b,k,C,w,_,S;try{n=await tK(t,e?.fallbackPrefix)}catch(t){a.Rm.error(t),n=tD}let v=(i=n,h={...l,...i},c={...u,...e},d={left:h.left,top:h.top,width:h.width,height:h.height},p=h.body,[h,c].forEach(t=>{var e,r,i,a;let n,o,s=[],l=t.hFlip,h=t.vFlip,c=t.rotate;switch(l?h?c+=2:(s.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),s.push("scale(-1 1)"),d.top=d.left=0):h&&(s.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),s.push("scale(1 -1)"),d.top=d.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:s.unshift("rotate(90 "+(n=d.height/2+d.top).toString()+" "+n.toString()+")");break;case 2:s.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:s.unshift("rotate(-90 "+(n=d.width/2+d.left).toString()+" "+n.toString()+")")}c%2==1&&(d.left!==d.top&&(n=d.left,d.left=d.top,d.top=n),d.width!==d.height&&(n=d.width,d.width=d.height,d.height=n)),s.length&&(e=p,r='<g transform="'+s.join(" ")+'">',i=(o=function(t,e="defs"){let r="",i=t.indexOf("<"+e);for(;i>=0;){let a=t.indexOf(">",i),n=t.indexOf("</"+e);if(-1===a||-1===n)break;let o=t.indexOf(">",n);if(-1===o)break;r+=t.slice(a+1,n).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:r,content:t}}(e)).defs,a=r+o.content+"</g>",p=i?"<defs>"+i+"</defs>"+a:a)}),f=c.width,b=c.height,k=d.width,C=d.height,null===f?o=g(s=null===b?"1em":"auto"===b?C:b,k/C):(o="auto"===f?k:f,s=null===b?g(o,C/k):"auto"===b?C:b),w={},(_=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(w[t]=e.toString())})("width",o),_("height",s),w.viewBox=(S=[d.left,d.top,k,C]).join(" "),{attributes:w,viewBox:S,body:p}),A=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t,e=y){let r,i=[];for(;r=m.exec(t);)i.push(r[1]);if(!i.length)return t;let a="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return i.forEach(r=>{let i="function"==typeof e?e(r):e+(x++).toString(),n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+n+')([")]|\\.[a-z])',"g"),"$1"+i+a+"$3")}),t=t.replace(RegExp(a,"g"),"")}(v.body),{...v.attributes,...r});return(0,a.jZ)(A,(0,a.zj)())},"getIconSVG");function tN(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"),i=(0,tO.T)(r);return!1===e?i.replace(/ /g,"&nbsp;"):i}function tj(t,e={}){let r=tN(t,e),i=tE.lexer(r),n=[[]],o=0;function s(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(o++,n.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&n[o].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&n[o].push({content:t.text,type:"normal"})}return(0,a.K2)(s,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type?n[o].push({content:t.text,type:"normal"}):n[o].push({content:t.raw,type:"normal"})}),n}function tW(t,{markdownAutoWrap:e}={}){let r=tE.lexer(t);function i(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>");if("strong"===t.type)return`<strong>${t.tokens?.map(i).join("")}</strong>`;if("em"===t.type)return`<em>${t.tokens?.map(i).join("")}</em>`;if("paragraph"===t.type)return`<p>${t.tokens?.map(i).join("")}</p>`;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return a.Rm.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,a.K2)(i,"output"),r.map(i).join("")}function tH(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tG(t,e){return tY(t,[],tH(e.content),e.type)}function tY(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];let[a,...n]=r,o=[...e,a];return t([{content:o.join(""),type:i}])?tY(t,o,n,i):(0===e.length&&a&&(e.push(a),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function tU(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tX(t,e)}function tX(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let a="";" "===t[0].content&&(a=" ",t.shift());let n=t.shift()??{content:" ",type:"normal"},o=[...i];if(""!==a&&o.push({content:a,type:"normal"}),o.push(n),e(o))return tX(t,e,r,o);if(i.length>0)r.push(i),t.unshift(n);else if(n.content){let[i,a]=tG(e,n);r.push([i]),a.content&&t.unshift(a)}return tX(t,e,r)}function tZ(t,e){e&&t.attr("style",e)}async function tV(t,e,r,i,n=!1,o=(0,a.zj)()){let s=t.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);let l=s.append("xhtml:div"),h=(0,a.Wi)(e.label)?await (0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),o):(0,a.jZ)(e.label,o),c=e.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(h),tZ(d,e.labelStyle),d.attr("class",`${c} ${i}`),tZ(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),l.style("max-width",r+"px"),l.style("text-align","center"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&l.attr("class","labelBkg");let u=l.node().getBoundingClientRect();return u.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),u=l.node().getBoundingClientRect()),s.node()}function tQ(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function tJ(t,e,r){let i=t.append("text"),a=tQ(i,1,e);t2(a,r);let n=a.node().getComputedTextLength();return i.remove(),n}function t0(t,e,r){let i=t.append("text"),a=tQ(i,1,e);t2(a,[{content:r,type:"normal"}]);let n=a.node()?.getBoundingClientRect();return n&&i.remove(),n}function t1(t,e,r,i=!1){let n=e.append("g"),o=n.insert("rect").attr("class","background").attr("style","stroke: none"),s=n.append("text").attr("y","-10.1"),l=0;for(let e of r){let r=(0,a.K2)(e=>tJ(n,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tU(e,r))t2(tQ(s,l,1.1),t),l++}if(!i)return s.node();{let t=s.node().getBBox();return o.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),n.node()}}function t2(t,e){t.text(""),e.forEach((e,r)=>{let i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(e.content):i.text(" "+e.content)})}async function t5(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,n)=>(r.push((async()=>{let r=`${i}:${n}`;return await tP(r)?await tq(r,void 0,{class:"label-icon"}):`<i class='${(0,a.jZ)(t,e).replace(":"," ")}'></i>`})()),t));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}(0,a.K2)(tN,"preprocessMarkdown"),(0,a.K2)(tj,"markdownToLines"),(0,a.K2)(tW,"markdownToHTML"),(0,a.K2)(tH,"splitTextToChars"),(0,a.K2)(tG,"splitWordToFitWidth"),(0,a.K2)(tY,"splitWordToFitWidthRecursion"),(0,a.K2)(tU,"splitLineToFitWidth"),(0,a.K2)(tX,"splitLineToFitWidthRecursion"),(0,a.K2)(tZ,"applyStyle"),(0,a.K2)(tV,"addHtmlSpan"),(0,a.K2)(tQ,"createTspan"),(0,a.K2)(tJ,"computeWidthOfText"),(0,a.K2)(t0,"computeDimensionOfText"),(0,a.K2)(t1,"createFormattedText"),(0,a.K2)(t2,"updateTextContentAndStyles"),(0,a.K2)(t5,"replaceIconSubstring");var t3=(0,a.K2)(async(t,e="",{style:r="",isTitle:n=!1,classes:o="",useHtmlLabels:s=!0,isNode:l=!0,width:h=200,addSvgBackground:c=!1}={},d)=>{if(a.Rm.debug("XYZ createText",e,r,n,o,s,l,"addSvgBackground: ",c),s){let n=tW(e,d),s=await t5((0,i.Sm)(n),d),u=e.replace(/\\\\/g,"\\"),p={isNode:l,label:(0,a.Wi)(e)?u:s,labelStyle:r.replace("fill:","color:")};return await tV(t,p,h,o,c,d)}{let i=t1(h,t,tj(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),d),!!e&&c);if(l){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,b.Lt)(i).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,b.Lt)(i).select("rect").attr("style",t.replace(/background:/g,"fill:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,b.Lt)(i).select("text").attr("style",e)}return i}},"createText")},5695(t,e,r){"use strict";r.d(e,{Fr:()=>h,GX:()=>l,KX:()=>s,WW:()=>n,ue:()=>a});var i=r(8755),a=(0,i.K2)(t=>{let{handDrawnSeed:e}=(0,i.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),n=(0,i.K2)(t=>{let e=o([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),o=(0,i.K2)(t=>{let e=new Map;return t.forEach(t=>{let[r,i]=t.split(":");e.set(r.trim(),i?.trim())}),e},"styles2Map"),s=(0,i.K2)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),l=(0,i.K2)(t=>{let{stylesArray:e}=n(t),r=[],i=[],a=[],o=[];return e.forEach(t=>{let e=t[0];s(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&a.push(t.join(":")+" !important"),"fill"===e&&o.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:o}},"styles2String"),h=(0,i.K2)((t,e)=>{let{themeVariables:r,handDrawnSeed:a}=(0,i.D7)(),{nodeBorder:o,mainBkg:s}=r,{stylesMap:l}=n(t);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||o,seed:a,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),c=(0,i.K2)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},7618(t,e,r){"use strict";r.d(e,{DA:()=>k,IU:()=>L,U:()=>B,U7:()=>en,U_:()=>es,Zk:()=>c,aP:()=>er,gh:()=>eo,lC:()=>u,on:()=>ea});var i=r(5040),a=r(5695),n=r(3919),o=r(3218),s=r(8755),l=r(6040),h=r(726),c=(0,s.K2)(async(t,e,r)=>{let i,a=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels),h=t.insert("g").attr("class",r||"node default").attr("id",e.domId||e.id),c=h.insert("g").attr("class","label").attr("style",(0,o.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let d=await (0,n.GZ)(c,(0,s.jZ)((0,o.Sm)(i),(0,s.D7)()),{useHtmlLabels:a,width:e.width||(0,s.D7)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),u=d.getBBox(),p=(e?.padding??0)/2;if(a){let t=d.children[0],e=(0,l.Lt)(d),r=t.getElementsByTagName("img");if(r){let t=""===i.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=s.UI.fontSize]=(0,o.I5)(t),i=5*r+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";r(e)}(0,s.K2)(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))}u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}return a?c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):c.attr("transform","translate(0, "+-u.height/2+")"),e.centerLabel&&c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:h,bbox:u,halfPadding:p,label:c}},"labelHelper"),d=(0,s.K2)(async(t,e,r)=>{let i=r.useHtmlLabels||(0,s._3)((0,s.D7)()?.flowchart?.htmlLabels),a=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),h=await (0,n.GZ)(a,(0,s.jZ)((0,o.Sm)(e),(0,s.D7)()),{useHtmlLabels:i,width:r.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),c=h.getBBox(),d=r.padding/2;if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){let t=h.children[0],e=(0,l.Lt)(h);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}return i?a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):a.attr("transform","translate(0, "+-c.height/2+")"),r.centerLabel&&a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:t,bbox:c,halfPadding:d,label:a}},"insertLabel"),u=(0,s.K2)((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),p=(0,s.K2)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function f(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function g(t,e,r,i,a,n){let o=[],s=r-t,l=2*Math.PI/(s/n),h=e+(i-e)/2;for(let e=0;e<=50;e++){let r=t+e/50*s,i=h+a*Math.sin(l*(r-t));o.push({x:r,y:i})}return o}function m(t,e,r,i,a,n){let o=[],s=a*Math.PI/180,l=(n*Math.PI/180-s)/(i-1);for(let a=0;a<i;a++){let i=s+a*l,n=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:-n,y:-h})}return o}(0,s.K2)(f,"createPathFromPoints"),(0,s.K2)(g,"generateFullSineWavePoints"),(0,s.K2)(m,"generateCirclePoints");var y=(0,s.K2)((t,e)=>{var r,i,a=t.x,n=t.y,o=e.x-a,s=e.y-n,l=t.width/2,h=t.height/2;return Math.abs(s)*l>Math.abs(o)*h?(s<0&&(h=-h),r=0===s?0:h*o/s,i=h):(o<0&&(l=-l),r=l,i=0===o?0:l*s/o),{x:a+r,y:n+i}},"intersectRect");function x(t,e){e&&t.attr("style",e)}async function b(t){let e=(0,l.Lt)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=(0,s.D7)(),a=t.label;t.label&&(0,s.Wi)(t.label)&&(a=await (0,s.dj)(t.label.replace(s.Y2.lineBreakRegex,"\n"),i));let n='<span class="'+(t.isNode?"nodeLabel":"edgeLabel")+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+a+"</span>";return r.html((0,s.jZ)(n,i)),x(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,s.K2)(x,"applyStyle"),(0,s.K2)(b,"addHtmlLabel");var k=(0,s.K2)(async(t,e,r,i)=>{let a=t||"";if("object"==typeof a&&(a=a[0]),(0,s._3)((0,s.D7)().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),s.Rm.info("vertexText"+a);let t={isNode:i,label:(0,o.Sm)(a).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:e?e.replace("fill:","color:"):e};return await b(t)}{let t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));for(let e of"string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[]){let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),r?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}},"createLabel"),C=(0,s.K2)((t,e,r,i,a)=>["M",t+a,e,"H",t+r-a,"A",a,a,"0 0 1",t+r,e+a,"V",e+i-a,"A",a,a,"0 0 1",t+r-a,e+i,"H",t+a,"A",a,a,"0 0 1",t,e+i-a,"V",e+a,"A",a,a,"0 0 1",t+a,e,"Z"].join(" "),"createRoundedRectPathD"),w=(0,s.K2)(async(t,e)=>{let r;s.Rm.info("Creating subgraph rect for ",e.id,e);let o=(0,s.D7)(),{themeVariables:c,handDrawnSeed:d}=o,{clusterBkg:u,clusterBorder:p}=c,{labelStyles:f,nodeStyles:g,borderStyles:m,backgroundStyles:x}=(0,a.GX)(e),b=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),k=(0,s._3)(o.flowchart.htmlLabels),w=b.insert("g").attr("class","cluster-label "),_=await (0,n.GZ)(w,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0}),S=_.getBBox();if((0,s._3)(o.flowchart.htmlLabels)){let t=_.children[0],e=(0,l.Lt)(_);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let v=e.width<=S.width+e.padding?S.width+e.padding:e.width;e.width<=S.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let A=e.height,T=e.x-v/2,B=e.y-A/2;if(s.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.A.svg(b),i=(0,a.Fr)(e,{roughness:.7,fill:u,stroke:p,fillWeight:3,seed:d}),n=t.path(C(T,B,v,A,0),i);(r=b.insert(()=>(s.Rm.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(r=b.insert("rect",":first-child")).attr("style",g).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",B).attr("width",v).attr("height",A);let{subGraphTitleTopMargin:L}=(0,i.O)(o);if(w.attr("transform",`translate(${e.x-S.width/2}, ${e.y-e.height/2+L})`),f){let t=w.select("span");t&&t.attr("style",f)}let M=r.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=S.height-e.padding/2,e.intersect=function(t){return y(e,t)},{cluster:b,labelBBox:S}},"rect"),_=(0,s.K2)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=r.insert("rect",":first-child"),a=0*e.padding,n=a/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");let o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return y(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),S=(0,s.K2)(async(t,e)=>{let r,i=(0,s.D7)(),{themeVariables:a,handDrawnSeed:n}=i,{altBackground:o,compositeBackground:c,compositeTitleBackground:d,nodeBorder:u}=a,p=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),f=p.insert("g",":first-child"),g=p.insert("g").attr("class","cluster-label"),m=p.append("rect"),x=g.node().appendChild(await k(e.label,e.labelStyle,void 0,!0)),b=x.getBBox();if((0,s._3)(i.flowchart.htmlLabels)){let t=x.children[0],e=(0,l.Lt)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}let w=0*e.padding,_=(e.width<=b.width+e.padding?b.width+e.padding:e.width)+w;e.width<=b.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height+w,v=e.height+w-b.height-6,A=e.x-_/2,T=e.y-S/2;e.width=_;let B=e.y-e.height/2-w/2+b.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),i=h.A.svg(p),a=e.rx||e.ry?i.path(C(A,T,_,S,10),{roughness:.7,fill:d,fillStyle:"solid",stroke:u,seed:n}):i.rectangle(A,T,_,S,{seed:n});r=p.insert(()=>a,":first-child");let s=i.rectangle(A,B,_,v,{fill:t?o:c,fillStyle:t?"hachure":"solid",stroke:u,seed:n});r=p.insert(()=>a,":first-child"),m=p.insert(()=>s)}else(r=f.insert("rect",":first-child")).attr("class","outer").attr("x",A).attr("y",T).attr("width",_).attr("height",S).attr("data-look",e.look),m.attr("class","inner").attr("x",A).attr("y",B).attr("width",_).attr("height",v);return g.attr("transform",`translate(${e.x-b.width/2}, ${T+1-3*!(0,s._3)(i.flowchart.htmlLabels)})`),e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=b.height-e.padding/2,e.labelBBox=b,e.intersect=function(t){return y(e,t)},{cluster:p,labelBBox:b}},"roundedWithTitle"),v=(0,s.K2)(async(t,e)=>{let r;s.Rm.info("Creating subgraph rect for ",e.id,e);let o=(0,s.D7)(),{themeVariables:c,handDrawnSeed:d}=o,{clusterBkg:u,clusterBorder:p}=c,{labelStyles:f,nodeStyles:g,borderStyles:m,backgroundStyles:x}=(0,a.GX)(e),b=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),k=(0,s._3)(o.flowchart.htmlLabels),w=b.insert("g").attr("class","cluster-label "),_=await (0,n.GZ)(w,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=_.getBBox();if((0,s._3)(o.flowchart.htmlLabels)){let t=_.children[0],e=(0,l.Lt)(_);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let v=e.width<=S.width+e.padding?S.width+e.padding:e.width;e.width<=S.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let A=e.height,T=e.x-v/2,B=e.y-A/2;if(s.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.A.svg(b),i=(0,a.Fr)(e,{roughness:.7,fill:u,stroke:p,fillWeight:4,seed:d}),n=t.path(C(T,B,v,A,e.rx),i);(r=b.insert(()=>(s.Rm.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(r=b.insert("rect",":first-child")).attr("style",g).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",B).attr("width",v).attr("height",A);let{subGraphTitleTopMargin:L}=(0,i.O)(o);if(w.attr("transform",`translate(${e.x-S.width/2}, ${e.y-e.height/2+L})`),f){let t=w.select("span");t&&t.attr("style",f)}let M=r.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=S.height-e.padding/2,e.intersect=function(t){return y(e,t)},{cluster:b,labelBBox:S}},"kanbanSection"),A={rect:w,squareRect:w,roundedWithTitle:S,noteGroup:_,divider:(0,s.K2)((t,e)=>{let r,{themeVariables:i,handDrawnSeed:a}=(0,s.D7)(),{nodeBorder:n}=i,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),l=o.insert("g",":first-child"),c=0*e.padding,d=e.width+c;e.diff=-e.padding;let u=e.height+c,p=e.x-d/2,f=e.y-u/2;if(e.width=d,"handDrawn"===e.look){let t=h.A.svg(o).rectangle(p,f,d,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:a});r=o.insert(()=>t,":first-child")}else(r=l.insert("rect",":first-child")).attr("class","divider").attr("x",p).attr("y",f).attr("width",d).attr("height",u).attr("data-look",e.look);return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return y(e,t)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:v},T=new Map,B=(0,s.K2)(async(t,e)=>{let r=e.shape||"rect",i=await A[r](t,e);return T.set(e.id,i),i},"insertCluster"),L=(0,s.K2)(()=>{T=new Map},"clear");function M(t,e,r,i){var a=t.x,n=t.y,o=a-i.x,s=n-i.y,l=Math.sqrt(e*e*s*s+r*r*o*o),h=Math.abs(e*r*o/l);i.x<a&&(h=-h);var c=Math.abs(e*r*s/l);return i.y<n&&(c=-c),{x:a+h,y:n+c}}function F(t,e,r){return M(t,e,e,r)}function $(t,e,r,i){var a,n,o,s,l,h,c,d,u,p,f,g,m;if(a=e.y-t.y,o=t.x-e.x,l=e.x*t.y-t.x*e.y,u=a*r.x+o*r.y+l,p=a*i.x+o*i.y+l,!(0!==u&&0!==p&&E(u,p))){if((n=i.y-r.y,s=r.x-i.x,h=i.x*r.y-r.x*i.y,c=n*t.x+s*t.y+h,d=n*e.x+s*e.y+h,!(0!==c&&0!==d&&E(c,d)))&&0!=(f=a*s-n*o))return g=Math.abs(f/2),{x:(m=o*h-s*l)<0?(m-g)/f:(m+g)/f,y:(m=n*l-a*h)<0?(m-g)/f:(m+g)/f}}}function E(t,e){return t*e>0}function O(t,e,r){let i=t.x,a=t.y,n=[],o=1/0,s=1/0;"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));let l=i-t.width/2-o,h=a-t.height/2-s;for(let i=0;i<e.length;i++){let a=e[i],o=e[i<e.length-1?i+1:0],s=$(t,r,{x:l+a.x,y:h+a.y},{x:l+o.x,y:h+o.y});s&&n.push(s)}return n.length?(n.length>1&&n.sort(function(t,e){let i=t.x-r.x,a=t.y-r.y,n=Math.sqrt(i*i+a*a),o=e.x-r.x,s=e.y-r.y,l=Math.sqrt(o*o+s*s);return n<l?-1:+(n!==l)}),n[0]):t}(0,s.K2)(function(t,e){return t.intersect(e)},"intersectNode"),(0,s.K2)(M,"intersectEllipse"),(0,s.K2)(F,"intersectCircle"),(0,s.K2)($,"intersectLine"),(0,s.K2)(E,"sameSign"),(0,s.K2)(O,"intersectPolygon");function D(t,e){let{labelStyles:r}=(0,a.GX)(e);e.labelStyle=r;let i=p(e),n=i;i||(n="anchor");let l=t.insert("g").attr("class",n).attr("id",e.domId||e.id),{cssStyles:c}=e,d=h.A.svg(l),f=(0,a.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);let g=d.circle(0,0,2,f),m=l.insert(()=>g,":first-child");return m.attr("class","anchor").attr("style",(0,o.KL)(c)),u(e,m),e.intersect=function(t){return s.Rm.info("Circle intersect",e,1,t),F(e,1,t)},l}function R(t,e,r,i,a,n,o){let s=Math.atan2(i-e,r-t),l=Math.sqrt(((r-t)/2/a)**2+((i-e)/2/n)**2);if(l>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-l**2),c=(t+r)/2+h*n*Math.sin(s)*(o?-1:1),d=(e+i)/2-h*a*Math.cos(s)*(o?-1:1),u=Math.atan2((e-d)/n,(t-c)/a),p=Math.atan2((i-d)/n,(r-c)/a)-u;o&&p<0&&(p+=2*Math.PI),!o&&p>0&&(p-=2*Math.PI);let f=[];for(let t=0;t<20;t++){let e=u+t/19*p,r=c+a*Math.cos(e),i=d+n*Math.sin(e);f.push({x:r,y:i})}return f}async function I(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=o.width+e.padding+20,l=o.height+e.padding,d=l/2,g=d/(2.5+l/50),{cssStyles:m}=e,y=[{x:s/2,y:-l/2},{x:-s/2,y:-l/2},...R(-s/2,-l/2,-s/2,l/2,g,d,!1),{x:s/2,y:l/2},...R(s/2,l/2,s/2,-l/2,g,d,!0)],x=h.A.svg(n),b=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=f(y),C=x.path(k,b),w=n.insert(()=>C,":first-child");return w.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${g/2}, 0)`),u(e,w),e.intersect=function(t){return O(e,y,t)},n}function z(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}async function K(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:s}=await c(t,e,p(e)),l=s.height+e.padding,d=s.width+e.padding+12,g=-l,m=[{x:12,y:g},{x:d,y:g},{x:d,y:0},{x:0,y:0},{x:0,y:g+12},{x:12,y:g}],{cssStyles:y}=e;if("handDrawn"===e.look){let t=h.A.svg(o),i=(0,a.Fr)(e,{}),n=f(m),s=t.path(n,i);r=o.insert(()=>s,":first-child").attr("transform",`translate(${-d/2}, ${l/2})`),y&&r.attr("style",y)}else r=z(o,d,l,m);return n&&r.attr("style",n),u(e,r),e.intersect=function(t){return O(e,m,t)},o}function P(t,e){let{nodeStyles:r}=(0,a.GX)(e);e.label="";let i=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,o=Math.max(28,e.width??0),s=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],l=h.A.svg(i),c=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let d=f(s),u=l.path(d,c),g=i.insert(()=>u,":first-child");return n&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return O(e,s,t)},i}async function q(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:l,bbox:d,halfPadding:f}=await c(t,e,p(e)),g=d.width/2+f,{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.A.svg(l),i=(0,a.Fr)(e,{}),n=t.circle(0,0,2*g,i);(r=l.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,o.KL)(m))}else r=l.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",g).attr("cx",0).attr("cy",0);return u(e,r),e.intersect=function(t){return s.Rm.info("Circle intersect",e,g,t),F(e,g,t)},l}function N(t){let e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t,a={x:i/2*e,y:i/2*r},n={x:-(i/2)*e,y:i/2*r},o={x:-(i/2)*e,y:-(i/2)*r},s={x:i/2*e,y:-(i/2)*r};return`M ${n.x},${n.y} L ${s.x},${s.y}
61
+ M ${a.x},${a.y} L ${o.x},${o.y}`}function j(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r,e.label="";let n=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),o=Math.max(30,e?.width??0),{cssStyles:l}=e,c=h.A.svg(n),d=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let f=c.circle(0,0,2*o,d),g=N(o),m=c.path(g,d),y=n.insert(()=>f,":first-child");return y.insert(()=>m),l&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",l),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),u(e,y),e.intersect=function(t){return s.Rm.info("crossedCircle intersect",e,{radius:o,point:t}),F(e,o,t)},n}function W(t,e,r,i=100,a=0,n=180){let o=[],s=a*Math.PI/180,l=(n*Math.PI/180-s)/(i-1);for(let a=0;a<i;a++){let i=s+a*l,n=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:-n,y:-h})}return o}async function H(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=o.width+(e.padding??0),d=o.height+(e.padding??0),g=Math.max(5,.1*d),{cssStyles:m}=e,y=[...W(l/2,-d/2,g,30,-90,0),{x:-l/2-g,y:g},...W(l/2+2*g,-g,g,20,-180,-270),...W(l/2+2*g,g,g,20,-90,-180),{x:-l/2-g,y:-d/2},...W(l/2,d/2,g,20,0,90)],x=[{x:l/2,y:-d/2-g},{x:-l/2,y:-d/2-g},...W(l/2,-d/2,g,20,-90,0),{x:-l/2-g,y:-g},...W(l/2+.1*l,-g,g,20,-180,-270),...W(l/2+.1*l,g,g,20,-90,-180),{x:-l/2-g,y:d/2},...W(l/2,d/2,g,20,0,90),{x:-l/2,y:d/2+g},{x:l/2,y:d/2+g}],b=h.A.svg(n),k=(0,a.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let C=f(y).replace("Z",""),w=b.path(C,k),_=f(x),S=b.path(_,{...k}),v=n.insert("g",":first-child");return v.insert(()=>S,":first-child").attr("stroke-opacity",0),v.insert(()=>w,":first-child"),v.attr("class","text"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${g}, 0)`),s.attr("transform",`translate(${-l/2+g-(o.x-(o.left??0))},${-d/2+(e.padding??0)/2-(o.y-(o.top??0))})`),u(e,v),e.intersect=function(t){return O(e,x,t)},n}function G(t,e,r,i=100,a=0,n=180){let o=[],s=a*Math.PI/180,l=(n*Math.PI/180-s)/(i-1);for(let a=0;a<i;a++){let i=s+a*l,n=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:n,y:h})}return o}async function Y(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=o.width+(e.padding??0),d=o.height+(e.padding??0),g=Math.max(5,.1*d),{cssStyles:m}=e,y=[...G(l/2,-d/2,g,20,-90,0),{x:l/2+g,y:-g},...G(l/2+2*g,-g,g,20,-180,-270),...G(l/2+2*g,g,g,20,-90,-180),{x:l/2+g,y:d/2},...G(l/2,d/2,g,20,0,90)],x=[{x:-l/2,y:-d/2-g},{x:l/2,y:-d/2-g},...G(l/2,-d/2,g,20,-90,0),{x:l/2+g,y:-g},...G(l/2+2*g,-g,g,20,-180,-270),...G(l/2+2*g,g,g,20,-90,-180),{x:l/2+g,y:d/2},...G(l/2,d/2,g,20,0,90),{x:l/2,y:d/2+g},{x:-l/2,y:d/2+g}],b=h.A.svg(n),k=(0,a.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let C=f(y).replace("Z",""),w=b.path(C,k),_=f(x),S=b.path(_,{...k}),v=n.insert("g",":first-child");return v.insert(()=>S,":first-child").attr("stroke-opacity",0),v.insert(()=>w,":first-child"),v.attr("class","text"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${-g}, 0)`),s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(o.x-(o.left??0))},${-d/2+(e.padding??0)/2-(o.y-(o.top??0))})`),u(e,v),e.intersect=function(t){return O(e,x,t)},n}function U(t,e,r,i=100,a=0,n=180){let o=[],s=a*Math.PI/180,l=(n*Math.PI/180-s)/(i-1);for(let a=0;a<i;a++){let i=s+a*l,n=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:-n,y:-h})}return o}async function X(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=o.width+(e.padding??0),d=o.height+(e.padding??0),g=Math.max(5,.1*d),{cssStyles:m}=e,y=[...U(l/2,-d/2,g,30,-90,0),{x:-l/2-g,y:g},...U(l/2+2*g,-g,g,20,-180,-270),...U(l/2+2*g,g,g,20,-90,-180),{x:-l/2-g,y:-d/2},...U(l/2,d/2,g,20,0,90)],x=[...U(-l/2+g+g/2,-d/2,g,20,-90,-180),{x:l/2-g/2,y:g},...U(-l/2-g/2,-g,g,20,0,90),...U(-l/2-g/2,g,g,20,-90,0),{x:l/2-g/2,y:-g},...U(-l/2+g+g/2,d/2,g,30,-180,-270)],b=[{x:l/2,y:-d/2-g},{x:-l/2,y:-d/2-g},...U(l/2,-d/2,g,20,-90,0),{x:-l/2-g,y:-g},...U(l/2+2*g,-g,g,20,-180,-270),...U(l/2+2*g,g,g,20,-90,-180),{x:-l/2-g,y:d/2},...U(l/2,d/2,g,20,0,90),{x:-l/2,y:d/2+g},{x:l/2-g-g/2,y:d/2+g},...U(-l/2+g+g/2,-d/2,g,20,-90,-180),{x:l/2-g/2,y:g},...U(-l/2-g/2,-g,g,20,0,90),...U(-l/2-g/2,g,g,20,-90,0),{x:l/2-g/2,y:-g},...U(-l/2+g+g/2,d/2,g,30,-180,-270)],k=h.A.svg(n),C=(0,a.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=f(y).replace("Z",""),_=k.path(w,C),S=f(x).replace("Z",""),v=k.path(S,C),A=f(b),T=k.path(A,{...C}),B=n.insert("g",":first-child");return B.insert(()=>T,":first-child").attr("stroke-opacity",0),B.insert(()=>_,":first-child"),B.insert(()=>v,":first-child"),B.attr("class","text"),m&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${g-g/4}, 0)`),s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(o.x-(o.left??0))},${-d/2+(e.padding??0)/2-(o.y-(o.top??0))})`),u(e,B),e.intersect=function(t){return O(e,b,t)},n}async function Z(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=Math.max(80,(o.width+(e.padding??0)*2)*1.25,e?.width??0),l=Math.max(20,o.height+(e.padding??0)*2,e?.height??0),d=l/2,{cssStyles:g}=e,y=h.A.svg(n),x=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=s-d,k=l/4,C=[{x:b,y:0},{x:k,y:0},{x:0,y:l/2},{x:k,y:l},{x:b,y:l},...m(-b,-l/2,d,50,270,90)],w=f(C),_=y.path(w,x),S=n.insert(()=>_,":first-child");return S.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",g),i&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",i),S.attr("transform",`translate(${-s/2}, ${-l/2})`),u(e,S),e.intersect=function(t){return O(e,C,t)},n}(0,s.K2)(D,"anchor"),(0,s.K2)(R,"generateArcPoints"),(0,s.K2)(I,"bowTieRect"),(0,s.K2)(z,"insertPolygonShape"),(0,s.K2)(K,"card"),(0,s.K2)(P,"choice"),(0,s.K2)(q,"circle"),(0,s.K2)(N,"createLine"),(0,s.K2)(j,"crossedCircle"),(0,s.K2)(W,"generateCirclePoints"),(0,s.K2)(H,"curlyBraceLeft"),(0,s.K2)(G,"generateCirclePoints"),(0,s.K2)(Y,"curlyBraceRight"),(0,s.K2)(U,"generateCirclePoints"),(0,s.K2)(X,"curlyBraces"),(0,s.K2)(Z,"curvedTrapezoid");var V=(0,s.K2)((t,e,r,i,a,n)=>`M${t},${e+n} a${a},${n} 0,0,0 ${r},0 a${a},${n} 0,0,0 ${-r},0 l0,${i} a${a},${n} 0,0,0 ${r},0 l0,${-i}`,"createCylinderPathD"),Q=(0,s.K2)((t,e,r,i,a,n)=>`M${t},${e+n} M${t+r},${e+n} a${a},${n} 0,0,0 ${-r},0 l0,${i} a${a},${n} 0,0,0 ${r},0 l0,${-i}`,"createOuterCylinderPathD"),J=(0,s.K2)((t,e,r,i,a,n)=>`M${t-r/2},${-i/2} a${a},${n} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function tt(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:s,bbox:l,label:d}=await c(t,e,p(e)),f=Math.max(l.width+e.padding,e.width??0),g=f/2,m=g/(2.5+f/50),x=Math.max(l.height+m+e.padding,e.height??0),{cssStyles:b}=e;if("handDrawn"===e.look){let t=h.A.svg(s),i=Q(0,0,f,x,g,m),n=J(0,m,f,x,g,m),o=t.path(i,(0,a.Fr)(e,{})),l=t.path(n,(0,a.Fr)(e,{fill:"none"}));r=s.insert(()=>l,":first-child"),(r=s.insert(()=>o,":first-child")).attr("class","basic label-container"),b&&r.attr("style",b)}else{let t=V(0,0,f,x,g,m);r=s.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(b)).attr("style",n)}return r.attr("label-offset-y",m),r.attr("transform",`translate(${-f/2}, ${-(x/2+m)})`),u(e,r),d.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(e.padding??0)/1.5-(l.y-(l.top??0))})`),e.intersect=function(t){let r=y(e,t),i=r.x-(e.x??0);if(0!=g&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-m)){let a=m*m*(1-i*i/(g*g));a>0&&(a=Math.sqrt(a)),a=m-a,t.y-(e.y??0)>0&&(a=-a),r.y+=a}return r},s}async function te(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=o.width+e.padding,d=o.height+e.padding,f=.2*d,g=-l/2,m=-d/2-f/2,{cssStyles:x}=e,b=h.A.svg(n),k=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let C=b.polygon([{x:g,y:m+f},{x:-g,y:m+f},{x:-g,y:-m},{x:g,y:-m},{x:g,y:m},{x:-g,y:m},{x:-g,y:m+f}].map(t=>[t.x,t.y]),k),w=n.insert(()=>C,":first-child");return w.attr("class","basic label-container"),x&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",x),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),s.attr("transform",`translate(${g+(e.padding??0)/2-(o.x-(o.left??0))}, ${m+f+(e.padding??0)/2-(o.y-(o.top??0))})`),u(e,w),e.intersect=function(t){return y(e,t)},n}async function tr(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:l,bbox:d,halfPadding:f}=await c(t,e,p(e)),g=d.width/2+f+5,m=d.width/2+f,{cssStyles:y}=e;if("handDrawn"===e.look){let t=h.A.svg(l),i=(0,a.Fr)(e,{roughness:.2,strokeWidth:2.5}),n=(0,a.Fr)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*g,i),c=t.circle(0,0,2*m,n);(r=l.insert("g",":first-child")).attr("class",(0,o.KL)(e.cssClasses)).attr("style",(0,o.KL)(y)),r.node()?.appendChild(s),r.node()?.appendChild(c)}else{let t=(r=l.insert("g",":first-child")).insert("circle",":first-child"),e=r.insert("circle");r.attr("class","basic label-container").attr("style",n),t.attr("class","outer-circle").attr("style",n).attr("r",g).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",n).attr("r",m).attr("cx",0).attr("cy",0)}return u(e,r),e.intersect=function(t){return s.Rm.info("DoubleCircle intersect",e,g,t),F(e,g,t)},l}function ti(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.label="",e.labelStyle=i;let o=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,c=h.A.svg(o),{nodeBorder:d}=r,f=(0,a.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);let g=c.circle(0,0,14,f),m=o.insert(()=>g,":first-child");return m.selectAll("path").attr("style",`fill: ${d} !important;`),l&&l.length>0&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",l),n&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",n),u(e,m),e.intersect=function(t){return s.Rm.info("filledCircle intersect",e,{radius:7,point:t}),F(e,7,t)},o}async function ta(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:l}=await c(t,e,p(e)),d=o.width+(e.padding??0),g=d+o.height,m=d+o.height,y=[{x:0,y:-g},{x:m,y:-g},{x:m/2,y:0}],{cssStyles:x}=e,b=h.A.svg(n),k=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let C=f(y),w=b.path(C,k),_=n.insert(()=>w,":first-child").attr("transform",`translate(${-g/2}, ${g/2})`);return x&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",i),e.width=d,e.height=g,u(e,_),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-g/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return s.Rm.info("Triangle intersect",e,y,t),O(e,y,t)},n}function tn(t,e,{dir:r,config:{state:i,themeVariables:n}}){let{nodeStyles:o}=(0,a.GX)(e);e.label="";let s=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,c=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);"LR"===r&&(c=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let f=-1*c/2,g=-1*d/2,m=h.A.svg(s),x=(0,a.Fr)(e,{stroke:n.lineColor,fill:n.lineColor});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=m.rectangle(f,g,c,d,x),k=s.insert(()=>b,":first-child");l&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",l),o&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",o),u(e,k);let C=i?.padding??0;return e.width&&e.height&&(e.width+=C/2||0,e.height+=C/2||0),e.intersect=function(t){return y(e,t)},s}async function to(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),l=Math.max(80,o.width+(e.padding??0)*2,e?.width??0),d=Math.max(50,o.height+(e.padding??0)*2,e?.height??0),g=d/2,{cssStyles:y}=e,x=h.A.svg(n),b=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-l/2,y:-d/2},{x:l/2-g,y:-d/2},...m(-l/2+g,0,g,50,90,270),{x:l/2-g,y:d/2},{x:-l/2,y:d/2}],C=f(k),w=x.path(C,b),_=n.insert(()=>w,":first-child");return _.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",y),i&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",i),u(e,_),e.intersect=function(t){return s.Rm.info("Pill intersect",e,{radius:g,point:t}),O(e,k,t)},n}async function ts(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=o.height+(e.padding??0),l=o.width+(e.padding??0)*2.5,{cssStyles:d}=e,g=h.A.svg(n),m=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let y=l/2,x=y/6,b=s/2,k=(y+=x)-b/2,C=[{x:-k,y:-b},{x:0,y:-b},{x:k,y:-b},{x:y,y:0},{x:k,y:b},{x:0,y:b},{x:-k,y:b},{x:-y,y:0}],w=f(C),_=g.path(w,m),S=n.insert(()=>_,":first-child");return S.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",i),e.width=l,e.height=s,u(e,S),e.intersect=function(t){return O(e,C,t)},n}async function tl(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.label="",e.labelStyle=r;let{shapeSvg:n}=await c(t,e,p(e)),o=Math.max(30,e?.width??0),l=Math.max(30,e?.height??0),{cssStyles:d}=e,g=h.A.svg(n),m=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let y=[{x:0,y:0},{x:o,y:0},{x:0,y:l},{x:o,y:l}],x=f(y),b=g.path(x,m),k=n.insert(()=>b,":first-child");return k.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",i),k.attr("transform",`translate(${-o/2}, ${-l/2})`),u(e,k),e.intersect=function(t){return s.Rm.info("Pill intersect",e,{points:y}),O(e,y,t)},n}async function th(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;let l=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(l,i?.wrappingWidth??0);let{shapeSvg:d,bbox:p,label:f}=await c(t,e,"icon-shape default"),g="t"===e.pos,{nodeBorder:m}=r,{stylesMap:x}=(0,a.WW)(e),b=-l/2,k=-l/2,C=8*!!e.label,w=h.A.svg(d),_=(0,a.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");let S=w.rectangle(b,k,l,l,_),v=Math.max(l,p.width),A=l+p.height+C,T=w.rectangle(-v/2,-A/2,v,A,{..._,fill:"transparent",stroke:"none"}),B=d.insert(()=>S,":first-child"),L=d.insert(()=>T);if(e.icon){let t=d.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,s=r.y;t.attr("transform",`translate(${-i/2-o},${g?p.height/2+C/2-a/2-s:-p.height/2-C/2-a/2-s})`),t.attr("style",`color: ${x.get("stroke")??m};`)}return f.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${g?-A/2:A/2-p.height})`),B.attr("transform",`translate(0,${g?p.height/2+C/2:-p.height/2-C/2})`),u(e,L),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return y(e,t);let r=e.x??0,i=e.y??0,a=e.height??0,n=[];return O(e,n=g?[{x:r-p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2+p.height+C},{x:r+l/2,y:i-a/2+p.height+C},{x:r+l/2,y:i+a/2},{x:r-l/2,y:i+a/2},{x:r-l/2,y:i-a/2+p.height+C},{x:r-p.width/2,y:i-a/2+p.height+C}]:[{x:r-l/2,y:i-a/2},{x:r+l/2,y:i-a/2},{x:r+l/2,y:i-a/2+l},{x:r+p.width/2,y:i-a/2+l},{x:r+p.width/2/2,y:i+a/2},{x:r-p.width/2,y:i+a/2},{x:r-p.width/2,y:i-a/2+l},{x:r-l/2,y:i-a/2+l}],t)},d}async function tc(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;let l=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(l,i?.wrappingWidth??0);let{shapeSvg:d,bbox:p,label:f}=await c(t,e,"icon-shape default"),g=8*!!e.label,m="t"===e.pos,{nodeBorder:x,mainBkg:b}=r,{stylesMap:k}=(0,a.WW)(e),C=h.A.svg(d),w=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid"),w.stroke=k.get("fill")??b;let _=d.append("g");e.icon&&_.html(`<g>${await (0,n.WY)(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let S=_.node().getBBox(),v=S.width,A=S.height,T=S.x,B=S.y,L=Math.max(v,A)*Math.SQRT2+40,M=C.circle(0,0,L,w),F=Math.max(L,p.width),$=L+p.height+g,E=C.rectangle(-F/2,-$/2,F,$,{...w,fill:"transparent",stroke:"none"}),O=d.insert(()=>M,":first-child"),D=d.insert(()=>E);return _.attr("transform",`translate(${-v/2-T},${m?p.height/2+g/2-A/2-B:-p.height/2-g/2-A/2-B})`),_.attr("style",`color: ${k.get("stroke")??x};`),f.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${m?-$/2:$/2-p.height})`),O.attr("transform",`translate(0,${m?p.height/2+g/2:-p.height/2-g/2})`),u(e,D),e.intersect=function(t){return s.Rm.info("iconSquare intersect",e,t),y(e,t)},d}async function td(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;let l=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(l,i?.wrappingWidth??0);let{shapeSvg:d,bbox:p,halfPadding:f,label:g}=await c(t,e,"icon-shape default"),m="t"===e.pos,x=l+2*f,b=l+2*f,{nodeBorder:k,mainBkg:w}=r,{stylesMap:_}=(0,a.WW)(e),S=8*!!e.label,v=h.A.svg(d),A=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=_.get("fill")??w;let T=v.path(C(-b/2,-x/2,b,x,5),A),B=Math.max(b,p.width),L=x+p.height+S,M=v.rectangle(-B/2,-L/2,B,L,{...A,fill:"transparent",stroke:"none"}),F=d.insert(()=>T,":first-child").attr("class","icon-shape2"),$=d.insert(()=>M);if(e.icon){let t=d.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,s=r.y;t.attr("transform",`translate(${-i/2-o},${m?p.height/2+S/2-a/2-s:-p.height/2-S/2-a/2-s})`),t.attr("style",`color: ${_.get("stroke")??k};`)}return g.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${m?-L/2:L/2-p.height})`),F.attr("transform",`translate(0,${m?p.height/2+S/2:-p.height/2-S/2})`),u(e,$),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return y(e,t);let r=e.x??0,i=e.y??0,a=e.height??0,n=[];return O(e,n=m?[{x:r-p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2+p.height+S},{x:r+b/2,y:i-a/2+p.height+S},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+p.height+S},{x:r-p.width/2,y:i-a/2+p.height+S}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+x},{x:r+p.width/2,y:i-a/2+x},{x:r+p.width/2/2,y:i+a/2},{x:r-p.width/2,y:i+a/2},{x:r-p.width/2,y:i-a/2+x},{x:r-b/2,y:i-a/2+x}],t)},d}async function tu(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;let l=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(l,i?.wrappingWidth??0);let{shapeSvg:d,bbox:p,halfPadding:f,label:g}=await c(t,e,"icon-shape default"),m="t"===e.pos,x=l+2*f,b=l+2*f,{nodeBorder:k,mainBkg:w}=r,{stylesMap:_}=(0,a.WW)(e),S=8*!!e.label,v=h.A.svg(d),A=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=_.get("fill")??w;let T=v.path(C(-b/2,-x/2,b,x,.1),A),B=Math.max(b,p.width),L=x+p.height+S,M=v.rectangle(-B/2,-L/2,B,L,{...A,fill:"transparent",stroke:"none"}),F=d.insert(()=>T,":first-child"),$=d.insert(()=>M);if(e.icon){let t=d.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,s=r.y;t.attr("transform",`translate(${-i/2-o},${m?p.height/2+S/2-a/2-s:-p.height/2-S/2-a/2-s})`),t.attr("style",`color: ${_.get("stroke")??k};`)}return g.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${m?-L/2:L/2-p.height})`),F.attr("transform",`translate(0,${m?p.height/2+S/2:-p.height/2-S/2})`),u(e,$),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return y(e,t);let r=e.x??0,i=e.y??0,a=e.height??0,n=[];return O(e,n=m?[{x:r-p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2+p.height+S},{x:r+b/2,y:i-a/2+p.height+S},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+p.height+S},{x:r-p.width/2,y:i-a/2+p.height+S}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+x},{x:r+p.width/2,y:i-a/2+x},{x:r+p.width/2/2,y:i+a/2},{x:r-p.width/2,y:i+a/2},{x:r-p.width/2,y:i-a/2+x},{x:r-b/2,y:i-a/2+x}],t)},d}async function tp(t,e,{config:{flowchart:r}}){let i=new Image;i.src=e?.img??"",await i.decode();let n=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=n/o;let{labelStyles:l}=(0,a.GX)(e);e.labelStyle=l;let d=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;let p=Math.max(e.label?d??0:0,e?.assetWidth??n),f="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:p,g="on"===e.constraint?f/e.imageAspectRatio:e?.assetHeight??o;e.width=Math.max(f,d??0);let{shapeSvg:m,bbox:x,label:b}=await c(t,e,"image-shape default"),k="t"===e.pos,C=-f/2,w=8*!!e.label,_=h.A.svg(m),S=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=_.rectangle(C,-g/2,f,g,S),A=Math.max(f,x.width),T=g+x.height+w,B=_.rectangle(-A/2,-T/2,A,T,{...S,fill:"none",stroke:"none"}),L=m.insert(()=>v,":first-child"),M=m.insert(()=>B);if(e.img){let t=m.append("image");t.attr("href",e.img),t.attr("width",f),t.attr("height",g),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-f/2},${k?T/2-g:-T/2})`)}return b.attr("transform",`translate(${-x.width/2-(x.x-(x.left??0))},${k?-g/2-x.height/2-w/2:g/2-x.height/2+w/2})`),L.attr("transform",`translate(0,${k?x.height/2+w/2:-x.height/2-w/2})`),u(e,M),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return y(e,t);let r=e.x??0,i=e.y??0,a=e.height??0,n=[];return O(e,n=k?[{x:r-x.width/2,y:i-a/2},{x:r+x.width/2,y:i-a/2},{x:r+x.width/2,y:i-a/2+x.height+w},{x:r+f/2,y:i-a/2+x.height+w},{x:r+f/2,y:i+a/2},{x:r-f/2,y:i+a/2},{x:r-f/2,y:i-a/2+x.height+w},{x:r-x.width/2,y:i-a/2+x.height+w}]:[{x:r-f/2,y:i-a/2},{x:r+f/2,y:i-a/2},{x:r+f/2,y:i-a/2+g},{x:r+x.width/2,y:i-a/2+g},{x:r+x.width/2/2,y:i+a/2},{x:r-x.width/2,y:i+a/2},{x:r-x.width/2,y:i-a/2+g},{x:r-f/2,y:i-a/2+g}],t)},m}async function tf(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:s}=await c(t,e,p(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),d=Math.max(s.height+(e.padding??0)*2,e?.height??0),g=[{x:0,y:0},{x:l,y:0},{x:l+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.A.svg(o),i=(0,a.Fr)(e,{}),n=f(g),s=t.path(n,i);r=o.insert(()=>s,":first-child").attr("transform",`translate(${-l/2}, ${d/2})`),m&&r.attr("style",m)}else r=z(o,l,d,g);return n&&r.attr("style",n),e.width=l,e.height=d,u(e,r),e.intersect=function(t){return O(e,g,t)},o}async function tg(t,e,r){let i,{labelStyles:n,nodeStyles:s}=(0,a.GX)(e);e.labelStyle=n;let{shapeSvg:l,bbox:d}=await c(t,e,p(e)),f=Math.max(d.width+2*r.labelPaddingX,e?.width||0),g=Math.max(d.height+2*r.labelPaddingY,e?.height||0),m=-f/2,x=-g/2,{rx:b,ry:k}=e,{cssStyles:w}=e;if(r?.rx&&r.ry&&(b=r.rx,k=r.ry),"handDrawn"===e.look){let t=h.A.svg(l),r=(0,a.Fr)(e,{}),n=b||k?t.path(C(m,x,f,g,b||0),r):t.rectangle(m,x,f,g,r);(i=l.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,o.KL)(w))}else(i=l.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,o.KL)(b)).attr("ry",(0,o.KL)(k)).attr("x",m).attr("y",x).attr("width",f).attr("height",g);return u(e,i),e.intersect=function(t){return y(e,t)},l}async function tm(t,e){let{shapeSvg:r,bbox:i,label:a}=await c(t,e,"label"),n=r.insert("rect",":first-child");return n.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),u(e,n),e.intersect=function(t){return y(e,t)},r}async function ty(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:s}=await c(t,e,p(e)),l=Math.max(s.width+(e.padding??0),e?.width??0),d=Math.max(s.height+(e.padding??0),e?.height??0),g=[{x:0,y:0},{x:l+3*d/6,y:0},{x:l,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.A.svg(o),i=(0,a.Fr)(e,{}),n=f(g),s=t.path(n,i);r=o.insert(()=>s,":first-child").attr("transform",`translate(${-l/2}, ${d/2})`),m&&r.attr("style",m)}else r=z(o,l,d,g);return n&&r.attr("style",n),e.width=l,e.height=d,u(e,r),e.intersect=function(t){return O(e,g,t)},o}async function tx(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:s}=await c(t,e,p(e)),l=Math.max(s.width+(e.padding??0),e?.width??0),d=Math.max(s.height+(e.padding??0),e?.height??0),g=[{x:-3*d/6,y:0},{x:l,y:0},{x:l+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.A.svg(o),i=(0,a.Fr)(e,{}),n=f(g),s=t.path(n,i);r=o.insert(()=>s,":first-child").attr("transform",`translate(${-l/2}, ${d/2})`),m&&r.attr("style",m)}else r=z(o,l,d,g);return n&&r.attr("style",n),e.width=l,e.height=d,u(e,r),e.intersect=function(t){return O(e,g,t)},o}function tb(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.label="",e.labelStyle=r;let n=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,l=Math.max(35,e?.width??0),c=Math.max(35,e?.height??0),d=[{x:l,y:0},{x:0,y:c+3.5},{x:l-14,y:c+3.5},{x:0,y:2*c},{x:l,y:c-3.5},{x:14,y:c-3.5}],g=h.A.svg(n),m=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let y=f(d),x=g.path(y,m),b=n.insert(()=>x,":first-child");return o&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",o),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(-${l/2},${-c})`),u(e,b),e.intersect=function(t){return s.Rm.info("lightningBolt intersect",e,t),O(e,d,t)},n}(0,s.K2)(tt,"cylinder"),(0,s.K2)(te,"dividedRectangle"),(0,s.K2)(tr,"doublecircle"),(0,s.K2)(ti,"filledCircle"),(0,s.K2)(ta,"flippedTriangle"),(0,s.K2)(tn,"forkJoin"),(0,s.K2)(to,"halfRoundedRectangle"),(0,s.K2)(ts,"hexagon"),(0,s.K2)(tl,"hourglass"),(0,s.K2)(th,"icon"),(0,s.K2)(tc,"iconCircle"),(0,s.K2)(td,"iconRounded"),(0,s.K2)(tu,"iconSquare"),(0,s.K2)(tp,"imageSquare"),(0,s.K2)(tf,"inv_trapezoid"),(0,s.K2)(tg,"drawRect"),(0,s.K2)(tm,"labelRect"),(0,s.K2)(ty,"lean_left"),(0,s.K2)(tx,"lean_right"),(0,s.K2)(tb,"lightningBolt");var tk=(0,s.K2)((t,e,r,i,a,n,o)=>`M${t},${e+n} a${a},${n} 0,0,0 ${r},0 a${a},${n} 0,0,0 ${-r},0 l0,${i} a${a},${n} 0,0,0 ${r},0 l0,${-i} M${t},${e+n+o} a${a},${n} 0,0,0 ${r},0`,"createCylinderPathD"),tC=(0,s.K2)((t,e,r,i,a,n,o)=>`M${t},${e+n} M${t+r},${e+n} a${a},${n} 0,0,0 ${-r},0 l0,${i} a${a},${n} 0,0,0 ${r},0 l0,${-i} M${t},${e+n+o} a${a},${n} 0,0,0 ${r},0`,"createOuterCylinderPathD"),tw=(0,s.K2)((t,e,r,i,a,n)=>`M${t-r/2},${-i/2} a${a},${n} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function t_(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:s,bbox:l,label:d}=await c(t,e,p(e)),f=Math.max(l.width+(e.padding??0),e.width??0),g=f/2,m=g/(2.5+f/50),x=Math.max(l.height+m+(e.padding??0),e.height??0),b=.1*x,{cssStyles:k}=e;if("handDrawn"===e.look){let t=h.A.svg(s),i=tC(0,0,f,x,g,m,b),n=tw(0,m,f,x,g,m),o=(0,a.Fr)(e,{}),l=t.path(i,o),c=t.path(n,o);s.insert(()=>c,":first-child").attr("class","line"),(r=s.insert(()=>l,":first-child")).attr("class","basic label-container"),k&&r.attr("style",k)}else{let t=tk(0,0,f,x,g,m,b);r=s.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(k)).attr("style",n)}return r.attr("label-offset-y",m),r.attr("transform",`translate(${-f/2}, ${-(x/2+m)})`),u(e,r),d.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+m-(l.y-(l.top??0))})`),e.intersect=function(t){let r=y(e,t),i=r.x-(e.x??0);if(0!=g&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-m)){let a=m*m*(1-i*i/(g*g));a>0&&(a=Math.sqrt(a)),a=m-a,t.y-(e.y??0)>0&&(a=-a),r.y+=a}return r},s}async function tS(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),f=d/4,m=d+f,{cssStyles:y}=e,x=h.A.svg(n),b=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-l/2-l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:m/2},...g(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,f,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2},{x:-l/2,y:-m/2},{x:-l/2,y:m/2*1.1},{x:-l/2,y:-m/2}],C=x.polygon(k.map(t=>[t.x,t.y]),b),w=n.insert(()=>C,":first-child");return w.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(0,${-f/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)+l/2*.1/2-(o.x-(o.left??0))},${-d/2+(e.padding??0)-f/2-(o.y-(o.top??0))})`),u(e,w),e.intersect=function(t){return O(e,k,t)},n}async function tv(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),g=-l/2,m=-d/2,{cssStyles:y}=e,x=h.A.svg(n),b=(0,a.Fr)(e,{}),k=[{x:g-5,y:m+5},{x:g-5,y:m+d+5},{x:g+l-5,y:m+d+5},{x:g+l-5,y:m+d},{x:g+l,y:m+d},{x:g+l,y:m+d-5},{x:g+l+5,y:m+d-5},{x:g+l+5,y:m-5},{x:g+5,y:m-5},{x:g+5,y:m},{x:g,y:m},{x:g,y:m+5}];"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let C=f(k),w=x.path(C,b),_=f([{x:g,y:m+5},{x:g+l-5,y:m+5},{x:g+l-5,y:m+d},{x:g+l,y:m+d},{x:g+l,y:m},{x:g,y:m}]),S=x.path(_,{...b,fill:"none"}),v=n.insert(()=>S,":first-child");return v.insert(()=>w,":first-child"),v.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(o.width/2)-5-(o.x-(o.left??0))}, ${-(o.height/2)+5-(o.y-(o.top??0))})`),u(e,v),e.intersect=function(t){return O(e,k,t)},n}async function tA(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),m=d/4,y=d+m,x=-l/2,b=-y/2,{cssStyles:k}=e,C=g(x-5,b+y+5,x+l-5,b+y+5,m,.8),w=C?.[C.length-1],_=[{x:x-5,y:b+5},{x:x-5,y:b+y+5},...C,{x:x+l-5,y:w.y-5},{x:x+l,y:w.y-5},{x:x+l,y:w.y-10},{x:x+l+5,y:w.y-10},{x:x+l+5,y:b-5},{x:x+5,y:b-5},{x:x+5,y:b},{x,y:b},{x,y:b+5}],S=[{x,y:b+5},{x:x+l-5,y:b+5},{x:x+l-5,y:w.y-5},{x:x+l,y:w.y-5},{x:x+l,y:b},{x,y:b}],v=h.A.svg(n),A=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let T=f(_),B=v.path(T,A),L=f(S),M=v.path(L,A),F=n.insert(()=>B,":first-child");return F.insert(()=>M),F.attr("class","basic label-container"),k&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",k),i&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-(o.width/2)-5-(o.x-(o.left??0))}, ${-(o.height/2)+5-m/2-(o.y-(o.top??0))})`),u(e,F),e.intersect=function(t){return O(e,_,t)},n}async function tT(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i,e.useHtmlLabels||(0,s.zj)().flowchart?.htmlLabels!==!1||(e.centerLabel=!0);let{shapeSvg:o,bbox:l,label:d}=await c(t,e,p(e)),f=Math.max(l.width+(e.padding??0)*2,e?.width??0),g=Math.max(l.height+(e.padding??0)*2,e?.height??0),{cssStyles:m}=e,x=h.A.svg(o),b=(0,a.Fr)(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=x.rectangle(-f/2,-g/2,f,g,b),C=o.insert(()=>k,":first-child");return C.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",m),n&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",n),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),u(e,C),e.intersect=function(t){return y(e,t)},o}(0,s.K2)(t_,"linedCylinder"),(0,s.K2)(tS,"linedWaveEdgedRect"),(0,s.K2)(tv,"multiRect"),(0,s.K2)(tA,"multiWaveEdgedRectangle"),(0,s.K2)(tT,"note");var tB=(0,s.K2)((t,e,r)=>`M${t+r/2},${e} L${t+r},${e-r/2} L${t+r/2},${e-r} L${t},${e-r/2} Z`,"createDecisionBoxPathD");async function tL(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:l}=await c(t,e,p(e)),d=l.width+e.padding+(l.height+e.padding),f=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],{cssStyles:g}=e;if("handDrawn"===e.look){let t=h.A.svg(o),i=(0,a.Fr)(e,{}),n=tB(0,0,d),s=t.path(n,i);r=o.insert(()=>s,":first-child").attr("transform",`translate(${-d/2+.5}, ${d/2})`),g&&r.attr("style",g)}else(r=z(o,d,d,f)).attr("transform",`translate(${-d/2+.5}, ${d/2})`);return n&&r.attr("style",n),u(e,r),e.intersect=function(t){return s.Rm.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",O(e,f,t)),O(e,f,t)},o}async function tM(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0),e?.width??0),d=Math.max(o.height+(e.padding??0),e?.height??0),g=-l/2,m=-d/2,y=m/2,x=[{x:g+y,y:m},{x:g,y:0},{x:g+y,y:-m},{x:-g,y:-m},{x:-g,y:m}],{cssStyles:b}=e,k=h.A.svg(n),C=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=f(x),_=k.path(w,C),S=n.insert(()=>_,":first-child");return S.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(${-y/2},0)`),s.attr("transform",`translate(${-y/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),u(e,S),e.intersect=function(t){return O(e,x,t)},n}async function tF(t,e){let r,i,n,{labelStyles:o,nodeStyles:c}=(0,a.GX)(e);e.labelStyle=o,r=e.cssClasses?"node "+e.cssClasses:"node default";let d=t.insert("g").attr("class",r).attr("id",e.domId||e.id),p=d.insert("g"),f=d.insert("g").attr("class","label").attr("style",c),g=e.description,m=e.label,x=f.node().appendChild(await k(m,e.labelStyle,!0,!0)),b={width:0,height:0};if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){let t=x.children[0],e=(0,l.Lt)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}s.Rm.info("Text 2",g);let w=g||[],_=x.getBBox(),S=f.node().appendChild(await k(w.join?w.join("<br/>"):w,e.labelStyle,!0,!0)),v=S.children[0],A=(0,l.Lt)(S);b=v.getBoundingClientRect(),A.attr("width",b.width),A.attr("height",b.height);let T=(e.padding||0)/2;(0,l.Lt)(S).attr("transform","translate( "+(b.width>_.width?0:(_.width-b.width)/2)+", "+(_.height+T+5)+")"),(0,l.Lt)(x).attr("transform","translate( "+(b.width<_.width?0:-(_.width-b.width)/2)+", 0)"),b=f.node().getBBox(),f.attr("transform","translate("+-b.width/2+", "+(-b.height/2-T+3)+")");let B=b.width+(e.padding||0),L=b.height+(e.padding||0),M=-b.width/2-T,F=-b.height/2-T;if("handDrawn"===e.look){let t=h.A.svg(d),r=(0,a.Fr)(e,{}),o=t.path(C(M,F,B,L,e.rx||0),r),l=t.line(-b.width/2-T,-b.height/2-T+_.height+T,b.width/2+T,-b.height/2-T+_.height+T,r);n=d.insert(()=>(s.Rm.debug("Rough node insert CXC",o),l),":first-child"),i=d.insert(()=>(s.Rm.debug("Rough node insert CXC",o),o),":first-child")}else i=p.insert("rect",":first-child"),n=p.insert("line"),i.attr("class","outer title-state").attr("style",c).attr("x",-b.width/2-T).attr("y",-b.height/2-T).attr("width",b.width+(e.padding||0)).attr("height",b.height+(e.padding||0)),n.attr("class","divider").attr("x1",-b.width/2-T).attr("x2",b.width/2+T).attr("y1",-b.height/2-T+_.height+T).attr("y2",-b.height/2-T+_.height+T);return u(e,i),e.intersect=function(t){return y(e,t)},d}function t$(t,e,r,i,a,n,o){let s=Math.atan2(i-e,r-t),l=Math.sqrt(((r-t)/2/a)**2+((i-e)/2/n)**2);if(l>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-l**2),c=(t+r)/2+h*n*Math.sin(s)*(o?-1:1),d=(e+i)/2-h*a*Math.cos(s)*(o?-1:1),u=Math.atan2((e-d)/n,(t-c)/a),p=Math.atan2((i-d)/n,(r-c)/a)-u;o&&p<0&&(p+=2*Math.PI),!o&&p>0&&(p-=2*Math.PI);let f=[];for(let t=0;t<20;t++){let e=u+t/19*p,r=c+a*Math.cos(e),i=d+n*Math.sin(e);f.push({x:r,y:i})}return f}async function tE(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=e?.padding??0,l=e?.padding??0,d=(e?.width?e?.width:o.width)+2*s,g=(e?.height?e?.height:o.height)+2*l,{cssStyles:m}=e,y=h.A.svg(n),x=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-d/2+5,y:-g/2},{x:d/2-5,y:-g/2},...t$(d/2-5,-g/2,d/2,-g/2+5,5,5,!0),{x:d/2,y:-g/2+5},{x:d/2,y:g/2-5},...t$(d/2,g/2-5,d/2-5,g/2,5,5,!0),{x:d/2-5,y:g/2},{x:-d/2+5,y:g/2},...t$(-d/2+5,g/2,-d/2,g/2-5,5,5,!0),{x:-d/2,y:g/2-5},{x:-d/2,y:-g/2+5},...t$(-d/2,-g/2+5,-d/2+5,-g/2,5,5,!0)],k=f(b),C=y.path(k,x),w=n.insert(()=>C,":first-child");return w.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",m),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),u(e,w),e.intersect=function(t){return O(e,b,t)},n}async function tO(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:l}=await c(t,e,p(e)),d=e?.padding??0,f=Math.max(s.width+(e.padding??0)*2,e?.width??0),g=Math.max(s.height+(e.padding??0)*2,e?.height??0),m=-s.width/2-d,x=-s.height/2-d,{cssStyles:b}=e,k=h.A.svg(n),C=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=k.polygon([{x:m,y:x},{x:m+f+8,y:x},{x:m+f+8,y:x+g},{x:m-8,y:x+g},{x:m-8,y:x},{x:m,y:x},{x:m,y:x+g}].map(t=>[t.x,t.y]),C),_=n.insert(()=>w,":first-child");return _.attr("class","basic label-container").attr("style",(0,o.KL)(b)),i&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),b&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),l.attr("transform",`translate(${-f/2+4+(e.padding??0)-(s.x-(s.left??0))},${-g/2+(e.padding??0)-(s.y-(s.top??0))})`),u(e,_),e.intersect=function(t){return y(e,t)},n}async function tD(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),g=-l/2,m=-d/2,{cssStyles:y}=e,x=h.A.svg(n),b=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:g,y:m},{x:g,y:m+d},{x:g+l,y:m+d},{x:g+l,y:m-d/2}],C=f(k),w=x.path(C,b),_=n.insert(()=>w,":first-child");return _.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",y),i&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",i),_.attr("transform",`translate(0, ${d/4})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(o.x-(o.left??0))}, ${-d/4+(e.padding??0)-(o.y-(o.top??0))})`),u(e,_),e.intersect=function(t){return O(e,k,t)},n}async function tR(t,e){let r={rx:0,ry:0,classes:"",labelPaddingX:2*(e?.padding||0),labelPaddingY:+(e?.padding||0)};return tg(t,e,r)}async function tI(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=o.height+e.padding,l=o.width+s/4+e.padding,d=s/2,{cssStyles:g}=e,y=h.A.svg(n),x=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-l/2+d,y:-s/2},{x:l/2-d,y:-s/2},...m(-l/2+d,0,d,50,90,270),{x:l/2-d,y:s/2},...m(l/2-d,0,d,50,270,450)],k=f(b),C=y.path(k,x),w=n.insert(()=>C,":first-child");return w.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",g),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),u(e,w),e.intersect=function(t){return O(e,b,t)},n}async function tz(t,e){return tg(t,e,{rx:5,ry:5,classes:"flowchart-node"})}function tK(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{cssStyles:o}=e,{lineColor:s,stateBorder:l,nodeBorder:c}=r,d=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),p=h.A.svg(d),f=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let g=p.circle(0,0,14,{...f,stroke:s,strokeWidth:2}),m=l??c,y=p.circle(0,0,5,{...f,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),x=d.insert(()=>g,":first-child");return x.insert(()=>y),o&&x.selectAll("path").attr("style",o),n&&x.selectAll("path").attr("style",n),u(e,x),e.intersect=function(t){return F(e,7,t)},d}function tP(t,e,{config:{themeVariables:r}}){let i,{lineColor:n}=r,o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=h.A.svg(o).circle(0,0,14,(0,a.ue)(n));(i=o.insert(()=>t)).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else(i=o.insert("circle",":first-child")).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return u(e,i),e.intersect=function(t){return F(e,7,t)},o}async function tq(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s}=await c(t,e,p(e)),l=(e?.padding||0)/2,d=s.width+e.padding,f=s.height+e.padding,g=-s.width/2-l,m=-s.height/2-l,y=[{x:0,y:0},{x:d,y:0},{x:d,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if("handDrawn"===e.look){let t=h.A.svg(n),r=(0,a.Fr)(e,{}),i=t.rectangle(g-8,m,d+16,f,r),s=t.line(g,m,g,m+f,r),l=t.line(g+d,m,g+d,m+f,r);n.insert(()=>s,":first-child"),n.insert(()=>l,":first-child");let c=n.insert(()=>i,":first-child"),{cssStyles:p}=e;c.attr("class","basic label-container").attr("style",(0,o.KL)(p)),u(e,c)}else{let t=z(n,d,f,y);i&&t.attr("style",i),u(e,t)}return e.intersect=function(t){return O(e,y,t)},n}async function tN(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=Math.max(o.width+(e.padding??0)*2,e?.width??0),l=Math.max(o.height+(e.padding??0)*2,e?.height??0),d=-s/2,g=-l/2,m=.2*l,{cssStyles:y}=e,x=h.A.svg(n),b=(0,a.Fr)(e,{}),k=[{x:d-m/2,y:g},{x:d+s+m/2,y:g},{x:d+s+m/2,y:g+l},{x:d-m/2,y:g+l}];"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let C=f(k),w=x.path(C,b),_=f([{x:d+s-m/2,y:g+l},{x:d+s+m/2,y:g+l},{x:d+s+m/2,y:g+l-.2*l}]),S=x.path(_,{...b,fillStyle:"solid"}),v=n.insert(()=>S,":first-child");return v.insert(()=>w,":first-child"),v.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),u(e,v),e.intersect=function(t){return O(e,k,t)},n}async function tj(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),m=d/4,y=.2*l,x=.2*d,b=d+m,{cssStyles:k}=e,C=h.A.svg(n),w=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let _=[{x:-l/2-l/2*.1,y:b/2},...g(-l/2-l/2*.1,b/2,l/2+l/2*.1,b/2,m,.8),{x:l/2+l/2*.1,y:-b/2},{x:-l/2-l/2*.1,y:-b/2}],S=-l/2+l/2*.1,v=-b/2-.4*x,A=[{x:S+l-y,y:(v+d)*1.4},{x:S+l,y:v+d-x},{x:S+l,y:(v+d)*.9},...g(S+l,(v+d)*1.3,S+l-y,(v+d)*1.5,-(.03*d),.5)],T=f(_),B=C.path(T,w),L=f(A),M=C.path(L,{...w,fillStyle:"solid"}),F=n.insert(()=>M,":first-child");return F.insert(()=>B,":first-child"),F.attr("class","basic label-container"),k&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",k),i&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(o.x-(o.left??0))},${-d/2+(e.padding??0)-m/2-(o.y-(o.top??0))})`),u(e,F),e.intersect=function(t){return O(e,_,t)},n}async function tW(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=Math.max(o.width+e.padding,e?.width||0),l=Math.max(o.height+e.padding,e?.height||0),h=n.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-l/2).attr("width",s).attr("height",l),u(e,h),e.intersect=function(t){return y(e,t)},n}(0,s.K2)(tL,"question"),(0,s.K2)(tM,"rect_left_inv_arrow"),(0,s.K2)(tF,"rectWithTitle"),(0,s.K2)(t$,"generateArcPoints"),(0,s.K2)(tE,"roundedRect"),(0,s.K2)(tO,"shadedProcess"),(0,s.K2)(tD,"slopedRect"),(0,s.K2)(tR,"squareRect"),(0,s.K2)(tI,"stadium"),(0,s.K2)(tz,"state"),(0,s.K2)(tK,"stateEnd"),(0,s.K2)(tP,"stateStart"),(0,s.K2)(tq,"subroutine"),(0,s.K2)(tN,"taggedRect"),(0,s.K2)(tj,"taggedWaveEdgedRectangle"),(0,s.K2)(tW,"text");var tH=(0,s.K2)((t,e,r,i,a,n)=>`M${t},${e}
62
+ a${a},${n} 0,0,1 0,${-i}
63
+ l${r},0
64
+ a${a},${n} 0,0,1 0,${i}
65
+ M${r},${-i}
66
+ a${a},${n} 0,0,0 0,${i}
67
+ l${-r},0`,"createCylinderPathD"),tG=(0,s.K2)((t,e,r,i,a,n)=>`M${t},${e} M${t+r},${e} a${a},${n} 0,0,0 0,${-i} l${-r},0 a${a},${n} 0,0,0 0,${i} l${r},0`,"createOuterCylinderPathD"),tY=(0,s.K2)((t,e,r,i,a,n)=>`M${t+r/2},${-i/2} a${a},${n} 0,0,0 0,${i}`,"createInnerCylinderPathD");async function tU(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:s,bbox:l,label:d,halfPadding:f}=await c(t,e,p(e)),g="neo"===e.look?2*f:f,m=l.height+g,x=m/2,b=x/(2.5+m/50),k=l.width+b+g,{cssStyles:C}=e;if("handDrawn"===e.look){let t=h.A.svg(s),i=tG(0,0,k,m,b,x),n=tY(0,0,k,m,b,x),o=t.path(i,(0,a.Fr)(e,{})),l=t.path(n,(0,a.Fr)(e,{fill:"none"}));r=s.insert(()=>l,":first-child"),(r=s.insert(()=>o,":first-child")).attr("class","basic label-container"),C&&r.attr("style",C)}else{let t=tH(0,0,k,m,b,x);(r=s.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(C)).attr("style",n)).attr("class","basic label-container"),C&&r.selectAll("path").attr("style",C),n&&r.selectAll("path").attr("style",n)}return r.attr("label-offset-x",b),r.attr("transform",`translate(${-k/2}, ${m/2} )`),d.attr("transform",`translate(${-(l.width/2)-b-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),u(e,r),e.intersect=function(t){let r=y(e,t),i=r.y-(e.y??0);if(0!=x&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-b)){let a=b*b*(1-i*i/(x*x));0!=a&&(a=Math.sqrt(Math.abs(a))),a=b-a,t.x-(e.x??0)>0&&(a=-a),r.x+=a}return r},s}async function tX(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:s}=await c(t,e,p(e)),l=s.width+e.padding,d=s.height+e.padding,g=[{x:-3*d/6,y:0},{x:l+3*d/6,y:0},{x:l,y:-d},{x:0,y:-d}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.A.svg(o),i=(0,a.Fr)(e,{}),n=f(g),s=t.path(n,i);r=o.insert(()=>s,":first-child").attr("transform",`translate(${-l/2}, ${d/2})`),m&&r.attr("style",m)}else r=z(o,l,d,g);return n&&r.attr("style",n),e.width=l,e.height=d,u(e,r),e.intersect=function(t){return O(e,g,t)},o}async function tZ(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=Math.max(60,o.width+(e.padding??0)*2,e?.width??0),l=Math.max(20,o.height+(e.padding??0)*2,e?.height??0),{cssStyles:d}=e,g=h.A.svg(n),m=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let y=[{x:-s/2*.8,y:-l/2},{x:s/2*.8,y:-l/2},{x:s/2,y:-l/2*.6},{x:s/2,y:l/2},{x:-s/2,y:l/2},{x:-s/2,y:-l/2*.6}],x=f(y),b=g.path(x,m),k=n.insert(()=>b,":first-child");return k.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",i),u(e,k),e.intersect=function(t){return O(e,y,t)},n}async function tV(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:l}=await c(t,e,p(e)),d=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),g=o.width+(e.padding??0),m=g+o.height,y=g+o.height,x=[{x:0,y:0},{x:y,y:0},{x:y/2,y:-m}],{cssStyles:b}=e,k=h.A.svg(n),C=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=f(x),_=k.path(w,C),S=n.insert(()=>_,":first-child").attr("transform",`translate(${-m/2}, ${m/2})`);return b&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",b),i&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",i),e.width=g,e.height=m,u(e,S),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${m/2-(o.height+(e.padding??0)/(d?2:1)-(o.y-(o.top??0)))})`),e.intersect=function(t){return s.Rm.info("Triangle intersect",e,x,t),O(e,x,t)},n}async function tQ(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),m=d/8,y=d+m,{cssStyles:x}=e,b=70-l,k=b>0?b/2:0,C=h.A.svg(n),w=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let _=[{x:-l/2-k,y:y/2},...g(-l/2-k,y/2,l/2+k,y/2,m,.8),{x:l/2+k,y:-y/2},{x:-l/2-k,y:-y/2}],S=f(_),v=C.path(S,w),A=n.insert(()=>v,":first-child");return A.attr("class","basic label-container"),x&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",x),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(o.x-(o.left??0))},${-d/2+(e.padding??0)-m-(o.y-(o.top??0))})`),u(e,A),e.intersect=function(t){return O(e,_,t)},n}async function tJ(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o}=await c(t,e,p(e)),s=Math.max(o.width+(e.padding??0)*2,e?.width??0),l=Math.max(o.height+(e.padding??0)*2,e?.height??0),d=s/l,m=s,y=l;m>y*d?y=m/d:m=y*d,m=Math.max(m,100);let x=Math.min(.2*(y=Math.max(y,50)),y/4),b=y+2*x,{cssStyles:k}=e,C=h.A.svg(n),w=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let _=[{x:-m/2,y:b/2},...g(-m/2,b/2,m/2,b/2,x,1),{x:m/2,y:-b/2},...g(m/2,-b/2,-m/2,-b/2,x,-1)],S=f(_),v=C.path(S,w),A=n.insert(()=>v,":first-child");return A.attr("class","basic label-container"),k&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",k),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),u(e,A),e.intersect=function(t){return O(e,_,t)},n}async function t0(t,e){let{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,label:s}=await c(t,e,p(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),f=-l/2,g=-d/2,{cssStyles:m}=e,y=h.A.svg(n),x=(0,a.Fr)(e,{}),b=[{x:f-5,y:g-5},{x:f-5,y:g+d},{x:f+l,y:g+d},{x:f+l,y:g-5}],k=`M${f-5},${g-5} L${f+l},${g-5} L${f+l},${g+d} L${f-5},${g+d} L${f-5},${g-5}
68
+ M${f-5},${g} L${f+l},${g}
69
+ M${f},${g-5} L${f},${g+d}`;"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let C=y.path(k,x),w=n.insert(()=>C,":first-child");return w.attr("transform","translate(2.5, 2.5)"),w.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(o.width/2)+2.5-(o.x-(o.left??0))}, ${-(o.height/2)+2.5-(o.y-(o.top??0))})`),u(e,w),e.intersect=function(t){return O(e,b,t)},n}async function t1(t,e){if(e.alias&&(e.label=e.alias),"handDrawn"===e.look){let{themeVariables:r}=(0,s.zj)(),{background:i}=r,a={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await t1(t,a)}let r=(0,s.zj)();e.useHtmlLabels=r.htmlLabels;let i=r.er?.diagramPadding??10,n=r.er?.entityPadding??6,{cssStyles:c}=e,{labelStyles:d,nodeStyles:f}=(0,a.GX)(e);if(0===e.attributes.length&&e.label){let a={rx:0,ry:0,labelPaddingX:i,labelPaddingY:1.5*i,classes:""};(0,o.Un)(e.label,r)+2*a.labelPaddingX<r.er.minEntityWidth&&(e.width=r.er.minEntityWidth);let n=await tg(t,e,a);if(!(0,s._3)(r.htmlLabels)){let t=n.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return n}r.htmlLabels||(i*=1.25,n*=1.25);let g=p(e);g||(g="node default");let m=t.insert("g").attr("class",g).attr("id",e.domId||e.id),x=await t2(m,e.label??"",r,0,0,["name"],d);x.height+=n;let b=0,k=[],C=[],w=0,_=0,S=0,v=0,A=!0,T=!0;for(let t of e.attributes){let e=await t2(m,t.type,r,0,b,["attribute-type"],d);w=Math.max(w,e.width+i);let a=await t2(m,t.name,r,0,b,["attribute-name"],d);_=Math.max(_,a.width+i);let o=await t2(m,t.keys.join(),r,0,b,["attribute-keys"],d);S=Math.max(S,o.width+i);let s=await t2(m,t.comment,r,0,b,["attribute-comment"],d);v=Math.max(v,s.width+i);let l=Math.max(e.height,a.height,o.height,s.height)+n;C.push({yOffset:b,rowHeight:l}),b+=l}let B=4;S<=i&&(A=!1,S=0,B--),v<=i&&(T=!1,v=0,B--);let L=m.node().getBBox();if(x.width+2*i-(w+_+S+v)>0){let t=x.width+2*i-(w+_+S+v);w+=t/B,_+=t/B,S>0&&(S+=t/B),v>0&&(v+=t/B)}let M=w+_+S+v,F=h.A.svg(m),$=(0,a.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let E=0;C.length>0&&(E=C.reduce((t,e)=>t+(e?.rowHeight??0),0));let O=Math.max(L.width+2*i,e?.width||0,M),D=Math.max((E??0)+x.height,e?.height||0),R=-O/2,I=-D/2;m.selectAll("g:not(:first-child)").each((t,e,r)=>{let a=(0,l.Lt)(r[e]),o=a.attr("transform"),s=0,h=0;if(o){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(s=parseFloat(t[1]),h=parseFloat(t[2]),a.attr("class").includes("attribute-name")?s+=w:a.attr("class").includes("attribute-keys")?s+=w+_:a.attr("class").includes("attribute-comment")&&(s+=w+_+S))}a.attr("transform",`translate(${R+i/2+s}, ${h+I+x.height+n/2})`)}),m.select(".name").attr("transform","translate("+-x.width/2+", "+(I+n/2)+")");let z=F.rectangle(R,I,O,D,$),K=m.insert(()=>z,":first-child").attr("style",c.join("")),{themeVariables:P}=(0,s.zj)(),{rowEven:q,rowOdd:N,nodeBorder:j}=P;for(let[t,e]of(k.push(0),C.entries())){let r=(t+1)%2==0&&0!==e.yOffset,i=F.rectangle(R,x.height+I+e?.yOffset,O,e?.rowHeight,{...$,fill:r?q:N,stroke:j});m.insert(()=>i,"g.label").attr("style",c.join("")).attr("class",`row-rect-${r?"even":"odd"}`)}let W=F.line(R,x.height+I,O+R,x.height+I,$);for(let t of(m.insert(()=>W).attr("class","divider"),W=F.line(w+R,x.height+I,w+R,D+I,$),m.insert(()=>W).attr("class","divider"),A&&(W=F.line(w+_+R,x.height+I,w+_+R,D+I,$),m.insert(()=>W).attr("class","divider")),T&&(W=F.line(w+_+S+R,x.height+I,w+_+S+R,D+I,$),m.insert(()=>W).attr("class","divider")),k))W=F.line(R,x.height+I+t,O+R,x.height+I+t,$),m.insert(()=>W).attr("class","divider");if(u(e,K),f&&"handDrawn"!==e.look){let t=f.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");m.selectAll("path").attr("style",e??""),m.selectAll(".row-rect-even path").attr("style",f)}return e.intersect=function(t){return y(e,t)},m}async function t2(t,e,r,i=0,a=0,h=[],c=""){let d=t.insert("g").attr("class",`label ${h.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",c);e!==(0,s.QO)(e)&&(e=(e=(0,s.QO)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));let u=d.node().appendChild(await (0,n.GZ)(d,e,{width:(0,o.Un)(e,r)+100,style:c,useHtmlLabels:r.htmlLabels},r));if(e.includes("&lt;")||e.includes("&gt;")){let t=u.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let p=u.getBBox();if((0,s._3)(r.htmlLabels)){let t=u.children[0];t.style.textAlign="start";let e=(0,l.Lt)(u);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}return p}async function t5(t,e,r,i,a=r.class.padding??12){let n=3*!i,o=t.insert("g").attr("class",p(e)).attr("id",e.domId||e.id),s=null,l=null,h=null,c=null,d=0,u=0,f=0;if(s=o.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await t3(s,{text:`\xab${t}\xbb`},0),d=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await t3(l,e,0,["font-weight: bolder"]);let g=l.node().getBBox();u=g.height,h=o.insert("g").attr("class","members-group text");let m=0;for(let t of e.members){let e=await t3(h,t,m,[t.parseClassifier()]);m+=e+n}(f=h.node().getBBox().height)<=0&&(f=a/2),c=o.insert("g").attr("class","methods-group text");let y=0;for(let t of e.methods){let e=await t3(c,t,y,[t.parseClassifier()]);y+=e+n}let x=o.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${d})`),x=o.node().getBBox(),h.attr("transform",`translate(0, ${d+u+2*a})`),x=o.node().getBBox(),c.attr("transform",`translate(0, ${d+u+(f?f+4*a:2*a)})`),x=o.node().getBBox(),{shapeSvg:o,bbox:x}}async function t3(t,e,r,i=[]){let a,h=t.insert("g").attr("class","label").attr("style",i.join("; ")),c=(0,s.zj)(),d="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(c.htmlLabels)??!0,u="";u="text"in e?e.text:e.label,!d&&u.startsWith("\\")&&(u=u.substring(1)),(0,s.Wi)(u)&&(d=!0);let p=await (0,n.GZ)(h,(0,s.oB)((0,o.Sm)(u)),{width:(0,o.Un)(u,c)+50,classes:"markdown-node-label",useHtmlLabels:d},c),f=1;if(d){let t=p.children[0],e=(0,l.Lt)(p);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1);let r=t.getElementsByTagName("img");if(r){let t=""===u.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=5*parseInt(c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,10)+"px";e.style.minWidth=t,e.style.maxWidth=t}else e.style.width="100%";r(e)}(0,s.K2)(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))}a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}else{i.includes("font-weight: bolder")&&(0,l.Lt)(p).selectAll("tspan").attr("font-weight",""),f=p.children.length;let t=p.children[0];(""===p.textContent||p.textContent.includes("&gt"))&&(t.textContent=u[0]+u.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===u[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),a=p.getBBox()}return h.attr("transform","translate(0,"+(-a.height/(2*f)+r)+")"),a.height}async function t4(t,e){let r=(0,s.D7)(),i=r.class.padding??12,n=e.useHtmlLabels??(0,s._3)(r.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:o,bbox:c}=await t5(t,e,r,n,i),{labelStyles:d,nodeStyles:p}=(0,a.GX)(e);e.labelStyle=d,e.cssStyles=e.styles||"";let f=e.styles?.join(";")||p||"";e.cssStyles||(e.cssStyles=f.replaceAll("!important","").split(";"));let g=0===e.members.length&&0===e.methods.length&&!r.class?.hideEmptyMembersBox,m=h.A.svg(o),x=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=c.width,k=c.height;0===e.members.length&&0===e.methods.length?k+=i:e.members.length>0&&0===e.methods.length&&(k+=2*i);let C=-b/2,w=-k/2,_=m.rectangle(C-i,w-i-(g?i:0===e.members.length&&0===e.methods.length?-i/2:0),b+2*i,k+2*i+(g?2*i:0===e.members.length&&0===e.methods.length?-i:0),x),S=o.insert(()=>_,":first-child");S.attr("class","basic label-container");let v=S.node().getBBox();o.selectAll(".text").each((t,r,a)=>{let s=(0,l.Lt)(a[r]),h=s.attr("transform"),c=0;if(h){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(h);t&&(c=parseFloat(t[2]))}let d=c+w+i-(g?i:0===e.members.length&&0===e.methods.length?-i/2:0);n||(d-=4);let u=C;(s.attr("class").includes("label-group")||s.attr("class").includes("annotation-group"))&&(u=-s.node()?.getBBox().width/2||0,o.selectAll("text").each(function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(u=0)})),s.attr("transform",`translate(${u}, ${d})`)});let A=o.select(".annotation-group").node().getBBox().height-(g?i/2:0)||0,T=o.select(".label-group").node().getBBox().height-(g?i/2:0)||0,B=o.select(".members-group").node().getBBox().height-(g?i/2:0)||0;if(e.members.length>0||e.methods.length>0||g){let t=m.line(v.x,A+T+w+i,v.x+v.width,A+T+w+i,x);o.insert(()=>t).attr("class","divider").attr("style",f)}if(g||e.members.length>0||e.methods.length>0){let t=m.line(v.x,A+T+B+w+2*i+i,v.x+v.width,A+T+B+w+i+2*i,x);o.insert(()=>t).attr("class","divider").attr("style",f)}if("handDrawn"!==e.look&&o.selectAll("path").attr("style",f),S.select(":nth-child(2)").attr("style",f),o.selectAll(".divider").select("path").attr("style",f),e.labelStyle?o.selectAll("span").attr("style",e.labelStyle):o.selectAll("span").attr("style",f),!n){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(f);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}else if(d){let e=t.exec(d);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}}}return u(e,S),e.intersect=function(t){return y(e,t)},o}async function t6(t,e){let r,{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;let o="verifyMethod"in e,s=p(e),c=t.insert("g").attr("class",s).attr("id",e.domId??e.id),d=r=o?await t8(c,`&lt;&lt;${e.type}&gt;&gt;`,0,e.labelStyle):await t8(c,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle),f=await t8(c,e.name,d,e.labelStyle+"; font-weight: bold;");if(d+=f+20,o){let t=await t8(c,`${e.requirementId?`ID: ${e.requirementId}`:""}`,d,e.labelStyle);d+=t;let r=await t8(c,`${e.text?`Text: ${e.text}`:""}`,d,e.labelStyle);d+=r;let i=await t8(c,`${e.risk?`Risk: ${e.risk}`:""}`,d,e.labelStyle);d+=i,await t8(c,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,d,e.labelStyle)}else{let t=await t8(c,`${e.type?`Type: ${e.type}`:""}`,d,e.labelStyle);d+=t,await t8(c,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,d,e.labelStyle)}let g=(c.node()?.getBBox().width??200)+20,m=(c.node()?.getBBox().height??200)+20,x=-g/2,b=-m/2,k=h.A.svg(c),C=(0,a.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=k.rectangle(x,b,g,m,C),_=c.insert(()=>w,":first-child");if(_.attr("class","basic label-container").attr("style",n),c.selectAll(".label").each((t,e,r)=>{let i=(0,l.Lt)(r[e]),a=i.attr("transform"),n=0,o=0;if(a){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);t&&(n=parseFloat(t[1]),o=parseFloat(t[2]))}let s=o-m/2,h=x+10;(0===e||1===e)&&(h=n),i.attr("transform",`translate(${h}, ${s+20})`)}),d>r+f+20){let t=k.line(x,b+r+f+20,x+g,b+r+f+20,C);c.insert(()=>t).attr("style",n)}return u(e,_),e.intersect=function(t){return y(e,t)},c}async function t8(t,e,r,i=""){let a;if(""===e)return 0;let h=t.insert("g").attr("class","label").attr("style",i),c=(0,s.D7)(),d=c.htmlLabels??!0,u=await (0,n.GZ)(h,(0,s.oB)((0,o.Sm)(e)),{width:(0,o.Un)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:d,style:i},c);if(d){let t=u.children[0],e=(0,l.Lt)(u);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}else{for(let t of u.children[0].children)t.textContent=t.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),i&&t.setAttribute("style",i);a=u.getBBox(),a.height+=6}return h.attr("transform",`translate(${-a.width/2},${-a.height/2+r})`),a.height}(0,s.K2)(tU,"tiltedCylinder"),(0,s.K2)(tX,"trapezoid"),(0,s.K2)(tZ,"trapezoidalPentagon"),(0,s.K2)(tV,"triangle"),(0,s.K2)(tQ,"waveEdgedRectangle"),(0,s.K2)(tJ,"waveRectangle"),(0,s.K2)(t0,"windowPane"),(0,s.K2)(t1,"erBox"),(0,s.K2)(t2,"addText"),(0,s.K2)(t5,"textHelper"),(0,s.K2)(t3,"addText"),(0,s.K2)(t4,"classBox"),(0,s.K2)(t6,"requirementBox"),(0,s.K2)(t8,"addText");var t9=(0,s.K2)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function t7(t,e,{config:r}){let i,n,o,s,{labelStyles:l,nodeStyles:f}=(0,a.GX)(e);e.labelStyle=l||"";let g=e.width;e.width=(e.width??200)-10;let{shapeSvg:m,bbox:x,label:b}=await c(t,e,p(e)),k=e.padding||10,w="";"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(w=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),i=m.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",w).attr("target","_blank"));let _={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};i?{label:n,bbox:o}=await d(i,"ticket"in e&&e.ticket||"",_):{label:n,bbox:o}=await d(m,"ticket"in e&&e.ticket||"",_);let{label:S,bbox:v}=await d(m,"assigned"in e&&e.assigned||"",_);e.width=g;let A=e?.width||0,T=Math.max(o.height,v.height)/2,B=Math.max(x.height+20,e?.height||0)+T,L=-A/2,M=-B/2;b.attr("transform","translate("+(k-A/2)+", "+(-T-x.height/2)+")"),n.attr("transform","translate("+(k-A/2)+", "+(-T+x.height/2)+")"),S.attr("transform","translate("+(k+A/2-v.width-20)+", "+(-T+x.height/2)+")");let{rx:F,ry:$}=e,{cssStyles:E}=e;if("handDrawn"===e.look){let t=h.A.svg(m),r=(0,a.Fr)(e,{}),i=F||$?t.path(C(L,M,A,B,F||0),r):t.rectangle(L,M,A,B,r);(s=m.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",E||null)}else{(s=m.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",f).attr("rx",F??5).attr("ry",$??5).attr("x",L).attr("y",M).attr("width",A).attr("height",B);let t="priority"in e&&e.priority;if(t){let e=m.append("line"),r=L+2,i=M+Math.floor((F??0)/2),a=M+B-Math.floor((F??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",a).attr("stroke-width","4").attr("stroke",t9(t))}}return u(e,s),e.height=B,e.intersect=function(t){return y(e,t)},m}(0,s.K2)(t7,"kanbanItem");var et=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tR},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tE},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tI},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tq},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tt},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:q},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tL},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:ts},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tx},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:ty},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:tX},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tf},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tr},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tW},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:K},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tO},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tP},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tK},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tn},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tl},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:H},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Y},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:X},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tb},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:tQ},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:to},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:tU},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:t_},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Z},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:te},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:tV},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:t0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ti},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:tZ},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ta},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tD},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tA},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tv},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:I},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:j},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tj},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tN},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:tJ},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tM},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tS}],ee=(0,s.K2)(()=>Object.fromEntries([...Object.entries({state:tz,choice:P,note:tT,rectWithTitle:tF,labelRect:tm,iconSquare:tu,iconCircle:tc,icon:th,iconRounded:td,imageSquare:tp,anchor:D,kanbanItem:t7,classBox:t4,erBox:t1,requirementBox:t6}),...et.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function er(t){return t in ee}(0,s.K2)(er,"isValidShape");var ei=new Map;async function ea(t,e,r){let i,a;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let n=e.shape?ee[e.shape]:void 0;if(!n)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let o;"sandbox"===r.config.securityLevel?o="_top":e.linkTarget&&(o=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null),a=await n(i,e,r)}else i=a=await n(t,e,r);return e.tooltip&&a.attr("title",e.tooltip),ei.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,s.K2)(ea,"insertNode");var en=(0,s.K2)((t,e)=>{ei.set(e.id,t)},"setNodeElem"),eo=(0,s.K2)(()=>{ei.clear()},"clear"),es=(0,s.K2)(t=>{let e=ei.get(t.id);s.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let 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},"positionNode")},5040(t,e,r){"use strict";r.d(e,{O:()=>i});var i=(0,r(8755).K2)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins")},9927(t,e,r){"use strict";r.d(e,{H:()=>eR,r:()=>eD});var i,a=r(8755);function n(t){return null==t}function o(t){return"object"==typeof t&&null!==t}function s(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function l(t){return 0===t&&-1/0==1/t}(0,a.K2)(n,"isNothing"),(0,a.K2)(o,"isObject"),(0,a.K2)(function(t){return Array.isArray(t)?t:n(t)?[]:[t]},"toArray"),(0,a.K2)(function(t,e){var r,i,a,n;if(e)for(r=0,i=(n=Object.keys(e)).length;r<i;r+=1)t[a=n[r]]=e[a];return t},"extend"),(0,a.K2)(s,"repeat"),(0,a.K2)(l,"isNegativeZero");function h(t,e){var r="",i=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),i+" "+r):i}function c(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=h(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function d(t,e,r,i,a){var n="",o="",s=Math.floor(a/2)-1;return i-e>s&&(e=i-s+(n=" ... ").length),r-i>s&&(r=i+s-(o=" ...").length),{str:n+t.slice(e,r).replace(/\t/g,"→")+o,pos:i-e+n.length}}function u(t,e){return s(" ",e-t.length)+t}function p(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=/\r?\n|\r|\0/g,i=[0],a=[],n=-1;o=r.exec(t.buffer);)a.push(o.index),i.push(o.index+o[0].length),t.position<=o.index&&n<0&&(n=i.length-2);n<0&&(n=i.length-1);var o,l,h,c="",p=Math.min(t.line+e.linesAfter,a.length).toString().length,f=e.maxLength-(e.indent+p+3);for(l=1;l<=e.linesBefore&&!(n-l<0);l++)h=d(t.buffer,i[n-l],a[n-l],t.position-(i[n]-i[n-l]),f),c=s(" ",e.indent)+u((t.line-l+1).toString(),p)+" | "+h.str+"\n"+c;for(h=d(t.buffer,i[n],a[n],t.position,f),c+=s(" ",e.indent)+u((t.line+1).toString(),p)+" | "+h.str+"\n"+s("-",e.indent+p+3+h.pos)+"^\n",l=1;l<=e.linesAfter&&!(n+l>=a.length);l++)h=d(t.buffer,i[n+l],a[n+l],t.position-(i[n]-i[n+l]),f),c+=s(" ",e.indent)+u((t.line+l+1).toString(),p)+" | "+h.str+"\n";return c.replace(/\n$/,"")}(0,a.K2)(h,"formatError"),(0,a.K2)(c,"YAMLException$1"),c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.toString=(0,a.K2)(function(t){return this.name+": "+h(this,t)},"toString"),(0,a.K2)(d,"getLine"),(0,a.K2)(u,"padStart"),(0,a.K2)(p,"makeSnippet");var f=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],g=["scalar","sequence","mapping"];function m(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function y(t,e){if(Object.keys(e=e||{}).forEach(function(e){if(-1===f.indexOf(e))throw new c('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=m(e.styleAliases||null),-1===g.indexOf(this.kind))throw new c('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function x(t,e){var r=[];return t[e].forEach(function(t){var e=r.length;r.forEach(function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)}),r[e]=t}),r}function b(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(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((0,a.K2)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function k(t){return this.extend(t)}(0,a.K2)(m,"compileStyleAliases"),(0,a.K2)(y,"Type$1"),(0,a.K2)(x,"compileList"),(0,a.K2)(b,"compileMap"),(0,a.K2)(k,"Schema$1"),k.prototype.extend=(0,a.K2)(function(t){var e=[],r=[];if(t instanceof y)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new c("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(t){if(!(t instanceof y))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new c("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 c("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 y))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(k.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=x(i,"implicit"),i.compiledExplicit=x(i,"explicit"),i.compiledTypeMap=b(i.compiledImplicit,i.compiledExplicit),i},"extend");var C=new k({explicit:[new y("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,a.K2)(function(t){return null!==t?t:""},"construct")}),new y("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,a.K2)(function(t){return null!==t?t:[]},"construct")}),new y("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,a.K2)(function(t){return null!==t?t:{}},"construct")})]});function w(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function _(){return null}function S(t){return null===t}(0,a.K2)(w,"resolveYamlNull"),(0,a.K2)(_,"constructYamlNull"),(0,a.K2)(S,"isNull");var v=new y("tag:yaml.org,2002:null",{kind:"scalar",resolve:w,construct:_,predicate:S,represent:{canonical:(0,a.K2)(function(){return"~"},"canonical"),lowercase:(0,a.K2)(function(){return"null"},"lowercase"),uppercase:(0,a.K2)(function(){return"NULL"},"uppercase"),camelcase:(0,a.K2)(function(){return"Null"},"camelcase"),empty:(0,a.K2)(function(){return""},"empty")},defaultStyle:"lowercase"});function A(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)}function T(t){return"true"===t||"True"===t||"TRUE"===t}function B(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,a.K2)(A,"resolveYamlBoolean"),(0,a.K2)(T,"constructYamlBoolean"),(0,a.K2)(B,"isBoolean");var L=new y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:A,construct:T,predicate:B,represent:{lowercase:(0,a.K2)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,a.K2)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,a.K2)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function M(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function F(t){return 48<=t&&t<=55}function $(t){return 48<=t&&t<=57}function E(t){if(null===t)return!1;var e,r=t.length,i=0,a=!1;if(!r)return!1;if(("-"===(e=t[i])||"+"===e)&&(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;a=!0}return a&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!M(t.charCodeAt(i)))return!1;a=!0}return a&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!F(t.charCodeAt(i)))return!1;a=!0}return a&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!$(t.charCodeAt(i)))return!1;a=!0}return!!a&&"_"!==e}function O(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(e=r[0])||"+"===e)&&("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function D(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!l(t)}(0,a.K2)(M,"isHexCode"),(0,a.K2)(F,"isOctCode"),(0,a.K2)($,"isDecCode"),(0,a.K2)(E,"resolveYamlInteger"),(0,a.K2)(O,"constructYamlInteger"),(0,a.K2)(D,"isInteger");var R=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:E,construct:O,predicate:D,represent:{binary:(0,a.K2)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,a.K2)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,a.K2)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,a.K2)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),I=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function z(t){return null!==t&&!!I.test(t)&&"_"!==t[t.length-1]}function K(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?1/0:-1/0:".nan"===e?NaN:r*parseFloat(e,10)}(0,a.K2)(z,"resolveYamlFloat"),(0,a.K2)(K,"constructYamlFloat");var P=/^[-+]?[0-9]+e/;function q(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l(t))return"-0.0";return r=t.toString(10),P.test(r)?r.replace("e",".e"):r}function N(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||l(t))}(0,a.K2)(q,"representYamlFloat"),(0,a.K2)(N,"isFloat");var j=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:z,construct:K,predicate:N,represent:q,defaultStyle:"lowercase"}),W=C.extend({implicit:[v,L,R,j]}),H=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),G=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]))?))?$");function Y(t){return null!==t&&(null!==H.exec(t)||null!==G.exec(t))}function U(t){var e,r,i,a,n,o,s,l,h=0,c=null;if(null===(e=H.exec(t))&&(e=G.exec(t)),null===e)throw Error("Date resolve error");if(r=+e[1],i=e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(r,i,a));if(n=+e[4],o=+e[5],s=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h*=1}return e[9]&&(c=(60*e[10]+ +(e[11]||0))*6e4,"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,i,a,n,o,s,h)),c&&l.setTime(l.getTime()-c),l}function X(t){return t.toISOString()}(0,a.K2)(Y,"resolveYamlTimestamp"),(0,a.K2)(U,"constructYamlTimestamp"),(0,a.K2)(X,"representYamlTimestamp");var Z=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Y,construct:U,instanceOf:Date,represent:X});function V(t){return"<<"===t||null===t}(0,a.K2)(V,"resolveYamlMerge");var Q=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:V}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function tt(t){if(null===t)return!1;var e,r,i=0,a=t.length;for(r=0;r<a;r++)if(!((e=J.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function te(t){var e,r,i=t.replace(/[\r\n=]/g,""),a=i.length,n=0,o=[];for(e=0;e<a;e++)e%4==0&&e&&(o.push(n>>16&255),o.push(n>>8&255),o.push(255&n)),n=n<<6|J.indexOf(i.charAt(e));return 0==(r=a%4*6)?(o.push(n>>16&255),o.push(n>>8&255),o.push(255&n)):18===r?(o.push(n>>10&255),o.push(n>>2&255)):12===r&&o.push(n>>4&255),new Uint8Array(o)}function tr(t){var e,r,i="",a=0,n=t.length;for(e=0;e<n;e++)e%3==0&&e&&(i+=J[a>>18&63],i+=J[a>>12&63],i+=J[a>>6&63],i+=J[63&a]),a=(a<<8)+t[e];return 0==(r=n%3)?(i+=J[a>>18&63],i+=J[a>>12&63],i+=J[a>>6&63],i+=J[63&a]):2===r?(i+=J[a>>10&63],i+=J[a>>4&63],i+=J[a<<2&63],i+=J[64]):1===r&&(i+=J[a>>2&63],i+=J[a<<4&63],i+=J[64],i+=J[64]),i}function ti(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,a.K2)(tt,"resolveYamlBinary"),(0,a.K2)(te,"constructYamlBinary"),(0,a.K2)(tr,"representYamlBinary"),(0,a.K2)(ti,"isBinary");var ta=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tt,construct:te,predicate:ti,represent:tr}),tn=Object.prototype.hasOwnProperty,to=Object.prototype.toString;function ts(t){if(null===t)return!0;var e,r,i,a,n,o=[];for(e=0,r=t.length;e<r;e+=1){if(i=t[e],n=!1,"[object Object]"!==to.call(i))return!1;for(a in i)if(tn.call(i,a))if(n)return!1;else n=!0;if(!n||-1!==o.indexOf(a))return!1;o.push(a)}return!0}function tl(t){return null!==t?t:[]}(0,a.K2)(ts,"resolveYamlOmap"),(0,a.K2)(tl,"constructYamlOmap");var th=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ts,construct:tl}),tc=Object.prototype.toString;function td(t){var e,r,i,a,n;if(null===t)return!0;for(e=0,n=Array(t.length),r=t.length;e<r;e+=1){if(i=t[e],"[object Object]"!==tc.call(i)||1!==(a=Object.keys(i)).length)return!1;n[e]=[a[0],i[a[0]]]}return!0}function tu(t){var e,r,i,a,n;if(null===t)return[];for(e=0,n=Array(t.length),r=t.length;e<r;e+=1)a=Object.keys(i=t[e]),n[e]=[a[0],i[a[0]]];return n}(0,a.K2)(td,"resolveYamlPairs"),(0,a.K2)(tu,"constructYamlPairs");var tp=new y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:td,construct:tu}),tf=Object.prototype.hasOwnProperty;function tg(t){var e;if(null===t)return!0;for(e in t)if(tf.call(t,e)&&null!==t[e])return!1;return!0}function tm(t){return null!==t?t:{}}(0,a.K2)(tg,"resolveYamlSet"),(0,a.K2)(tm,"constructYamlSet");var ty=new y("tag:yaml.org,2002:set",{kind:"mapping",resolve:tg,construct:tm}),tx=W.extend({implicit:[Z,Q],explicit:[ta,th,tp,ty]}),tb=Object.prototype.hasOwnProperty,tk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tC=/[\x85\u2028\u2029]/,tw=/[,\[\]\{\}]/,t_=/^(?:!|!!|![a-z\-]+!)$/i,tS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tv(t){return Object.prototype.toString.call(t)}function tA(t){return 10===t||13===t}function tT(t){return 9===t||32===t}function tB(t){return 9===t||32===t||10===t||13===t}function tL(t){return 44===t||91===t||93===t||123===t||125===t}function tM(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function tF(t){return 120===t?2:117===t?4:8*(85===t)}function t$(t){return 48<=t&&t<=57?t-48:-1}function tE(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?" ":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}function tO(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}(0,a.K2)(tv,"_class"),(0,a.K2)(tA,"is_EOL"),(0,a.K2)(tT,"is_WHITE_SPACE"),(0,a.K2)(tB,"is_WS_OR_EOL"),(0,a.K2)(tL,"is_FLOW_INDICATOR"),(0,a.K2)(tM,"fromHexCode"),(0,a.K2)(tF,"escapedHexLen"),(0,a.K2)(t$,"fromDecimalCode"),(0,a.K2)(tE,"simpleEscapeSequence"),(0,a.K2)(tO,"charFromCodepoint");var tD=Array(256),tR=Array(256);for(i=0;i<256;i++)tD[i]=+!!tE(i),tR[i]=tE(i);function tI(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||tx,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 tz(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=p(r),new c(e,r)}function tK(t,e){throw tz(t,e)}function tP(t,e){t.onWarning&&t.onWarning.call(null,tz(t,e))}(0,a.K2)(tI,"State$1"),(0,a.K2)(tz,"generateError"),(0,a.K2)(tK,"throwError"),(0,a.K2)(tP,"throwWarning");var tq={YAML:(0,a.K2)(function(t,e,r){var i,a,n;null!==t.version&&tK(t,"duplication of %YAML directive"),1!==r.length&&tK(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tK(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),n=parseInt(i[2],10),1!==a&&tK(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=n<2,1!==n&&2!==n&&tP(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,a.K2)(function(t,e,r){var i,a;2!==r.length&&tK(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],t_.test(i)||tK(t,"ill-formed tag handle (first argument) of the TAG directive"),tb.call(t.tagMap,i)&&tK(t,'there is a previously declared suffix for "'+i+'" tag handle'),tS.test(a)||tK(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(e){tK(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a},"handleTagDirective")};function tN(t,e,r,i){var a,n,o,s;if(e<r){if(s=t.input.slice(e,r),i)for(a=0,n=s.length;a<n;a+=1)9===(o=s.charCodeAt(a))||32<=o&&o<=1114111||tK(t,"expected valid JSON character");else tk.test(s)&&tK(t,"the stream contains non-printable characters");t.result+=s}}function tj(t,e,r,i){var a,n,s,l;for(o(r)||tK(t,"cannot merge mappings; the provided source object is unacceptable"),s=0,l=(a=Object.keys(r)).length;s<l;s+=1)n=a[s],tb.call(e,n)||(e[n]=r[n],i[n]=!0)}function tW(t,e,r,i,a,n,o,s,l){var h,c;if(Array.isArray(a))for(h=0,c=(a=Array.prototype.slice.call(a)).length;h<c;h+=1)Array.isArray(a[h])&&tK(t,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===tv(a[h])&&(a[h]="[object Object]");if("object"==typeof a&&"[object Object]"===tv(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(n))for(h=0,c=n.length;h<c;h+=1)tj(t,e,n[h],r);else tj(t,e,n,r);else!t.json&&!tb.call(r,a)&&tb.call(e,a)&&(t.line=o||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,tK(t,"duplicated mapping key")),"__proto__"===a?Object.defineProperty(e,a,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[a]=n,delete r[a];return e}function tH(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):tK(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function tG(t,e,r){for(var i=0,a=t.input.charCodeAt(t.position);0!==a;){for(;tT(a);)9===a&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),a=t.input.charCodeAt(++t.position);if(e&&35===a)do a=t.input.charCodeAt(++t.position);while(10!==a&&13!==a&&0!==a);if(tA(a))for(tH(t),a=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==i&&t.lineIndent<r&&tP(t,"deficient indentation"),i}function tY(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,0===(e=t.input.charCodeAt(r))||tB(e)))||!1}function tU(t,e){1===e?t.result+=" ":e>1&&(t.result+=s("\n",e-1))}function tX(t,e,r){var i,a,n,o,s,l,h,c,d=t.kind,u=t.result;if(tB(c=t.input.charCodeAt(t.position))||tL(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(tB(i=t.input.charCodeAt(t.position+1))||r&&tL(i)))return!1;for(t.kind="scalar",t.result="",a=n=t.position,o=!1;0!==c;){if(58===c){if(tB(i=t.input.charCodeAt(t.position+1))||r&&tL(i))break}else if(35===c){if(tB(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&tY(t)||r&&tL(c))break;else if(tA(c)){if(s=t.line,l=t.lineStart,h=t.lineIndent,tG(t,!1,-1),t.lineIndent>=e){o=!0,c=t.input.charCodeAt(t.position);continue}t.position=n,t.line=s,t.lineStart=l,t.lineIndent=h;break}o&&(tN(t,a,n,!1),tU(t,t.line-s),a=n=t.position,o=!1),tT(c)||(n=t.position+1),c=t.input.charCodeAt(++t.position)}return tN(t,a,n,!1),!!t.result||(t.kind=d,t.result=u,!1)}function tZ(t,e){var r,i,a;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=a=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(tN(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,a=t.position}else tA(r)?(tN(t,i,a,!0),tU(t,tG(t,!1,e)),i=a=t.position):t.position===t.lineStart&&tY(t)?tK(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);tK(t,"unexpected end of the stream within a single quoted scalar")}function tV(t,e){var r,i,a,n,o,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(s=t.input.charCodeAt(t.position));)if(34===s)return tN(t,r,t.position,!0),t.position++,!0;else if(92===s){if(tN(t,r,t.position,!0),tA(s=t.input.charCodeAt(++t.position)))tG(t,!1,e);else if(s<256&&tD[s])t.result+=tR[s],t.position++;else if((o=tF(s))>0){for(a=o,n=0;a>0;a--)(o=tM(s=t.input.charCodeAt(++t.position)))>=0?n=(n<<4)+o:tK(t,"expected hexadecimal character");t.result+=tO(n),t.position++}else tK(t,"unknown escape sequence");r=i=t.position}else tA(s)?(tN(t,r,i,!0),tU(t,tG(t,!1,e)),r=i=t.position):t.position===t.lineStart&&tY(t)?tK(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position);tK(t,"unexpected end of the stream within a double quoted scalar")}function tQ(t,e){var r,i,a,n,o,s,l,h,c,d,u,p,f=!0,g=t.tag,m=t.anchor,y=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))o=93,h=!1,n=[];else{if(123!==p)return!1;o=125,h=!0,n={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=n),p=t.input.charCodeAt(++t.position);0!==p;){if(tG(t,!0,e),(p=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=m,t.kind=h?"mapping":"sequence",t.result=n,!0;f?44===p&&tK(t,"expected the node content, but found ','"):tK(t,"missed comma between flow collection entries"),d=c=u=null,s=l=!1,63===p&&tB(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,tG(t,!0,e)),r=t.line,i=t.lineStart,a=t.position,t4(t,e,1,!1,!0),d=t.tag,c=t.result,tG(t,!0,e),p=t.input.charCodeAt(t.position),(l||t.line===r)&&58===p&&(s=!0,p=t.input.charCodeAt(++t.position),tG(t,!0,e),t4(t,e,1,!1,!0),u=t.result),h?tW(t,n,y,d,c,u,r,i,a):s?n.push(tW(t,null,y,d,c,u,r,i,a)):n.push(c),tG(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1}tK(t,"unexpected end of the stream within a flow collection")}function tJ(t,e){var r,i,a,n,o=1,l=!1,h=!1,c=e,d=0,u=!1;if(124===(n=t.input.charCodeAt(t.position)))i=!1;else{if(62!==n)return!1;i=!0}for(t.kind="scalar",t.result="";0!==n;)if(43===(n=t.input.charCodeAt(++t.position))||45===n)1===o?o=43===n?3:2:tK(t,"repeat of a chomping mode identifier");else if((a=t$(n))>=0)0===a?tK(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?tK(t,"repeat of an indentation width identifier"):(c=e+a-1,h=!0);else break;if(tT(n)){do n=t.input.charCodeAt(++t.position);while(tT(n));if(35===n)do n=t.input.charCodeAt(++t.position);while(!tA(n)&&0!==n)}for(;0!==n;){for(tH(t),t.lineIndent=0,n=t.input.charCodeAt(t.position);(!h||t.lineIndent<c)&&32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>c&&(c=t.lineIndent),tA(n)){d++;continue}if(t.lineIndent<c){3===o?t.result+=s("\n",l?1+d:d):1===o&&l&&(t.result+="\n");break}for(i?tT(n)?(u=!0,t.result+=s("\n",l?1+d:d)):u?(u=!1,t.result+=s("\n",d+1)):0===d?l&&(t.result+=" "):t.result+=s("\n",d):t.result+=s("\n",l?1+d:d),l=!0,h=!0,d=0,r=t.position;!tA(n)&&0!==n;)n=t.input.charCodeAt(++t.position);tN(t,r,t.position,!1)}return!0}function t0(t,e){var r,i,a=t.tag,n=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,tK(t,"tab characters must not be used in indentation")),45===i&&tB(t.input.charCodeAt(t.position+1)));){if(s=!0,t.position++,tG(t,!0,-1)&&t.lineIndent<=e){o.push(null),i=t.input.charCodeAt(t.position);continue}if(r=t.line,t4(t,e,3,!1,!0),o.push(t.result),tG(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)tK(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!s&&(t.tag=a,t.anchor=n,t.kind="sequence",t.result=o,!0)}function t1(t,e,r){var i,a,n,o,s,l,h,c=t.tag,d=t.anchor,u={},p=Object.create(null),f=null,g=null,m=null,y=!1,x=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),h=t.input.charCodeAt(t.position);0!==h;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,tK(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),n=t.line,(63===h||58===h)&&tB(i))63===h?(y&&(tW(t,u,p,f,g,null,o,s,l),f=g=m=null),x=!0,y=!0,a=!0):y?(y=!1,a=!0):tK(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=i;else{if(o=t.line,s=t.lineStart,l=t.position,!t4(t,r,2,!1,!0))break;if(t.line===n){for(h=t.input.charCodeAt(t.position);tT(h);)h=t.input.charCodeAt(++t.position);if(58===h)tB(h=t.input.charCodeAt(++t.position))||tK(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(tW(t,u,p,f,g,null,o,s,l),f=g=m=null),x=!0,y=!1,a=!1,f=t.tag,g=t.result;else{if(!x)return t.tag=c,t.anchor=d,!0;tK(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return t.tag=c,t.anchor=d,!0;tK(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===n||t.lineIndent>e)&&(y&&(o=t.line,s=t.lineStart,l=t.position),t4(t,e,4,!0,a)&&(y?g=t.result:m=t.result),y||(tW(t,u,p,f,g,m,o,s,l),f=g=m=null),tG(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&0!==h)tK(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&tW(t,u,p,f,g,null,o,s,l),x&&(t.tag=c,t.anchor=d,t.kind="mapping",t.result=u),x}function t2(t){var e,r,i,a,n=!1,o=!1;if(33!==(a=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&tK(t,"duplication of a tag property"),60===(a=t.input.charCodeAt(++t.position))?(n=!0,a=t.input.charCodeAt(++t.position)):33===a?(o=!0,r="!!",a=t.input.charCodeAt(++t.position)):r="!",e=t.position,n){do a=t.input.charCodeAt(++t.position);while(0!==a&&62!==a);t.position<t.length?(i=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):tK(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!tB(a);)33===a&&(o?tK(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),t_.test(r)||tK(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),tw.test(i)&&tK(t,"tag suffix cannot contain flow indicator characters")}i&&!tS.test(i)&&tK(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){tK(t,"tag name is malformed: "+i)}return n?t.tag=i:tb.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:tK(t,'undeclared tag handle "'+r+'"'),!0}function t5(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&tK(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!tB(r)&&!tL(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&tK(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function t3(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!tB(i)&&!tL(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&tK(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tb.call(t.anchorMap,r)||tK(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],tG(t,!0,-1),!0}function t4(t,e,r,i,a){var n,o,s,l,h,c,d,u,p,f=1,g=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,n=o=s=4===r||3===r,i&&tG(t,!0,-1)&&(g=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),1===f)for(;t2(t)||t5(t);)tG(t,!0,-1)?(g=!0,s=n,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):s=!1;if(s&&(s=g||a),(1===f||4===r)&&(u=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===f?s&&(t0(t,p)||t1(t,p,u))||tQ(t,u)?m=!0:(o&&tJ(t,u)||tZ(t,u)||tV(t,u)?m=!0:t3(t)?(m=!0,(null!==t.tag||null!==t.anchor)&&tK(t,"alias node should not have any properties")):tX(t,u,1===r)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(m=s&&t0(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&tK(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((d=t.implicitTypes[l]).resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(tb.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(l=0,d=null,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){d=c[l];break}d||tK(t,"unknown tag !<"+t.tag+">"),null!==t.result&&d.kind!==t.kind&&tK(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):tK(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function t6(t){var e,r,i,a,n=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(a=t.input.charCodeAt(t.position))&&(tG(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===a);){for(o=!0,a=t.input.charCodeAt(++t.position),e=t.position;0!==a&&!tB(a);)a=t.input.charCodeAt(++t.position);for(r=t.input.slice(e,t.position),i=[],r.length<1&&tK(t,"directive name must not be less than one character in length");0!==a;){for(;tT(a);)a=t.input.charCodeAt(++t.position);if(35===a){do a=t.input.charCodeAt(++t.position);while(0!==a&&!tA(a));break}if(tA(a))break;for(e=t.position;0!==a&&!tB(a);)a=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==a&&tH(t),tb.call(tq,r)?tq[r](t,r,i):tP(t,'unknown document directive "'+r+'"')}if(tG(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,tG(t,!0,-1)):o&&tK(t,"directives end mark is expected"),t4(t,t.lineIndent-1,4,!1,!0),tG(t,!0,-1),t.checkLineBreaks&&tC.test(t.input.slice(n,t.position))&&tP(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&tY(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,tG(t,!0,-1));return}t.position<t.length-1&&tK(t,"end of the stream or a document separator is expected")}function t8(t,e){t=String(t),e=e||{},0!==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 tI(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,tK(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;)t6(r);return r.documents}function t9(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var i=t8(t,r);if("function"!=typeof e)return i;for(var a=0,n=i.length;a<n;a+=1)e(i[a])}function t7(t,e){var r=t8(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new c("expected a single document in the stream, but found more")}}(0,a.K2)(tN,"captureSegment"),(0,a.K2)(tj,"mergeMappings"),(0,a.K2)(tW,"storeMappingPair"),(0,a.K2)(tH,"readLineBreak"),(0,a.K2)(tG,"skipSeparationSpace"),(0,a.K2)(tY,"testDocumentSeparator"),(0,a.K2)(tU,"writeFoldedLines"),(0,a.K2)(tX,"readPlainScalar"),(0,a.K2)(tZ,"readSingleQuotedScalar"),(0,a.K2)(tV,"readDoubleQuotedScalar"),(0,a.K2)(tQ,"readFlowCollection"),(0,a.K2)(tJ,"readBlockScalar"),(0,a.K2)(t0,"readBlockSequence"),(0,a.K2)(t1,"readBlockMapping"),(0,a.K2)(t2,"readTagProperty"),(0,a.K2)(t5,"readAnchorProperty"),(0,a.K2)(t3,"readAlias"),(0,a.K2)(t4,"composeNode"),(0,a.K2)(t6,"readDocument"),(0,a.K2)(t8,"loadDocuments"),(0,a.K2)(t9,"loadAll$1"),(0,a.K2)(t7,"load$1");var et=Object.prototype.toString,ee=Object.prototype.hasOwnProperty,er={};er[0]="\\0",er[7]="\\a",er[8]="\\b",er[9]="\\t",er[10]="\\n",er[11]="\\v",er[12]="\\f",er[13]="\\r",er[27]="\\e",er[34]='\\"',er[92]="\\\\",er[133]="\\N",er[160]="\\_",er[8232]="\\L",er[8233]="\\P";var ei=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ea=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function en(t,e){var r,i,a,n,o,s,l;if(null===e)return{};for(a=0,r={},n=(i=Object.keys(e)).length;a<n;a+=1)s=String(e[o=i[a]]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=t.compiledTypeMap.fallback[o])&&ee.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}function eo(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=0xffffffff)r="U",i=8;else throw new c("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+s("0",i-e.length)+e}function es(t){this.schema=t.schema||tx,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=n(t.flowLevel)?-1:t.flowLevel,this.styleMap=en(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function el(t,e){for(var r,i=s(" ",e),a=0,n=-1,o="",l=t.length;a<l;)-1===(n=t.indexOf("\n",a))?(r=t.slice(a),a=l):(r=t.slice(a,n+1),a=n+1),r.length&&"\n"!==r&&(o+=i),o+=r;return o}function eh(t,e){return"\n"+s(" ",t.indent*e)}function ec(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function ed(t){return 32===t||9===t}function eu(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function ep(t){return eu(t)&&65279!==t&&13!==t&&10!==t}function ef(t,e,r){var i=ep(t),a=i&&!ed(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!a)||ep(e)&&!ed(e)&&35===t||58===e&&a}function eg(t){return eu(t)&&65279!==t&&!ed(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function em(t){return!ed(t)&&58!==t}function ey(t,e){var r,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(i-55296)*1024+r-56320+65536:i}function ex(t){return/^\n* /.test(t)}function eb(t,e,r,i,a,n,o,s){var l,h=0,c=null,d=!1,u=!1,p=-1!==i,f=-1,g=eg(ey(t,0))&&em(ey(t,t.length-1));if(e||o)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!eu(h=ey(t,l)))return 5;g=g&&ef(h,c,s),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=ey(t,l)))d=!0,p&&(u=u||l-f-1>i&&" "!==t[f+1],f=l);else if(!eu(h))return 5;g=g&&ef(h,c,s),c=h}u=u||p&&l-f-1>i&&" "!==t[f+1]}return d||u?r>9&&ex(t)?5:o?2===n?5:2:u?4:3:!g||o||a(t)?2===n?5:2:1}function ek(t,e,r,i,n){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==ei.indexOf(e)||ea.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),l=i||t.flowLevel>-1&&r>=t.flowLevel;function h(e){return ec(t,e)}switch((0,a.K2)(h,"testAmbiguity"),eb(e,l,t.indent,s,h,t.quotingType,t.forceQuotes&&!i,n)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+eC(e,t.indent)+ew(el(e,o));case 4:return">"+eC(e,t.indent)+ew(el(e_(e,s),o));case 5:return'"'+ev(e)+'"';default:throw new c("impossible error: invalid scalar style")}}()}function eC(t,e){var r=ex(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function ew(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function e_(t,e){for(var r,i,a,n=/(\n+)([^\n]*)/g,o=(n.lastIndex=r=-1!==(r=t.indexOf("\n"))?r:t.length,eS(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];a=n.exec(t);){var l=a[1],h=a[2];i=" "===h[0],o+=l+(s||i||""===h?"":"\n")+eS(h,e),s=i}return o}function eS(t,e){if(""===t||" "===t[0])return t;for(var r,i,a=/ [^ ]/g,n=0,o=0,s=0,l="";r=a.exec(t);)(s=r.index)-n>e&&(i=o>n?o:s,l+="\n"+t.slice(n,i),n=i+1),o=s;return l+="\n",t.length-n>e&&o>n?l+=t.slice(n,o)+"\n"+t.slice(o+1):l+=t.slice(n),l.slice(1)}function ev(t){for(var e,r="",i=0,a=0;a<t.length;i>=65536?a+=2:a++)!(e=er[i=ey(t,a)])&&eu(i)?(r+=t[a],i>=65536&&(r+=t[a+1])):r+=e||eo(i);return r}function eA(t,e,r){var i,a,n,o="",s=t.tag;for(i=0,a=r.length;i<a;i+=1)n=r[i],t.replacer&&(n=t.replacer.call(r,String(i),n)),(eF(t,e,n,!1,!1)||void 0===n&&eF(t,e,null,!1,!1))&&(""!==o&&(o+=","+(t.condenseFlow?"":" ")),o+=t.dump);t.tag=s,t.dump="["+o+"]"}function eT(t,e,r,i){var a,n,o,s="",l=t.tag;for(a=0,n=r.length;a<n;a+=1)o=r[a],t.replacer&&(o=t.replacer.call(r,String(a),o)),(eF(t,e+1,o,!0,!0,!1,!0)||void 0===o&&eF(t,e+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=eh(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function eB(t,e,r){var i,a,n,o,s,l="",h=t.tag,c=Object.keys(r);for(i=0,a=c.length;i<a;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),o=r[n=c[i]],t.replacer&&(o=t.replacer.call(r,n,o)),eF(t,e,n,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),eF(t,e,o,!1,!1)&&(s+=t.dump,l+=s));t.tag=h,t.dump="{"+l+"}"}function eL(t,e,r,i){var a,n,o,s,l,h,d="",u=t.tag,p=Object.keys(r);if(!0===t.sortKeys)p.sort();else if("function"==typeof t.sortKeys)p.sort(t.sortKeys);else if(t.sortKeys)throw new c("sortKeys must be a boolean or a function");for(a=0,n=p.length;a<n;a+=1)h="",i&&""===d||(h+=eh(t,e)),s=r[o=p[a]],t.replacer&&(s=t.replacer.call(r,o,s)),eF(t,e+1,o,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,l&&(h+=eh(t,e)),eF(t,e+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,d+=h));t.tag=u,t.dump=d||"{}"}function eM(t,e,r){var i,a,n,o,s,l;for(n=0,o=(a=r?t.explicitTypes:t.implicitTypes).length;n<o;n+=1)if(((s=a[n]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===et.call(s.represent))i=s.represent(e,l);else if(ee.call(s.represent,l))i=s.represent[l](e,l);else throw new c("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function eF(t,e,r,i,a,n,o){t.tag=null,t.dump=r,eM(t,r,!1)||eM(t,r,!0);var s=et.call(t.dump),l=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var h,d,u,p="[object Object]"===s||"[object Array]"===s;if(p&&(u=-1!==(d=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(a=!1),u&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(p&&u&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),"[object Object]"===s)i&&0!==Object.keys(t.dump).length?(eL(t,e,t.dump,a),u&&(t.dump="&ref_"+d+t.dump)):(eB(t,e,t.dump),u&&(t.dump="&ref_"+d+" "+t.dump));else if("[object Array]"===s)i&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?eT(t,e-1,t.dump,a):eT(t,e,t.dump,a),u&&(t.dump="&ref_"+d+t.dump)):(eA(t,e,t.dump),u&&(t.dump="&ref_"+d+" "+t.dump));else if("[object String]"===s)"?"!==t.tag&&ek(t,t.dump,e,n,l);else{if("[object Undefined]"===s||t.skipInvalid)return!1;throw new c("unacceptable kind of an object to dump "+s)}null!==t.tag&&"?"!==t.tag&&(h=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),h="!"===t.tag[0]?"!"+h:"tag:yaml.org,2002:"===h.slice(0,18)?"!!"+h.slice(18):"!<"+h+">",t.dump=h+" "+t.dump)}return!0}function e$(t,e){var r,i,a=[],n=[];for(eE(t,a,n),r=0,i=n.length;r<i;r+=1)e.duplicates.push(a[n[r]]);e.usedDuplicates=Array(i)}function eE(t,e,r){var i,a,n;if(null!==t&&"object"==typeof t)if(-1!==(a=e.indexOf(t)))-1===r.indexOf(a)&&r.push(a);else if(e.push(t),Array.isArray(t))for(a=0,n=t.length;a<n;a+=1)eE(t[a],e,r);else for(a=0,n=(i=Object.keys(t)).length;a<n;a+=1)eE(t[i[a]],e,r)}(0,a.K2)(en,"compileStyleMap"),(0,a.K2)(eo,"encodeHex"),(0,a.K2)(es,"State"),(0,a.K2)(el,"indentString"),(0,a.K2)(eh,"generateNextLine"),(0,a.K2)(ec,"testImplicitResolving"),(0,a.K2)(ed,"isWhitespace"),(0,a.K2)(eu,"isPrintable"),(0,a.K2)(ep,"isNsCharOrWhitespace"),(0,a.K2)(ef,"isPlainSafe"),(0,a.K2)(eg,"isPlainSafeFirst"),(0,a.K2)(em,"isPlainSafeLast"),(0,a.K2)(ey,"codePointAt"),(0,a.K2)(ex,"needIndentIndicator");function eO(t,e){return function(){throw Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,a.K2)(eb,"chooseScalarStyle"),(0,a.K2)(ek,"writeScalar"),(0,a.K2)(eC,"blockHeader"),(0,a.K2)(ew,"dropEndingNewline"),(0,a.K2)(e_,"foldString"),(0,a.K2)(eS,"foldLine"),(0,a.K2)(ev,"escapeString"),(0,a.K2)(eA,"writeFlowSequence"),(0,a.K2)(eT,"writeBlockSequence"),(0,a.K2)(eB,"writeFlowMapping"),(0,a.K2)(eL,"writeBlockMapping"),(0,a.K2)(eM,"detectType"),(0,a.K2)(eF,"writeNode"),(0,a.K2)(e$,"getDuplicateReferences"),(0,a.K2)(eE,"inspectNode"),(0,a.K2)(function(t,e){var r=new es(e=e||{});r.noRefs||e$(t,r);var i=t;return(r.replacer&&(i=r.replacer.call({"":i},"",i)),eF(r,0,i,!0,!0))?r.dump+"\n":""},"dump$1"),(0,a.K2)(eO,"renamed");var eD=W,eR=t7;eO("safeLoad","load"),eO("safeLoadAll","loadAll"),eO("safeDump","dump")},9462(t,e,r){"use strict";r.d(e,{IU:()=>x,Jo:()=>L,T_:()=>w,g0:()=>H,jP:()=>k});var i=r(5939),a=r(7618),n=r(5040),o=r(5695),s=r(3919),l=r(3218),h=r(8755),c=r(6040),d=r(2631),u=r(726),p=(0,h.K2)((t,e,r,i,a,n)=>{e.arrowTypeStart&&g(t,"start",e.arrowTypeStart,r,i,a,n),e.arrowTypeEnd&&g(t,"end",e.arrowTypeEnd,r,i,a,n)},"addEdgeMarkers"),f={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},g=(0,h.K2)((t,e,r,i,a,n,o)=>{let s=f[r];if(!s)return void h.Rm.warn(`Unknown arrow type: ${r}`);let l=s.type,c=`${a}_${n}-${l}${"start"===e?"Start":"End"}`;if(o&&""!==o.trim()){let r=o.replace(/[^\dA-Za-z]/g,"_"),a=`${c}_${r}`;if(!document.getElementById(a)){let t=document.getElementById(c);if(t){let e=t.cloneNode(!0);e.id=a,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",o),s.fill&&t.setAttribute("fill",o)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${a})`)}else t.attr(`marker-${e}`,`url(${i}#${c})`)},"addEdgeMarker"),m=new Map,y=new Map,x=(0,h.K2)(()=>{m.clear(),y.clear()},"clear"),b=(0,h.K2)(t=>t?t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),k=(0,h.K2)(async(t,e)=>{let r,i=(0,h._3)((0,h.D7)().flowchart.htmlLabels),n=await (0,s.GZ)(t,e.label,{style:b(e.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1});h.Rm.info("abc82",e,e.labelType);let o=t.insert("g").attr("class","edgeLabel"),l=o.insert("g").attr("class","label");l.node().appendChild(n);let d=n.getBBox();if(i){let t=n.children[0],e=(0,c.Lt)(n);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}if(l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),m.set(e.id,o),e.width=d.width,e.height=d.height,e.startLabelLeft){let i=await (0,a.DA)(e.startLabelLeft,b(e.labelStyle)),n=t.insert("g").attr("class","edgeTerminals"),o=n.insert("g").attr("class","inner");r=o.node().appendChild(i);let s=i.getBBox();o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),y.get(e.id)||y.set(e.id,{}),y.get(e.id).startLeft=n,C(r,e.startLabelLeft)}if(e.startLabelRight){let i=await (0,a.DA)(e.startLabelRight,b(e.labelStyle)),n=t.insert("g").attr("class","edgeTerminals"),o=n.insert("g").attr("class","inner");r=n.node().appendChild(i),o.node().appendChild(i);let s=i.getBBox();o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),y.get(e.id)||y.set(e.id,{}),y.get(e.id).startRight=n,C(r,e.startLabelRight)}if(e.endLabelLeft){let i=await (0,a.DA)(e.endLabelLeft,b(e.labelStyle)),n=t.insert("g").attr("class","edgeTerminals"),o=n.insert("g").attr("class","inner");r=o.node().appendChild(i);let s=i.getBBox();o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.node().appendChild(i),y.get(e.id)||y.set(e.id,{}),y.get(e.id).endLeft=n,C(r,e.endLabelLeft)}if(e.endLabelRight){let i=await (0,a.DA)(e.endLabelRight,b(e.labelStyle)),n=t.insert("g").attr("class","edgeTerminals"),o=n.insert("g").attr("class","inner");r=o.node().appendChild(i);let s=i.getBBox();o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.node().appendChild(i),y.get(e.id)||y.set(e.id,{}),y.get(e.id).endRight=n,C(r,e.endLabelRight)}return n},"insertEdgeLabel");function C(t,e){(0,h.D7)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,h.K2)(C,"setTerminalWidth");var w=(0,h.K2)((t,e)=>{h.Rm.debug("Moving label abc88 ",t.id,t.label,m.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,h.D7)(),{subGraphTitleTotalMargin:a}=(0,n.O)(i);if(t.label){let i=m.get(t.id),n=t.x,o=t.y;if(r){let i=l._K.calcLabelPosition(r);h.Rm.debug("Moving label "+t.label+" from (",n,",",o,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(n=i.x,o=i.y)}i.attr("transform",`translate(${n}, ${o+a/2})`)}if(t.startLabelLeft){let e=y.get(t.id).startLeft,i=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.startLabelRight){let e=y.get(t.id).startRight,i=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelLeft){let e=y.get(t.id).endLeft,i=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelRight){let e=y.get(t.id).endRight,i=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}},"positionEdgeLabel"),_=(0,h.K2)((t,e)=>{let r=t.x,i=t.y,a=Math.abs(e.x-r),n=Math.abs(e.y-i),o=t.width/2,s=t.height/2;return a>=o||n>=s},"outsideNode"),S=(0,h.K2)((t,e,r)=>{h.Rm.debug(`intersection calc abc89:
70
+ outsidePoint: ${JSON.stringify(e)}
71
+ insidePoint : ${JSON.stringify(r)}
72
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let i=t.x,a=t.y,n=Math.abs(i-r.x),o=t.width/2,s=r.x<e.x?o-n:o+n,l=t.height/2,c=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);if(Math.abs(a-e.y)*o>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-a:a-l-e.y;s=d*t/c;let i={x:r.x<e.x?r.x+s:r.x-d+s,y:r.y<e.y?r.y+c-t:r.y-c+t};return 0===s&&(i.x=e.x,i.y=e.y),0===d&&(i.x=e.x),0===c&&(i.y=e.y),h.Rm.debug(`abc89 top/bottom calc, Q ${c}, q ${t}, R ${d}, r ${s}`,i),i}{let t=c*(s=r.x<e.x?e.x-o-i:i-o-e.x)/d,a=r.x<e.x?r.x+d-s:r.x-d+s,n=r.y<e.y?r.y+t:r.y-t;return h.Rm.debug(`sides calc abc89, Q ${c}, q ${t}, R ${d}, r ${s}`,{_x:a,_y:n}),0===s&&(a=e.x,n=e.y),0===d&&(a=e.x),0===c&&(n=e.y),{x:a,y:n}}},"intersection"),v=(0,h.K2)((t,e)=>{h.Rm.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],a=!1;return t.forEach(t=>{if(h.Rm.info("abc88 checking point",t,e),_(e,t)||a)h.Rm.warn("abc88 outside",t,i),i=t,a||r.push(t);else{let n=S(e,i,t);h.Rm.debug("abc88 inside",t,i,n),h.Rm.debug("abc88 intersection",n,e);let o=!1;r.forEach(t=>{o=o||t.x===n.x&&t.y===n.y}),r.some(t=>t.x===n.x&&t.y===n.y)?h.Rm.warn("abc88 no intersect",n,r):r.push(n),a=!0}}),h.Rm.debug("returning points",r),r},"cutPathAtIntersect");function A(t){let e=[],r=[];for(let i=1;i<t.length-1;i++){let a=t[i-1],n=t[i],o=t[i+1];a.x===n.x&&n.y===o.y&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-a.y)>5?(e.push(n),r.push(i)):a.y===n.y&&n.x===o.x&&Math.abs(n.x-a.x)>5&&Math.abs(n.y-o.y)>5&&(e.push(n),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}(0,h.K2)(A,"extractCornerPoints");var T=(0,h.K2)(function(t,e,r){let i=e.x-t.x,a=e.y-t.y,n=r/Math.sqrt(i*i+a*a);return{x:e.x-n*i,y:e.y-n*a}},"findAdjacentPoint"),B=(0,h.K2)(function(t){let{cornerPointPositions:e}=A(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){let e=t[i-1],a=t[i+1],n=t[i],o=T(e,n,5),s=T(a,n,5),l=s.x-o.x,c=s.y-o.y;r.push(o);let d=2*Math.sqrt(2),u={x:n.x,y:n.y};Math.abs(a.x-e.x)>10&&Math.abs(a.y-e.y)>=10?(h.Rm.debug("Corner point fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y)),u=n.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:c<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:c<0?o.y-5+d:o.y+5-d}):h.Rm.debug("Corner point skipping fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y)),r.push(u,s)}else r.push(t[i]);return r},"fixCorners"),L=(0,h.K2)(function(t,e,r,a,n,s,f){let g,m,{handDrawnSeed:y}=(0,h.D7)(),x=e.points,b=!1,k=[];for(let t in e.cssCompiledStyles)(0,o.KX)(t)||k.push(e.cssCompiledStyles[t]);s.intersect&&n.intersect&&((x=x.slice(1,e.points.length-1)).unshift(n.intersect(x[0])),h.Rm.debug("Last point APA12",e.start,"--\x3e",e.end,x[x.length-1],s,s.intersect(x[x.length-1])),x.push(s.intersect(x[x.length-1]))),e.toCluster&&(h.Rm.info("to cluster abc88",r.get(e.toCluster)),x=v(e.points,r.get(e.toCluster).node),b=!0),e.fromCluster&&(h.Rm.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(x,null,2)),x=v(x.reverse(),r.get(e.fromCluster).node).reverse(),b=!0);let C=x.filter(t=>!Number.isNaN(t.y));C=B(C);let w=d.qr;switch(w=d.lU,e.curve){case"linear":w=d.lU;break;case"basis":default:w=d.qr;break;case"cardinal":w=d.y8;break;case"bumpX":w=d.Wi;break;case"bumpY":w=d.PG;break;case"catmullRom":w=d.oD;break;case"monotoneX":w=d.nV;break;case"monotoneY":w=d.ux;break;case"natural":w=d.Xf;break;case"step":w=d.GZ;break;case"stepAfter":w=d.UP;break;case"stepBefore":w=d.dy}let{x:_,y:S}=(0,i.R)(e),A=(0,d.n8)().x(_).y(S).curve(w);switch(e.thickness){case"normal":default:g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-invisible"}switch(e.pattern){case"solid":default:g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed"}let T=A(C),L=Array.isArray(e.style)?e.style:e.style?[e.style]:[],M=L.find(t=>t?.startsWith("stroke:"));if("handDrawn"===e.look){let r=u.A.svg(t);Object.assign([],C);let i=r.path(T,{roughness:.3,seed:y});g+=" transition";let a=(m=(0,c.Lt)(i).select("path").attr("id",e.id).attr("class"," "+g+(e.classes?" "+e.classes:"")).attr("style",L?L.reduce((t,e)=>t+";"+e,""):"")).attr("d");m.attr("d",a),t.node().appendChild(m.node())}else{let r=k.join(";"),i=L?L.reduce((t,e)=>t+e+";",""):"",a="";e.animate&&(a=" edge-animation-fast"),e.animation&&(a=" edge-animation-"+e.animation);let n=r?r+";"+i+";":i;m=t.append("path").attr("d",T).attr("id",e.id).attr("class"," "+g+(e.classes?" "+e.classes:"")+(a??"")).attr("style",n),M=n.match(/stroke:([^;]+)/)?.[1]}let F="";((0,h.D7)().flowchart.arrowMarkerAbsolute||(0,h.D7)().state.arrowMarkerAbsolute)&&(F=(0,h.ID)(!0)),h.Rm.info("arrowTypeStart",e.arrowTypeStart),h.Rm.info("arrowTypeEnd",e.arrowTypeEnd),p(m,e,F,f,a,M);let $=Math.floor(x.length/2),E=x[$];l._K.isLabelCoordinateInPath(E,m.attr("d"))||(b=!0);let O={};return b&&(O.updatedPath=x),O.originalPath=e.points,O},"insertEdge"),M=(0,h.K2)((t,e,r,i)=>{e.forEach(e=>{W[e](t,r,i)})},"insertMarkers"),F=(0,h.K2)((t,e,r)=>{h.Rm.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),$=(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),E=(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),O=(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),D=(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),R=(0,h.K2)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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")},"point"),I=(0,h.K2)((t,e,r)=>{t.append("marker").attr("id",r+"_"+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",r+"_"+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")},"circle"),z=(0,h.K2)((t,e,r)=>{t.append("marker").attr("id",r+"_"+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",r+"_"+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")},"cross"),K=(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),P=(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),q=(0,h.K2)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),N=(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").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",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),j=(0,h.K2)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),W={extension:F,composition:$,aggregation:E,dependency:O,lollipop:D,point:R,circle:I,cross:z,barb:K,only_one:P,zero_or_one:q,one_or_more:N,zero_or_more:j,requirement_arrow:(0,h.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
73
+ L20,10
74
+ M20,10
75
+ L0,20`)},"requirement_arrow"),requirement_contains:(0,h.K2)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")},H=M},5754(t,e,r){"use strict";r.d(e,{XX:()=>c,q7:()=>d,sO:()=>h});var i=r(9462),a=r(7618),n=r(3218),o=r(8755),s={common:o.Y2,getConfig:o.zj,insertCluster:a.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:a.on,interpolateToCurve:n.Ib,labelHelper:a.Zk,log:o.Rm,positionEdgeLabel:i.T_},l={},h=(0,o.K2)(t=>{for(let e of t)l[e.name]=e},"registerLayoutLoaders");(0,o.K2)(()=>{h([{name:"dagre",loader:(0,o.K2)(async()=>await Promise.all([r.e(9765),r.e(828),r.e(8180),r.e(4138)]).then(r.bind(r,1041)),"loader")}])},"registerDefaultLayoutLoaders")();var c=(0,o.K2)(async(t,e)=>{if(!(t.layoutAlgorithm in l))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);let r=l[t.layoutAlgorithm];return(await r.loader()).render(t,e,s,{algorithm:r.algorithm})},"render"),d=(0,o.K2)((t="",{fallback:e="dagre"}={})=>{if(t in l)return t;if(e in l)return o.Rm.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},5876(t,e,r){"use strict";r.d(e,{D:()=>n});var i=r(8755),a=r(6040),n=(0,i.K2)(t=>{let{securityLevel:e}=(0,i.D7)(),r=(0,a.Lt)("body");if("sandbox"===e){let e=(0,a.Lt)(`#i${t}`),i=e.node()?.contentDocument??document;r=(0,a.Lt)(i.body)}return r.select(`#${t}`)},"selectSvgElement")},3218(t,e,r){"use strict";r.d(e,{$C:()=>L,$t:()=>W,C4:()=>G,I5:()=>j,Ib:()=>y,KL:()=>X,Sm:()=>Y,Un:()=>I,_K:()=>H,bH:()=>O,dq:()=>q,pe:()=>c,rY:()=>U,ru:()=>R,sM:()=>T,vU:()=>g,yT:()=>F});var i,a=r(8755),n=r(4674),o=r(2631),s=r(6040),l=r(3046),h=r(7959),c="​",d={curveBasis:o.qr,curveBasisClosed:o.Yu,curveBasisOpen:o.IA,curveBumpX:o.Wi,curveBumpY:o.PG,curveBundle:o.OE,curveCardinalClosed:o.ol,curveCardinalOpen:o.Ir,curveCardinal:o.y8,curveCatmullRomClosed:o.Q7,curveCatmullRomOpen:o.cV,curveCatmullRom:o.oD,curveLinear:o.lU,curveLinearClosed:o.Lx,curveMonotoneX:o.nV,curveMonotoneY:o.ux,curveNatural:o.Xf,curveStep:o.GZ,curveStepAfter:o.UP,curveStepBefore:o.dy},u=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,p=(0,a.K2)(function(t,e){let r=f(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,a.$i)(t),i=(0,a.hH)(i,[...t])}else i=r.args;if(!i)return;let n=(0,a.Ch)(t,e),o="config";return void 0!==i[o]&&("flowchart-v2"===n&&(n="flowchart"),i[n]=i[o],delete i[o]),i},"detectInit"),f=(0,a.K2)(function(t,e=null){try{let r,i=RegExp(`[%]{2}(?![{]${u.source})(?=[}][%]{2}).*
76
+ `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),a.Rm.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let n=[];for(;null!==(r=a.DB.exec(t));)if(r.index===a.DB.lastIndex&&a.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:t,args:e})}if(0===n.length)return{type:t,args:null};return 1===n.length?n[0]:n}catch(r){return a.Rm.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),g=(0,a.K2)(function(t){return t.replace(a.DB,"")},"removeDirectives"),m=(0,a.K2)(function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return -1},"isSubstringInArray");function y(t,e){return t?d[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function x(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,n.J)(r):r}(0,a.K2)(y,"interpolateToCurve"),(0,a.K2)(x,"formatUrl");var b=(0,a.K2)((t,...e)=>{let r=t.split("."),i=r.length-1,n=r[i],o=window;for(let e=0;e<i;e++)if(!(o=o[r[e]]))return void a.Rm.error(`Function name: ${t} not found in window`);o[n](...e)},"runFunc");function k(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function C(t){let e,r=0;return t.forEach(t=>{r+=k(t,e),e=t}),S(t,r/2)}function w(t){return 1===t.length?t[0]:C(t)}(0,a.K2)(k,"distance"),(0,a.K2)(C,"traverseEdge"),(0,a.K2)(w,"calcLabelPosition");var _=(0,a.K2)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),S=(0,a.K2)((t,e)=>{let r,i=e;for(let e of t){if(r){let t=k(e,r);if(0===t)return r;if(t<i)i-=t;else{let a=i/t;if(a<=0)return r;if(a>=1)return{x:e.x,y:e.y};if(a>0&&a<1)return{x:_((1-a)*r.x+a*e.x,5),y:_((1-a)*r.y+a*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),v=(0,a.K2)((t,e,r)=>{a.Rm.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let i=S(e,25),n=t?10:5,o=Math.atan2(e[0].y-i.y,e[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*n+(e[0].x+i.x)/2,s.y=-Math.cos(o)*n+(e[0].y+i.y)/2,s},"calcCardinalityPosition");function A(t,e,r){let i=structuredClone(r);a.Rm.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();let n=S(i,25+t),o=10+.5*t,s=Math.atan2(i[0].y-n.y,i[0].x-n.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+n.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+n.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+n.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+n.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(i[0].x+n.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+n.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+n.x)/2,l.y=-Math.cos(s)*o+(i[0].y+n.y)/2),l}function T(t){let e="",r="";for(let i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}(0,a.K2)(A,"calcTerminalLabelPosition"),(0,a.K2)(T,"getStylesFromArray");var B=0,L=(0,a.K2)(()=>(B++,"id-"+Math.random().toString(36).substr(2,12)+"-"+B),"generateId");function M(t){let e="",r="0123456789abcdef",i=r.length;for(let a=0;a<t;a++)e+=r.charAt(Math.floor(Math.random()*i));return e}(0,a.K2)(M,"makeRandomHex");var F=(0,a.K2)(t=>M(t.length),"random"),$=(0,a.K2)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),E=(0,a.K2)(function(t,e){let r=e.text.replace(a.Y2.lineBreakRegex," "),[,i]=j(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",i),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),void 0!==e.class&&n.attr("class",e.class);let o=n.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),n},"drawSimpleText"),O=(0,l.A)((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),a.Y2.lineBreakRegex.test(t)))return t;let i=t.split(" ").filter(Boolean),n=[],o="";return i.forEach((t,a)=>{let s=I(`${t} `,r),l=I(o,r);if(s>e){let{hyphenatedStrings:i,remainingWord:a}=D(t,e,"-",r);n.push(o,...i),o=a}else l+s>=e?(n.push(o),o=t):o=[o,t].filter(Boolean).join(" ");a+1===i.length&&n.push(o)}),n.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),D=(0,l.A)((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let a=[...t],n=[],o="";return a.forEach((t,s)=>{let l=`${o}${t}`;if(I(l,i)>=e){let t=a.length===s+1,e=`${l}${r}`;n.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:n,remainingWord:o}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function R(t,e){return z(t,e).height}function I(t,e){return z(t,e).width}(0,a.K2)(R,"calculateTextHeight"),(0,a.K2)(I,"calculateTextWidth");var z=(0,l.A)((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};let[,o]=j(r),l=t.split(a.Y2.lineBreakRegex),h=[],d=(0,s.Lt)("body");if(!d.remove)return{width:0,height:0,lineHeight:0};let u=d.append("svg");for(let t of["sans-serif",i]){let e=0,r={width:0,height:0,lineHeight:0};for(let i of l){let a=$();a.text=i||c;let s=E(u,a).style("font-size",o).style("font-weight",n).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}h.push(r)}u.remove();let p=isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1;return h[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),K=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,a.K2)(this,"InitIDGenerator")}},P=(0,a.K2)(function(t){return i=i||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),i.innerHTML=t,unescape(i.textContent)},"entityDecode");function q(t){return"str"in t}(0,a.K2)(q,"isDetailedError");var N=(0,a.K2)((t,e,r,i)=>{if(!i)return;let a=t.node()?.getBBox();a&&t.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)},"insertTitle"),j=(0,a.K2)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function W(t,e){return(0,h.A)({},t,e)}(0,a.K2)(W,"cleanAndMerge");var H={assignWithDepth:a.hH,wrapLabel:O,calculateTextHeight:R,calculateTextWidth:I,calculateTextDimensions:z,cleanAndMerge:W,detectInit:p,detectDirective:f,isSubstringInArray:m,interpolateToCurve:y,calcLabelPosition:w,calcCardinalityPosition:v,calcTerminalLabelPosition:A,formatUrl:x,getStylesFromArray:T,generateId:L,random:F,runFunc:b,entityDecode:P,insertTitle:N,isLabelCoordinateInPath:Z,parseFontSize:j,InitIDGenerator:K},G=(0,a.K2)(function(t){let e=t;return(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){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl\xb0\xb0"+e+"\xb6\xdf":"fl\xb0"+e+"\xb6\xdf"})},"encodeEntities"),Y=(0,a.K2)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),U=(0,a.K2)((t,e,{counter:r=0,prefix:i,suffix:a},n)=>n||`${i?`${i}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`,"getEdgeId");function X(t){return t??null}function Z(t,e){let r=Math.round(t.x),i=Math.round(t.y),a=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return a.includes(r.toString())||a.includes(i.toString())}(0,a.K2)(X,"handleUndefinedAttr"),(0,a.K2)(Z,"isLabelCoordinateInPath")},8755(t,e,r){"use strict";let i;r.d(e,{C0:()=>v,VA:()=>y,K2:()=>m,xA:()=>td,hH:()=>$,Dl:()=>tP,IU:()=>t5,Wt:()=>tQ,Y2:()=>tj,a$:()=>tG,sb:()=>J,ME:()=>er,UI:()=>Z,Ch:()=>T,mW:()=>A,DB:()=>_,_3:()=>tM,EJ:()=>w,m7:()=>t8,iN:()=>t4,zj:()=>th,D7:()=>et,Gs:()=>el,J$:()=>M,ab:()=>t7,Q2:()=>ts,P$:()=>q,ID:()=>tL,Wi:()=>tK,H1:()=>ty,Rm:()=>b,QO:()=>tE,Js:()=>es,Xd:()=>B,dj:()=>tN,cL:()=>tu,$i:()=>V,jZ:()=>t_,oB:()=>ei,wZ:()=>tn,EI:()=>t6,SV:()=>t3,Nk:()=>tl,XV:()=>ee,ke:()=>t9,He:()=>k,UU:()=>ta,ot:()=>tY,mj:()=>ea,tM:()=>tV,H$:()=>H,B6:()=>to});var a,n=r(9182),o=r(8479),s=r(1763);let l=(t,e)=>{let r=o.A.parse(t),i={};for(let t in e)e[t]&&(i[t]=r[t]+e[t]);return(0,s.A)(t,i)};var h=r(941);let c=(t,e=100)=>{let r=o.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{let{r:i,g:a,b:n,a:s}=o.A.parse(t),{r:l,g:c,b:d,a:u}=o.A.parse(e),p=r/100,f=2*p-1,g=s-u,m=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,y=1-m;return(0,h.A)(i*m+l*y,a*m+c*y,n*m+d*y,s*p+u*(1-p))})(r,t,e)};var d=r(9515),u=r(8480),p=r(3614),f=r(3064),g=Object.defineProperty,m=(t,e)=>g(t,"name",{value:e,configurable:!0}),y=(t,e)=>{for(var r in e)g(t,r,{get:e[r],enumerable:!0})},x={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},b={trace:m((...t)=>{},"trace"),debug:m((...t)=>{},"debug"),info:m((...t)=>{},"info"),warn:m((...t)=>{},"warn"),error:m((...t)=>{},"error"),fatal:m((...t)=>{},"fatal")},k=m(function(t="fatal"){let e=x.fatal;"string"==typeof t?t.toLowerCase()in x&&(e=x[t]):"number"==typeof t&&(e=t),b.trace=()=>{},b.debug=()=>{},b.info=()=>{},b.warn=()=>{},b.error=()=>{},b.fatal=()=>{},e<=x.fatal&&(b.fatal=console.error?console.error.bind(console,C("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",C("FATAL"))),e<=x.error&&(b.error=console.error?console.error.bind(console,C("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",C("ERROR"))),e<=x.warn&&(b.warn=console.warn?console.warn.bind(console,C("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",C("WARN"))),e<=x.info&&(b.info=console.info?console.info.bind(console,C("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",C("INFO"))),e<=x.debug&&(b.debug=console.debug?console.debug.bind(console,C("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",C("DEBUG"))),e<=x.trace&&(b.trace=console.debug?console.debug.bind(console,C("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",C("TRACE")))},"setLogLevel"),C=m(t=>{let e=n().format("ss.SSS");return`%c${e} : ${t} : `},"format"),w=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,_=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,S=/\s*%%.*\n/gm,v=class extends Error{static{m(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},A={},T=m(function(t,e){for(let[r,{detector:i}]of(t=t.replace(w,"").replace(_,"").replace(S,"\n"),Object.entries(A)))if(i(t,e))return r;throw new v(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),B=m((...t)=>{for(let{id:e,detector:r,loader:i}of t)L(e,r,i)},"registerLazyLoadedDiagrams"),L=m((t,e,r)=>{A[t]&&b.warn(`Detector with key ${t} already exists. Overwriting.`),A[t]={detector:e,loader:r},b.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),M=m(t=>A[t].loader,"getDiagramLoader"),F=m((t,e,{depth:r=2,clobber:i=!1}={})=>{let a={depth:r,clobber:i};if(Array.isArray(e)&&!Array.isArray(t))return e.forEach(e=>F(t,e,a)),t;if(Array.isArray(e)&&Array.isArray(t))return e.forEach(e=>{t.includes(e)||t.push(e)}),t;if(void 0===t||r<=0)if(null!=t&&"object"==typeof t&&"object"==typeof e)return Object.assign(t,e);else return e;return void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach(a=>{"object"==typeof e[a]&&(void 0===t[a]||"object"==typeof t[a])?(void 0===t[a]&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=F(t[a],e[a],{depth:r-1,clobber:i})):(i||"object"!=typeof t[a]&&"object"!=typeof e[a])&&(t[a]=e[a])}),t},"assignWithDepth"),$=F,E="#ffffff",O="#f2f2f2",D=m((t,e)=>e?l(t,{s:-40,l:10}):l(t,{s:-40,l:-10}),"mkBorder"),R=class{static{m(this,"Theme")}constructor(){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"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||l(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||l(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||D(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||D(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||D(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||D(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||c(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||c(this.tertiaryColor),this.lineColor=this.lineColor||c(this.background),this.arrowheadColor=this.arrowheadColor||c(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,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?(0,d.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||this.actorBorder,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||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||c(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||(0,u.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.vertLineColor=this.vertLineColor||"navy",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.darkMode?(this.rowOdd=this.rowOdd||(0,d.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,d.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,5)),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||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||c(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||l(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||l(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||l(this.primaryColor,{h:64}),this.fillType3=this.fillType3||l(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||l(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||l(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||l(this.primaryColor,{h:128}),this.fillType7=this.fillType7||l(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||l(this.primaryColor,{l:-10}),this.pie5=this.pie5||l(this.secondaryColor,{l:-10}),this.pie6=this.pie6||l(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||l(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||l(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.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||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(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||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},I=m(t=>{let e=new R;return e.calculate(t),e},"getThemeVariables"),z=class{static{m(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,u.A)(this.primaryColor,16),this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=c(this.background),this.secondaryBorderColor=D(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=D(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.tertiaryColor),this.lineColor=c(this.background),this.textColor=c(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,u.A)(c("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,h.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=(0,d.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,d.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,h.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,h.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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,d.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,u.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=(0,u.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,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=(0,u.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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(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||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||c(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,s:-30,l:-(-10+4*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,s:-30,l:-(-7+4*t)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,u.A)(this.secondaryColor,20),this.git1=(0,u.A)(this.pie2||this.secondaryColor,20),this.git2=(0,u.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,u.A)(this.pie4||l(this.primaryColor,{h:-30}),20),this.git4=(0,u.A)(this.pie5||l(this.primaryColor,{h:-60}),20),this.git5=(0,u.A)(this.pie6||l(this.primaryColor,{h:-90}),10),this.git6=(0,u.A)(this.pie7||l(this.primaryColor,{h:60}),10),this.git7=(0,u.A)(this.pie8||l(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||c(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||c(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||(0,u.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,u.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},K=m(t=>{let e=new z;return e.calculate(t),e},"getThemeVariables"),P=class{static{m(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=l(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=D(this.primaryColor,this.darkMode),this.secondaryBorderColor=D(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=D(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.tertiaryColor),this.lineColor=c(this.background),this.textColor=c(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="rgba(232,232,232, 0.8)",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="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="#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.vertLineColor="calculated",this.sectionBkgColor=(0,h.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.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||c(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||c(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||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=(0,u.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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,u.A)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.primaryColor,1),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=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||l(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||l(this.primaryColor,{l:-10}),this.pie5=this.pie5||l(this.secondaryColor,{l:-30}),this.pie6=this.pie6||l(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||l(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||l(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,d.A)(c(this.git0),25),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||c(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||c(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||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if(Object.keys(this).forEach(t=>{"calculated"===this[t]&&(this[t]=void 0)}),"object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},q=m(t=>{let e=new P;return e.calculate(t),e},"getThemeVariables"),N=class{static{m(this,"Theme")}constructor(){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=(0,u.A)("#cde498",10),this.primaryBorderColor=D(this.primaryColor,this.darkMode),this.secondaryBorderColor=D(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=D(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.primaryColor),this.lineColor=c(this.background),this.textColor=c(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="calculated",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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,d.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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,20),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=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(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||l(this.primaryColor,{l:-30}),this.pie5=this.pie5||l(this.secondaryColor,{l:-30}),this.pie6=this.pie6||l(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||l(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||l(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||c(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||c(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||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},j=m(t=>{let e=new N;return e.calculate(t),e},"getThemeVariables"),W=class{static{m(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,u.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=D(this.primaryColor,this.darkMode),this.secondaryBorderColor=D(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=D(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.tertiaryColor),this.lineColor=c(this.background),this.textColor=c(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=this.actorBorder,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.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,u.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,u.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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.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(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||c(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{l:-(8+5*t)});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.sectionBkgColor=(0,u.A)(this.contrast,30),this.sectionBkgColor2=(0,u.A)(this.contrast,30),this.taskBorderColor=(0,d.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=(0,u.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,d.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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=(0,d.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||l(this.primaryColor,{h:-30}),this.git4=this.pie5||l(this.primaryColor,{h:-60}),this.git5=this.pie6||l(this.primaryColor,{h:-90}),this.git6=this.pie7||l(this.primaryColor,{h:60}),this.git7=this.pie8||l(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(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||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},H={base:{getThemeVariables:I},dark:{getThemeVariables:K},default:{getThemeVariables:q},forest:{getThemeVariables:j},neutral:{getThemeVariables:m(t=>{let e=new W;return e.calculate(t),e},"getThemeVariables")}},G={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,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,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},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,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,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{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},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,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,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"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Y={...G,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:H.default.getThemeVariables(),sequence:{...G.sequence,messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:m(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:m(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...G.gantt,tickInterval:void 0,useWidth:void 0},c4:{...G.c4,useWidth:void 0,personFont:m(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...G.flowchart,inheritDir:!1},external_personFont:m(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:m(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:m(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:m(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:m(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:m(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:m(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:m(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:m(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:m(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:m(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:m(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:m(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:m(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:m(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:m(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:m(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:m(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:m(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:m(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...G.pie,useWidth:984},xyChart:{...G.xyChart,useWidth:void 0},requirement:{...G.requirement,useWidth:void 0},packet:{...G.packet},radar:{...G.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},U=m((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...U(t[i],"")]:[...r,e+i],[]),"keyify"),X=new Set(U(Y,"")),Z=Y,V=m(t=>{if(b.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t))return void t.forEach(t=>V(t));for(let e of Object.keys(t)){if(b.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!X.has(e)||null==t[e]){b.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){b.debug("sanitizing object",e),V(t[e]);continue}for(let r of["themeCSS","fontFamily","altFontFamily"])e.includes(r)&&(b.debug("sanitizing css option",e),t[e]=Q(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}b.debug("After sanitization",t)}},"sanitizeDirective"),Q=m(t=>{let e=0,r=0;for(let i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),J=Object.freeze(Z),tt=$({},J),te=[],tr=$({},J),ti=m((t,e)=>{let r=$({},t),i={};for(let t of e)tc(t),i=$(i,t);if(r=$(r,i),i.theme&&i.theme in H){let t=$({},a),e=$(t.themeVariables||{},i.themeVariables);r.theme&&r.theme in H&&(r.themeVariables=H[r.theme].getThemeVariables(e))}return tm(tr=r),tr},"updateCurrentConfig"),ta=m(t=>(tt=$({},J),tt=$(tt,t),t.theme&&H[t.theme]&&(tt.themeVariables=H[t.theme].getThemeVariables(t.themeVariables)),ti(tt,te),tt),"setSiteConfig"),tn=m(t=>{a=$({},t)},"saveConfigFromInitialize"),to=m(t=>(tt=$(tt,t),ti(tt,te),tt),"updateSiteConfig"),ts=m(()=>$({},tt),"getSiteConfig"),tl=m(t=>(tm(t),$(tr,t),th()),"setConfig"),th=m(()=>$({},tr),"getConfig"),tc=m(t=>{t&&(["secure",...tt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(b.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&tc(t[e])}))},"sanitize"),td=m(t=>{V(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),te.push(t),ti(tt,te)},"addDirective"),tu=m((t=tt)=>{ti(t,te=[])},"reset"),tp={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},tf={},tg=m(t=>{tf[t]||(b.warn(tp[t]),tf[t]=!0)},"issueWarning"),tm=m(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tg("LAZY_LOAD_DEPRECATED")},"checkConfig"),ty=/<br\s*\/?>/gi,tx=m(t=>t?tB(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),tb=(i=!1,()=>{i||(tk(),i=!0)});function tk(){let t="data-temp-href-target";f.A.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),f.A.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}m(tk,"setupDompurifyHooks");var tC=m(t=>(tb(),f.A.sanitize(t)),"removeScript"),tw=m((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;"antiscript"===r||"strict"===r?t=tC(t):"loose"!==r&&(t=tT(t=(t=(t=tB(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;")))}return t},"sanitizeMore"),t_=m((t,e)=>t?t=e.dompurifyConfig?f.A.sanitize(tw(t,e),e.dompurifyConfig).toString():f.A.sanitize(tw(t,e),{FORBID_TAGS:["style"]}).toString():t,"sanitizeText"),tS=m((t,e)=>"string"==typeof t?t_(t,e):t.flat().map(t=>t_(t,e)),"sanitizeTextOrArray"),tv=m(t=>ty.test(t),"hasBreaks"),tA=m(t=>t.split(ty),"splitBreaks"),tT=m(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),tB=m(t=>t.replace(ty,"#br#"),"breakToPlaceholder"),tL=m(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),tM=m(t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),tF=m(function(...t){return Math.max(...t.filter(t=>!isNaN(t)))},"getMax"),t$=m(function(...t){return Math.min(...t.filter(t=>!isNaN(t)))},"getMin"),tE=m(function(t){let e=t.split(/(,)/),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(","===i&&t>0&&t+1<e.length){let a=e[t-1],n=e[t+1];tD(a,n)&&(i=a+","+n,t++,r.pop())}r.push(tR(i))}return r.join("")},"parseGenericTypes"),tO=m((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),tD=m((t,e)=>{let r=tO(t,"~"),i=tO(e,"~");return 1===r&&1===i},"shouldCombineSets"),tR=m(t=>{let e=tO(t,"~"),r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],a=i.indexOf("~"),n=i.lastIndexOf("~");for(;-1!==a&&-1!==n&&a!==n;)i[a]="<",i[n]=">",a=i.indexOf("~"),n=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),tI=m(()=>void 0!==window.MathMLElement,"isMathMLSupported"),tz=/\$\$(.*)\$\$/g,tK=m(t=>(t.match(tz)?.length??0)>0,"hasKatex"),tP=m(async(t,e)=>{let r=document.createElement("div");r.innerHTML=await tN(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";let i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);let a={width:r.clientWidth,height:r.clientHeight};return r.remove(),a},"calculateMathMLDimensions"),tq=m(async(t,e)=>{if(!tK(t))return t;if(!(tI()||e.legacyMathML||e.forceLegacyMathML))return t.replace(tz,"MathML is unsupported in this environment.");{let{default:i}=await r.e(535).then(r.bind(r,9402)),a=e.forceLegacyMathML||!tI()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(ty).map(t=>tK(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`).join("").replace(tz,(t,e)=>i.renderToString(e,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),tN=m(async(t,e)=>t_(await tq(t,e),e),"renderKatexSanitized"),tj={getRows:tx,sanitizeText:t_,sanitizeTextOrArray:tS,hasBreaks:tv,splitBreaks:tA,lineBreakRegex:ty,removeScript:tC,getUrl:tL,evaluate:tM,getMax:tF,getMin:t$},tW=m(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),tH=m(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),tG=m(function(t,e,r,i){tW(t,tH(e,r,i))},"configureSvgSize"),tY=m(function(t,e,r,i){let a=e.node().getBBox(),n=a.width,o=a.height;b.info(`SVG bounds: ${n}x${o}`,a);let s=0,l=0;b.info(`Graph bounds: ${s}x${l}`,t),s=n+2*r,l=o+2*r,b.info(`Calculated bounds: ${s}x${l}`),tG(e,l,s,i);let h=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox"),tU={},tX=m((t,e,r)=>{let i="";return t in tU&&tU[t]?i=tU[t](r):b.warn(`No theme found for ${t}`),` & {
77
+ font-family: ${r.fontFamily};
78
+ font-size: ${r.fontSize};
79
+ fill: ${r.textColor}
80
+ }
81
+ @keyframes edge-animation-frame {
82
+ from {
83
+ stroke-dashoffset: 0;
84
+ }
85
+ }
86
+ @keyframes dash {
87
+ to {
88
+ stroke-dashoffset: 0;
89
+ }
90
+ }
91
+ & .edge-animation-slow {
92
+ stroke-dasharray: 9,5 !important;
93
+ stroke-dashoffset: 900;
94
+ animation: dash 50s linear infinite;
95
+ stroke-linecap: round;
96
+ }
97
+ & .edge-animation-fast {
98
+ stroke-dasharray: 9,5 !important;
99
+ stroke-dashoffset: 900;
100
+ animation: dash 20s linear infinite;
101
+ stroke-linecap: round;
102
+ }
103
+ /* Classes common for multiple diagrams */
104
+
105
+ & .error-icon {
106
+ fill: ${r.errorBkgColor};
107
+ }
108
+ & .error-text {
109
+ fill: ${r.errorTextColor};
110
+ stroke: ${r.errorTextColor};
111
+ }
112
+
113
+ & .edge-thickness-normal {
114
+ stroke-width: 1px;
115
+ }
116
+ & .edge-thickness-thick {
117
+ stroke-width: 3.5px
118
+ }
119
+ & .edge-pattern-solid {
120
+ stroke-dasharray: 0;
121
+ }
122
+ & .edge-thickness-invisible {
123
+ stroke-width: 0;
124
+ fill: none;
125
+ }
126
+ & .edge-pattern-dashed{
127
+ stroke-dasharray: 3;
128
+ }
129
+ .edge-pattern-dotted {
130
+ stroke-dasharray: 2;
131
+ }
132
+
133
+ & .marker {
134
+ fill: ${r.lineColor};
135
+ stroke: ${r.lineColor};
136
+ }
137
+ & .marker.cross {
138
+ stroke: ${r.lineColor};
139
+ }
140
+
141
+ & svg {
142
+ font-family: ${r.fontFamily};
143
+ font-size: ${r.fontSize};
144
+ }
145
+ & p {
146
+ margin: 0
147
+ }
148
+
149
+ ${i}
150
+
151
+ ${e}
152
+ `},"getStyles"),tZ=m((t,e)=>{void 0!==e&&(tU[t]=e)},"addStylesForDiagram"),tV=tX,tQ={};y(tQ,{clear:()=>t5,getAccDescription:()=>t8,getAccTitle:()=>t4,getDiagramTitle:()=>t7,setAccDescription:()=>t6,setAccTitle:()=>t3,setDiagramTitle:()=>t9});var tJ="",t0="",t1="",t2=m(t=>t_(t,th()),"sanitizeText"),t5=m(()=>{tJ="",t1="",t0=""},"clear"),t3=m(t=>{tJ=t2(t).replace(/^\s+/g,"")},"setAccTitle"),t4=m(()=>tJ,"getAccTitle"),t6=m(t=>{t1=t2(t).replace(/\n\s+/g,"\n")},"setAccDescription"),t8=m(()=>t1,"getAccDescription"),t9=m(t=>{t0=t2(t)},"setDiagramTitle"),t7=m(()=>t0,"getDiagramTitle"),et=th,ee=tl,er=J,ei=m(t=>t_(t,et()),"sanitizeText"),ea=tY,en=m(()=>tQ,"getCommonDb"),eo={},es=m((t,e,r)=>{eo[t]&&b.warn(`Diagram with id ${t} already registered. Overwriting.`),eo[t]=e,r&&L(t,r),tZ(t,e.styles),e.injectUtils?.(b,k,et,ei,ea,en(),()=>{})},"registerDiagram"),el=m(t=>{if(t in eo)return eo[t];throw new eh(t)},"getDiagram"),eh=class extends Error{static{m(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},5939(t,e,r){"use strict";r.d(e,{R:()=>s});var i=r(8755),a={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function n(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=o(t),e=o(e);let[r,i]=[t.x,t.y],[a,n]=[e.x,e.y],s=a-r,l=n-i;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}(0,i.K2)(n,"calculateDeltaAndAngle");var o=(0,i.K2)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),s=(0,i.K2)(t=>({x:(0,i.K2)(function(e,r,i){let s=0,l=o(i[0]).x<o(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaX:r}=n(i[0],i[1]);s=a[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaX:r}=n(i[i.length-1],i[i.length-2]);s=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let h=Math.abs(o(e).x-o(i[i.length-1]).x),c=Math.abs(o(e).y-o(i[i.length-1]).y),d=Math.abs(o(e).x-o(i[0]).x),u=Math.abs(o(e).y-o(i[0]).y),p=a[t.arrowTypeStart],f=a[t.arrowTypeEnd];if(h<f&&h>0&&c<f){let t=f+1-h;t*="right"===l?-1:1,s-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="right"===l?-1:1,s+=t}return o(e).x+s},"x"),y:(0,i.K2)(function(e,r,i){let s=0,l=o(i[0]).y<o(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaY:r}=n(i[0],i[1]);s=a[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaY:r}=n(i[i.length-1],i[i.length-2]);s=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let h=Math.abs(o(e).y-o(i[i.length-1]).y),c=Math.abs(o(e).x-o(i[i.length-1]).x),d=Math.abs(o(e).y-o(i[0]).y),u=Math.abs(o(e).x-o(i[0]).x),p=a[t.arrowTypeStart],f=a[t.arrowTypeEnd];if(h<f&&h>0&&c<f){let t=f+1-h;t*="up"===l?-1:1,s-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="up"===l?-1:1,s+=t}return o(e).y+s},"y")}),"getLineFunctionsWithOffset")},74(t,e,r){"use strict";r.d(e,{default:()=>rn});var i=r(9927),a=r(5754);r(9462),r(5939),r(7618),r(5040),r(5695);var n=r(3919),o=r(3218),s=r(3573),l=r(5876),h=r(8755),c=r(1357),d=r(6040),u="comm",p="rule",f="decl",g=Math.abs,m=String.fromCharCode;function y(t,e,r){return t.replace(e,r)}function x(t,e){return 0|t.charCodeAt(e)}function b(t,e,r){return t.slice(e,r)}function k(t){return t.length}function C(t,e){return e.push(t),t}function w(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function _(t,e,r,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case f:return t.return=t.return||t.value;case u:return"";case"@keyframes":return t.return=t.value+"{"+w(t.children,i)+"}";case p:if(!k(t.value=t.props.join(",")))return""}return k(r=w(t.children,i))?t.return=t.value+"{"+r+"}":""}var S=1,v=1,A=0,T=0,B=0,L="";function M(t,e,r,i,a,n,o,s){return{value:t,root:e,parent:r,type:i,props:a,children:n,line:S,column:v,length:o,return:"",siblings:s}}function F(){return B=T<A?x(L,T++):0,v++,10===B&&(v=1,S++),B}function $(){return x(L,T)}function E(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 O(t){var e,r;return(e=T-1,r=function t(e){for(;F();)switch(B){case e:return T;case 34:case 39:34!==e&&39!==e&&t(B);break;case 40:41===e&&t(e);break;case 92:F()}return T}(91===t?t+2:40===t?t+1:t),b(L,e,r)).trim()}function D(t,e,r,i,a,n,o,s,l,h,c,d){for(var u=a-1,f=0===a?n:[""],m=f.length,x=0,k=0,C=0;x<i;++x)for(var w=0,_=b(t,u+1,u=g(k=o[x])),S=t;w<m;++w)(S=(k>0?f[w]+" "+_:y(_,/&\f/g,f[w])).trim())&&(l[C++]=S);return M(t,e,r,0===a?p:s,l,h,c,d)}function R(t,e,r,i,a){return M(t,e,r,f,b(t,0,i),b(t,i+1,-1),i,a)}var I=r(3064),z=r(4555),K={id:"c4",detector:(0,h.K2)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,h.K2)(async()=>{let{diagram:t}=await r.e(3477).then(r.bind(r,8948));return{id:"c4",diagram:t}},"loader")},P="flowchart",q=(0,h.K2)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),N=(0,h.K2)(async()=>{let{diagram:t}=await r.e(9560).then(r.bind(r,7515));return{id:P,diagram:t}},"loader"),j={id:P,detector:q,loader:N},W="flowchart-v2",H=(0,h.K2)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-d3"&&(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),!!/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(t)),"detector"),G=(0,h.K2)(async()=>{let{diagram:t}=await r.e(9560).then(r.bind(r,7515));return{id:W,diagram:t}},"loader"),Y={id:W,detector:H,loader:G},U={id:"er",detector:(0,h.K2)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,h.K2)(async()=>{let{diagram:t}=await r.e(160).then(r.bind(r,5475));return{id:"er",diagram:t}},"loader")},X="gitGraph",Z=(0,h.K2)(t=>/^\s*gitGraph/.test(t),"detector"),V=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(8794),r.e(9821)]).then(r.bind(r,4236));return{id:X,diagram:t}},"loader"),Q={id:X,detector:Z,loader:V},J="gantt",tt=(0,h.K2)(t=>/^\s*gantt/.test(t),"detector"),te=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(5638),r.e(6689)]).then(r.bind(r,7864));return{id:J,diagram:t}},"loader"),tr={id:J,detector:tt,loader:te},ti="info",ta=(0,h.K2)(t=>/^\s*info/.test(t),"detector"),tn=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(8794),r.e(6152)]).then(r.bind(r,1723));return{id:ti,diagram:t}},"loader"),to={id:ti,detector:ta,loader:tn},ts={id:"pie",detector:(0,h.K2)(t=>/^\s*pie/.test(t),"detector"),loader:(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(8794),r.e(5638),r.e(8821)]).then(r.bind(r,5428));return{id:"pie",diagram:t}},"loader")},tl="quadrantChart",th=(0,h.K2)(t=>/^\s*quadrantChart/.test(t),"detector"),tc=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(5638),r.e(7536)]).then(r.bind(r,7155));return{id:tl,diagram:t}},"loader"),td={id:tl,detector:th,loader:tc},tu="xychart",tp=(0,h.K2)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tf=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(5638),r.e(4468)]).then(r.bind(r,287));return{id:tu,diagram:t}},"loader"),tg={id:tu,detector:tp,loader:tf},tm="requirement",ty=(0,h.K2)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tx=(0,h.K2)(async()=>{let{diagram:t}=await r.e(509).then(r.bind(r,7148));return{id:tm,diagram:t}},"loader"),tb={id:tm,detector:ty,loader:tx},tk="sequence",tC=(0,h.K2)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tw=(0,h.K2)(async()=>{let{diagram:t}=await r.e(1097).then(r.bind(r,8288));return{id:tk,diagram:t}},"loader"),t_={id:tk,detector:tC,loader:tw},tS="class",tv=(0,h.K2)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),tA=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(5636),r.e(7853)]).then(r.bind(r,9644));return{id:tS,diagram:t}},"loader"),tT={id:tS,detector:tv,loader:tA},tB="classDiagram",tL=(0,h.K2)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),tM=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(5636),r.e(9324)]).then(r.bind(r,2679));return{id:tB,diagram:t}},"loader"),tF={id:tB,detector:tL,loader:tM},t$="state",tE=(0,h.K2)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),tO=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(828),r.e(8180),r.e(2110),r.e(6325)]).then(r.bind(r,3780));return{id:t$,diagram:t}},"loader"),tD={id:t$,detector:tE,loader:tO},tR="stateDiagram",tI=(0,h.K2)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tz=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(2110),r.e(2607)]).then(r.bind(r,5877));return{id:tR,diagram:t}},"loader"),tK={id:tR,detector:tI,loader:tz},tP="journey",tq=(0,h.K2)(t=>/^\s*journey/.test(t),"detector"),tN=(0,h.K2)(async()=>{let{diagram:t}=await r.e(2348).then(r.bind(r,711));return{id:tP,diagram:t}},"loader"),tj={id:tP,detector:tq,loader:tN},tW={draw:(0,h.K2)((t,e,r)=>{h.Rm.debug("rendering svg for syntax error\n");let i=(0,l.D)(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,h.a$)(i,100,512,!0),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},tH={db:{},renderer:tW,parser:{parse:(0,h.K2)(()=>{},"parse")}},tG="flowchart-elk",tY=(0,h.K2)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),tU=(0,h.K2)(async()=>{let{diagram:t}=await r.e(9560).then(r.bind(r,7515));return{id:tG,diagram:t}},"loader"),tX={id:tG,detector:tY,loader:tU},tZ="timeline",tV=(0,h.K2)(t=>/^\s*timeline/.test(t),"detector"),tQ=(0,h.K2)(async()=>{let{diagram:t}=await r.e(6349).then(r.bind(r,8940));return{id:tZ,diagram:t}},"loader"),tJ={id:tZ,detector:tV,loader:tQ},t0="mindmap",t1=(0,h.K2)(t=>/^\s*mindmap/.test(t),"detector"),t2=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(3909),r.e(7262)]).then(r.bind(r,6045));return{id:t0,diagram:t}},"loader"),t5={id:t0,detector:t1,loader:t2},t3="kanban",t4=(0,h.K2)(t=>/^\s*kanban/.test(t),"detector"),t6=(0,h.K2)(async()=>{let{diagram:t}=await r.e(3376).then(r.bind(r,9779));return{id:t3,diagram:t}},"loader"),t8={id:t3,detector:t4,loader:t6},t9="sankey",t7=(0,h.K2)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),et=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(5638),r.e(9501)]).then(r.bind(r,5500));return{id:t9,diagram:t}},"loader"),ee={id:t9,detector:t7,loader:et},er="packet",ei=(0,h.K2)(t=>/^\s*packet(-beta)?/.test(t),"detector"),ea=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(8794),r.e(8538)]).then(r.bind(r,5409));return{id:er,diagram:t}},"loader"),en={id:er,detector:ei,loader:ea},eo="radar",es=(0,h.K2)(t=>/^\s*radar-beta/.test(t),"detector"),el=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(8794),r.e(5172)]).then(r.bind(r,5455));return{id:eo,diagram:t}},"loader"),eh={id:eo,detector:es,loader:el},ec="block",ed=(0,h.K2)(t=>/^\s*block(-beta)?/.test(t),"detector"),eu=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(828),r.e(4580)]).then(r.bind(r,8767));return{id:ec,diagram:t}},"loader"),ep={id:ec,detector:ed,loader:eu},ef="architecture",eg=(0,h.K2)(t=>/^\s*architecture/.test(t),"detector"),em=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(8794),r.e(3909),r.e(5597)]).then(r.bind(r,8716));return{id:ef,diagram:t}},"loader"),ey={id:ef,detector:eg,loader:em},ex="treemap",eb=(0,h.K2)(t=>/^\s*treemap/.test(t),"detector"),ek=(0,h.K2)(async()=>{let{diagram:t}=await Promise.all([r.e(9765),r.e(8794),r.e(5638),r.e(5546)]).then(r.bind(r,8641));return{id:ex,diagram:t}},"loader"),eC={id:ex,detector:eb,loader:ek},ew=!1,e_=(0,h.K2)(()=>{ew||(ew=!0,(0,h.Js)("error",tH,t=>"error"===t.toLowerCase().trim()),(0,h.Js)("---",{db:{clear:(0,h.K2)(()=>{},"clear")},styles:{},renderer:{draw:(0,h.K2)(()=>{},"draw")},parser:{parse:(0,h.K2)(()=>{throw 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 un-indented `---` blocks")},"parse")},init:(0,h.K2)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,h.Xd)(tX,t5,ey),(0,h.Xd)(K,t8,tF,tT,U,tr,to,ts,tb,t_,Y,j,tJ,Q,tK,tD,tj,td,ee,en,tg,ep,eh,eC))},"addDiagrams"),eS=(0,h.K2)(async()=>{h.Rm.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(h.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,h.Gs)(t)}catch{try{let{diagram:t,id:i}=await r();(0,h.Js)(i,t,e)}catch(e){throw h.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete h.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(h.Rm.error(`Failed to load ${t.length} external diagrams`),t))h.Rm.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function ev(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function eA(t,e,r,i){if(void 0!==t.insert){if(r){let e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,h.K2)(ev,"setA11yDiagramInfo"),(0,h.K2)(eA,"addSVGa11yTitleDescription");var eT=class t{constructor(t,e,r,i,a){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=a}static{(0,h.K2)(this,"Diagram")}static async fromText(e,r={}){let i=(0,h.zj)(),a=(0,h.Ch)(e,i);e=(0,o.C4)(e)+"\n";try{(0,h.Gs)(a)}catch{let t=(0,h.J$)(a);if(!t)throw new h.C0(`Diagram ${a} not found.`);let{id:e,diagram:r}=await t();(0,h.Js)(e,r)}let{db:n,parser:s,renderer:l,init:c}=(0,h.Gs)(a);return s.parser&&(s.parser.yy=n),n.clear?.(),c?.(i),r.title&&n.setDiagramTitle?.(r.title),await s.parse(e),new t(a,e,n,s,l)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},eB=[],eL=(0,h.K2)(()=>{eB.forEach(t=>{t()}),eB=[]},"attachFunctions"),eM=(0,h.K2)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function eF(t){let e=t.match(h.EJ);if(!e)return{text:t,metadata:{}};let r=(0,i.H)(e[1],{schema:i.r})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;let a={};return r.displayMode&&(a.displayMode=r.displayMode.toString()),r.title&&(a.title=r.title.toString()),r.config&&(a.config=r.config),{text:t.slice(e[0].length),metadata:a}}(0,h.K2)(eF,"extractFrontMatter");var e$=(0,h.K2)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),eE=(0,h.K2)(t=>{let{text:e,metadata:r}=eF(t),{displayMode:i,title:a,config:n={}}=r;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:a,config:n,text:e}},"processFrontmatter"),eO=(0,h.K2)(t=>{let e=o._K.detectInit(t)??{},r=o._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,o.vU)(t),directive:e}},"processDirectives");function eD(t){let e=eE(e$(t)),r=eO(e.text),i=(0,o.$t)(e.config,r.directive);return{code:t=eM(r.text),title:e.title,config:i}}function eR(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,h.K2)(eD,"preprocessDiagram"),(0,h.K2)(eR,"toBase64");var eI=["foreignobject"],ez=["dominant-baseline"];function eK(t){let e=eD(t);return(0,h.cL)(),(0,h.xA)(e.config??{}),e}async function eP(t,e){e_();try{let{code:e,config:r}=eK(t);return{diagramType:(await eV(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,h.K2)(eK,"processAndSetConfigs"),(0,h.K2)(eP,"parse");var eq=(0,h.K2)((t,e,r=[])=>`
153
+ .${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),eN=(0,h.K2)((t,e=new Map)=>{let r="";if(void 0!==t.themeCSS&&(r+=`
154
+ ${t.themeCSS}`),void 0!==t.fontFamily&&(r+=`
155
+ :root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=`
156
+ :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){let i=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{(0,z.A)(t.styles)||i.forEach(e=>{r+=eq(t.id,e,t.styles)}),(0,z.A)(t.textStyles)||(r+=eq(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))))})}return r},"createCssStyles"),ej=(0,h.K2)((t,e,r,i)=>{var a,n,o;let s=eN(t,r),l=(0,h.tM)(e,s,t.themeVariables);return w((o=function t(e,r,i,a,n,o,s,l,h){for(var c,d,p,f,g=0,w=0,_=s,A=0,I=0,z=0,K=1,P=1,q=1,N=0,j=0,W="",H=n,G=o,Y=a,U=W;P;)switch(z=j,j=F()){case 40:108!=z&&58==x(U,_-1)?(N++,U+="("):U+=O(j);break;case 41:N--,U+=")";break;case 34:case 39:case 91:U+=O(j);break;case 9:case 10:case 13:case 32:if(N>0){U+=m(j);break}U+=function(t){for(;B=$();)if(B<33)F();else break;return E(t)>2||E(B)>3?"":" "}(z);break;case 92:U+=function(t,e){for(var r;--e&&F()&&!(B<48)&&!(B>102)&&(!(B>57)||!(B<65))&&(!(B>70)||!(B<97)););return r=T+(e<6&&32==$()&&32==F()),b(L,t,r)}(T-1,7);continue;case 47:switch($()){case 42:case 47:C((c=function(t,e){for(;F();)if(t+B===57)break;else if(t+B===84&&47===$())break;return"/*"+b(L,e,T-1)+"*"+m(47===t?t:F())}(F(),T),d=r,p=i,f=h,M(c,d,p,u,m(B),b(c,2,-2),0,f)),h),(5==E(z||1)||5==E($()||1))&&k(U)&&" "!==b(U,-1,void 0)&&(U+=" ");break;default:U+="/"}break;case 123*K:l[g++]=k(U)*q;case 125*K:case 59:case 0:if(N>0&&j){U+=m(j);break}switch(j){case 0:case 125:P=0;case 59+w:-1==q&&(U=y(U,/\f/g,"")),I>0&&(k(U)-_||0===K)&&C(I>32?R(U+";",a,i,_-1,h):R(y(U," ","")+";",a,i,_-2,h),h);break;case 59:U+=";";default:if(C(Y=D(U,r,i,g,w,n,l,W,H=[],G=[],_,o),o),123===j)if(0===w)t(U,r,Y,Y,H,o,_,l,G);else{switch(A){case 99:if(110===x(U,3))break;case 108:if(97===x(U,2))break;default:w=0;case 100:case 109:case 115:}w?t(e,Y,Y,a&&C(D(e,Y,Y,0,0,n,l,W,n,H=[],_,G),G),n,G,_,l,a?H:G):t(U,Y,Y,Y,[""],G,0,l,G)}}g=w=I=0,K=q=1,W=U="",_=s;break;case 58:_=1+k(U),I=z;default:if(K<1){if(123==j)--K;else if(125==j&&0==K++&&125==(B=T>0?x(L,--T):0,v--,10===B&&(v=1,S--),B))continue}switch(U+=m(j),j*K){case 38:q=w>0?1:(U+="\f",-1);break;case 44:if(N>0)break;l[g++]=(k(U)-1)*q,q=1;break;case 64:45===$()&&(U+=O(F())),A=$(),w=_=k(W=U+=function(t){for(;!E($());)F();return b(L,t,T)}(T)),j++;break;case 45:45===z&&2==k(U)&&(K=0)}}return o}("",null,null,null,[""],(n=a=`${i}{${l}}`,S=v=1,A=k(L=n),T=0,a=[]),0,[0],a),L="",o),_)},"createUserStyles"),eW=(0,h.K2)((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=(i=(0,o.Sm)(i)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),eH=(0,h.K2)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",i=eR(`<body style="margin:0">${t}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="allow-top-navigation-by-user-activation allow-popups">
157
+ The "iframe" tag is not supported by your browser.
158
+ </iframe>`},"putIntoIFrame"),eG=(0,h.K2)((t,e,r,i,a)=>{let n=t.append("div");n.attr("id",r),i&&n.attr("style",i);let o=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return a&&o.attr("xmlns:xlink",a),o.append("g"),t},"appendDivSvgG");function eY(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,h.K2)(eY,"sandboxedIframe");var eU=(0,h.K2)((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),eX=(0,h.K2)(async function(t,e,r){let i,a;e_();let n=eK(e);e=n.code;let o=(0,h.zj)();h.Rm.debug(o),e.length>(o?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let l="#"+t,c="i"+t,u="#"+c,p="d"+t,f="#"+p,g=(0,h.K2)(()=>{let t=y?u:f,e=(0,d.Lt)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),m=(0,d.Lt)("body"),y="sandbox"===o.securityLevel,x="loose"===o.securityLevel,b=o.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),y){let t=eY((0,d.Lt)(r),c);(m=(0,d.Lt)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else m=(0,d.Lt)(r);eG(m,t,p,`font-family: ${b}`,"http://www.w3.org/1999/xlink")}else{if(eU(document,t,p,c),y){let t=eY((0,d.Lt)("body"),c);(m=(0,d.Lt)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else m=(0,d.Lt)("body");eG(m,t,p)}try{i=await eT.fromText(e,{title:n.title})}catch(t){if(o.suppressErrorRendering)throw g(),t;i=await eT.fromText("error"),a=t}let k=m.select(f).node(),C=i.type,w=k.firstChild,_=w.firstChild,S=ej(o,C,i.renderer.getClasses?.(e,i),l),v=document.createElement("style");v.innerHTML=S,w.insertBefore(v,_);try{await i.renderer.draw(e,t,s.n.version,i)}catch(r){throw o.suppressErrorRendering?g():tW.draw(e,t,s.n.version),r}eQ(C,m.select(`${f} svg`),i.db.getAccTitle?.(),i.db.getAccDescription?.()),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let A=m.select(f).node().innerHTML;if(h.Rm.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),A=eW(A,y,(0,h._3)(o.arrowMarkerAbsolute)),y?A=eH(A,m.select(f+" svg").node()):x||(A=I.A.sanitize(A,{ADD_TAGS:eI,ADD_ATTR:ez,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),eL(),a)throw a;return g(),{diagramType:C,svg:A,bindFunctions:i.db.bindFunctions}},"render");function eZ(t={}){let e=(0,h.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,h.wZ)(e),e?.theme&&e.theme in h.H$?e.themeVariables=h.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=h.H$.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,h.UU)(e):(0,h.Q2)();(0,h.He)(r.logLevel),e_()}(0,h.K2)(eZ,"initialize");var eV=(0,h.K2)((t,e={})=>{let{code:r}=eD(t);return eT.fromText(r,e)},"getDiagramFromText");function eQ(t,e,r,i){ev(e,t),eA(e,r,i,e.attr("id"))}(0,h.K2)(eQ,"addA11yInfo");var eJ=Object.freeze({render:eX,parse:eP,getDiagramFromText:eV,initialize:eZ,getConfig:h.zj,setConfig:h.Nk,getSiteConfig:h.Q2,updateSiteConfig:h.B6,reset:(0,h.K2)(()=>{(0,h.cL)()},"reset"),globalReset:(0,h.K2)(()=>{(0,h.cL)(h.sb)},"globalReset"),defaultConfig:h.sb});(0,h.He)((0,h.zj)().logLevel),(0,h.cL)((0,h.zj)());var e0=(0,h.K2)((t,e,r)=>{h.Rm.warn(t),(0,o.dq)(t)?(r&&r(t.str,t.hash),e.push({...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}))},"handleError"),e1=(0,h.K2)(async function(t={querySelector:".mermaid"}){try{await e2(t)}catch(e){if((0,o.dq)(e)&&h.Rm.error(e.str),ra.parseError&&ra.parseError(e),!t.suppressErrors)throw h.Rm.error("Use the suppressErrors option to suppress these errors"),e}},"run"),e2=(0,h.K2)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i,a,n=eJ.getConfig();if(h.Rm.debug(`${!t?"No ":""}Callback function found`),r)i=r;else if(e)i=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");h.Rm.debug(`Found ${i.length} diagrams`),n?.startOnLoad!==void 0&&(h.Rm.debug("Start On Load: "+n?.startOnLoad),eJ.updateSiteConfig({startOnLoad:n?.startOnLoad}));let s=new o._K.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed),l=[];for(let e of Array.from(i)){if(h.Rm.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${s.next()}`;a=e.innerHTML,a=(0,c.T)(o._K.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let i=o._K.detectInit(a);i&&h.Rm.debug("Detected early reinit: ",i);try{let{svg:i,bindFunctions:n}=await rr(r,a,e);e.innerHTML=i,t&&await t(r),n&&n(e)}catch(t){e0(t,l,ra.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),e5=(0,h.K2)(function(t){eJ.initialize(t)},"initialize"),e3=(0,h.K2)(async function(t,e,r){h.Rm.warn("mermaid.init is deprecated. Please use run instead."),t&&e5(t);let i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await e1(i)},"init"),e4=(0,h.K2)(async(t,{lazyLoad:e=!0}={})=>{e_(),(0,h.Xd)(...t),!1===e&&await eS()},"registerExternalDiagrams"),e6=(0,h.K2)(function(){if(ra.startOnLoad){let{startOnLoad:t}=eJ.getConfig();t&&ra.run().catch(t=>h.Rm.error("Mermaid failed to initialize",t))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",e6,!1);var e8=(0,h.K2)(function(t){ra.parseError=t},"setParseErrorHandler"),e9=[],e7=!1,rt=(0,h.K2)(async()=>{if(!e7){for(e7=!0;e9.length>0;){let t=e9.shift();if(t)try{await t()}catch(t){h.Rm.error("Error executing queue",t)}}e7=!1}},"executeQueue"),re=(0,h.K2)(async(t,e)=>new Promise((r,i)=>{let a=(0,h.K2)(()=>new Promise((a,n)=>{eJ.parse(t,e).then(t=>{a(t),r(t)},t=>{h.Rm.error("Error parsing",t),ra.parseError?.(t),n(t),i(t)})}),"performCall");e9.push(a),rt().catch(i)}),"parse"),rr=(0,h.K2)((t,e,r)=>new Promise((i,a)=>{let n=(0,h.K2)(()=>new Promise((n,o)=>{eJ.render(t,e,r).then(t=>{n(t),i(t)},t=>{h.Rm.error("Error parsing",t),ra.parseError?.(t),o(t),a(t)})}),"performCall");e9.push(n),rt().catch(a)}),"render"),ri=(0,h.K2)(()=>Object.keys(h.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),ra={startOnLoad:!0,mermaidAPI:eJ,parse:re,render:rr,init:e3,run:e1,registerExternalDiagrams:e4,registerLayoutLoaders:a.sO,initialize:e5,parseError:void 0,contentLoaded:e6,setParseErrorHandler:e8,detectType:h.Ch,registerIconPacks:n.pC,getRegisteredDiagramsMetadata:ri},rn=ra},1357(t,e,r){"use strict";function i(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var a=i.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.length)?r:0})):t},[]);if(a.length){var n=RegExp("\n[ ]{".concat(Math.min.apply(Math,a),"}"),"g");i=i.map(function(t){return t.replace(n,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return e.forEach(function(t,e){var r=o.match(/(?:^|\n)( *)$/),a=r?r[1]:"",n=t;"string"==typeof t&&t.includes("\n")&&(n=String(t).split("\n").map(function(t,e){return 0===e?t:"".concat(a).concat(t)}).join("\n")),o+=n+i[e+1]}),o}r.d(e,{T:()=>i})}}]);