@turmind/halo 2.1.1 → 2.1.2

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 (148) hide show
  1. package/admin-out/404.html +1 -1
  2. package/admin-out/_next/static/{0cRHmPZfENhrU7Hb0w3n_ → 1yjkA6O2OJ9CQ1XyyoazM}/_buildManifest.js +1 -1
  3. package/admin-out/_next/static/chunks/0.700b96fc96b80936.js +1 -0
  4. package/admin-out/_next/static/chunks/1160.e199e2decb964814.js +1 -0
  5. package/admin-out/_next/static/chunks/1208.0d86b06cbdf8a97e.js +38 -0
  6. package/admin-out/_next/static/chunks/1299.9ae1e73c8ca9cc34.js +23 -0
  7. package/admin-out/_next/static/chunks/1336.3eb7654fcfae2a58.js +1 -0
  8. package/admin-out/_next/static/chunks/1494.56493f36b01d2bda.js +1 -0
  9. package/admin-out/_next/static/chunks/1522.7d80e505c25fc865.js +1 -0
  10. package/admin-out/_next/static/chunks/1650.78e7ab21cb8bbb48.js +62 -0
  11. package/admin-out/_next/static/chunks/1690.20f8661b1877aa3d.js +1 -0
  12. package/admin-out/_next/static/chunks/1807.764b0338b13846a5.js +1 -0
  13. package/admin-out/_next/static/chunks/1989-669da2a252898797.js +1 -0
  14. package/admin-out/_next/static/chunks/199.fca450ee70f089fb.js +1 -0
  15. package/admin-out/_next/static/chunks/1b86ba38-4193816aebc732b9.js +1 -0
  16. package/admin-out/_next/static/chunks/{1d2d5650-d8d130c85727fdbb.js → 1d2d5650-c677408087984c7a.js} +1 -1
  17. package/admin-out/_next/static/chunks/2202.59a95bacad0d8c25.js +1 -0
  18. package/admin-out/_next/static/chunks/2204.93c869dacb19e384.js +1 -0
  19. package/admin-out/_next/static/chunks/2329.2f32de914b104261.js +148 -0
  20. package/admin-out/_next/static/chunks/2449.53d632fa8e412643.js +1 -0
  21. package/admin-out/_next/static/chunks/2477.79f2f92780311a37.js +94 -0
  22. package/admin-out/_next/static/chunks/2555.279979b7abe9d67f.js +104 -0
  23. package/admin-out/_next/static/chunks/2612.427656205dd7d7cc.js +1 -0
  24. package/admin-out/_next/static/chunks/2938.1555d68665415ace.js +1 -0
  25. package/admin-out/_next/static/chunks/295.0ef9b18be46f06e5.js +1 -0
  26. package/admin-out/_next/static/chunks/2979.d5a2293e776ec5de.js +1 -0
  27. package/admin-out/_next/static/chunks/3023.8f2b6311aae80029.js +36 -0
  28. package/admin-out/_next/static/chunks/3047.a49ae982be1f9fd4.js +226 -0
  29. package/admin-out/_next/static/chunks/304eda7d.2c6ab1276b03c10a.js +1 -0
  30. package/admin-out/_next/static/chunks/3483.cb8f5ba28c565e7f.js +1 -0
  31. package/admin-out/_next/static/chunks/391.71124432b84c926d.js +24 -0
  32. package/admin-out/_next/static/chunks/3986.a6181916d2c44515.js +1 -0
  33. package/admin-out/_next/static/chunks/4120.c271dfe3e1bc082e.js +1 -0
  34. package/admin-out/_next/static/chunks/4267.030877aaeac1bd71.js +1 -0
  35. package/admin-out/_next/static/chunks/4362.9d2ee4f9b6facc49.js +1 -0
  36. package/admin-out/_next/static/chunks/43ad6dab.4911ea318c123311.js +62 -0
  37. package/admin-out/_next/static/chunks/4480-6ceca99203a95c0e.js +1 -0
  38. package/admin-out/_next/static/chunks/4613.0985db499409cf22.js +1 -0
  39. package/admin-out/_next/static/chunks/4794.ba746110cfcbf536.js +1 -0
  40. package/admin-out/_next/static/chunks/4808.1cbe5b52fa01fc3d.js +1 -0
  41. package/admin-out/_next/static/chunks/4ec056c8.fe288ac8bd38a73b.js +160 -0
  42. package/admin-out/_next/static/chunks/5056.a87b1e056ba592b1.js +32 -0
  43. package/admin-out/_next/static/chunks/5058.8514aa6d6a947cce.js +1 -0
  44. package/admin-out/_next/static/chunks/545.e760052f10d36a9b.js +1 -0
  45. package/admin-out/_next/static/chunks/{510.e6c6faeb60ef3c33.js → 5510.f3889206b5768b33.js} +1 -1
  46. package/admin-out/_next/static/chunks/5593.d4c5f6a0862b4c6c.js +34 -0
  47. package/admin-out/_next/static/chunks/5700.4189184227fcf178.js +1 -0
  48. package/admin-out/_next/static/chunks/5741.dd7360163a2374cf.js +8 -0
  49. package/admin-out/_next/static/chunks/5850.b58c01f1e835d335.js +1 -0
  50. package/admin-out/_next/static/chunks/6066.1571d105977d528c.js +86 -0
  51. package/admin-out/_next/static/chunks/61527465.ae14a459dbfc381c.js +1 -0
  52. package/admin-out/_next/static/chunks/6203.672c38fcc2748c83.js +1 -0
  53. package/admin-out/_next/static/chunks/6390.4de9361c493b8d29.js +27 -0
  54. package/admin-out/_next/static/chunks/63c91ae9.ed896f9d6d01dfd4.js +1 -0
  55. package/admin-out/_next/static/chunks/6476.c7ec7d60350855c8.js +1 -0
  56. package/admin-out/_next/static/chunks/6574.30661d21e54bb004.js +1 -0
  57. package/admin-out/_next/static/chunks/6694.91c424de10ee2a24.js +79 -0
  58. package/admin-out/_next/static/chunks/6927.7f60d259473bb56a.js +193 -0
  59. package/admin-out/_next/static/chunks/7073.9d5f9dd7a77827b7.js +1 -0
  60. package/admin-out/_next/static/chunks/7250.a005173b9af23f14.js +1 -0
  61. package/admin-out/_next/static/chunks/7267.09e9b83beadc4847.js +1 -0
  62. package/admin-out/_next/static/chunks/72d2e465.c6751b76f1fa1cb3.js +1 -0
  63. package/admin-out/_next/static/chunks/7423.ce958b2d6a455a2f.js +1 -0
  64. package/admin-out/_next/static/chunks/7443.ee6684ba397e49da.js +41 -0
  65. package/admin-out/_next/static/chunks/7482.7f6f11637c008b77.js +1 -0
  66. package/admin-out/_next/static/chunks/7498.621ff3bc139607ad.js +1 -0
  67. package/admin-out/_next/static/chunks/7573.7f7f2a6fe7891e68.js +1 -0
  68. package/admin-out/_next/static/chunks/7613.fe24922a6a839656.js +1 -0
  69. package/admin-out/_next/static/chunks/7796.052a2a69f9bc0471.js +287 -0
  70. package/admin-out/_next/static/chunks/8148.156aea8f2a9ce398.js +115 -0
  71. package/admin-out/_next/static/chunks/8300.6c86a2236d42618f.js +64 -0
  72. package/admin-out/_next/static/chunks/8555.2e8d51736bfefd63.js +1 -0
  73. package/admin-out/_next/static/chunks/8558.baa0cf80a6964d20.js +286 -0
  74. package/admin-out/_next/static/chunks/8608.dba2a172fa47a740.js +77 -0
  75. package/admin-out/_next/static/chunks/8680.ed502a4a22357230.js +92 -0
  76. package/admin-out/_next/static/chunks/8698.28ca7821a30dba63.js +1 -0
  77. package/admin-out/_next/static/chunks/8712.e587efd8a6256aa9.js +1 -0
  78. package/admin-out/_next/static/chunks/8771.53592f31c08edafa.js +309 -0
  79. package/admin-out/_next/static/chunks/8878.330238d3d9f33faf.js +1 -0
  80. package/admin-out/_next/static/chunks/8892.9df3095f6c52e734.js +1 -0
  81. package/admin-out/_next/static/chunks/9104.6d57df418831714a.js +74 -0
  82. package/admin-out/_next/static/chunks/9121.574e833259fe9085.js +1 -0
  83. package/admin-out/_next/static/chunks/9142.0aac6a6c8e06bcaa.js +149 -0
  84. package/admin-out/_next/static/chunks/9180.3c809798364a0c62.js +1 -0
  85. package/admin-out/_next/static/chunks/92.788f49cdb265a668.js +217 -0
  86. package/admin-out/_next/static/chunks/9590.3e1a4754a7e66e84.js +93 -0
  87. package/admin-out/_next/static/chunks/9599.b2fd519c8a2951c9.js +1 -0
  88. package/admin-out/_next/static/chunks/9698-0157e7ac70c3f9fc.js +1 -0
  89. package/admin-out/_next/static/chunks/9837.92abff094b289f98.js +1 -0
  90. package/admin-out/_next/static/chunks/9839.73433bbeec6e1a51.js +1 -0
  91. package/admin-out/_next/static/chunks/9868.dcc9fd5f0041ffa8.js +1 -0
  92. package/admin-out/_next/static/chunks/9937.cff3c28655b07c61.js +24 -0
  93. package/admin-out/_next/static/chunks/a89fe872.304b3efb308b10a1.js +122 -0
  94. package/admin-out/_next/static/chunks/app/_not-found/page-e21cd35ca818a886.js +1 -0
  95. package/admin-out/_next/static/chunks/app/layout-0ed29966e0abc26b.js +1 -0
  96. package/admin-out/_next/static/chunks/app/page-30279944f9000c87.js +1 -0
  97. package/admin-out/_next/static/chunks/bf5d185f.735c9f3d05199f97.js +1 -0
  98. package/admin-out/_next/static/chunks/db534642.8e8a9023cd90863d.js +1 -0
  99. package/admin-out/_next/static/chunks/fcb912be.a7d93c5f2dd72e30.js +66 -0
  100. package/admin-out/_next/static/chunks/framework-98918e2142cd6d06.js +1 -0
  101. package/admin-out/_next/static/chunks/main-93c216652d4113b1.js +1 -0
  102. package/admin-out/_next/static/chunks/main-app-5e981adb363c52e5.js +1 -0
  103. package/admin-out/_next/static/chunks/pages/{_app-a3b7e86f97343e7a.js → _app-6fab9bb03f9f4fdf.js} +1 -1
  104. package/admin-out/_next/static/chunks/pages/_error-ada6d7affab6ebcc.js +1 -0
  105. package/admin-out/_next/static/chunks/webpack-7f8156dbbdb54868.js +1 -0
  106. package/admin-out/_next/static/css/46c83727621f8763.css +1 -0
  107. package/admin-out/index.html +1 -1
  108. package/admin-out/index.txt +5 -5
  109. package/bundled-docs/design/architecture.md +1 -1
  110. package/bundled-docs/design/storage.md +2 -2
  111. package/bundled-docs/guide/chat.md +1 -0
  112. package/bundled-docs/guide/workspace.md +1 -1
  113. package/bundled-docs/requirements/chat.md +1 -0
  114. package/bundled-docs/requirements/editor.md +1 -1
  115. package/bundled-docs/requirements/explorer.md +2 -0
  116. package/bundled-docs/requirements/source-control.md +2 -0
  117. package/dist/index.js +8 -8
  118. package/package.json +1 -1
  119. package/templates/models/aws-bedrock-claude-invoke.yaml +3 -3
  120. package/admin-out/_next/static/chunks/160.c52d3d6cf7bc8286.js +0 -1
  121. package/admin-out/_next/static/chunks/1b86ba38-c29611e086b2ce25.js +0 -1
  122. package/admin-out/_next/static/chunks/250.9094fea2325b09a3.js +0 -1
  123. package/admin-out/_next/static/chunks/304eda7d.f525962766560ba5.js +0 -1
  124. package/admin-out/_next/static/chunks/336.3171154ecc29c80a.js +0 -1
  125. package/admin-out/_next/static/chunks/362.a0c58d3bf9b1300b.js +0 -1
  126. package/admin-out/_next/static/chunks/398-9a8be186767b4504.js +0 -1
  127. package/admin-out/_next/static/chunks/449.c4b881b9ebdc556e.js +0 -1
  128. package/admin-out/_next/static/chunks/522.9e25c63e3082cb1c.js +0 -1
  129. package/admin-out/_next/static/chunks/58.d26b1c4f14404226.js +0 -1
  130. package/admin-out/_next/static/chunks/613.fb09e55e0a61d3fe.js +0 -1
  131. package/admin-out/_next/static/chunks/690.6a83d18b488a3e2e.js +0 -1
  132. package/admin-out/_next/static/chunks/698-19872069fed27164.js +0 -1
  133. package/admin-out/_next/static/chunks/73.05abce37d312e880.js +0 -1
  134. package/admin-out/_next/static/chunks/839.a2729fd33013d763.js +0 -1
  135. package/admin-out/_next/static/chunks/868.bbb91afd48c9eb58.js +0 -1
  136. package/admin-out/_next/static/chunks/892.a35118e09d8d8efd.js +0 -1
  137. package/admin-out/_next/static/chunks/989-71c38d29c6672b27.js +0 -1
  138. package/admin-out/_next/static/chunks/app/_not-found/page-4271518f2746cf73.js +0 -1
  139. package/admin-out/_next/static/chunks/app/layout-ea161287d934ba96.js +0 -1
  140. package/admin-out/_next/static/chunks/app/page-67334fcd2175c7ad.js +0 -1
  141. package/admin-out/_next/static/chunks/db534642.657a5bd93dc1e8c7.js +0 -1
  142. package/admin-out/_next/static/chunks/framework-c48c994d2190a38e.js +0 -1
  143. package/admin-out/_next/static/chunks/main-app-340a5b58ed229c4d.js +0 -1
  144. package/admin-out/_next/static/chunks/main-f1f665fbc24e1033.js +0 -1
  145. package/admin-out/_next/static/chunks/pages/_error-751fca0c729a7e01.js +0 -1
  146. package/admin-out/_next/static/chunks/webpack-662d2cae1104f635.js +0 -1
  147. package/admin-out/_next/static/css/3467b854242306b8.css +0 -1
  148. /package/admin-out/_next/static/{0cRHmPZfENhrU7Hb0w3n_ → 1yjkA6O2OJ9CQ1XyyoazM}/_ssgManifest.js +0 -0
@@ -0,0 +1,74 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9104],{1160:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(49380),a=r(27401);let i=(t,e=100)=>{let r=n.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:s,b:o,a:l}=n.A.parse(t),{r:c,g:h,b:u,a:p}=n.A.parse(e),d=r/100,f=2*d-1,g=l-p,m=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,y=1-m;return(0,a.A)(i*m+c*y,s*m+h*y,o*m+u*y,l*d+p*(1-d))})(r,t,e)}},3229:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(42316),a=r(18849);class i{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}}class s{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new i}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=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===a&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:a}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===a&&(t.b=n.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(),n.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(),n.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(),n.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(),n.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(),n.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(),n.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}}let o=new s({r:0,g:0,b:0,a:0},"transparent")},6341:(t,e,r)=>{"use strict";e.J=function(t){if(!t)return n.BLANK_URL;var e,r=a(t.trim());do e=(r=a(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(e&&e.length>0);var i=r;if(!i)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(i[0])>-1)return i;var s=i.trimStart(),o=s.match(n.urlSchemeRegex);if(!o)return i;var l=o[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var c=s.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return n.BLANK_URL;var h=new URL(c);return h.protocol=h.protocol.toLowerCase(),h.hostname=h.hostname.toLowerCase(),h.toString()}return c};var n=r(97688);function a(t){try{return decodeURIComponent(t)}catch(e){return t}}},7322:(t,e,r)=>{"use strict";r.d(e,{W6:()=>tZ,GZ:()=>t1,lT:()=>tB,O6:()=>tL});var n=r(52361),a=r(27058),i=r(92826),s=r(58442),o=r(88252);function l(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c=l(),h={exec:()=>null};function u(t,e=""){let r="string"==typeof t?t:t.source,n={replace:(t,e)=>{let a="string"==typeof e?e:e.source;return a=a.replace(d.caret,"$1"),r=r.replace(t,a),n},getRegex:()=>new RegExp(r,e)};return n}var p=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),d={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")},f=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,g=/(?:[*+-]|\d{1,9}[.)])/,m=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,y=u(m).replace(/bull/g,g).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(),b=u(m).replace(/bull/g,g).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(),x=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",k).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_=u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,g).getRegex(),v="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",S=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,M=u("^ {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",S).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A=u(x).replace("hr",f).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",v).getRegex(),T={blockquote:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:f,html:M,lheading:y,list:_,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:A,table:h,text:/^[^\n]+/},$=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",f).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",v).getRegex(),K={...T,lheading:b,table:$,paragraph:u(x).replace("hr",f).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",v).getRegex()},L={...T,html:u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",S).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:h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(x).replace("hr",f).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",y).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^( {2,}|\\)\n(?!\s*$)/,E=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,R=/[^\s\p{P}\p{S}]/u,P=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),D=/(?!~)[\p{P}\p{S}]/u,I=u(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",p?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),N=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,j=u(N,"u").replace(/punct/g,E).getRegex(),B=u(N,"u").replace(/punct/g,D).getRegex(),z="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",F=u(z,"gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,C).replace(/punct/g,E).getRegex(),U=u(z,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,D).getRegex(),W=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,C).replace(/punct/g,E).getRegex(),q=u(/\\(punct)/,"gu").replace(/punct/g,E).getRegex(),H=u(/^<(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(),Y=u(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),X=u("^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",Y).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Z=u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),V=u(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",k).getRegex(),Q=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",k).getRegex(),J=u("reflink|nolink(?!\\()","g").replace("reflink",V).replace("nolink",Q).getRegex(),tt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,te={_backpedal:h,anyPunctuation:q,autolink:H,blockSkip:I,br:O,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:h,emStrongLDelim:j,emStrongRDelimAst:F,emStrongRDelimUnd:W,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Z,nolink:Q,punctuation:P,reflink:V,reflinkSearch:J,tag:X,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:h},tr={...te,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},tn={...te,emStrongRDelimAst:U,emStrongLDelim:B,url:u(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tt).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:u(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tt).getRegex()},ta={...tn,br:u(O).replace("{2,}","*").getRegex(),text:u(tn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ti={normal:T,gfm:K,pedantic:L},ts={normal:te,gfm:tn,breaks:ta,pedantic:tr},to={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tl=t=>to[t];function tc(t,e){if(e){if(d.escapeTest.test(t))return t.replace(d.escapeReplace,tl)}else if(d.escapeTestNoEncode.test(t))return t.replace(d.escapeReplaceNoEncode,tl);return t}function th(t){try{t=encodeURI(t).replace(d.percentDecode,"%")}catch{return null}return t}function tu(t,e){let r=t.replace(d.findPipe,(t,e,r)=>{let n=!1,a=e;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"}).split(d.splitPipe),n=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(;n<r.length;n++)r[n]=r[n].trim().replace(d.slashPipe,"|");return r}function tp(t,e,r){let n=t.length;if(0===n)return"";let a=0;for(;a<n;){let i=t.charAt(n-a-1);if(i!==e||r)if(i!==e&&r)a++;else break;else a++}return t.slice(0,n-a)}function td(t,e,r,n,a){let i=e.href,s=e.title||null,o=t[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}var tf=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:tp(t,`
3
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(null===n)return e;let a=n[1];return e.split(`
4
+ `).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[n]=e;return n.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=tp(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:tp(e[0],`
6
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tp(e[0],`
7
+ `).split(`
8
+ `),r="",n="",a=[];for(;t.length>0;){let e=!1,i=[],s;for(s=0;s<t.length;s++)if(this.rules.other.blockquoteStart.test(t[s]))i.push(t[s]),e=!0;else if(e)break;else i.push(t[s]);t=t.slice(s);let o=i.join(`
9
+ `),l=o.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
11
+ ${o}`:o,n=n?`${n}
12
+ ${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,a,!0),this.lexer.state.top=c,0===t.length)break;let h=a.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let e=h.raw+`
13
+ `+t.join(`
14
+ `),i=this.blockquote(e);a[a.length-1]=i,r=r.substring(0,r.length-h.raw.length)+i.raw,n=n.substring(0,n.length-h.text.length)+i.text;break}if(h?.type==="list"){let e=h.raw+`
15
+ `+t.join(`
16
+ `),i=this.list(e);a[a.length-1]=i,r=r.substring(0,r.length-h.raw.length)+i.raw,n=n.substring(0,n.length-h.raw.length)+i.raw,t=e.substring(a.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:r,tokens:a,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),s=!1;for(;t;){let r=!1,n="",o="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;n=e[0],t=t.substring(n.length);let l=e[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split(`
19
+ `,1)[0],h=!l.trim(),u=0;if(this.options.pedantic?(u=2,o=l.trimStart()):h?u=e[1].length+1:(u=(u=e[2].search(this.rules.other.nonSpaceChar))>4?1:u,o=l.slice(u),u+=e[1].length),h&&this.rules.other.blankLine.test(c)&&(n+=c+`
20
+ `,t=t.substring(c.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(u),r=this.rules.other.hrRegex(u),a=this.rules.other.fencesBeginRegex(u),i=this.rules.other.headingBeginRegex(u),s=this.rules.other.htmlBeginRegex(u);for(;t;){let p=t.split(`
21
+ `,1)[0],d;if(c=p,d=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),a.test(c)||i.test(c)||s.test(c)||e.test(c)||r.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=u||!c.trim())o+=`
22
+ `+d.slice(u);else{if(h||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||a.test(l)||i.test(l)||r.test(l))break;o+=`
23
+ `+c}h||c.trim()||(h=!0),n+=p+`
24
+ `,t=t.substring(p.length+1),l=d.slice(u)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0));let p=null,d;this.options.gfm&&(p=this.rules.other.listIsTask.exec(o))&&(d="[ ] "!==p[0],o=o.replace(this.rules.other.listReplaceTask,"")),a.items.push({type:"list_item",raw:n,task:!!p,checked:d,loose:!1,text:o,tokens:[]}),a.raw+=n}let o=a.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.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"):"",n=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:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=tu(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let t of n)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;t<r.length;t++)i.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:i.align[t]});for(let t of a)i.rows.push(tu(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}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=tp(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(")"))return -1;let r=0;for(let n=0;n<t.length;n++)if("\\"===t[n])n++;else if("("===t[n])r++;else if(t[n]===e[1]&&--r<0)return n;return r>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],n="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],n=t[3])}else n=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)),td(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.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 td(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,a,i,s=r,o=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(n=l.exec(e));){if(!(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(i=[...a].length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){o+=i;continue}if((s-=i)>0)continue;i=Math.min(i,i+s+o);let e=[...n[0]][0].length,l=t.slice(0,r+n.index+e+i);if(Math.min(r,i)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}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),n=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&n&&(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 n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==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}}}},tg=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 tf,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:d,block:ti.normal,inline:ts.normal};this.options.pedantic?(e.block=ti.pedantic,e.inline=ts.pedantic):this.options.gfm&&(e.block=ti.gfm,this.options.breaks?e.inline=ts.breaks:e.inline=ts.gfm),this.tokenizer.rules=e}static get rules(){return{block:ti,inline:ts}}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(d.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(d.tabCharGlobal," ").replace(d.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let r=e.at(-1);1===n.raw.length&&void 0!==r?r.raw+=`
28
+ `:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
29
+ `)?"":`
30
+ `)+n.raw,r.text+=`
31
+ `+n.text,this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if((n=this.tokenizer.fences(t))||(n=this.tokenizer.heading(t))||(n=this.tokenizer.hr(t))||(n=this.tokenizer.blockquote(t))||(n=this.tokenizer.list(t))||(n=this.tokenizer.html(t))){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
32
+ `)?"":`
33
+ `)+n.raw,r.text+=`
34
+ `+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},e.push(n));continue}if((n=this.tokenizer.table(t))||(n=this.tokenizer.lheading(t))){t=t.substring(n.raw.length),e.push(n);continue}let a=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),n;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let i=e.at(-1);r&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
35
+ `)?"":`
36
+ `)+n.raw,i.text+=`
37
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(n),r=a.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
38
+ `)?"":`
39
+ `)+n.raw,r.text+=`
40
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(n);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,n=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(n));)t.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(n));)r=a[2]?a[2].length:0,n=n.slice(0,a.index+r)+"["+"a".repeat(a[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="";for(;t;){let r;if(i||(s=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.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 n=e.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,n,s))||(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),n;this.options.extensions.startInline.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),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)&&(s=r.raw.slice(-1)),i=!0;let n=e.at(-1);n?.type==="text"?(n.raw+=r.raw,n.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}},tm=class{options;parser;constructor(t){this.options=t||c}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(d.notSpaceStart)?.[0],a=t.replace(d.endingNewline,"")+`
41
+ `;return n?'<pre><code class="language-'+tc(n)+'">'+(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,n="";for(let e=0;e<t.items.length;e++){let r=t.items[e];n+=this.listitem(r)}let a=e?"ol":"ul";return"<"+a+(e&&1!==r?' start="'+r+'"':"")+`>
48
+ `+n+"</"+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 n="";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]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
52
+ <thead>
53
+ `+e+`</thead>
54
+ `+n+`</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 n=this.parser.parseInline(r),a=th(t);if(null===a)return n;let i='<a href="'+(t=a)+'"';return e&&(i+=' title="'+tc(e)+'"'),i+=">"+n+"</a>"}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=th(t);if(null===a)return tc(r);t=a;let i=`<img src="${t}" alt="${r}"`;return e&&(i+=` title="${tc(e)}"`),i+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tc(t.text)}},ty=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""}},tb=class t{options;renderer;textRenderer;constructor(t){this.options=t||c,this.options.renderer=this.options.renderer||new tm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ty}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 n=0;n<t.length;n++){let a=t[n];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 i=a,s=this.renderer.text(i);for(;n+1<t.length&&"text"===t[n+1].type;)i=t[++n],s+=`
59
+ `+this.renderer.text(i);e?r+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):r+=s;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 n=0;n<t.length;n++){let a=t[n];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}},tx=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?tg.lex:tg.lexInline}provideParser(){return this.block?tb.parse:tb.parseInline}},tk=new class{defaults=l();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tb;Renderer=tm;TextRenderer=ty;Lexer=tg;Tokenizer=tf;Hooks=tx;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let n of t)switch(r=r.concat(e.call(this,n)),n.type){case"table":for(let t of n.header)r=r.concat(this.walkTokens(t.tokens,e));for(let t of n.rows)for(let n of t)r=r.concat(this.walkTokens(n.tokens,e));break;case"list":r=r.concat(this.walkTokens(n.items,e));break;default:{let t=n;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(n=>{let a=t[n].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 n=t.renderer.apply(this,e);return!1===n&&(n=r.apply(this,e)),n}: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 tm(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 n=t.renderer[r],a=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=a.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new tf(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 n=t.tokenizer[r],a=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tx;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=t.hooks[r],a=e[r];tx.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tx.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(e,t);return a.call(e,r)})();let i=n.call(e,t);return a.call(e,i)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(e,t);return!1===r&&(r=await a.apply(e,t)),r})();let r=n.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,n=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(n.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 tg.lex(t,e??this.defaults)}parser(t,e){return tb.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===n.async)return i(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 i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(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,n=await (a.hooks?await a.hooks.provideLexer():t?tg.lex:tg.lexInline)(r,a),i=a.hooks?await a.hooks.processAllTokens(n):n;a.walkTokens&&await Promise.all(this.walkTokens(i,a.walkTokens));let s=await (a.hooks?await a.hooks.provideParser():t?tb.parse:tb.parseInline)(i,a);return a.hooks?await a.hooks.postprocess(s):s})().catch(i);try{a.hooks&&(e=a.hooks.preprocess(e));let r=(a.hooks?a.hooks.provideLexer():t?tg.lex:tg.lexInline)(e,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let n=(a.hooks?a.hooks.provideParser():t?tb.parse:tb.parseInline)(r,a);return a.hooks&&(n=a.hooks.postprocess(n)),n}catch(t){return i(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 tw(t,e){return tk.parse(t,e)}tw.options=tw.setOptions=function(t){return tk.setOptions(t),tw.defaults=tk.defaults,c=tw.defaults,tw},tw.getDefaults=l,tw.defaults=c,tw.use=function(...t){return tk.use(...t),tw.defaults=tk.defaults,c=tw.defaults,tw},tw.walkTokens=function(t,e){return tk.walkTokens(t,e)},tw.parseInline=tk.parseInline,tw.Parser=tb,tw.parser=tb.parse,tw.Renderer=tm,tw.TextRenderer=ty,tw.Lexer=tg,tw.lexer=tg.lex,tw.Tokenizer=tf,tw.Hooks=tx,tw.parse=tw,tw.options,tw.setOptions,tw.use,tw.walkTokens,tw.parseInline,tb.parse,tg.lex;var t_=r(22481),tv=r(93962),tS="undefined"!=typeof performance&&"function"==typeof performance.now,tM=(0,o.K)(()=>tS?performance.now():0,"now"),tA="\uD83E\uDDDC ",tT={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};function t$(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,t_.T)(r)}function tK(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tL(t,e={}){let r=t$(t,e),n=tw.lexer(r),a=[[]],i=0;function s(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(i++,a.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&a[i].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&a[i].push({content:t.text,type:"normal"})}return(0,o.K)(s,"processNode"),n.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type?a[i].push({content:t.text,type:"normal"}):a[i].push({content:t.raw,type:"normal"})}),a}function tO(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function tE(t,{markdownAutoWrap:e}={}){let r=tw.lexer(t);function n(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(n).join("")}</strong>`;if("em"===t.type)return`<em>${t.tokens?.map(n).join("")}</em>`;if("paragraph"===t.type)return`<p>${t.tokens?.map(n).join("")}</p>`;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return s.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,o.K)(n,"output"),r.map(n).join("")}(class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{(0,o.K)(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();let r=tM();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tM()-r)}}async tick(t,e){if(!this.enabled)return e();let r=tM();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tM()-r)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;let e={name:t,start:tM(),duration:-1,children:[]},r=this.stack.at(-1);if(r?r.children.push(e):this.roots.push(e),this.stack.push(e),tS&&"function"==typeof performance.mark)try{performance.mark(`${tA}${t} \u25B6`)}catch{}}end(){if(!this.enabled)return;let t=this.stack.pop();if(!t)return;let e=tM();if(t.duration=e-t.start,tS&&"function"==typeof performance.measure)try{performance.measure(`${tA}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:"Mermaid render",trackGroup:"Mermaid",color:tT[t.name]??"primary",tooltipText:`${t.name} \u2014 ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;let r=t.duration,n=e&&e!==t.name?`${t.name} [${e}]`:t.name,a=["ms % phase"],i=(0,o.K)((t,e)=>{let n=" ".repeat(e),s=t.duration.toFixed(1).padStart(8),o=r>0?`${(t.duration/r*100).toFixed(0).padStart(3)}%`:" -";for(let r of(a.push(`${s} ${o} ${n}${t.name}`),t.children))i(r,e+1);if(t.children.length>0){let e=t.children.reduce((t,e)=>t+e.duration,0),r=t.duration-e;if(r>.5){let t=r.toFixed(1).padStart(8);a.push(`${t} ${n} (self)`)}}},"walk");i(t,0);let s=Object.keys(this.buckets);if(s.length>0)for(let t of(a.push("—— buckets (summed) ——"),s))a.push(`${this.buckets[t].toFixed(1).padStart(8)} ${t}`);console.log(`${tA}mermaid render profile \xb7 ${n}
61
+ ${a.join("\n")}`)}}),globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"},(0,o.K)(t$,"preprocessMarkdown"),(0,o.K)(tK,"nonMarkdownToLines"),(0,o.K)(tL,"markdownToLines"),(0,o.K)(tO,"nonMarkdownToHTML"),(0,o.K)(tE,"markdownToHTML");var tC=function(t){var e=function(){},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function n(){this.reads=[],this.writes=[],this.raf=r.bind(t),e("initialized",this)}function a(t){t.scheduled||(t.scheduled=!0,t.raf(i.bind(null,t)),e("flush scheduled"))}function i(t){e("flush");var r,n=t.writes,i=t.reads;try{e("flushing reads",i.length),t.runTasks(i),e("flushing writes",n.length),t.runTasks(n)}catch(t){r=t}if(t.scheduled=!1,(i.length||n.length)&&a(t),r)if(e("task errored",r.message),t.catch)t.catch(r);else throw r}function s(t,e){var r=t.indexOf(e);return!!~r&&!!t.splice(r,1)}function l(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}return(0,o.K)(n,"FastDom"),n.prototype={constructor:n,runTasks:(0,o.K)(function(t){var r;for(e("run tasks");r=t.shift();)r()},"runTasks"),measure:(0,o.K)(function(t,r){e("measure");var n=r?t.bind(r):t;return this.reads.push(n),a(this),n},"measure"),mutate:(0,o.K)(function(t,r){e("mutate");var n=r?t.bind(r):t;return this.writes.push(n),a(this),n},"mutate"),clear:(0,o.K)(function(t){return e("clear",t),s(this.reads,t)||s(this.writes,t)},"clear"),extend:(0,o.K)(function(t){if(e("extend",t),"object"!=typeof t)throw Error("expected object");var r=Object.create(this);return l(r,t),r.fastdom=this,r.initialize&&r.initialize(),r},"extend"),catch:null},(0,o.K)(a,"scheduleFlush"),(0,o.K)(i,"flush"),(0,o.K)(s,"remove"),(0,o.K)(l,"mixin"),t.fastdom=t.fastdom||new n}("undefined"!=typeof window?window:globalThis),tR={initialize:(0,o.K)(function(){this._tasks=new Map},"initialize"),mutate:(0,o.K)(function(t,e){return tP(this,"mutate",t,e)},"mutate"),measure:(0,o.K)(function(t,e){return tP(this,"measure",t,e)},"measure"),clear:(0,o.K)(function(t){var e=this._tasks,r=e.get(t);this.fastdom.clear(r),e.delete(t)},"clear")};function tP(t,e,r,n){var a,i=t._tasks,s=t.fastdom,o=new Promise(function(t,l){a=s[e](function(){i.delete(o);try{t(n?r.call(n):r())}catch(t){l(t)}},n)});return i.set(o,a),o}(0,o.K)(tP,"create");var{initialize:tD,mutate:tI,measure:tN,clear:tj}=tR,tB=tC.extend({raf(t){"function"==typeof queueMicrotask?queueMicrotask(t):setTimeout(t,0)}}).extend(tR);function tz(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tF(t,e){return tU(t,[],tz(e.content),e.type)}function tU(t,e,r,n){if(0===r.length)return[{content:e.join(""),type:n},{content:"",type:n}];let[a,...i]=r,s=[...e,a];return t([{content:s.join(""),type:n}])?tU(t,s,i,n):(0===e.length&&a&&(e.push(a),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function tW(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tq(t,e)}function tq(t,e,r=[],n=[]){if(0===t.length)return n.length>0&&r.push(n),r.length>0?r:[];let a="";" "===t[0].content&&(a=" ",t.shift());let i=t.shift()??{content:" ",type:"normal"},s=[...n];if(""!==a&&s.push({content:a,type:"normal"}),s.push(i),e(s))return tq(t,e,r,s);if(n.length>0)r.push(n),t.unshift(i);else if(i.content){let[n,a]=tF(e,i);r.push([n]),a.content&&t.unshift(a)}return tq(t,e,r)}function tH(t,e){e&&t.attr("style",e)}async function tY(t,e,r,n,a=!1,s=(0,i.zj)(),o=0){let l=t.append("foreignObject");l.attr("width",`${Math.min(10*r,16384)}px`),l.attr("height",`${Math.min(10*r,16384)}px`);let c=l.append("xhtml:div"),h=(0,i.Wi)(e.label)?await (0,i.dj)(e.label.replace(i.Y2.lineBreakRegex,"\n"),s):(0,i.jZ)(e.label,s),u=e.isNode?"nodeLabel":"edgeLabel",p=c.append("span");p.html(h),tH(p,e.labelStyle),p.attr("class",`${u} ${n}`),tH(c,e.labelStyle),c.style("display","table-cell"),c.style("white-space","nowrap"),c.style("line-height","1.5"),r!==1/0&&(c.style("max-width",r+"px"),c.style("text-align","center")),c.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&c.attr("class","labelBkg");let d=await tB.measure(()=>c.node().getBoundingClientRect());return d.width===r?(c.style("display","table"),c.style("white-space","break-spaces"),c.style("width",r+"px")):d.width<o&&(c.style("display","table"),c.style("width",o+"px"),c.style("text-align","center")),l.node()}function tX(t,e,r,n=!1){let a=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&a.attr("text-anchor","middle"),a}function tG(t,e,r){let n=t.append("text"),a=tX(n,1,e);tJ(a,r);let i=a.node().getComputedTextLength();return n.remove(),i}function tZ(t,e,r){let n=t.append("text"),a=tX(n,1,e);tJ(a,[{content:r,type:"normal"}]);let i=a.node()?.getBoundingClientRect();return i&&n.remove(),i}function tV(t,e,r,n=!1,a=!1){let i=e.append("g"),s=i.insert("rect").attr("class","background").attr("style","stroke: none"),l=i.append("text").attr("y","-10.1");a&&l.attr("text-anchor","middle");let c=0;for(let e of r){let r=(0,o.K)(e=>tG(i,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tW(e,r))tJ(tX(l,c,1.1,a),t),c++}if(!n)return l.node();{let t=l.node().getBBox();return s.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),i.node()}}function tQ(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function tJ(t,e){t.text(""),e.forEach((e,r)=>{let n=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?n.text(tQ(e.content)):n.text(" "+tQ(e.content))})}async function t0(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,a,s)=>(r.push((async()=>{let r=`${a}:${s}`;return await (0,n.dn)(r)?await (0,n.WY)(r,void 0,{class:"label-icon"}):`<i class='${(0,i.jZ)(t,e).replace(":"," ")}'></i>`})()),t));let a=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}(0,o.K)(tz,"splitTextToChars"),(0,o.K)(tF,"splitWordToFitWidth"),(0,o.K)(tU,"splitWordToFitWidthRecursion"),(0,o.K)(tW,"splitLineToFitWidth"),(0,o.K)(tq,"splitLineToFitWidthRecursion"),(0,o.K)(tH,"applyStyle"),(0,o.K)(tY,"addHtmlSpan"),(0,o.K)(tX,"createTspan"),(0,o.K)(tG,"computeWidthOfText"),(0,o.K)(tZ,"computeDimensionOfText"),(0,o.K)(tV,"createFormattedText"),(0,o.K)(tQ,"decodeHTMLEntities"),(0,o.K)(tJ,"updateTextContentAndStyles"),(0,o.K)(t0,"replaceIconSubstring");var t1=(0,o.K)(async(t,e="",{style:r="",isTitle:n=!1,classes:o="",useHtmlLabels:l=!0,markdown:c=!0,isNode:h=!0,width:u=200,minWidth:p=0,addSvgBackground:d=!1}={},f)=>{if(s.R.debug("XYZ createText",e,r,n,o,l,h,"addSvgBackground: ",d),l){let n=c?tE(e,f):tO(e),s=await t0((0,a.Sm)(n),f),l=e.replace(/\\\\/g,"\\"),g={isNode:h,label:(0,i.Wi)(e)?l:s,labelStyle:r.replace("fill:","color:")};return await tY(t,g,u,o,d,f,p)}{let i=(0,a.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),s=tV(u,t,c?tL(i.replace("<br>","<br/>"),f):tK(i),!!e&&d,!h);if(h){/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,tv.Lt)(s).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,tv.Lt)(s).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,tv.Lt)(s).select("text").attr("style",e)}return n?(0,tv.Lt)(s).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,tv.Lt)(s).selectAll("tspan.text-outer-tspan").classed("row",!0),s}},"createText")},10622:(t,e,r)=>{"use strict";r.d(e,{H:()=>tT,r:()=>tA});var n,a,i,s,o,l,c,h,u,p,d,f,g,m,y,b,x,k,w,_,v,S,M,A,T,$,K,L,O,E,C,R,P,D,I,N,j,B,z,F,U,W,q,H,Y,X,G=r(88252);function Z(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(0,G.K)(Z,"getDefaultExportFromCjs");var V={},Q={},J={};function tt(){if(n)return J;function t(t){return null==t}function e(t){return"object"==typeof t&&null!==t}function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}function a(t,e){if(e){let r=Object.keys(e);for(let n=0,a=r.length;n<a;n+=1){let a=r[n];t[a]=e[a]}}return t}function i(t,e){let r="";for(let n=0;n<e;n+=1)r+=t;return r}function s(t){return 0===t&&-1/0==1/t}return n=1,(0,G.K)(t,"isNothing"),(0,G.K)(e,"isObject"),(0,G.K)(r,"toArray"),(0,G.K)(a,"extend"),(0,G.K)(i,"repeat"),(0,G.K)(s,"isNegativeZero"),J.isNothing=t,J.isObject=e,J.toArray=r,J.repeat=i,J.isNegativeZero=s,J.extend=a,J}function te(){if(i)return a;function t(t,e){let r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function e(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}return i=1,(0,G.K)(t,"formatError"),(0,G.K)(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=(0,G.K)(function(e){return this.name+": "+t(this,e)},"toString"),a=e}function tr(){if(o)return s;o=1;let t=tt();function e(t,e,r,n,a){let i="",s="",o=Math.floor(a/2)-1;return n-e>o&&(e=n-o+(i=" ... ").length),r-n>o&&(r=n+o-(s=" ...").length),{str:i+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+i.length}}function r(e,r){return t.repeat(" ",r-e.length)+e}function n(n,a){let i;if(a=Object.create(a||null),!n.buffer)return null;a.maxLength||(a.maxLength=79),"number"!=typeof a.indent&&(a.indent=1),"number"!=typeof a.linesBefore&&(a.linesBefore=3),"number"!=typeof a.linesAfter&&(a.linesAfter=2);let s=/\r?\n|\r|\0/g,o=[0],l=[],c=-1;for(;i=s.exec(n.buffer);)l.push(i.index),o.push(i.index+i[0].length),n.position<=i.index&&c<0&&(c=o.length-2);c<0&&(c=o.length-1);let h="",u=Math.min(n.line+a.linesAfter,l.length).toString().length,p=a.maxLength-(a.indent+u+3);for(let i=1;i<=a.linesBefore&&!(c-i<0);i++){let s=e(n.buffer,o[c-i],l[c-i],n.position-(o[c]-o[c-i]),p);h=t.repeat(" ",a.indent)+r((n.line-i+1).toString(),u)+" | "+s.str+"\n"+h}let d=e(n.buffer,o[c],l[c],n.position,p);h+=t.repeat(" ",a.indent)+r((n.line+1).toString(),u)+" | "+d.str+"\n"+t.repeat("-",a.indent+u+3+d.pos)+"^\n";for(let i=1;i<=a.linesAfter&&!(c+i>=l.length);i++){let s=e(n.buffer,o[c+i],l[c+i],n.position-(o[c]-o[c+i]),p);h+=t.repeat(" ",a.indent)+r((n.line+i+1).toString(),u)+" | "+s.str+"\n"}return h.replace(/\n$/,"")}return(0,G.K)(e,"getLine"),(0,G.K)(r,"padStart"),(0,G.K)(n,"makeSnippet"),s=n}function tn(){if(c)return l;c=1;let t=te(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(t){let e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function a(a,i){if(Object.keys(i=i||{}).forEach(function(r){if(-1===e.indexOf(r))throw new t('Unknown option "'+r+'" is met in definition of "'+a+'" YAML type.')}),this.options=i,this.tag=a,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(t){return t},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=n(i.styleAliases||null),-1===r.indexOf(this.kind))throw new t('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}return(0,G.K)(n,"compileStyleAliases"),(0,G.K)(a,"Type2"),l=a}function ta(){if(u)return h;u=1;let t=te(),e=tn();function r(t,e){let r=[];return t[e].forEach(function(t){let e=r.length;r.forEach(function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)}),r[e]=t}),r}function n(){let t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function e(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}(0,G.K)(e,"collectType");for(let t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(e);return t}function a(t){return this.extend(t)}return(0,G.K)(r,"compileList"),(0,G.K)(n,"compileMap"),(0,G.K)(a,"Schema2"),a.prototype.extend=(0,G.K)(function(i){let s=[],o=[];if(i instanceof e)o.push(i);else if(Array.isArray(i))o=o.concat(i);else if(i&&(Array.isArray(i.implicit)||Array.isArray(i.explicit)))i.implicit&&(s=s.concat(i.implicit)),i.explicit&&(o=o.concat(i.explicit));else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(a.prototype);return l.implicit=(this.implicit||[]).concat(s),l.explicit=(this.explicit||[]).concat(o),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=n(l.compiledImplicit,l.compiledExplicit),l},"extend"),h=a}function ti(){return d?p:(d=1,p=new(tn())("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,G.K)(function(t){return null!==t?t:""},"construct")}))}function ts(){return g?f:(g=1,f=new(tn())("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,G.K)(function(t){return null!==t?t:[]},"construct")}))}function to(){return y?m:(y=1,m=new(tn())("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,G.K)(function(t){return null!==t?t:{}},"construct")}))}function tl(){return x?b:(x=1,b=new(ta())({explicit:[ti(),ts(),to()]}))}function tc(){if(w)return k;w=1;let t=tn();function e(t){if(null===t)return!0;let e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function r(){return null}function n(t){return null===t}return(0,G.K)(e,"resolveYamlNull"),(0,G.K)(r,"constructYamlNull"),(0,G.K)(n,"isNull"),k=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:r,predicate:n,represent:{canonical:(0,G.K)(function(){return"~"},"canonical"),lowercase:(0,G.K)(function(){return"null"},"lowercase"),uppercase:(0,G.K)(function(){return"NULL"},"uppercase"),camelcase:(0,G.K)(function(){return"Null"},"camelcase"),empty:(0,G.K)(function(){return""},"empty")},defaultStyle:"lowercase"})}function th(){if(v)return _;v=1;let t=tn();function e(t){if(null===t)return!1;let e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function r(t){return"true"===t||"True"===t||"TRUE"===t}function n(t){return"[object Boolean]"===Object.prototype.toString.call(t)}return(0,G.K)(e,"resolveYamlBoolean"),(0,G.K)(r,"constructYamlBoolean"),(0,G.K)(n,"isBoolean"),_=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:r,predicate:n,represent:{lowercase:(0,G.K)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,G.K)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,G.K)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"})}function tu(){if(M)return S;M=1;let t=tt(),e=tn();function r(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function n(t){return t>=48&&t<=55}function a(t){return t>=48&&t<=57}function i(t){if(null===t)return!1;let e=t.length,i=0,o=!1;if(!e)return!1;let l=t[i];if(("-"===l||"+"===l)&&(l=t[++i]),"0"===l){if(i+1===e)return!0;if("b"===(l=t[++i])){for(i++;i<e;i++){if("0"!==(l=t[i])&&"1"!==l)return!1;o=!0}return o&&isFinite(s(t))}if("x"===l){for(i++;i<e;i++){if(!r(t.charCodeAt(i)))return!1;o=!0}return o&&isFinite(s(t))}if("o"===l){for(i++;i<e;i++){if(!n(t.charCodeAt(i)))return!1;o=!0}return o&&isFinite(s(t))}}for(;i<e;i++){if(!a(t.charCodeAt(i)))return!1;o=!0}return!!o&&isFinite(s(t))}function s(t){let e=t,r=1,n=e[0];if(("-"===n||"+"===n)&&("-"===n&&(r=-1),n=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===n){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function o(t){return s(t)}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!t.isNegativeZero(e)}return(0,G.K)(r,"isHexCode"),(0,G.K)(n,"isOctCode"),(0,G.K)(a,"isDecCode"),(0,G.K)(i,"resolveYamlInteger"),(0,G.K)(s,"parseYamlInteger"),(0,G.K)(o,"constructYamlInteger"),(0,G.K)(l,"isInteger"),S=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:i,construct:o,predicate:l,represent:{binary:(0,G.K)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,G.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,G.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,G.K)(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"]}})}function tp(){if(T)return A;T=1;let t=tt(),e=tn(),r=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function a(t){return null!==t&&!!r.test(t)&&(!!isFinite(parseFloat(t,10))||n.test(t))}function i(t){let e=t.toLowerCase(),r="-"===e[0]?-1:1;return("+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?NaN:r*parseFloat(e,10)}(0,G.K)(a,"resolveYamlFloat"),(0,G.K)(i,"constructYamlFloat");let s=/^[-+]?[0-9]+e/;function o(e,r){if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";let n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))}return(0,G.K)(o,"representYamlFloat"),(0,G.K)(l,"isFloat"),A=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:a,construct:i,predicate:l,represent:o,defaultStyle:"lowercase"})}function td(){return K?$:(K=1,$=tl().extend({implicit:[tc(),th(),tu(),tp()]}))}function tf(){return O?L:(O=1,L=td())}function tg(){if(C)return E;C=1;let t=tn(),e=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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 n(t){return null!==t&&(null!==e.exec(t)||null!==r.exec(t))}function a(t){let n=0,a=null,i=e.exec(t);if(null===i&&(i=r.exec(t)),null===i)throw Error("Date resolve error");let s=+i[1],o=i[2]-1,l=+i[3];if(!i[4])return new Date(Date.UTC(s,o,l));let c=+i[4],h=+i[5],u=+i[6];if(i[7]){for(n=i[7].slice(0,3);n.length<3;)n+="0";n*=1}i[9]&&(a=(60*i[10]+ +(i[11]||0))*6e4,"-"===i[9]&&(a=-a));let p=new Date(Date.UTC(s,o,l,c,h,u,n));return a&&p.setTime(p.getTime()-a),p}function i(t){return t.toISOString()}return(0,G.K)(n,"resolveYamlTimestamp"),(0,G.K)(a,"constructYamlTimestamp"),(0,G.K)(i,"representYamlTimestamp"),E=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:n,construct:a,instanceOf:Date,represent:i})}function tm(){if(P)return R;P=1;let t=tn();function e(t){return"<<"===t||null===t}return(0,G.K)(e,"resolveYamlMerge"),R=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e})}function ty(){if(I)return D;I=1;let t=tn(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function r(t){if(null===t)return!1;let r=0,n=t.length;for(let a=0;a<n;a++){let n=e.indexOf(t.charAt(a));if(!(n>64)){if(n<0)return!1;r+=6}}return r%8==0}function n(t){let r=t.replace(/[\r\n=]/g,""),n=r.length,a=0,i=[];for(let t=0;t<n;t++)t%4==0&&t&&(i.push(a>>16&255),i.push(a>>8&255),i.push(255&a)),a=a<<6|e.indexOf(r.charAt(t));let s=n%4*6;return 0===s?(i.push(a>>16&255),i.push(a>>8&255),i.push(255&a)):18===s?(i.push(a>>10&255),i.push(a>>2&255)):12===s&&i.push(a>>4&255),new Uint8Array(i)}function a(t){let r="",n=0,a=t.length;for(let i=0;i<a;i++)i%3==0&&i&&(r+=e[n>>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]),n=(n<<8)+t[i];let i=a%3;return 0===i?(r+=e[n>>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]):2===i?(r+=e[n>>10&63],r+=e[n>>4&63],r+=e[n<<2&63],r+=e[64]):1===i&&(r+=e[n>>2&63],r+=e[n<<4&63],r+=e[64],r+=e[64]),r}function i(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}return(0,G.K)(r,"resolveYamlBinary"),(0,G.K)(n,"constructYamlBinary"),(0,G.K)(a,"representYamlBinary"),(0,G.K)(i,"isBinary"),D=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:n,predicate:i,represent:a})}function tb(){if(j)return N;j=1;let t=tn(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(t){if(null===t)return!0;let n={};for(let a=0,i=t.length;a<i;a+=1){let i,s=t[a],o=!1;if("[object Object]"!==r.call(s))return!1;for(i in s)if(e.call(s,i))if(o)return!1;else o=!0;if(!o||e.call(n,i))return!1;Object.defineProperty(n,i,{value:!0})}return!0}function a(t){return null!==t?t:[]}return(0,G.K)(n,"resolveYamlOmap"),(0,G.K)(a,"constructYamlOmap"),N=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:a})}function tx(){if(z)return B;z=1;let t=tn(),e=Object.prototype.toString;function r(t){if(null===t)return!0;let r=Array(t.length);for(let n=0,a=t.length;n<a;n+=1){let a=t[n];if("[object Object]"!==e.call(a))return!1;let i=Object.keys(a);if(1!==i.length)return!1;r[n]=[i[0],a[i[0]]]}return!0}function n(t){if(null===t)return[];let e=Array(t.length);for(let r=0,n=t.length;r<n;r+=1){let n=t[r],a=Object.keys(n);e[r]=[a[0],n[a[0]]]}return e}return(0,G.K)(r,"resolveYamlPairs"),(0,G.K)(n,"constructYamlPairs"),B=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:n})}function tk(){if(U)return F;U=1;let t=tn(),e=Object.prototype.hasOwnProperty;function r(t){if(null===t)return!0;for(let r in t)if(e.call(t,r)&&null!==t[r])return!1;return!0}function n(t){return null!==t?t:{}}return(0,G.K)(r,"resolveYamlSet"),(0,G.K)(n,"constructYamlSet"),F=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n})}function tw(){return q?W:(q=1,W=tf().extend({implicit:[tg(),tm()],explicit:[ty(),tb(),tx(),tk()]}))}function t_(){if(H)return Q;H=1;let t=tt(),e=te(),r=tr(),n=tw(),a=Object.prototype.hasOwnProperty,i=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,s=/[\x85\u2028\u2029]/,o=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,c=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function h(t){return Object.prototype.toString.call(t)}function u(t){return 10===t||13===t}function p(t){return 9===t||32===t}function d(t){return 9===t||32===t||10===t||13===t}function f(t){return 44===t||91===t||93===t||123===t||125===t}function g(t){if(t>=48&&t<=57)return t-48;let e=32|t;return e>=97&&e<=102?e-97+10:-1}function m(t){return 120===t?2:117===t?4:8*(85===t)}function y(t){return t>=48&&t<=57?t-48:-1}function b(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function x(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function k(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,G.K)(h,"_class"),(0,G.K)(u,"isEol"),(0,G.K)(p,"isWhiteSpace"),(0,G.K)(d,"isWsOrEol"),(0,G.K)(f,"isFlowIndicator"),(0,G.K)(g,"fromHexCode"),(0,G.K)(m,"escapedHexLen"),(0,G.K)(y,"fromDecimalCode"),(0,G.K)(b,"simpleEscapeSequence"),(0,G.K)(x,"charFromCodepoint"),(0,G.K)(k,"setProperty");let w=Array(256),_=Array(256);for(let t=0;t<256;t++)w[t]=+!!b(t),_[t]=b(t);function v(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||n,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:100,this.maxTotalMergeKeys="number"==typeof e.maxTotalMergeKeys?e.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function S(t,n){let a={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return a.snippet=r(a),new e(n,a)}function M(t,e){throw S(t,e)}function A(t,e){t.onWarning&&t.onWarning.call(null,S(t,e))}function T(t,e,r){let n=t.anchorMapTransactions;if(0!==n.length){let r=n[n.length-1];a.call(r,e)||(r[e]={existed:a.call(t.anchorMap,e),value:t.anchorMap[e]})}t.anchorMap[e]=r}function $(t){t.anchorMapTransactions.push(Object.create(null))}function K(t){let e=t.anchorMapTransactions.pop(),r=t.anchorMapTransactions;if(0===r.length)return;let n=r[r.length-1],i=Object.keys(e);for(let t=0,r=i.length;t<r;t+=1){let r=i[t];a.call(n,r)||(n[r]=e[r])}}function L(t){let e=t.anchorMapTransactions.pop(),r=Object.keys(e);for(let n=r.length-1;n>=0;n-=1){let a=e[r[n]];a.existed?t.anchorMap[r[n]]=a.value:delete t.anchorMap[r[n]]}}function O(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,tag:t.tag,anchor:t.anchor,kind:t.kind,result:t.result}}function E(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result}(0,G.K)(v,"State"),(0,G.K)(S,"generateError"),(0,G.K)(M,"throwError"),(0,G.K)(A,"throwWarning"),(0,G.K)(T,"storeAnchor"),(0,G.K)($,"beginAnchorTransaction"),(0,G.K)(K,"commitAnchorTransaction"),(0,G.K)(L,"rollbackAnchorTransaction"),(0,G.K)(O,"snapshotState"),(0,G.K)(E,"restoreState");let C={YAML:(0,G.K)(function(t,e,r){null!==t.version&&M(t,"duplication of %YAML directive"),1!==r.length&&M(t,"YAML directive accepts exactly one argument");let n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===n&&M(t,"ill-formed argument of the YAML directive");let a=parseInt(n[1],10),i=parseInt(n[2],10);1!==a&&M(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&A(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,G.K)(function(t,e,r){let n;2!==r.length&&M(t,"TAG directive accepts exactly two arguments");let i=r[0];n=r[1],l.test(i)||M(t,"ill-formed tag handle (first argument) of the TAG directive"),a.call(t.tagMap,i)&&M(t,'there is a previously declared suffix for "'+i+'" tag handle'),c.test(n)||M(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){M(t,"tag prefix is malformed: "+n)}t.tagMap[i]=n},"handleTagDirective")};function R(t,e,r,n){if(e<r){let a=t.input.slice(e,r);if(n)for(let e=0,r=a.length;e<r;e+=1){let r=a.charCodeAt(e);9===r||r>=32&&r<=1114111||M(t,"expected valid JSON character")}else i.test(a)&&M(t,"the stream contains non-printable characters");t.result+=a}}function P(t){t.totalMergeKeys++,-1!==t.maxTotalMergeKeys&&t.totalMergeKeys>t.maxTotalMergeKeys&&M(t,"merge keys exceeded maxTotalMergeKeys ("+t.maxTotalMergeKeys+")")}function D(e,r,n,i){t.isObject(n)||M(e,"cannot merge mappings; the provided source object is unacceptable"),P(e);let s=Object.keys(n);for(let t=0,o=s.length;t<o;t+=1){let o=s[t];P(e),a.call(r,o)||(k(r,o,n[o]),i[o]=!0)}}function I(t,e,r,n,i,s,o,l,c){if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(let e=0,r=i.length;e<r;e+=1)Array.isArray(i[e])&&M(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===h(i[e])&&(i[e]="[object Object]")}if("object"==typeof i&&"[object Object]"===h(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(s)){s.length>100&&M(t,"abnormal merge sequence size");for(let n=0,a=s.length;n<a;n+=1)D(t,e,s[n],r)}else D(t,e,s,r);else!t.json&&!a.call(r,i)&&a.call(e,i)&&(t.line=o||t.line,t.lineStart=l||t.lineStart,t.position=c||t.position,M(t,"duplicated mapping key")),k(e,i,s),delete r[i];return e}function N(t){let e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):M(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function j(t,e,r){let n=0,a=t.input.charCodeAt(t.position);for(;0!==a;){for(;p(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(u(a))for(N(t),a=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==n&&t.lineIndent<r&&A(t,"deficient indentation"),n}function B(t){let e=t.position,r=t.input.charCodeAt(e);return!!((45===r||46===r)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,0===(r=t.input.charCodeAt(e))||d(r)))||!1}function z(e,r){1===r?e.result+=" ":r>1&&(e.result+=t.repeat("\n",r-1))}function F(t,e,r){let n,a,i,s,o,l,c=t.kind,h=t.result,g=t.input.charCodeAt(t.position);if(d(g)||f(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if(63===g||45===g){let e=t.input.charCodeAt(t.position+1);if(d(e)||r&&f(e))return!1}for(t.kind="scalar",t.result="",n=a=t.position,i=!1;0!==g;){if(58===g){let e=t.input.charCodeAt(t.position+1);if(d(e)||r&&f(e))break}else if(35===g){if(d(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&B(t)||r&&f(g))break;else if(u(g)){if(s=t.line,o=t.lineStart,l=t.lineIndent,j(t,!1,-1),t.lineIndent>=e){i=!0,g=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=o,t.lineIndent=l;break}i&&(R(t,n,a,!1),z(t,t.line-s),n=a=t.position,i=!1),p(g)||(a=t.position+1),g=t.input.charCodeAt(++t.position)}return R(t,n,a,!1),!!t.result||(t.kind=c,t.result=h,!1)}function U(t,e){let r,n,a=t.input.charCodeAt(t.position);if(39!==a)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(a=t.input.charCodeAt(t.position));)if(39===a){if(R(t,r,t.position,!0),39!==(a=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else u(a)?(R(t,r,n,!0),z(t,j(t,!1,e)),r=n=t.position):t.position===t.lineStart&&B(t)?M(t,"unexpected end of the document within a single quoted scalar"):(t.position++,p(a)||(n=t.position));M(t,"unexpected end of the stream within a single quoted scalar")}function W(t,e){let r,n,a,i=t.input.charCodeAt(t.position);if(34!==i)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(34===i)return R(t,r,t.position,!0),t.position++,!0;else if(92===i){if(R(t,r,t.position,!0),u(i=t.input.charCodeAt(++t.position)))j(t,!1,e);else if(i<256&&w[i])t.result+=_[i],t.position++;else if((a=m(i))>0){let e=a,r=0;for(;e>0;e--)(a=g(i=t.input.charCodeAt(++t.position)))>=0?r=(r<<4)+a:M(t,"expected hexadecimal character");t.result+=x(r),t.position++}else M(t,"unknown escape sequence");r=n=t.position}else u(i)?(R(t,r,n,!0),z(t,j(t,!1,e)),r=n=t.position):t.position===t.lineStart&&B(t)?M(t,"unexpected end of the document within a double quoted scalar"):(t.position++,p(i)||(n=t.position));M(t,"unexpected end of the stream within a double quoted scalar")}function q(t,e){let r,n,a,i,s,o,l,c,h,u,p,f=!0,g=t.tag,m=t.anchor,y=Object.create(null),b=t.input.charCodeAt(t.position);if(91===b)s=93,c=!1,i=[];else{if(123!==b)return!1;s=125,c=!0,i={}}for(null!==t.anchor&&T(t,t.anchor,i),b=t.input.charCodeAt(++t.position);0!==b;){if(j(t,!0,e),(b=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=g,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=i,!0;f?44===b&&M(t,"expected the node content, but found ','"):M(t,"missed comma between flow collection entries"),u=h=p=null,o=l=!1,63===b&&d(t.input.charCodeAt(t.position+1))&&(o=l=!0,t.position++,j(t,!0,e)),r=t.line,n=t.lineStart,a=t.position,ti(t,e,1,!1,!0),u=t.tag,h=t.result,j(t,!0,e),b=t.input.charCodeAt(t.position),(l||t.line===r)&&58===b&&(o=!0,b=t.input.charCodeAt(++t.position),j(t,!0,e),ti(t,e,1,!1,!0),p=t.result),c?I(t,i,y,u,h,p,r,n,a):o?i.push(I(t,null,y,u,h,p,r,n,a)):i.push(h),j(t,!0,e),44===(b=t.input.charCodeAt(t.position))?(f=!0,b=t.input.charCodeAt(++t.position)):f=!1}M(t,"unexpected end of the stream within a flow collection")}function Y(e,r){let n,a,i=1,s=!1,o=!1,l=r,c=0,h=!1,d=e.input.charCodeAt(e.position);if(124===d)n=!1;else{if(62!==d)return!1;n=!0}for(e.kind="scalar",e.result="";0!==d;)if(43===(d=e.input.charCodeAt(++e.position))||45===d)1===i?i=43===d?3:2:M(e,"repeat of a chomping mode identifier");else if((a=y(d))>=0)0===a?M(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?M(e,"repeat of an indentation width identifier"):(l=r+a-1,o=!0);else break;if(p(d)){do d=e.input.charCodeAt(++e.position);while(p(d));if(35===d)do d=e.input.charCodeAt(++e.position);while(!u(d)&&0!==d)}for(;0!==d;){for(N(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&32===d;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),u(d)){c++;continue}if(o||0!==l||M(e,"missing indentation for block scalar"),e.lineIndent<l){3===i?e.result+=t.repeat("\n",s?1+c:c):1===i&&s&&(e.result+="\n");break}n?p(d)?(h=!0,e.result+=t.repeat("\n",s?1+c:c)):h?(h=!1,e.result+=t.repeat("\n",c+1)):0===c?s&&(e.result+=" "):e.result+=t.repeat("\n",c):e.result+=t.repeat("\n",s?1+c:c),s=!0,o=!0,c=0;let r=e.position;for(;!u(d)&&0!==d;)d=e.input.charCodeAt(++e.position);R(e,r,e.position,!1)}return!0}function X(t,e){let r=t.tag,n=t.anchor,a=[],i=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,a);let s=t.input.charCodeAt(t.position);for(;0!==s&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,M(t,"tab characters must not be used in indentation")),45===s&&d(t.input.charCodeAt(t.position+1)));){if(i=!0,t.position++,j(t,!0,-1)&&t.lineIndent<=e){a.push(null),s=t.input.charCodeAt(t.position);continue}let r=t.line;if(ti(t,e,3,!1,!0),a.push(t.result),j(t,!0,-1),s=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==s)M(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!i&&(t.tag=r,t.anchor=n,t.kind="sequence",t.result=a,!0)}function Z(t,e,r){let n,a,i,s,o=t.tag,l=t.anchor,c={},h=Object.create(null),u=null,f=null,g=null,m=!1,y=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,c);let b=t.input.charCodeAt(t.position);for(;0!==b;){m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,M(t,"tab characters must not be used in indentation"));let x=t.input.charCodeAt(t.position+1),k=t.line;if((63===b||58===b)&&d(x))63===b?(m&&(I(t,c,h,u,f,null,a,i,s),u=f=g=null),y=!0,m=!0,n=!0):m?(m=!1,n=!0):M(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=x;else{if(a=t.line,i=t.lineStart,s=t.position,!ti(t,r,2,!1,!0))break;if(t.line===k){for(b=t.input.charCodeAt(t.position);p(b);)b=t.input.charCodeAt(++t.position);if(58===b)d(b=t.input.charCodeAt(++t.position))||M(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(I(t,c,h,u,f,null,a,i,s),u=f=g=null),y=!0,m=!1,n=!1,u=t.tag,f=t.result;else{if(!y)return t.tag=o,t.anchor=l,!0;M(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return t.tag=o,t.anchor=l,!0;M(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===k||t.lineIndent>e)&&(m&&(a=t.line,i=t.lineStart,s=t.position),ti(t,e,4,!0,n)&&(m?f=t.result:g=t.result),m||(I(t,c,h,u,f,g,a,i,s),u=f=g=null),j(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===k||t.lineIndent>e)&&0!==b)M(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&I(t,c,h,u,f,null,a,i,s),y&&(t.tag=o,t.anchor=l,t.kind="mapping",t.result=c),y}function V(t){let e,r,n=!1,i=!1,s=t.input.charCodeAt(t.position);if(33!==s)return!1;null!==t.tag&&M(t,"duplication of a tag property"),60===(s=t.input.charCodeAt(++t.position))?(n=!0,s=t.input.charCodeAt(++t.position)):33===s?(i=!0,e="!!",s=t.input.charCodeAt(++t.position)):e="!";let h=t.position;if(n){do s=t.input.charCodeAt(++t.position);while(0!==s&&62!==s);t.position<t.length?(r=t.input.slice(h,t.position),s=t.input.charCodeAt(++t.position)):M(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!d(s);)33===s&&(i?M(t,"tag suffix cannot contain exclamation marks"):(e=t.input.slice(h-1,t.position+1),l.test(e)||M(t,"named tag handle cannot contain such characters"),i=!0,h=t.position+1)),s=t.input.charCodeAt(++t.position);r=t.input.slice(h,t.position),o.test(r)&&M(t,"tag suffix cannot contain flow indicator characters")}r&&!c.test(r)&&M(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){M(t,"tag name is malformed: "+r)}return n?t.tag=r:a.call(t.tagMap,e)?t.tag=t.tagMap[e]+r:"!"===e?t.tag="!"+r:"!!"===e?t.tag="tag:yaml.org,2002:"+r:M(t,'undeclared tag handle "'+e+'"'),!0}function J(t){let e=t.input.charCodeAt(t.position);if(38!==e)return!1;null!==t.anchor&&M(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!d(e)&&!f(e);)e=t.input.charCodeAt(++t.position);return t.position===r&&M(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(r,t.position),!0}function tn(t){let e=t.input.charCodeAt(t.position);if(42!==e)return!1;e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!d(e)&&!f(e);)e=t.input.charCodeAt(++t.position);t.position===r&&M(t,"name of an alias node must contain at least one character");let n=t.input.slice(r,t.position);return a.call(t.anchorMap,n)||M(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],j(t,!0,-1),!0}function ta(t,e,r,n){let a=O(t);return($(t),E(t,e),t.tag=null,t.anchor=null,t.kind=null,t.result=null,Z(t,r,n)&&"mapping"===t.kind)?(K(t),!0):(L(t),E(t,a),!1)}function ti(t,e,r,n,i){let s,o,l,c,h,u=1,p=!1,d=!1,f=null;t.depth>=t.maxDepth&&M(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;let g=s=o=4===r||3===r;if(n&&j(t,!0,-1)&&(p=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),1===u)for(;;){let r=t.input.charCodeAt(t.position),n=O(t);if(p&&(33===r&&null!==t.tag||38===r&&null!==t.anchor)||!V(t)&&!J(t))break;null===f&&(f=n),j(t,!0,-1)?(p=!0,o=g,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):o=!1}if(o&&(o=p||i),1===u||4===r)if(c=1===r||2===r?e:e+1,h=t.position-t.lineStart,1===u)if(o&&(X(t,h)||Z(t,h,c))||q(t,c))d=!0;else{let e=t.input.charCodeAt(t.position);null!==f&&g&&!o&&124!==e&&62!==e&&ta(t,f,f.position-f.lineStart,c)||s&&Y(t,c)||U(t,c)||W(t,c)?d=!0:tn(t)?(d=!0,(null!==t.tag||null!==t.anchor)&&M(t,"alias node should not have any properties")):F(t,c,1===r)&&(d=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&T(t,t.anchor,t.result)}else 0===u&&(d=o&&X(t,h));if(null===t.tag)null!==t.anchor&&T(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&M(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e<r;e+=1)if((l=t.implicitTypes[e]).resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&T(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(a.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;let e=t.typeMap.multi[t.kind||"fallback"];for(let r=0,n=e.length;r<n;r+=1)if(t.tag.slice(0,e[r].tag.length)===e[r].tag){l=e[r];break}}l||M(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&M(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&T(t,t.anchor,t.result)):M(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||d}function ts(t){let e,r=t.position,n=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(e=t.input.charCodeAt(t.position))&&(j(t,!0,-1),e=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===e);){n=!0,e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!d(e);)e=t.input.charCodeAt(++t.position);let i=t.input.slice(r,t.position),s=[];for(i.length<1&&M(t,"directive name must not be less than one character in length");0!==e;){for(;p(e);)e=t.input.charCodeAt(++t.position);if(35===e){do e=t.input.charCodeAt(++t.position);while(0!==e&&!u(e));break}if(u(e))break;for(r=t.position;0!==e&&!d(e);)e=t.input.charCodeAt(++t.position);s.push(t.input.slice(r,t.position))}0!==e&&N(t),a.call(C,i)?C[i](t,i,s):A(t,'unknown document directive "'+i+'"')}if(j(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,j(t,!0,-1)):n&&M(t,"directives end mark is expected"),ti(t,t.lineIndent-1,4,!1,!0),j(t,!0,-1),t.checkLineBreaks&&s.test(t.input.slice(r,t.position))&&A(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&B(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,j(t,!0,-1));return}t.position<t.length-1&&M(t,"end of the stream or a document separator is expected")}function to(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)));let r=new v(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,M(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;)ts(r);return r.documents}function tl(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);let n=to(t,r);if("function"!=typeof e)return n;for(let t=0,r=n.length;t<r;t+=1)e(n[t])}function tc(t,r){let n=to(t,r);if(0!==n.length){if(1===n.length)return n[0];throw new e("expected a single document in the stream, but found more")}}return(0,G.K)(R,"captureSegment"),(0,G.K)(P,"chargeMergeWork"),(0,G.K)(D,"mergeMappings"),(0,G.K)(I,"storeMappingPair"),(0,G.K)(N,"readLineBreak"),(0,G.K)(j,"skipSeparationSpace"),(0,G.K)(B,"testDocumentSeparator"),(0,G.K)(z,"writeFoldedLines"),(0,G.K)(F,"readPlainScalar"),(0,G.K)(U,"readSingleQuotedScalar"),(0,G.K)(W,"readDoubleQuotedScalar"),(0,G.K)(q,"readFlowCollection"),(0,G.K)(Y,"readBlockScalar"),(0,G.K)(X,"readBlockSequence"),(0,G.K)(Z,"readBlockMapping"),(0,G.K)(V,"readTagProperty"),(0,G.K)(J,"readAnchorProperty"),(0,G.K)(tn,"readAlias"),(0,G.K)(ta,"tryReadBlockMappingFromProperty"),(0,G.K)(ti,"composeNode"),(0,G.K)(ts,"readDocument"),(0,G.K)(to,"loadDocuments"),(0,G.K)(tl,"loadAll2"),(0,G.K)(tc,"load2"),Q.loadAll=tl,Q.load=tc,Q}(0,G.K)(tt,"requireCommon"),(0,G.K)(te,"requireException"),(0,G.K)(tr,"requireSnippet"),(0,G.K)(tn,"requireType"),(0,G.K)(ta,"requireSchema"),(0,G.K)(ti,"requireStr"),(0,G.K)(ts,"requireSeq"),(0,G.K)(to,"requireMap"),(0,G.K)(tl,"requireFailsafe"),(0,G.K)(tc,"require_null"),(0,G.K)(th,"requireBool"),(0,G.K)(tu,"requireInt"),(0,G.K)(tp,"requireFloat"),(0,G.K)(td,"requireJson"),(0,G.K)(tf,"requireCore"),(0,G.K)(tg,"requireTimestamp"),(0,G.K)(tm,"requireMerge"),(0,G.K)(ty,"requireBinary"),(0,G.K)(tb,"requireOmap"),(0,G.K)(tx,"requirePairs"),(0,G.K)(tk,"requireSet"),(0,G.K)(tw,"require_default"),(0,G.K)(t_,"requireLoader");var tv={};function tS(){if(Y)return tv;Y=1;let t=tt(),e=te(),r=tw(),n=Object.prototype.toString,a=Object.prototype.hasOwnProperty,i={};i[0]="\\0",i[7]="\\a",i[8]="\\b",i[9]="\\t",i[10]="\\n",i[11]="\\v",i[12]="\\f",i[13]="\\r",i[27]="\\e",i[34]='\\"',i[92]="\\\\",i[133]="\\N",i[160]="\\_",i[8232]="\\L",i[8233]="\\P";let s=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],o=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(t,e){if(null===e)return{};let r={},n=Object.keys(e);for(let i=0,s=n.length;i<s;i+=1){let s=n[i],o=String(e[s]);"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2));let l=t.compiledTypeMap.fallback[s];l&&a.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o}return r}function c(r){let n,a,i=r.toString(16).toUpperCase();if(r<=255)n="x",a=2;else if(r<=65535)n="u",a=4;else if(r<=0xffffffff)n="U",a=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+t.repeat("0",a-i.length)+i}function h(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=l(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u(e,r){let n=t.repeat(" ",r),a=0,i="",s=e.length;for(;a<s;){let t,r=e.indexOf("\n",a);-1===r?(t=e.slice(a),a=s):(t=e.slice(a,r+1),a=r+1),t.length&&"\n"!==t&&(i+=n),i+=t}return i}function p(e,r){return"\n"+t.repeat(" ",e.indent*r)}function d(t,e){for(let r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function f(t){return 32===t||9===t}function g(t){return t>=32&&t<=126||t>=161&&t<=55295&&8232!==t&&8233!==t||t>=57344&&t<=65533&&65279!==t||t>=65536&&t<=1114111}function m(t){return g(t)&&65279!==t&&13!==t&&10!==t}function y(t,e,r){let n=m(t),a=n&&!f(t);return(r?n:n&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!a)||m(e)&&!f(e)&&35===t||58===e&&a}function b(t){return g(t)&&65279!==t&&!f(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 x(t){return!f(t)&&58!==t}function k(t,e){let r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function w(t){return/^\n* /.test(t)}function _(t,e,r,n,a,i,s,o){let l,c=0,h=null,u=!1,p=!1,d=-1!==n,f=-1,m=b(k(t,0))&&x(k(t,t.length-1));if(e||s)for(l=0;l<t.length;c>=65536?l+=2:l++){if(!g(c=k(t,l)))return 5;m=m&&y(c,h,o),h=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(10===(c=k(t,l)))u=!0,d&&(p=p||l-f-1>n&&" "!==t[f+1],f=l);else if(!g(c))return 5;m=m&&y(c,h,o),h=c}p=p||d&&l-f-1>n&&" "!==t[f+1]}return u||p?r>9&&w(t)?5:s?2===i?5:2:p?4:3:!m||s||a(t)?2===i?5:2:1}function v(t,r,n,a,i){t.dump=function(){if(0===r.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==s.indexOf(r)||o.test(r)))return 2===t.quotingType?'"'+r+'"':"'"+r+"'";let l=t.indent*Math.max(1,n),c=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l),h=a||t.flowLevel>-1&&n>=t.flowLevel;function p(e){return d(t,e)}switch((0,G.K)(p,"testAmbiguity"),_(r,h,t.indent,c,p,t.quotingType,t.forceQuotes&&!a,i)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+S(r,t.indent)+M(u(r,l));case 4:return">"+S(r,t.indent)+M(u(A(r,c),l));case 5:return'"'+$(r)+'"';default:throw new e("impossible error: invalid scalar style")}}()}function S(t,e){let r=w(t)?String(e):"",n="\n"===t[t.length-1];return r+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function M(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function A(t,e){let r,n,a,i=/(\n+)([^\n]*)/g,s=(i.lastIndex=a=-1!==(a=t.indexOf("\n"))?a:t.length,T(t.slice(0,a),e)),o="\n"===t[0]||" "===t[0];for(;n=i.exec(t);){let t=n[1],a=n[2];r=" "===a[0],s+=t+(o||r||""===a?"":"\n")+T(a,e),o=r}return s}function T(t,e){let r,n;if(""===t||" "===t[0])return t;let a=/ [^ ]/g,i=0,s=0,o=0,l="";for(;r=a.exec(t);)(o=r.index)-i>e&&(n=s>i?s:o,l+="\n"+t.slice(i,n),i=n+1),s=o;return l+="\n",t.length-i>e&&s>i?l+=t.slice(i,s)+"\n"+t.slice(s+1):l+=t.slice(i),l.slice(1)}function $(t){let e="",r=0;for(let n=0;n<t.length;r>=65536?n+=2:n++){let a=i[r=k(t,n)];!a&&g(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=a||c(r)}return e}function K(t,e,r){let n="",a=t.tag;for(let a=0,i=r.length;a<i;a+=1){let i=r[a];t.replacer&&(i=t.replacer.call(r,String(a),i)),(R(t,e,i,!1,!1)||void 0===i&&R(t,e,null,!1,!1))&&(""!==n&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump)}t.tag=a,t.dump="["+n+"]"}function L(t,e,r,n){let a="",i=t.tag;for(let i=0,s=r.length;i<s;i+=1){let s=r[i];t.replacer&&(s=t.replacer.call(r,String(i),s)),(R(t,e+1,s,!0,!0,!1,!0)||void 0===s&&R(t,e+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=p(t,e)),t.dump&&10===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump)}t.tag=i,t.dump=a||"[]"}function O(t,e,r){let n="",a=t.tag,i=Object.keys(r);for(let a=0,s=i.length;a<s;a+=1){let s="";""!==n&&(s+=", "),t.condenseFlow&&(s+='"');let o=i[a],l=r[o];t.replacer&&(l=t.replacer.call(r,o,l)),R(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),R(t,e,l,!1,!1)&&(s+=t.dump,n+=s))}t.tag=a,t.dump="{"+n+"}"}function E(t,r,n,a){let i="",s=t.tag,o=Object.keys(n);if(!0===t.sortKeys)o.sort();else if("function"==typeof t.sortKeys)o.sort(t.sortKeys);else if(t.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let e=0,s=o.length;e<s;e+=1){let s="";a&&""===i||(s+=p(t,r));let l=o[e],c=n[l];if(t.replacer&&(c=t.replacer.call(n,l,c)),!R(t,r+1,l,!0,!0,!0))continue;let h=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024;h&&(t.dump&&10===t.dump.charCodeAt(0)?s+="?":s+="? "),s+=t.dump,h&&(s+=p(t,r)),R(t,r+1,c,!0,h)&&(t.dump&&10===t.dump.charCodeAt(0)?s+=":":s+=": ",s+=t.dump,i+=s)}t.tag=s,t.dump=i||"{}"}function C(t,r,i){let s=i?t.explicitTypes:t.implicitTypes;for(let o=0,l=s.length;o<l;o+=1){let l=s[o];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof r&&r instanceof l.instanceOf)&&(!l.predicate||l.predicate(r))){if(i?l.multi&&l.representName?t.tag=l.representName(r):t.tag=l.tag:t.tag="?",l.represent){let i,s=t.styleMap[l.tag]||l.defaultStyle;if("[object Function]"===n.call(l.represent))i=l.represent(r,s);else if(a.call(l.represent,s))i=l.represent[s](r,s);else throw new e("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');t.dump=i}return!0}}return!1}function R(t,r,a,i,s,o,l){let c,h;t.tag=null,t.dump=a,C(t,a,!1)||C(t,a,!0);let u=n.call(t.dump),p=i;i&&(i=t.flowLevel<0||t.flowLevel>r);let d="[object Object]"===u||"[object Array]"===u;if(d&&(h=-1!==(c=t.duplicates.indexOf(a))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&r>0)&&(s=!1),h&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&h&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===u)i&&0!==Object.keys(t.dump).length?(E(t,r,t.dump,s),h&&(t.dump="&ref_"+c+t.dump)):(O(t,r,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===u)i&&0!==t.dump.length?(t.noArrayIndent&&!l&&r>0?L(t,r-1,t.dump,s):L(t,r,t.dump,s),h&&(t.dump="&ref_"+c+t.dump)):(K(t,r,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else if("[object String]"===u)"?"!==t.tag&&v(t,t.dump,r,o,p);else{if("[object Undefined]"===u||t.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+u)}if(null!==t.tag&&"?"!==t.tag){let e=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21");e="!"===t.tag[0]?"!"+e:"tag:yaml.org,2002:"===e.slice(0,18)?"!!"+e.slice(18):"!<"+e+">",t.dump=e+" "+t.dump}}return!0}function P(t,e){let r=[],n=[];D(t,r,n);let a=n.length;for(let t=0;t<a;t+=1)e.duplicates.push(r[n[t]]);e.usedDuplicates=Array(a)}function D(t,e,r){if(null!==t&&"object"==typeof t){let n=e.indexOf(t);if(-1!==n)-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(let n=0,a=t.length;n<a;n+=1)D(t[n],e,r);else{let n=Object.keys(t);for(let a=0,i=n.length;a<i;a+=1)D(t[n[a]],e,r)}}}function I(t,e){let r=new h(e=e||{});r.noRefs||P(t,r);let n=t;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),R(r,0,n,!0,!0))?r.dump+"\n":""}return(0,G.K)(l,"compileStyleMap"),(0,G.K)(c,"encodeHex"),(0,G.K)(h,"State"),(0,G.K)(u,"indentString"),(0,G.K)(p,"generateNextLine"),(0,G.K)(d,"testImplicitResolving"),(0,G.K)(f,"isWhitespace"),(0,G.K)(g,"isPrintable"),(0,G.K)(m,"isNsCharOrWhitespace"),(0,G.K)(y,"isPlainSafe"),(0,G.K)(b,"isPlainSafeFirst"),(0,G.K)(x,"isPlainSafeLast"),(0,G.K)(k,"codePointAt"),(0,G.K)(w,"needIndentIndicator"),(0,G.K)(_,"chooseScalarStyle"),(0,G.K)(v,"writeScalar"),(0,G.K)(S,"blockHeader"),(0,G.K)(M,"dropEndingNewline"),(0,G.K)(A,"foldString"),(0,G.K)(T,"foldLine"),(0,G.K)($,"escapeString"),(0,G.K)(K,"writeFlowSequence"),(0,G.K)(L,"writeBlockSequence"),(0,G.K)(O,"writeFlowMapping"),(0,G.K)(E,"writeBlockMapping"),(0,G.K)(C,"detectType"),(0,G.K)(R,"writeNode"),(0,G.K)(P,"getDuplicateReferences"),(0,G.K)(D,"inspectNode"),(0,G.K)(I,"dump2"),tv.dump=I,tv}function tM(){if(X)return V;X=1;let t=t_(),e=tS();function r(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.")}}return(0,G.K)(r,"renamed"),V.Type=tn(),V.Schema=ta(),V.FAILSAFE_SCHEMA=tl(),V.JSON_SCHEMA=td(),V.CORE_SCHEMA=tf(),V.DEFAULT_SCHEMA=tw(),V.load=t.load,V.loadAll=t.loadAll,V.dump=e.dump,V.YAMLException=te(),V.types={binary:ty(),float:tp(),map:to(),null:tc(),pairs:tx(),set:tk(),timestamp:tg(),bool:th(),int:tu(),merge:tm(),omap:tb(),seq:ts(),str:ti()},V.safeLoad=r("safeLoad","load"),V.safeLoadAll=r("safeLoadAll","loadAll"),V.safeDump=r("safeDump","dump"),V}(0,G.K)(tS,"requireDumper"),(0,G.K)(tM,"requireJsYaml");var{JSON_SCHEMA:tA,load:tT}=Z(tM())},11404:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(49380),a=r(74355);let i=(t,e)=>{let r=n.A.parse(t),i={};for(let t in e)e[t]&&(i[t]=r[t]+e[t]);return(0,a.A)(t,i)}},11532:(t,e,r)=>{"use strict";r.d(e,{i:()=>a});var n=r(48123);function a(t){return(0,n.i)(t)}},18849:(t,e,r)=>{"use strict";r.d(e,{Y:()=>a,Z:()=>i});var n=r(42316);let a={};for(let t=0;t<=255;t++)a[t]=n.A.unit.dec2hex(t);let i={ALL:0,RGB:1,HSL:2}},21982:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(42316),a=r(49380);let i=(t,e)=>n.A.lang.round(a.A.parse(t)[e])},22481:(t,e,r)=>{"use strict";function n(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from("string"==typeof t?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!=(r=null==(e=t.match(/[\t ]/g))?void 0:e.length)?r:0})):t},[]);if(a.length){var i=RegExp("\n[ ]{".concat(Math.min.apply(Math,a),"}"),"g");n=n.map(function(t){return t.replace(i,"\n")})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return e.forEach(function(t,e){var r=s.match(/(?:^|\n)( *)$/),a=r?r[1]:"",i=t;"string"==typeof t&&t.includes("\n")&&(i=String(t).split("\n").map(function(t,e){return 0===e?t:"".concat(a).concat(t)}).join("\n")),s+=i+n[e+1]}),s}r.d(e,{T:()=>n})},24190:(t,e,r)=>{"use strict";function n(t,e){this.v=t,this.k=e}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e,r;function a(e,r){try{var s=t[e](r),o=s.value,l=o instanceof n;Promise.resolve(l?o.v:o).then(function(r){if(l){var n="return"===e&&o.k?e:"next";if(!o.k||r.done)return a(n,r);r=t[n](r).value}i(!!s.done,r)},function(t){a("throw",t)})}catch(t){i(2,t)}}function i(t,n){2===t?e.reject(n):e.resolve({value:n,done:t}),(e=e.next)?a(e.key,e.arg):r=null}this._invoke=function(t,n){return new Promise(function(i,s){var o={key:t,arg:n,resolve:i,reject:s,next:null};r?r=r.next=o:(e=r=o,a(t,n))})},"function"!=typeof t.return&&(this.return=void 0)}r.d(e,{A:()=>tv}),i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(t){return this._invoke("next",t)},i.prototype.throw=function(t){return this._invoke("throw",t)},i.prototype.return=function(t){return this._invoke("return",t)};let s=Object.entries,o=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,u=Object.freeze,p=Object.seal,d=Object.create,f="undefined"!=typeof Reflect&&Reflect,g=f.apply,m=f.construct;u||(u=function(t){return t}),p||(p=function(t){return t}),g||(g=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return t.apply(e,n)}),m||(m=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});let y=z(Array.prototype.forEach);Array.prototype.indexOf;let b=z(Array.prototype.lastIndexOf),x=z(Array.prototype.pop),k=z(Array.prototype.push),w=z(Array.prototype.slice),_=z(Array.prototype.splice),v=Array.isArray,S=F(Set),M=z(Set.prototype.add),A=z(Set.prototype.has),T=z(String.prototype.toLowerCase),$=z(String.prototype.toString),K=z(String.prototype.match),L=z(String.prototype.replace),O=z(String.prototype.indexOf),E=z(String.prototype.trim),C=z(Number.prototype.toString),R=z(Boolean.prototype.toString),P="undefined"==typeof BigInt?null:z(BigInt.prototype.toString),D="undefined"==typeof Symbol?null:z(Symbol.prototype.toString),I=z(Object.prototype.hasOwnProperty),N=z(Object.prototype.toString),j=z(RegExp.prototype.test),B=F(TypeError);function z(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return g(t,e,n)}}function F(t){return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return m(t,r)}}function U(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;if(o&&o(t,null),!v(e))return t;let n=e.length;for(;n--;){let a=e[n];if("string"==typeof a){let t=r(a);t!==a&&(l(e)||(e[n]=t),a=t)}t[a]=!0}return t}function W(t){let e=d(null);for(let n of s(t)){var r=function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,i,s,o=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}(n,2)||function(t,e){if(t){if("string"==typeof t)return a(t,2);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(n,2)||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 i=r[0],s=r[1];I(t,i)&&(v(s)?e[i]=function(t){for(let e=0;e<t.length;e++)I(t,e)||(t[e]=null);return t}(s):s&&"object"==typeof s&&s.constructor===Object?e[i]=W(s):e[i]=s)}return e}function q(t,e){for(;null!==t;){let r=h(t,e);if(r){if(r.get)return z(r.get);if("function"==typeof r.value)return z(r.value)}t=c(t)}return function(){return null}}let H=u(["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=u(["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"]),X=u(["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"]),G=u(["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=u(["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=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=u(["#text"]),J=u(["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=u(["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=u(["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=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tn=p(/{{[\w\W]*|^[\w\W]*}}/g),ta=p(/<%[\w\W]*|^[\w\W]*%>/g),ti=p(/\${[\w\W]*/g),ts=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),to=p(/^aria-[\-\w]+$/),tl=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tc=p(/^(?:\w+script|data):/i),th=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tu=p(/^html$/i),tp=p(/^[a-z][.\w]*(-[.\w]+)+$/i),td=p(/<[/\w!]/g),tf=p(/<[/\w]/g),tg=p(/<\/no(script|embed|frames)/i),tm=p(/\/>/i),ty={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},tb=u(U({},["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,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));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}},tk=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tw=function(t,e,r,n){return I(t,e)&&v(t[e])?U(n.base?W(n.base):{},t[e],n.transform):r},t_=function(t,e,r){let n=I(t,e)?t[e]:void 0;return n&&"object"==typeof n?W(n):r()};var tv=function t(){let e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,a=e=>t(e);if(a.version="3.4.17",a.removed=[],!n||!n.document||n.document.nodeType!==ty.document||!n.Element)return a.isSupported=!1,a;let i=n.document,o=i,l=o.currentScript;n.DocumentFragment;let f=n.HTMLTemplateElement,g=n.Node,m=n.Element,F=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let tv=n.DOMParser,tS=n.trustedTypes,tM=m.prototype,tA=q(tM,"cloneNode"),tT=q(tM,"remove"),t$=q(tM,"removeAttributeNode"),tK=q(tM,"nextSibling"),tL=q(tM,"childNodes"),tO=q(tM,"parentNode"),tE=q(tM,"shadowRoot"),tC=q(tM,"attributes"),tR=g&&g.prototype?q(g.prototype,"nodeType"):null,tP=g&&g.prototype?q(g.prototype,"nodeName"):null,tD=g&&g.prototype?q(g.prototype,"ownerDocument"):null,tI=function(t){return tR?tR(t):t.nodeType},tN=function(t){return tP?tP(t):t.nodeName},tj=function(t,e){for(;null!==t;){let r=h(t,e);if(r)return r.get?z(r.get):null;t=c(t)}return null}(tM,"namespaceURI"),tB=function(t){return tj?tj(t):t.namespaceURI};if("function"==typeof f){let t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let tz="",tF=!1,tU=0,tW=function(){if(tU>0)throw B('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.')},tq=function(t){tW(),tU++;try{return e.createHTML(t)}finally{tU--}},tH=function(t){tW(),tU++;try{return e.createScriptURL(t)}finally{tU--}},tY=i,tX=tY.implementation,tG=tY.createNodeIterator,tZ=tY.createDocumentFragment,tV=tY.getElementsByTagName,tQ=o.importNode,tJ=tk();a.isSupported="function"==typeof s&&"function"==typeof tO&&tX&&void 0!==tX.createHTMLDocument;let t0=tl,t1=null,t2=U({},[...H,...Y,...X,...Z,...Q]),t3=null,t5=U({},[...J,...tt,...te,...tr]),t6=Object.seal(d(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}})),t8=null,t9=null,t4=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),t7=!0,et=!0,ee=!1,er=!0,en=!1,ea=!0,ei=!1,es=!1,eo=null,el=null,ec=!1,eh=!1,eu=!1,ep=!1,ed=!0,ef=!1,eg="user-content-",em=!0,ey=!1,eb=null,ex={},ek=null,ew=U({},["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"]),e_=null,ev=U({},["audio","video","img","source","image","track"]),eS=null,eM=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eA="http://www.w3.org/1998/Math/MathML",eT="http://www.w3.org/2000/svg",e$="http://www.w3.org/1999/xhtml",eK=e$,eL=!1,eO=null,eE=U({},[eA,eT,e$],$),eC=u(["mi","mo","mn","ms","mtext"]),eR=U({},eC),eP=u(["annotation-xml"]),eD=U({},eP),eI=U({},["title","style","font","a","script"]),eN=null,ej=["application/xhtml+xml","text/html"],eB=null,ez=null,eF=i.createElement("form"),eU=function(t){return t instanceof RegExp||t instanceof Function},eW=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ez&&ez===t)return;t&&"object"==typeof t||(t={}),t=W(t),eB="application/xhtml+xml"===(eN=-1===ej.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?$:T,t1=tw(t,"ALLOWED_TAGS",t2,{transform:eB}),t3=tw(t,"ALLOWED_ATTR",t5,{transform:eB}),eO=tw(t,"ALLOWED_NAMESPACES",eE,{transform:$}),eS=tw(t,"ADD_URI_SAFE_ATTR",eM,{transform:eB,base:eM}),e_=tw(t,"ADD_DATA_URI_TAGS",ev,{transform:eB,base:ev}),ek=tw(t,"FORBID_CONTENTS",ew,{transform:eB}),t8=tw(t,"FORBID_TAGS",W({}),{transform:eB}),t9=tw(t,"FORBID_ATTR",W({}),{transform:eB}),ex=!!I(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?W(t.USE_PROFILES):t.USE_PROFILES),t7=!1!==t.ALLOW_ARIA_ATTR,et=!1!==t.ALLOW_DATA_ATTR,ee=t.ALLOW_UNKNOWN_PROTOCOLS||!1,er=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,en=t.SAFE_FOR_TEMPLATES||!1,ea=!1!==t.SAFE_FOR_XML,ei=t.WHOLE_DOCUMENT||!1,eh=t.RETURN_DOM||!1,eu=t.RETURN_DOM_FRAGMENT||!1,ep=t.RETURN_TRUSTED_TYPE||!1,ec=t.FORCE_BODY||!1,ed=!1!==t.SANITIZE_DOM,ef=t.SANITIZE_NAMED_PROPS||!1,em=!1!==t.KEEP_CONTENT,ey=t.IN_PLACE||!1,t0=!function(t){try{return j(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?tl:t.ALLOWED_URI_REGEXP,eK="string"==typeof t.NAMESPACE?t.NAMESPACE:e$,eR=t_(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>U({},eC)),eD=t_(t,"HTML_INTEGRATION_POINTS",()=>U({},eP));let n=t_(t,"CUSTOM_ELEMENT_HANDLING",()=>d(null));if(t6=d(null),I(n,"tagNameCheck")&&eU(n.tagNameCheck)&&(t6.tagNameCheck=n.tagNameCheck),I(n,"attributeNameCheck")&&eU(n.attributeNameCheck)&&(t6.attributeNameCheck=n.attributeNameCheck),I(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(t6.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),p(t6),en&&(et=!1),eu&&(eh=!0),ex&&(t1=U({},Q),t3=d(null),!0===ex.html&&(U(t1,H),U(t3,J)),!0===ex.svg&&(U(t1,Y),U(t3,tt),U(t3,tr)),!0===ex.svgFilters&&(U(t1,X),U(t3,tt),U(t3,tr)),!0===ex.mathMl&&(U(t1,Z),U(t3,te),U(t3,tr))),t4.tagCheck=null,t4.attributeCheck=null,I(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?t4.tagCheck=t.ADD_TAGS:v(t.ADD_TAGS)&&(t1===t2&&(t1=W(t1)),U(t1,t.ADD_TAGS,eB))),I(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?t4.attributeCheck=t.ADD_ATTR:v(t.ADD_ATTR)&&(t3===t5&&(t3=W(t3)),U(t3,t.ADD_ATTR,eB))),I(t,"ADD_FORBID_CONTENTS")&&v(t.ADD_FORBID_CONTENTS)&&(ek===ew&&(ek=W(ek)),U(ek,t.ADD_FORBID_CONTENTS,eB)),em&&(t1["#text"]=!0),ei&&U(t1,["html","head","body"]),t1.table&&(U(t1,["tbody"]),delete t8.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tz=tq("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tz=""):(void 0===e&&(tF||(r=tx(tS,l),tF=!0),e=r),e&&"string"==typeof tz&&(tz=tq("")));u&&u(t),ez=t},eq=U({},[...Y,...X,...G]),eH=U({},[...Z,...V]),eY=function(t){var e,r,n,a,i,s;let o,l,c=tB(t),h=T(tN(t)),u=tO(t);return u&&tI(u)===ty.element?(o={namespaceURI:tB(u)},l=T(tN(u))):(o={namespaceURI:eK},l="template"),!!eO[c]&&(c===eT?(e=o,r=l,e.namespaceURI===e$?"svg"===h:e.namespaceURI===eA?"svg"===h&&("annotation-xml"===r||eR[r]):!!eq[h]):c===eA?(n=o,a=l,n.namespaceURI===e$?"math"===h:n.namespaceURI===eT?"math"===h&&eD[a]:!!eH[h]):c===e$?(i=o,s=l,(i.namespaceURI!==eT||!!eD[s])&&(i.namespaceURI!==eA||!!eR[s])&&!eH[h]&&(eI[h]||!eq[h])):"application/xhtml+xml"===eN&&!!eO[c])},eX=function(t){k(a.removed,{element:t});try{tO(t).removeChild(t)}catch(e){if(tT(t),!tO(t))throw B("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eG=function(t,e,r){try{t$(t,e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eZ=function(t){e0(t);let e=tL(t);e&&y(w(e),t=>{try{tT(t)}catch(t){}});let r=tI(t)===ty.element?tC(t):null;if(r)for(let e=r.length-1;e>=0;--e){let n=r[e],a=n&&n.name;"string"==typeof a&&eG(t,n,a)}},eV=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?t$(e,r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(eh||eu)try{eX(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},eQ=function(t){let e=tC(t);if(e)for(let r=e.length-1;r>=0;--r){let n=e[r],a=n&&n.name;"string"!=typeof a||t3[eB(a)]||eG(t,n,a)}},eJ=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[t];for(;n.length>0;){let t=n.pop();if(!1===e(t))continue;if(r&&tI(t)===ty.element){let e=tE(t);ri(e)&&n.push(e)}let a=tL(t);if(a)for(let t=a.length-1;t>=0;--t)n.push(a[t])}},e0=function(t){eJ(t,t=>{tI(t)===ty.element&&eQ(t)})},e1=function(t){let e=[];return eJ(t,t=>{e.push(t)},!0),e},e2=function(t,e){let r=S();y(e1(t),t=>{tI(t)===ty.element&&M(r,t)}),y(e,t=>{tI(t)!==ty.element||A(r,t)||eQ(t)})},e3=function(t,e){let r=!1;return y(a.removed,e=>{e.element&&(r=r||e.element===t,e0(e.element))}),e2(t,e),r},e5=function(t,e){let r=eb,n=null,a=()=>(n||(n=S(),y(e,t=>{M(n,t)})),n);for(let e=0;;e++){let n=e1(t),i=[t],s=!1;if(y(n,t=>{tI(t)===ty.documentFragment?k(i,t):s||A(r,t)||(s=A(a(),t))}),!s)return;if(e>=8)throw B("the tree kept changing during in-place sanitization; refusing to return it");y(i,(e,r)=>{e6(e,r>0,t,a())})}},e6=function(t,e,r,n){let a,i=rt(t);for(;a=i.nextNode();)!(!A(n,a)||A(eb,a))&&(e&&ro(tJ.uponSanitizeShadowNode,a,null),rp(a,r),rx(a,r),ri(a.content)&&rk(a.content))},e8=function(t){eb&&M(eb,t)},e9=function(t,e){return!!ea&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},e4=function(t){ea&&eJ(t,t=>{let e=tI(t);if(e===ty.processingInstruction||e===ty.comment&&j(tf,t.data)){try{tT(t)}catch(t){}return!1}if(e===ty.element){let e=eB(tN(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&e9("for",e)&&t.removeAttribute("for")}catch(t){}}return!0})},e7=function(t){let r=null,n=null;if(ec)t="<remove></remove>"+t;else{let e=K(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===eN&&eK===e$&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let a=e?tq(t):t;if(eK===e$)try{r=new tv().parseFromString(a,eN)}catch(t){}if(!r||!r.documentElement){r=tX.createDocument(eK,"template",null);try{r.documentElement.innerHTML=eL?tz:a}catch(t){}}let s=r.body||r.documentElement;return(t&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),eK===e$)?tV.call(r,ei?"html":"body")[0]:ei?r.documentElement:s},rt=function(t){let e=tD?tD(t):t.ownerDocument;return tG.call(e||t,t,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},re=function(t){return t=L(t,tn," "),t=L(t,ta," "),t=L(t,ti," ")},rr=function(t){var e;rn(t);let r=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");r&&y(r,t=>{ri(t.content)&&rr(t.content)})},rn=function(t){t.normalize();let e=tD?tD(t):t.ownerDocument,r=tG.call(e||t,t,F.SHOW_TEXT|F.SHOW_COMMENT|F.SHOW_CDATA_SECTION|F.SHOW_PROCESSING_INSTRUCTION,null),n=r.nextNode();for(;n;)n.data=re(n.data),n=r.nextNode()},ra=function(t){let e=tP?tP(t):null;return"string"==typeof e&&"form"===eB(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tC(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!==tR(t)||t.childNodes!==tL(t))},ri=function(t){if(!tR||"object"!=typeof t||null===t)return!1;try{return tR(t)===ty.documentFragment}catch(t){return!1}},rs=function(t){if(!tR||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tR(t)}catch(t){return!1}};function ro(t,e,r){0!==t.length&&y(t,t=>{t.call(a,e,r,ez)})}let rl=function(t,e){if(t instanceof RegExp)return j(t,e);if(t instanceof Function){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return!!t(e,...n)}return!1},rc=function(t,e,r){if(!t8[e]&&rg(e)&&rl(t6.tagNameCheck,e))return!1;if(em&&!ek[e]&&!ek[T(e)]){let e=tO(t),n=tL(t);if(n&&e){let a=n.length;for(let i=a-1;i>=0;--i){let a=t===r?tA(n[i],!0):n[i];e.insertBefore(a,tK(t))}}}return eX(t),!0},rh=function(t,e,r,n){return 0===t.length?e:e===r||e===n?W(e):e},ru=function(t,e){return t!==e&&null===tO(t)&&(ey&&e0(t),!0)},rp=function(t,e){if(e8(t),ro(tJ.beforeSanitizeElements,t,null),ru(t,e))return!0;if(ra(t))return eX(t),!0;let r=eB(tN(t));if(t1=rh(tJ.uponSanitizeElement,t1,t2,eo),ro(tJ.uponSanitizeElement,t,{tagName:r,allowedTags:t1}),ru(t,e))return!0;if(ea&&t.hasChildNodes()&&!rs(t.firstElementChild)&&j(td,t.textContent)&&j(td,t.innerHTML)||ea&&tb[r]&&tI(t)===ty.element&&tB(t)===e$&&(rs(t.firstElementChild)||"string"==typeof t.textContent&&j(td,t.textContent))||t.nodeType===ty.processingInstruction||ea&&t.nodeType===ty.comment&&j(tf,t.data))return eX(t),!0;if(t8[r]||!(t4.tagCheck instanceof Function&&t4.tagCheck(r))&&!t1[r]){let n=rc(t,r,e);return!!(!1===n&&(ro(tJ.afterSanitizeElements,t,null),ru(t,e)))||n}if(tI(t)===ty.element&&!eY(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&j(tg,t.innerHTML))return eX(t),!0;if(en&&t.nodeType===ty.text){let e=re(t.textContent);t.textContent!==e&&(k(a.removed,{element:t.cloneNode()}),t.textContent=e)}return ro(tJ.afterSanitizeElements,t,null),ru(t,e)},rd=function(t,e,r){if(t9[e]||e9(e,t)||ed&&("id"===e||"name"===e)&&(r in i||r in eF))return!1;let n=t3[e]||t4.attributeCheck instanceof Function&&t4.attributeCheck(e,t);return!!(et&&j(ts,e)||t7&&j(to,e))||(n?!(!(eS[e]||j(t0,L(r,th,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==O(r,"data:")||!e_[t])&&(!ee||j(tc,L(r,th,""))))||!r:rg(t)&&rl(t6.tagNameCheck,t)&&rl(t6.attributeNameCheck,e,t)||"is"===e&&t6.allowCustomizedBuiltInElements&&rl(t6.tagNameCheck,r))},rf=U({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),rg=function(t){return!rf[T(t)]&&j(tp,t)},rm=function(t,r,n,a){if(e&&"object"==typeof tS&&"function"==typeof tS.getAttributeType&&!n)switch(tS.getAttributeType(t,r)){case"TrustedHTML":return tq(a);case"TrustedScriptURL":return tH(a)}return a},ry=function(t,e,r,n){try{if(r?t.setAttributeNS(r,e,n):t.setAttribute(e,n),ra(t))return eX(t),!1;return!0}catch(r){return eV(e,t),!1}},rb=function(t,e){return!!(ea&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===T(t)&&null!==K(e,"href")},rx=function(t,e){if(ro(tJ.beforeSanitizeAttributes,t,null),ru(t,e))return;let r=t.attributes;if(!r||ra(t))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:t3=rh(tJ.uponSanitizeAttribute,t3,t5,el),forceKeepAttr:void 0},i=r.length,s=eB(t.nodeName);for(;i--;){let e=r[i],o=e.name,l=e.namespaceURI,c=e.value,h=eB(o),u="value"===o?c:E(c),p=!1;if(n.attrName=h,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,ro(tJ.uponSanitizeAttribute,t,n),u=n.attrValue,ef&&("id"===h||"name"===h)&&0!==O(u,eg)&&(eV(o,t,e),u=eg+u,p=!0),rb(o,u)){eV(o,t,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!er&&j(tm,u)||(en&&(u=re(u)),!rd(s,h,u))){eV(o,t,e);continue}(u=rm(s,h,l,u))!==c&&ry(t,o,l,u)&&p&&x(a.removed)}}ro(tJ.afterSanitizeAttributes,t,null),ru(t,e)},rk=function(t){let e=null,r=rt(t);for(ro(tJ.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(ro(tJ.uponSanitizeShadowNode,e,null),rp(e,t),rx(e,t),ri(e.content)&&rk(e.content),tI(e)===ty.element){let t=tE(e);ri(t)&&(rw(t),rk(t))}en&&rn(t),ro(tJ.afterSanitizeShadowDOM,t,null)},rw=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){rk(t.shadow);continue}let r=t.node,n=tI(r)===ty.element,a=tL(r);if(a)for(let t=a.length-1;t>=0;--t)e.push({node:a[t],shadow:null});if(n){let t=tP?tP(r):null;if("string"==typeof t&&"template"===eB(t)){let t=r.content;ri(t)&&e.push({node:t,shadow:null})}}if(n){let t=tE(r);ri(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]:{},n=null,i=null,s=null,l=null;if((eL=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!rs(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return C(t);case"boolean":return R(t);case"bigint":return P?P(t):"0";case"symbol":return D?D(t):"Symbol()";case"undefined":default:return N(t);case"function":case"object":{if(null===t)return N(t);let e=q(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:N(r)}return N(t)}}}(t)))throw B("dirty is not a string, aborting");if(!a.isSupported)return t;es?(t1=eo,t3=el):eW(r),(tJ.uponSanitizeElement.length>0||tJ.uponSanitizeAttribute.length>0)&&(t1=W(t1)),tJ.uponSanitizeAttribute.length>0&&(t3=W(t3)),a.removed=[];let c=ey&&"string"!=typeof t&&rs(t),h=[],u=eb;if(c){e4(t);let e=tN(t);if("string"==typeof e){let r=eB(e);if(!t1[r]||t8[r])throw eZ(t),B("root node is forbidden and cannot be sanitized in-place")}if(ra(t))throw eZ(t),B("root node is clobbered and cannot be sanitized in-place");h=e1(t),eb=S()}else if(rs(t))(i=(n=e7("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===ty.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i),rw(n);else{if(!eh&&!en&&!ei&&-1===t.indexOf("<"))return e&&ep?tq(t):t;if(!(n=e7(t)))return eh?null:ep?tz:""}n&&ec&&eX(n.firstChild);let p=c?t:n;try{c&&rw(t);let e=rt(p);for(;s=e.nextNode();)rp(s,p),rx(s,p),ri(s.content)&&rk(s.content);c&&e5(t,h)}catch(e){throw c&&(eZ(t),e3(t,h)),e}finally{eb=u}if(c){if(e3(t,h))throw B("a node selected for removal could not be safely returned; refusing to sanitize in place");return en&&rr(t),t}if(eh){if(en&&rr(n),eu)for(l=tZ.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(t3.shadowroot||t3.shadowrootmode)&&(l=tQ.call(o,l,!0)),l}let d=ei?n.outerHTML:n.innerHTML;return ei&&t1["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&j(tu,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),en&&(d=re(d)),e&&ep?tq(d):d},a.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eW(t),es=!0,eo=t1,el=t3},a.clearConfig=function(){ez=null,es=!1,eo=null,el=null,e=r,tz=""},a.isValidAttribute=function(t,e,r){ez||eW({});let n=eB(t),a=eB(e);return!("string"==typeof r&&(rb(e,r)||!er&&j(tm,r)))&&rd(n,a,r)},a.addHook=function(t,e){"function"==typeof e&&I(tJ,t)&&k(tJ[t],e)},a.removeHook=function(t,e){if(I(tJ,t)){if(void 0!==e){let r=b(tJ[t],e);return -1===r?void 0:_(tJ[t],r,1)[0]}return x(tJ[t])}},a.removeHooks=function(t){I(tJ,t)&&(tJ[t]=[])},a.removeAllHooks=function(){tJ=tk()},a}()},25016:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(42316),a=r(49380);let i=(t,e,r)=>{let i=a.A.parse(t),s=i[e],o=n.A.channel.clamp[e](s+r);return s!==o&&(i[e]=o),a.A.stringify(i)}},25128:(t,e,r)=>{"use strict";r.d(e,{JL:()=>$,qr:()=>q,Yu:()=>Y,IA:()=>G,Wi:()=>B,PG:()=>z,OE:()=>V,y8:()=>tt,ol:()=>tr,Ir:()=>ta,oD:()=>to,Q7:()=>tc,cV:()=>tu,lU:()=>O,Lx:()=>td,nV:()=>tk,ux:()=>tw,Xf:()=>tS,GZ:()=>tA,UP:()=>t$,dy:()=>tT,n8:()=>R,rL:()=>I});let n=Math.PI,a=2*n,i=a-1e-6;function s(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function o(t,e,r,n){return t===r&&e===n}class l{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?s:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return s;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t),this._equal=null==t?o:function(t){let e=Math.floor(t);if(!(e<=15))return o;let r=10**e,n=function(t){return Math.round(t*r)};return function(t,e,r,a){return n(t)===n(r)&&n(e)===n(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,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,a,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+a},${this._y1=+i}`}arcTo(t,e,r,a,i){if(t*=1,e*=1,r*=1,a*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let s=this._x1,o=this._y1,l=r-t,c=a-e,h=s-t,u=o-e,p=h*h+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(p>1e-6)if(Math.abs(u*l-c*h)>1e-6&&i){let d=r-s,f=a-o,g=l*l+c*c,m=Math.sqrt(g),y=Math.sqrt(p),b=i*Math.tan((n-Math.acos((g+p-(d*d+f*f))/(2*m*y)))/2),x=b/y,k=b/m;Math.abs(x-1)>1e-6&&this._append`L${t+x*h},${e+x*u}`,this._append`A${i},${i},0,0,${+(u*d>h*f)},${this._x1=t+k*l},${this._y1=e+k*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,s,o,l){if(t*=1,e*=1,r*=1,l=!!l,r<0)throw Error(`negative radius: ${r}`);let c=r*Math.cos(s),h=r*Math.sin(s),u=t+c,p=e+h,d=1^l,f=l?s-o:o-s;if(null===this._x1?this._append`M${u},${p}`:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${u},${p}`,r){if(f<0&&(f=f%a+a),f>i)this._append`A${r},${r},0,1,${d},${t-c},${e-h}A${r},${r},0,1,${d},${this._x1=u},${this._y1=p}`;else if(f>1e-6){let a=t+r*Math.cos(o),i=e+r*Math.sin(o);if(f>=n&&this._equal(u,p,a,i)){let a=s+(f/=2);this._append`A${r},${r},0,${+(f>=n)},${d},${t+r*Math.cos(a)},${e+r*Math.sin(a)}`}this._append`A${r},${r},0,${+(f>=n)},${d},${this._x1=a},${this._y1=i}`}}}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function c(t){return function(){return t}}l.prototype;let h=Math.abs,u=Math.atan2,p=Math.cos,d=Math.max,f=Math.min,g=Math.sin,m=Math.sqrt,y=Math.PI,b=y/2,x=2*y;function k(t){return t>=1?b:t<=-1?-b:Math.asin(t)}function w(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 _(t){return t.innerRadius}function v(t){return t.outerRadius}function S(t){return t.startAngle}function M(t){return t.endAngle}function A(t){return t&&t.padAngle}function T(t,e,r,n,a,i,s){var o=t-r,l=e-n,c=(s?i:-i)/m(o*o+l*l),h=c*l,u=-c*o,p=t+h,f=e+u,g=r+h,y=n+u,b=(p+g)/2,x=(f+y)/2,k=g-p,w=y-f,_=k*k+w*w,v=a-i,S=p*y-g*f,M=(w<0?-1:1)*m(d(0,v*v*_-S*S)),A=(S*w-k*M)/_,T=(-S*k-w*M)/_,$=(S*w+k*M)/_,K=(-S*k+w*M)/_,L=A-b,O=T-x,E=$-b,C=K-x;return L*L+O*O>E*E+C*C&&(A=$,T=K),{cx:A,cy:T,x01:-h,y01:-u,x11:A*(a/v-1),y11:T*(a/v-1)}}function $(){var t=_,e=v,r=c(0),n=null,a=S,i=M,s=A,o=null,l=w(d);function d(){var c,d,w=+t.apply(this,arguments),_=+e.apply(this,arguments),v=a.apply(this,arguments)-b,S=i.apply(this,arguments)-b,M=h(S-v),A=S>v;if(o||(o=c=l()),_<w&&(d=_,_=w,w=d),_>1e-12)if(M>x-1e-12)o.moveTo(_*p(v),_*g(v)),o.arc(0,0,_,v,S,!A),w>1e-12&&(o.moveTo(w*p(S),w*g(S)),o.arc(0,0,w,S,v,A));else{var $,K,L=v,O=S,E=v,C=S,R=M,P=M,D=s.apply(this,arguments)/2,I=D>1e-12&&(n?+n.apply(this,arguments):m(w*w+_*_)),N=f(h(_-w)/2,+r.apply(this,arguments)),j=N,B=N;if(I>1e-12){var z=k(I/w*g(D)),F=k(I/_*g(D));(R-=2*z)>1e-12?(z*=A?1:-1,E+=z,C-=z):(R=0,E=C=(v+S)/2),(P-=2*F)>1e-12?(F*=A?1:-1,L+=F,O-=F):(P=0,L=O=(v+S)/2)}var U=_*p(L),W=_*g(L),q=w*p(C),H=w*g(C);if(N>1e-12){var Y,X=_*p(O),G=_*g(O),Z=w*p(E),V=w*g(E);if(M<y)if(Y=function(t,e,r,n,a,i,s,o){var l=r-t,c=n-e,h=s-a,u=o-i,p=u*l-h*c;if(!(p*p<1e-12))return p=(h*(e-i)-u*(t-a))/p,[t+p*l,e+p*c]}(U,W,Z,V,X,G,q,H)){var Q,J=U-Y[0],tt=W-Y[1],te=X-Y[0],tr=G-Y[1],tn=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]);j=f(N,(w-ta)/(tn-1)),B=f(N,(_-ta)/(tn+1))}else j=B=0}P>1e-12?B>1e-12?($=T(Z,V,U,W,_,B,A),K=T(X,G,q,H,_,B,A),o.moveTo($.cx+$.x01,$.cy+$.y01),B<N?o.arc($.cx,$.cy,B,u($.y01,$.x01),u(K.y01,K.x01),!A):(o.arc($.cx,$.cy,B,u($.y01,$.x01),u($.y11,$.x11),!A),o.arc(0,0,_,u($.cy+$.y11,$.cx+$.x11),u(K.cy+K.y11,K.cx+K.x11),!A),o.arc(K.cx,K.cy,B,u(K.y11,K.x11),u(K.y01,K.x01),!A))):(o.moveTo(U,W),o.arc(0,0,_,L,O,!A)):o.moveTo(U,W),w>1e-12&&R>1e-12?j>1e-12?($=T(q,H,X,G,w,-j,A),K=T(U,W,Z,V,w,-j,A),o.lineTo($.cx+$.x01,$.cy+$.y01),j<N?o.arc($.cx,$.cy,j,u($.y01,$.x01),u(K.y01,K.x01),!A):(o.arc($.cx,$.cy,j,u($.y01,$.x01),u($.y11,$.x11),!A),o.arc(0,0,w,u($.cy+$.y11,$.cx+$.x11),u(K.cy+K.y11,K.cx+K.x11),A),o.arc(K.cx,K.cy,j,u(K.y11,K.x11),u(K.y01,K.x01),!A))):o.arc(0,0,w,C,E,A):o.lineTo(q,H)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return d.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-y/2;return[p(n)*r,g(n)*r]},d.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),d):t},d.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),d):e},d.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:c(+t),d):r},d.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:c(+t),d):n},d.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:c(+t),d):a},d.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:c(+t),d):i},d.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:c(+t),d):s},d.context=function(t){return arguments.length?(o=null==t?null:t,d):o},d}function K(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function L(t){this._context=t}function O(t){return new L(t)}function E(t){return t[0]}function C(t){return t[1]}function R(t,e){var r=c(!0),n=null,a=O,i=null,s=w(o);function o(o){var l,c,h,u=(o=K(o)).length,p=!1;for(null==n&&(i=a(h=s())),l=0;l<=u;++l)!(l<u&&r(c=o[l],l,o))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(c,l,o),+e(c,l,o));if(h)return i=null,h+""||null}return t="function"==typeof t?t:void 0===t?E:c(t),e="function"==typeof e?e:void 0===e?C:c(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),o):e},o.defined=function(t){return arguments.length?(r="function"==typeof t?t:c(!!t),o):r},o.curve=function(t){return arguments.length?(a=t,null!=n&&(i=a(n)),o):a},o.context=function(t){return arguments.length?(null==t?n=i=null:i=a(n=t),o):n},o}function P(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function D(t){return t}function I(){var t=D,e=P,r=null,n=c(0),a=c(x),i=c(0);function s(s){var o,l,c,h,u,p=(s=K(s)).length,d=0,f=Array(p),g=Array(p),m=+n.apply(this,arguments),y=Math.min(x,Math.max(-x,a.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/p,i.apply(this,arguments)),k=b*(y<0?-1:1);for(o=0;o<p;++o)(u=g[f[o]=o]=+t(s[o],o,s))>0&&(d+=u);for(null!=e?f.sort(function(t,r){return e(g[t],g[r])}):null!=r&&f.sort(function(t,e){return r(s[t],s[e])}),o=0,c=d?(y-p*k)/d:0;o<p;++o,m=h)h=m+((u=g[l=f[o]])>0?u*c:0)+k,g[l]={data:s[l],index:o,value:u,startAngle:m,endAngle:h,padAngle:b};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e},s.sort=function(t){return arguments.length?(r=t,e=null,s):r},s.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),s):n},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:c(+t),s):a},s.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:c(+t),s):i},s}function N(t){this._curve=t}Array.prototype.slice,L.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)}}},N.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 j{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 B(t){return new j(t,!0)}function z(t){return new j(t,!1)}function F(){}function U(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 q(t){return new W(t)}function H(t){this._context=t}function Y(t){return new H(t)}function X(t){this._context=t}function G(t){return new X(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(x/10),p(x/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:U(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:U(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},H.prototype={areaStart:F,areaEnd:F,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:U(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},X.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,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:U(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 n,a=t[0],i=e[0],s=t[r]-a,o=e[r]-i,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+n*s),this._beta*e[l]+(1-this._beta)*(i+n*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var V=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 Q(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 J(t,e){this._context=t,this._k=(1-e)/6}J.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:Q(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:Q(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 tt=function t(e){function r(t){return new J(t,e)}return r.tension=function(e){return t(+e)},r}(0);function te(t,e){this._context=t,this._k=(1-e)/6}te.prototype={areaStart:F,areaEnd:F,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:Q(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 tr=function t(e){function r(t){return new te(t,e)}return r.tension=function(e){return t(+e)},r}(0);function tn(t,e){this._context=t,this._k=(1-e)/6}tn.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:Q(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 ta=function t(e){function r(t){return new tn(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ti(t,e,r){var n=t._x1,a=t._y1,i=t._x2,s=t._y2;if(t._l01_a>1e-12){var o=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);n=(n*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,a=(a*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-r*t._l12_2a)/h}t._context.bezierCurveTo(n,a,i,s,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,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ti(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 to=function t(e){function r(t){return e?new ts(t,e):new J(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function tl(t,e){this._context=t,this._alpha=e}tl.prototype={areaStart:F,areaEnd:F,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,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ti(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 tl(t,e):new te(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: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,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ti(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 th(t,e):new tn(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function tp(t){this._context=t}function td(t){return new tp(t)}function tf(t,e,r){var n=t._x1-t._x0,a=e-t._x1,i=(t._y1-t._y0)/(n||a<0&&-0),s=(r-t._y1)/(a||n<0&&-0);return((i<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs((i*a+s*n)/(n+a)))||0}function tg(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function tm(t,e,r){var n=t._x0,a=t._y0,i=t._x1,s=t._y1,o=(i-n)/3;t._context.bezierCurveTo(n+o,a+o*e,i-o,s-o*r,i,s)}function ty(t){this._context=t}function tb(t){this._context=new tx(t)}function tx(t){this._context=t}function tk(t){return new ty(t)}function tw(t){return new tb(t)}function t_(t){this._context=t}function tv(t){var e,r,n=t.length-1,a=Array(n),i=Array(n),s=Array(n);for(a[0]=0,i[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)a[e]=1,i[e]=4,s[e]=4*t[e]+2*t[e+1];for(a[n-1]=2,i[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=a[e]/i[e-1],i[e]-=r,s[e]-=r*s[e-1];for(a[n-1]=s[n-1]/i[n-1],e=n-2;e>=0;--e)a[e]=(s[e]-a[e+1])/i[e];for(e=0,i[n-1]=(t[n]+a[n-1])/2;e<n-1;++e)i[e]=2*t[e+1]-a[e+1];return[a,i]}function tS(t){return new t_(t)}function tM(t,e){this._context=t,this._t=e}function tA(t){return new tM(t,.5)}function tT(t){return new tM(t,0)}function t$(t){return new tM(t,1)}tp.prototype={areaStart:F,areaEnd:F,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))}},ty.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:tm(this,this._t0,tg(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,tm(this,tg(this,r=tf(this,t,e)),r);break;default:tm(this,this._t0,r=tf(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(tb.prototype=Object.create(ty.prototype)).point=function(t,e){ty.prototype.point.call(this,e,t)},tx.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,a,i){this._context.bezierCurveTo(e,t,n,r,i,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 n=tv(t),a=tv(e),i=0,s=1;s<r;++i,++s)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],t[s],e[s]);(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)}},tM.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}}},27058:(t,e,r)=>{"use strict";r.d(e,{pe:()=>A,PX:()=>tt,ru:()=>Q,Un:()=>J,$t:()=>to,Sm:()=>th,C4:()=>tc,$C:()=>q,rY:()=>tu,u1:()=>ta,sM:()=>U,KL:()=>tp,Ib:()=>C,dq:()=>tn,I5:()=>ts,yT:()=>Y,vU:()=>O,_K:()=>tl,bH:()=>Z});var n,a=r(92826),i=r(58442),s=r(88252),o=r(6341),l=r(25128),c=r(93962);function h(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let r=function(...n){let a=e?e.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);let s=t.apply(this,n);return r.cache=i.set(a,s)||i,s};return r.cache=new(h.Cache||Map),r}function u(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}h.Cache=Map;var p=r(91238),d=r(99213),f=r(51044),g=r(53161),m=r(48123);function y(t,e,r,n=new Map,a){let i=a?.(t,e,r,n);if(void 0!==i)return i;if((0,g.s)(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let i=0;i<t.length;i++)e[i]=y(t[i],i,r,n,a);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[i,s]of(n.set(t,e),t))e.set(i,y(s,i,r,n,a));return e}if(t instanceof Set){let e=new Set;for(let i of(n.set(t,e),t))e.add(y(i,void 0,r,n,a));return e}if((0,f.P)(t))return t.subarray();if((0,m.i)(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let i=0;i<t.length;i++)e[i]=y(t[i],i,r,n,a);return e}if(t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),b(e,t,r,n,a),e}if("undefined"!=typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),b(e,t,r,n,a),e}if("undefined"!=typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),b(e,t,r,n,a),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,b(e,t,r,n,a),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),b(e,t,r,n,a),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),b(e,t,r,n,a),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),b(e,t,r,n,a),e}if("object"==typeof t&&function(t){switch((0,p.b)(t)){case d.R_:case d.Uw:case d.cT:case d.iq:case d.$V:case d.vC:case d.ri:case d.ML:case d.XZ:case d.i1:case d._u:case d.pj:case d.kj:case d.GX:case d.Av:case d.NA:case d.OG:case d.VP:case d.Qb:case d.q:case d.x6:case d.ZR:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),b(e,t,r,n,a),e}return t}function b(t,e,r=t,n,a){let i=[...Object.keys(e),...u(e)];for(let s=0;s<i.length;s++){let o=i[s],l=Object.getOwnPropertyDescriptor(t,o);(null==l||l.writable)&&(t[o]=y(e[o],o,r,n,a))}}function x(t){var e;return e=(e,r,n,a)=>{let i=void 0;if(void 0!==i)return i;if("object"==typeof t){if((0,p.b)(t)===d.GX&&"function"!=typeof t.constructor){let e={};return a.set(t,e),b(e,t,n,a),e}switch(Object.prototype.toString.call(t)){case d.kj:case d.OG:case d.$V:{let e=new t.constructor(t?.valueOf());return b(e,t),e}case d.R_:{let e={};return b(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},y(t,void 0,t,new Map,e)}var k=r(36299),w=r(57710);function _(t){return"object"==typeof t&&null!==t}function v(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var S=r(11532);function M(){}var A="​",T={curveBasis:l.qr,curveBasisClosed:l.Yu,curveBasisOpen:l.IA,curveBumpX:l.Wi,curveBumpY:l.PG,curveBundle:l.OE,curveCardinalClosed:l.ol,curveCardinalOpen:l.Ir,curveCardinal:l.y8,curveCatmullRomClosed:l.Q7,curveCatmullRomOpen:l.cV,curveCatmullRom:l.oD,curveLinear:l.lU,curveLinearClosed:l.Lx,curveMonotoneX:l.nV,curveMonotoneY:l.ux,curveNatural:l.Xf,curveStep:l.GZ,curveStepAfter:l.UP,curveStepBefore:l.dy},$=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,K=(0,s.K)(function(t,e){let r=L(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,a.$i)(t),n=(0,a.hH)(n,[...t])}else n=r.args;if(!n)return;let i=(0,a.Ch)(t,e),s="config";return void 0!==n[s]&&("flowchart-v2"===i&&(i="flowchart"),n[i]=n[s],delete n[s]),n},"detectInit"),L=(0,s.K)(function(t,e=null){try{let r,n=RegExp(`[%]{2}(?![{]${$.source})(?=[}][%]{2}).*
62
+ `,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),i.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let s=[];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;s.push({type:t,args:e})}if(0===s.length)return{type:t,args:null};return 1===s.length?s[0]:s}catch(r){return i.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),O=(0,s.K)(function(t){return t.replace(a.DB,"")},"removeDirectives"),E=(0,s.K)(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return -1},"isSubstringInArray");function C(t,e){return t?T[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function R(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,o.J)(r):r}(0,s.K)(C,"interpolateToCurve"),(0,s.K)(R,"formatUrl");var P=(0,s.K)((t,...e)=>{let r=t.split("."),n=r.length-1,a=r[n],s=window;for(let e=0;e<n;e++)if(!(s=s[r[e]]))return void i.R.error(`Function name: ${t} not found in window`);s[a](...e)},"runFunc");function D(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function I(t){let e,r=0;return t.forEach(t=>{r+=D(t,e),e=t}),B(t,r/2)}function N(t){return 1===t.length?t[0]:I(t)}(0,s.K)(D,"distance"),(0,s.K)(I,"traverseEdge"),(0,s.K)(N,"calcLabelPosition");var j=(0,s.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),B=(0,s.K)((t,e)=>{let r,n=e;for(let e of t){if(r){let t=D(e,r);if(0===t)return r;if(t<n)n-=t;else{let a=n/t;if(a<=0)return r;if(a>=1)return{x:e.x,y:e.y};if(a>0&&a<1)return{x:j((1-a)*r.x+a*e.x,5),y:j((1-a)*r.y+a*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),z=(0,s.K)((t,e,r)=>{i.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=B(e,25),a=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+n.x)/2,o.y=-Math.cos(s)*a+(e[0].y+n.y)/2,o},"calcCardinalityPosition");function F(t,e,r){let n=structuredClone(r);i.R.info("our points",n),"start_left"!==e&&"start_right"!==e&&n.reverse();let a=B(n,25+t),s=10+.5*t,o=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+a.y)/2):"end_right"===e?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+a.y)/2):(l.x=Math.sin(o)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2),l}function U(t){let e="",r="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,s.K)(F,"calcTerminalLabelPosition"),(0,s.K)(U,"getStylesFromArray");var W=0,q=(0,s.K)(()=>(W++,"id-"+Math.random().toString(36).substr(2,12)+"-"+W),"generateId");function H(t){let e="",r="0123456789abcdef",n=r.length;for(let a=0;a<t;a++)e+=r.charAt(Math.floor(Math.random()*n));return e}(0,s.K)(H,"makeRandomHex");var Y=(0,s.K)(t=>H(t.length),"random"),X=(0,s.K)(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"),G=(0,s.K)(function(t,e){let r=e.text.replace(a.Y2.lineBreakRegex," "),[,n]=ts(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class);let s=i.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.attr("fill",e.fill),s.text(r),i},"drawSimpleText"),Z=h((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),a.Y2.hasBreaks(t)))return t;let n=t.split(" ").filter(Boolean),i=[],s="";return n.forEach((t,a)=>{let o=J(`${t} `,r),l=J(s,r);if(o>e){let{hyphenatedStrings:n,remainingWord:a}=V(t,e,"-",r);i.push(s,...n),s=a}else l+o>=e?(i.push(s),s=t):s=[s,t].filter(Boolean).join(" ");a+1===n.length&&i.push(s)}),i.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),V=h((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let a=[...t],i=[],s="";return a.forEach((t,o)=>{let l=`${s}${t}`;if(J(l,n)>=e){let t=a.length===o+1,e=`${l}${r}`;i.push(t?l:e),s=""}else s=l}),{hyphenatedStrings:i,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Q(t,e){return tt(t,e).height}function J(t,e){return tt(t,e).width}(0,s.K)(Q,"calculateTextHeight"),(0,s.K)(J,"calculateTextWidth");var tt=h((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};let[,s]=ts(r),o=t.split(a.Y2.lineBreakRegex),l=[],h=(0,c.Lt)("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let u=h.append("svg");for(let t of["sans-serif",n]){let e=0,r={width:0,height:0,lineHeight:0};for(let n of o){let a=X();a.text=n||A;let o=G(u,a).style("font-size",s).style("font-weight",i).style("font-family",t),l=(o._groups||o)[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))}l.push(r)}u.remove();let p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),te=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,s.K)(this,"InitIDGenerator")}},tr=(0,s.K)(function(t){return n=n||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=t,unescape(n.textContent)},"entityDecode");function tn(t){return"str"in t}function ta(t){return t instanceof Error?t.message:String(t)}(0,s.K)(tn,"isDetailedError"),(0,s.K)(ta,"getErrorMessage");var ti=(0,s.K)((t,e,r,n)=>{if(!n)return;let a=t.node()?.getBBox();a&&t.append("text").text(n).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ts=(0,s.K)(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 to(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),n=e[e.length-1],a=t;for(let t=0;t<r.length;t++)a=function t(e,r,n,a){if((0,g.s)(e)&&(e=Object(e)),null==r||"object"!=typeof r)return e;if(a.has(r))return function(t){if((0,g.s)(t))return t;if(Array.isArray(t)||(0,m.i)(t)||t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"undefined"!=typeof File&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(a.get(r));if(a.set(r,e),Array.isArray(r)){r=r.slice();for(let t=0;t<r.length;t++)r[t]=r[t]??void 0}let i=[...Object.keys(r),...u(r)];for(let o=0;o<i.length;o++){let l=i[o];if("__proto__"===l)continue;let c=r[l],h=e[l];if((0,k.N)(c)&&(c={...c}),(0,k.N)(h)&&(h={...h}),(0,f.P)(c)&&(c=x(c)),Array.isArray(c))if(Array.isArray(h)){let t=[],e=Reflect.ownKeys(h);for(let r=0;r<e.length;r++){let n=e[r];t[n]=h[n]}h=t}else{var s;if(_(s=h)&&(0,w.X)(s)){let t=[];for(let e=0;e<h.length;e++)t[e]=h[e];h=t}else h=[]}let u=n(h,c,l,e,r,a);void 0!==u?e[l]=u:Array.isArray(c)||_(h)&&_(c)&&(v(h)||v(c)||(0,S.i)(h)||(0,S.i)(c))?e[l]=t(h,c,n,a):null==h&&v(c)?e[l]=t({},c,n,a):null==h&&(0,S.i)(c)?e[l]=x(c):(void 0===h||void 0!==c)&&(e[l]=c)}return e}(a,r[t],n,new Map);return a}(t,...e,M)}({},t,e)}(0,s.K)(to,"cleanAndMerge");var tl={assignWithDepth:a.hH,wrapLabel:Z,calculateTextHeight:Q,calculateTextWidth:J,calculateTextDimensions:tt,cleanAndMerge:to,detectInit:K,detectDirective:L,isSubstringInArray:E,interpolateToCurve:C,calcLabelPosition:N,calcCardinalityPosition:z,calcTerminalLabelPosition:F,formatUrl:R,getStylesFromArray:U,generateId:q,random:Y,runFunc:P,entityDecode:tr,insertTitle:ti,isLabelCoordinateInPath:td,parseFontSize:ts,InitIDGenerator:te},tc=(0,s.K)(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"),th=(0,s.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tu=(0,s.K)((t,e,{counter:r=0,prefix:n,suffix:a},i)=>i||`${n?`${n}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`,"getEdgeId");function tp(t){return t??null}function td(t,e){let r=Math.round(t.x),n=Math.round(t.y),a=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return a.includes(r.toString())||a.includes(n.toString())}(0,s.K)(tp,"handleUndefinedAttr"),(0,s.K)(td,"isLabelCoordinateInPath")},27401:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(42316),a=r(3229),i=r(49380),s=r(74355);let o=(t,e,r=0,o=1)=>{if("number"!=typeof t)return(0,s.A)(t,{a:e});let l=a.A.set({r:n.A.channel.clamp.r(t),g:n.A.channel.clamp.g(e),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(o)});return i.A.stringify(l)}},32923:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(42316),a=r(49380);let i=t=>!((t=>{let{r:e,g:r,b:i}=a.A.parse(t),s=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(i);return n.A.lang.round(s)})(t)>=.5)},36299:(t,e,r)=>{"use strict";r.d(e,{N:()=>a});var n=r(91238);function a(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,n.b)(t)}},36761:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,a]=e,i=Math.PI/180*r,s=Math.cos(i),o=Math.sin(i);for(let e of t){let[t,r]=e;e[0]=(t-n)*s-(r-a)*o+n,e[1]=(t-n)*o+(r-a)*s+a}}}function a(t,e){var r;let a=e.hachureAngle+90,i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let s=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(s=i),function(t,e,r,a=1){let i=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,o=[0,0];if(r)for(let t of s)n(t,o,r);let l=function(t,e,r){let n=[];for(let e of t){var a,i;let t=[...e];a=t[0],i=t[t.length-1],a[0]===i[0]&&a[1]===i[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let s=[];e=Math.max(e,.1);let o=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);o.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(o.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)),!o.length)return s;let l=[],c=o[0].ymin,h=0;for(;l.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>c);e++)t=e;o.splice(0,t+1).forEach(t=>{l.push({s:c,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=c))).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||h%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,n=l[e].edge;s.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),h++}return s}(s,i,a);if(r){for(let t of s)n(t,o,-r);let t=[];l.forEach(e=>t.push(...e)),n(t,o,-r)}return l}(t,i,a,s||1)}r.d(e,{A:()=>G});class i{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 n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function s(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 o extends i{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=a(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),i=Math.PI/180*e.hachureAngle,o=[],l=.5*r*Math.cos(i),c=.5*r*Math.sin(i);for(let[t,e]of n)s([t,e])&&o.push([[t[0]-l,t[1]+c],[...e]],[[t[0]+l,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class l extends i{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(t,n);return r.ops=r.ops.concat(a.ops),r}}class c{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=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);let i=n/4;for(let o of t){let t=s(o),l=Math.ceil(t/n)-1,c=t-l*n,h=(o[0][0]+o[1][0])/2-n/4,u=Math.min(o[0][1],o[1][1]);for(let t=0;t<l;t++){let s=h-i+2*Math.random()*i,o=u+c+t*n-i+2*Math.random()*i,l=this.helper.ellipse(s,o,a,a,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class h{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,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,a=[];return t.forEach(t=>{let i=s(t),o=Math.floor(i/(r+n)),l=(i+n-o*(r+n))/2,c=t[0],h=t[1];c[0]>h[0]&&(c=t[1],h=t[0]);let u=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let t=0;t<o;t++){let i=t*(r+n),s=i+r,o=[c[0]+i*Math.cos(u)+l*Math.cos(u),c[1]+i*Math.sin(u)+l*Math.sin(u)],h=[c[0]+s*Math.cos(u)+l*Math.cos(u),c[1]+s*Math.sin(u)+l*Math.sin(u)];a.push(...this.helper.doubleLineOps(o[0],o[1],h[0],h[1],e))}}),a}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,i=a(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(i,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let a=Math.round(s(t)/(2*e)),i=t[0],o=t[1];i[0]>o[0]&&(i=t[1],o=t[0]);let l=Math.atan((o[1]-i[1])/(o[0]-i[0]));for(let t=0;t<a;t++){let a=2*t*e,s=2*(t+1)*e,o=Math.sqrt(2*Math.pow(e,2)),c=[i[0]+a*Math.cos(l),i[1]+a*Math.sin(l)],h=[i[0]+s*Math.cos(l),i[1]+s*Math.sin(l)],u=[c[0]+o*Math.cos(l+Math.PI/4),c[1]+o*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],r),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],r))}}),n}}let p={};class d{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),n="BOD",a=0,i=r[0];for(;2!==i.type;){let s=0,o=[];if("BOD"===n){if("M"!==i.text&&"m"!==i.text)return g("M0,0"+t);a++,s=f[i.text],n=i.text}else 1===i.type?s=f[n]:(a++,s=f[i.text],n=i.text);if(!(a+s<r.length))throw Error("Path data ended short");for(let t=a;t<a+s;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);o[o.length]=+e.text}if("number"!=typeof f[n])throw Error("Bad segment: "+n);{let t={key:n,data:o};e.push(t),a+=s,i=r[a],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,a=0,i=[];for(let{key:s,data:o}of t)switch(s){case"M":i.push({key:"M",data:[...o]}),[e,r]=o,[n,a]=o;break;case"m":e+=o[0],r+=o[1],i.push({key:"M",data:[e,r]}),n=e,a=r;break;case"L":i.push({key:"L",data:[...o]}),[e,r]=o;break;case"l":e+=o[0],r+=o[1],i.push({key:"L",data:[e,r]});break;case"C":i.push({key:"C",data:[...o]}),e=o[4],r=o[5];break;case"c":{let t=o.map((t,n)=>n%2?t+r:t+e);i.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":i.push({key:"Q",data:[...o]}),e=o[2],r=o[3];break;case"q":{let t=o.map((t,n)=>n%2?t+r:t+e);i.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":i.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],i.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":i.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],i.push({key:"V",data:[r]});break;case"S":i.push({key:"S",data:[...o]}),e=o[2],r=o[3];break;case"s":{let t=o.map((t,n)=>n%2?t+r:t+e);i.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":i.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],i.push({key:"T",data:[e,r]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,r=a}return i}function y(t){let e=[],r="",n=0,a=0,i=0,s=0,o=0,l=0;for(let{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[n,a]=h,[i,s]=h;break;case"C":e.push({key:"C",data:[...h]}),n=h[4],a=h[5],o=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[n,a]=h;break;case"H":n=h[0],e.push({key:"L",data:[n,a]});break;case"V":a=h[0],e.push({key:"L",data:[n,a]});break;case"S":{let t=0,i=0;"C"===r||"S"===r?(t=n+(n-o),i=a+(a-l)):(t=n,i=a),e.push({key:"C",data:[t,i,...h]}),o=h[0],l=h[1],n=h[2],a=h[3];break}case"T":{let[t,i]=h,s=0,c=0;"Q"===r||"T"===r?(s=n+(n-o),c=a+(a-l)):(s=n,c=a);let u=n+2*(s-n)/3,p=a+2*(c-a)/3,d=t+2*(s-t)/3,f=i+2*(c-i)/3;e.push({key:"C",data:[u,p,d,f,t,i]}),o=s,l=c,n=t,a=i;break}case"Q":{let[t,r,i,s]=h,c=n+2*(t-n)/3,u=a+2*(r-a)/3,p=i+2*(t-i)/3,d=s+2*(r-s)/3;e.push({key:"C",data:[c,u,p,d,i,s]}),o=t,l=r,n=i,a=s;break}case"A":{let t=Math.abs(h[0]),r=Math.abs(h[1]),i=h[2],s=h[3],o=h[4],l=h[5],c=h[6];0===t||0===r?(e.push({key:"C",data:[n,a,l,c,l,c]}),n=l,a=c):(n!==l||a!==c)&&((function t(e,r,n,a,i,s,o,l,c,h){let u=Math.PI*o/180,p=[],d=0,f=0,g=0,m=0;if(h)[d,f,g,m]=h;else{[e,r]=b(e,r,-u),[n,a]=b(n,a,-u);let t=(e-n)/2,o=(r-a)/2,h=t*t/(i*i)+o*o/(s*s);h>1&&(i*=h=Math.sqrt(h),s*=h);let p=i*i,y=s*s,x=(l===c?-1:1)*Math.sqrt(Math.abs((p*y-p*o*o-y*t*t)/(p*o*o+y*t*t)));g=x*i*o/s+(e+n)/2,m=-(x*s)*t/i+(r+a)/2,d=Math.asin(parseFloat(((r-m)/s).toFixed(9))),f=Math.asin(parseFloat(((a-m)/s).toFixed(9))),e<g&&(d=Math.PI-d),n<g&&(f=Math.PI-f),d<0&&(d=2*Math.PI+d),f<0&&(f=2*Math.PI+f),c&&d>f&&(d-=2*Math.PI),!c&&f>d&&(f-=2*Math.PI)}let y=f-d;if(Math.abs(y)>120*Math.PI/180){let e=f,r=n,l=a;p=t(n=g+i*Math.cos(f=c&&f>d?d+120*Math.PI/180*1:d+-(120*Math.PI/180*1)),a=m+s*Math.sin(f),r,l,i,s,o,0,c,[f,e,g,m])}y=f-d;let x=Math.cos(d),k=Math.cos(f),w=Math.tan(y/4),_=4/3*i*w,v=4/3*s*w,S=[e,r],M=[e+_*Math.sin(d),r-v*x],A=[n+_*Math.sin(f),a-v*k],T=[n,a];if(M[0]=2*S[0]-M[0],M[1]=2*S[1]-M[1],h)return[M,A,T].concat(p);{p=[M,A,T].concat(p);let t=[];for(let e=0;e<p.length;e+=3){let r=b(p[e][0],p[e][1],u),n=b(p[e+1][0],p[e+1][1],u),a=b(p[e+2][0],p[e+2][1],u);t.push([r[0],r[1],n[0],n[1],a[0],a[1]])}return t}})(n,a,l,c,t,r,i,s,o).forEach(function(t){e.push({key:"C",data:t})}),n=l,a=c);break}case"Z":e.push({key:"Z",data:[]}),n=i,a=s}r=c}return e}function b(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return E(t,e)},randOffsetWithRange:function(t,e,r){return O(t,e,r)},ellipse:function(t,e,r,n,a){let i=v(r,n,a);return S(t,e,a,i).opset},doubleLineOps:function(t,e,r,n,a){return C(t,e,r,n,a,!0)}};function k(t,e,r,n,a){return{type:"path",ops:C(t,e,r,n,a)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let a=[];for(let e=0;e<n-1;e++)a.push(...C(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&a.push(...C(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:a}}return 2===n?k(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=P(r[0],+(1+.2*e.roughness),e),a=e.disableMultiStroke?[]:P(r[0],1.5*(1+.22*e.roughness),K(e));for(let t=1;t<r.length;t++){let i=r[t];if(i.length){let t=P(i,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:P(i,1.5*(1+.22*e.roughness),K(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&a.push(t)}}return{type:"path",ops:n.concat(a)}}return{type:"path",ops:[]}}function v(t,e,r){let n=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)*n)),i=Math.abs(t/2),s=Math.abs(e/2),o=1-r.curveFitting;return i+=E(i*o,r),s+=E(s*o,r),{increment:a,rx:i,ry:s}}function S(t,e,r,n){let[a,i]=I(n.increment,t,e,n.rx,n.ry,1,n.increment*O(.1,O(.4,1,r),r),r),s=D(a,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[a]=I(n.increment,t,e,n.rx,n.ry,1.5,0,r),i=D(a,null,r);s=s.concat(i)}return{estimatedPoints:i,opset:{type:"path",ops:s}}}function M(t,e,r,n,a,i,s,o,l){let c=Math.abs(r/2),h=Math.abs(n/2);c+=E(.01*c,l),h+=E(.01*h,l);let u=a,p=i;for(;u<0;)u+=2*Math.PI,p+=2*Math.PI;p-u>2*Math.PI&&(u=0,p=2*Math.PI);let d=Math.min(2*Math.PI/l.curveStepCount/2,(p-u)/2),f=N(d,t,e,c,h,u,p,1,l);if(!l.disableMultiStroke){let r=N(d,t,e,c,h,u,p,1.5,l);f.push(...r)}return s&&(o?f.push(...C(t,e,t+c*Math.cos(u),e+h*Math.sin(u),l),...C(t,e,t+c*Math.cos(p),e+h*Math.sin(p),l)):f.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+c*Math.cos(u),e+h*Math.sin(u)]})),{type:"path",ops:f}}function A(t,e){let r=y(m(g(t))),n=[],a=[0,0],i=[0,0];for(let{key:t,data:s}of r)switch(t){case"M":i=[s[0],s[1]],a=[s[0],s[1]];break;case"L":n.push(...C(i[0],i[1],s[0],s[1],e)),i=[s[0],s[1]];break;case"C":{let[t,r,a,o,l,c]=s;n.push(...function(t,e,r,n,a,i,s,o){let l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3],h=[0,0],u=o.disableMultiStroke?1:2,p=o.preserveVertices;for(let d=0;d<u;d++)0===d?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(p?0:E(c[0],o)),s[1]+(p?0:E(c[0],o))]}),h=p?[a,i]:[a+E(c[d],o),i+E(c[d],o)],l.push({op:"bcurveTo",data:[t+E(c[d],o),e+E(c[d],o),r+E(c[d],o),n+E(c[d],o),h[0],h[1]]});return l}(t,r,a,o,l,c,i,e)),i=[l,c];break}case"Z":n.push(...C(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]]}return{type:"path",ops:n}}function T(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+E(t,e),n[0][1]+E(t,e)]});for(let i=1;i<a;i++)r.push({op:"lineTo",data:[n[i][0]+E(t,e),n[i][1]+E(t,e)]})}}return{type:"fillPath",ops:r}}function $(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!p[r])switch(r){case"zigzag":p[r]||(p[r]=new o(e));break;case"cross-hatch":p[r]||(p[r]=new l(e));break;case"dots":p[r]||(p[r]=new c(e));break;case"dashed":p[r]||(p[r]=new h(e));break;case"zigzag-line":p[r]||(p[r]=new u(e));break;default:p[r="hachure"]||(p[r]=new i(e))}return p[r]})(e,x).fillPolygons(t,e)}function K(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function L(t){return t.randomizer||(t.randomizer=new d(t.seed||0)),t.randomizer.next()}function O(t,e,r,n=1){return r.roughness*n*(L(r)*(e-t)+t)}function E(t,e,r=1){return O(-t,t,e,r)}function C(t,e,r,n,a,i=!1){let s=i?a.disableMultiStrokeFill:a.disableMultiStroke,o=R(t,e,r,n,a,!0,!1);if(s)return o;let l=R(t,e,r,n,a,!0,!0);return o.concat(l)}function R(t,e,r,n,a,i,s){let o=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(o),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>o&&(h=l/10);let u=h/2,p=.2+.2*L(a),d=a.bowing*a.maxRandomnessOffset*(n-e)/200,f=a.bowing*a.maxRandomnessOffset*(t-r)/200;d=E(d,a,c),f=E(f,a,c);let g=[],m=()=>E(u,a,c),y=()=>E(h,a,c),b=a.preserveVertices;return i&&(s?g.push({op:"move",data:[t+(b?0:m()),e+(b?0:m())]}):g.push({op:"move",data:[t+(b?0:E(h,a,c)),e+(b?0:E(h,a,c))]})),s?g.push({op:"bcurveTo",data:[d+t+(r-t)*p+m(),f+e+(n-e)*p+m(),d+t+2*(r-t)*p+m(),f+e+2*(n-e)*p+m(),r+(b?0:m()),n+(b?0:m())]}):g.push({op:"bcurveTo",data:[d+t+(r-t)*p+y(),f+e+(n-e)*p+y(),d+t+2*(r-t)*p+y(),f+e+2*(n-e)*p+y(),r+(b?0:y()),n+(b?0:y())]}),g}function P(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]),n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]);for(let a=1;a<t.length;a++)n.push([t[a][0]+E(e,r),t[a][1]+E(e,r)]),a===t.length-1&&n.push([t[a][0]+E(e,r),t[a][1]+E(e,r)]);return D(n,null,r)}function D(t,e,r){let n=t.length,a=[];if(n>3){let i=[],s=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];i[0]=[r[0],r[1]],i[1]=[r[0]+(s*t[e+1][0]-s*t[e-1][0])/6,r[1]+(s*t[e+1][1]-s*t[e-1][1])/6],i[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*t[e+2][1])/6],i[3]=[t[e+1][0],t[e+1][1]],a.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;a.push({op:"lineTo",data:[e[0]+E(t,r),e[1]+E(t,r)]})}}else 3===n?(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===n&&a.push(...R(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return a}function I(t,e,r,n,a,i,s,o){let l=[],c=[];if(0===o.roughness){t/=4,c.push([e+n*Math.cos(-t),r+a*Math.sin(-t)]);for(let i=0;i<=2*Math.PI;i+=t){let t=[e+n*Math.cos(i),r+a*Math.sin(i)];l.push(t),c.push(t)}c.push([e+ +n,r+0*a]),c.push([e+n*Math.cos(t),r+a*Math.sin(t)])}else{let h=E(.5,o)-Math.PI/2;c.push([E(i,o)+e+.9*n*Math.cos(h-t),E(i,o)+r+.9*a*Math.sin(h-t)]);let u=2*Math.PI+h-.01;for(let s=h;s<u;s+=t){let t=[E(i,o)+e+n*Math.cos(s),E(i,o)+r+a*Math.sin(s)];l.push(t),c.push(t)}c.push([E(i,o)+e+n*Math.cos(h+2*Math.PI+.5*s),E(i,o)+r+a*Math.sin(h+2*Math.PI+.5*s)]),c.push([E(i,o)+e+.98*n*Math.cos(h+s),E(i,o)+r+.98*a*Math.sin(h+s)]),c.push([E(i,o)+e+.9*n*Math.cos(h+.5*s),E(i,o)+r+.9*a*Math.sin(h+.5*s)])}return[c,l]}function N(t,e,r,n,a,i,s,o,l){let c=i+E(.1,l),h=[];h.push([E(o,l)+e+.9*n*Math.cos(c-t),E(o,l)+r+.9*a*Math.sin(c-t)]);for(let i=c;i<=s;i+=t)h.push([E(o,l)+e+n*Math.cos(i),E(o,l)+r+a*Math.sin(i)]);return h.push([e+n*Math.cos(s),r+a*Math.sin(s)]),h.push([e+n*Math.cos(s),r+a*Math.sin(s)]),D(h,null,l)}function j(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.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=[],i=1-e;n.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]+(i*r[t+1][0]-i*r[t-1][0])/6,e[1]+(i*r[t+1][1]-i*r[t-1][1])/6],a[2]=[r[t+1][0]+(i*r[t][0]-i*r[t+2][0])/6,r[t+1][1]+(i*r[t][1]-i*r[t+2][1])/6],a[3]=[r[t+1][0],r[t+1][1]],n.push(a[1],a[2],a[3])}}return n}function B(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function z(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function F(t,e,r,n,a){let i=a||[],s=t[e],o=t[r-1],l=0,c=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=B(e,r);if(0===n)return B(t,e);let a=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return B(t,z(e,r,a=Math.max(0,Math.min(1,a))))}(t[n],s,o);e>l&&(l=e,c=n)}return Math.sqrt(l)>n?(F(t,e,c+1,n,i),F(t,c,r,n,i)):(i.length||i.push(s),i.push(o)),i}function U(t,e=.15,r){let n=[],a=(t.length-1)/3;for(let r=0;r<a;r++)!function t(e,r,n,a){let i=a||[];if(function(t,e){let r=t[e+0],n=t[e+1],a=t[e+2],i=t[e+3],s=3*n[0]-2*r[0]-i[0];s*=s;let o=3*n[1]-2*r[1]-i[1];o*=o;let l=3*a[0]-2*i[0]-r[0];l*=l;let c=3*a[1]-2*i[1]-r[1];return c*=c,s<l&&(s=l),o<c&&(o=c),s+o}(e,r)<n){let t=e[r+0];i.length?Math.sqrt(B(i[i.length-1],t))>1&&i.push(t):i.push(t),i.push(e[r+3])}else{let a=e[r+0],s=e[r+1],o=e[r+2],l=e[r+3],c=z(a,s,.5),h=z(s,o,.5),u=z(o,l,.5),p=z(c,h,.5),d=z(h,u,.5),f=z(p,d,.5);t([a,c,p,f],0,n,i),t([f,d,u,l],0,n,i)}return i}(t,3*r,e,n);return r&&r>0?F(n,0,n.length,r):n}let W="none";class q{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,n,a){let i=this._o(a);return this._d("line",[k(t,e,r,n,i)],i)}rectangle(t,e,r,n,a){var i,s,o,l;let c=this._o(a),h=[],u=w([[i=t,s=e],[i+(o=r),s],[i+o,s+(l=n)],[i,s+l]],!0,c);if(c.fill){let a=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===c.fillStyle?h.push(T([a],c)):h.push($([a],c))}return c.stroke!==W&&h.push(u),this._d("rectangle",h,c)}ellipse(t,e,r,n,a){let i=this._o(a),s=[],o=v(r,n,i),l=S(t,e,i,o);if(i.fill)if("solid"===i.fillStyle){let r=S(t,e,i,o).opset;r.type="fillPath",s.push(r)}else s.push($([l.estimatedPoints],i));return i.stroke!==W&&s.push(l.opset),this._d("ellipse",s,i)}circle(t,e,r,n){let a=this.ellipse(t,e,r,r,n);return a.shape="circle",a}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,a,i,s=!1,o){let l=this._o(o),c=[],h=M(t,e,r,n,a,i,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){let s=Object.assign({},l);s.disableMultiStroke=!0;let o=M(t,e,r,n,a,i,!0,!1,s);o.type="fillPath",c.push(o)}else c.push(function(t,e,r,n,a,i,s){let o=Math.abs(r/2),l=Math.abs(n/2);o+=E(.01*o,s),l+=E(.01*l,s);let c=a,h=i;for(;c<0;)c+=2*Math.PI,h+=2*Math.PI;h-c>2*Math.PI&&(c=0,h=2*Math.PI);let u=(h-c)/s.curveStepCount,p=[];for(let r=c;r<=h;r+=u)p.push([t+o*Math.cos(r),e+l*Math.sin(r)]);return p.push([t+o*Math.cos(h),e+l*Math.sin(h)]),p.push([t,e]),$([p],s)}(t,e,r,n,a,i,l));return l.stroke!==W&&c.push(h),this._d("arc",c,l)}curve(t,e){let r=this._o(e),n=[],a=_(t,r);if(r.fill&&r.fill!==W)if("solid"===r.fillStyle){let e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...U(j([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...U(j(n),10,(1+r.roughness)/2));e.length&&n.push($([e],r))}return r.stroke!==W&&n.push(a),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],a=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push($([t],r))),r.stroke!==W&&n.push(a),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=r.fill&&"transparent"!==r.fill&&r.fill!==W,i=r.stroke!==W,s=!!(r.simplification&&r.simplification<1),o=function(t,e,r){let n=y(m(g(t))),a=[],i=[],s=[0,0],o=[],l=()=>{o.length>=4&&i.push(...U(o,1)),o=[]},c=()=>{l(),i.length&&(a.push(i),i=[])};for(let{key:t,data:e}of n)switch(t){case"M":c(),s=[e[0],e[1]],i.push(s);break;case"L":l(),i.push([e[0],e[1]]);break;case"C":if(!o.length){let t=i.length?i[i.length-1]:s;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":l(),i.push([s[0],s[1]])}if(c(),!r)return a;let h=[];for(let t of a){let e=F(t,0,t.length,r);e.length&&h.push(e)}return h}(t,0,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=A(t,r);if(a)if("solid"===r.fillStyle)if(1===o.length){let e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(o,r));else n.push($(o,r));return i&&(s?o.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.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,n=[];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&&n.push(e)}return n}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 H{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new q(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(let i of e)switch(i.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,i,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,i,a,e),n.restore();break}case"fillSketch":this.fillSketch(n,i,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.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(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,a){let i=this.gen.line(t,e,r,n,a);return this.draw(i),i}rectangle(t,e,r,n,a){let i=this.gen.rectangle(t,e,r,n,a);return this.draw(i),i}ellipse(t,e,r,n,a){let i=this.gen.ellipse(t,e,r,n,a);return this.draw(i),i}circle(t,e,r,n){let a=this.gen.circle(t,e,r,n);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,n,a,i,s=!1,o){let l=this.gen.arc(t,e,r,n,a,i,s,o);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 X{constructor(t,e){this.svg=t,this.gen=new q(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(Y,"g"),i=t.options.fixedDecimalPlaceDigits;for(let s of e){let e=null;switch(s.type){case"path":(e=n.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(s,i)),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=n.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(s,i)),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(n,s,r)}e&&a.appendChild(e)}return a}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=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",n+""),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,n,a){let i=this.gen.line(t,e,r,n,a);return this.draw(i)}rectangle(t,e,r,n,a){let i=this.gen.rectangle(t,e,r,n,a);return this.draw(i)}ellipse(t,e,r,n,a){let i=this.gen.ellipse(t,e,r,n,a);return this.draw(i)}circle(t,e,r,n){let a=this.gen.circle(t,e,r,n);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,n,a,i,s=!1,o){let l=this.gen.arc(t,e,r,n,a,i,s,o);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 G={canvas:(t,e)=>new H(t,e),svg:(t,e)=>new X(t,e),generator:t=>new q(t),newSeed:()=>q.newSeed()}},39020:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>u,GX:()=>h,KX:()=>c,WW:()=>o,ue:()=>i});var n=r(92826),a=r(88252),i=(0,a.K)(t=>{let{handDrawnSeed:e}=(0,n.D7)();return{fill:t,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:t,seed:e}},"solidStateFill"),s=(0,a.K)(t=>Array.isArray(t)?t:t?t.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),o=(0,a.K)(t=>{let e=l([...t.cssCompiledStyles||[],...t.cssStyles||[],...s(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),l=(0,a.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,n]=t.split(":");e.set(r.trim(),n?.trim())}),e},"styles2Map"),c=(0,a.K)(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"),h=(0,a.K)(t=>{let{stylesArray:e}=o(t),r=[],n=[],a=[],i=[];return e.forEach(t=>{let e=t[0];c(e)?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&a.push(t.join(":")+" !important"),"fill"===e&&i.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:i}},"styles2String"),u=(0,a.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:a}=(0,n.D7)(),{nodeBorder:i,mainBkg:s}=r,{stylesMap:l}=o(t);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:l.get("stroke")||i,seed:a,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:p(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),p=(0,a.K)(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")},40090:(t,e,r)=>{"use strict";r.d(e,{XX:()=>y,q7:()=>x,sO:()=>g});var n=r(57380),a=r(53652),i=r(77351),s=r(94712),o=r(73823),l=r(27058),c=r(92826),h=r(58442),u=r(88252),p={common:c.Y2,getConfig:c.zj,insertCluster:a.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:s.on,interpolateToCurve:l.Ib,labelHelper:o.Zk,log:h.R,positionEdgeLabel:i.T_},d=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],f=Object.create(null),g=(0,u.K)(t=>{for(let e of t)f[e.name]=e},"registerLayoutLoaders"),m=(0,u.K)(()=>{let t=(0,u.K)(async()=>await Promise.all([r.e(2427),r.e(4267),r.e(1807),r.e(9180),r.e(8712)]).then(r.bind(r,8712)),"loader");return[{name:"elk",loader:t,algorithm:"elk.layered"},...d.map(e=>({name:e,loader:t,algorithm:e}))]},"elkLayoutLoaders");(0,u.K)(()=>{g([{name:"dagre",loader:(0,u.K)(async()=>await Promise.all([r.e(4267),r.e(9180),r.e(6574)]).then(r.bind(r,66574)),"loader")},{name:"swimlane",loader:(0,u.K)(async()=>await Promise.all([r.e(2926),r.e(4267),r.e(1807),r.e(9180),r.e(199)]).then(r.bind(r,43659)),"loader")},{name:"cose-bilkent",loader:(0,u.K)(async()=>await Promise.all([r.e(9082),r.e(295)]).then(r.bind(r,90295)),"loader")},...m()])},"registerDefaultLayoutLoaders")();var y=(0,u.K)(async(t,e)=>{if(!Object.hasOwn(f,t.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=f[t.layoutAlgorithm],a=await r.loader();(0,n.F)(e,t.config);let s=await a.render(t,e,p,{algorithm:r.algorithm});return(0,i.h1)(e.node()),s},"render"),b="dagre",x=(0,u.K)((t="",{fallback:e=b}={})=>{if(Object.hasOwn(f,t))return t;for(let r of[e,b])if(Object.hasOwn(f,r))return h.R.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw Error(`Neither layout algorithm ${t}, ${e}, nor ${b} is registered.`)},"getRegisteredLayoutAlgorithm")},42316:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{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 i=(r/=100)<.5?r*(1+e):r+e-r*e,s=2*r-i;switch(a){case"r":return 255*n.hue2rgb(s,i,t+1/3);case"g":return 255*n.hue2rgb(s,i,t);case"b":return 255*n.hue2rgb(s,i,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let a=Math.max(t/=255,e/=255,r/=255),i=Math.min(t,e,r),s=(a+i)/2;if("l"===n)return 100*s;if(a===i)return 0;let o=a-i;if("s"===n)return 100*(s>.5?o/(2-a-i):o/(a+i));switch(a){case t:return((e-r)/o+6*(e<r))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return -1}}},a={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},48123:(t,e,r)=>{"use strict";function n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>n})},49380:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n=r(3229),a=r(18849);let i={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(i.re);if(!e)return;let r=e[1],a=parseInt(r,16),s=r.length,o=s%4==0,l=s>4,c=l?1:17,h=l?8:4,u=o?0:-1,p=l?255:15;return n.A.set({r:(a>>h*(u+3)&p)*c,g:(a>>h*(u+2)&p)*c,b:(a>>h*(u+1)&p)*c,a:o?(a&p)*c/255:1},t)},stringify:t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(n)]}${a.Y[Math.round(255*i)]}`:`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(n)]}`}};var s=r(42316);let o={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(o.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return s.A.channel.clamp.h(.9*parseFloat(t));case"rad":return s.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(t))}}return s.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(o.re);if(!r)return;let[,a,i,l,c,h]=r;return n.A.set({h:o._hue2deg(a),s:s.A.channel.clamp.s(parseFloat(i)),l:s.A.channel.clamp.l(parseFloat(l)),a:c?s.A.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{h:e,s:r,l:n,a}=t;return a<1?`hsla(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(n)}%, ${a})`:`hsl(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(n)}%)`}},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 i.parse(e)},stringify:t=>{let e=i.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},c={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(c.re);if(!r)return;let[,a,i,o,l,h,u,p,d]=r;return n.A.set({r:s.A.channel.clamp.r(i?2.55*parseFloat(a):parseFloat(a)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(u?2.55*parseFloat(h):parseFloat(h)),a:p?s.A.channel.clamp.a(d?parseFloat(p)/100:parseFloat(p)):1},t)},stringify:t=>{let{r:e,g:r,b:n,a}=t;return a<1?`rgba(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(n)}, ${s.A.lang.round(a)})`:`rgb(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(n)})`}},h={format:{keyword:l,hex:i,rgb:c,rgba:c,hsl:o,hsla:o},parse:t=>{if("string"!=typeof t)return t;let e=i.parse(t)||c.parse(t)||o.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?o.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?i.stringify(t):c.stringify(t)}},51044:(t,e,r)=>{"use strict";r.d(e,{P:()=>a});let n="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}()||Function("return this")();function a(t){return void 0!==n.Buffer&&n.Buffer.isBuffer(t)}},52361:(t,e,r)=>{"use strict";r.d(e,{WY:()=>A,dn:()=>M,rb:()=>v,pC:()=>_,Gc:()=>x});var n=r(92826),a=r(58442),i=r(88252);let s=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),o=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...o,...l}),h=Object.freeze({...c,body:"",hidden:!1});function u(t,e){let r=function(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}(t,e);for(let n in h)n in l?n in t&&!(n in r)&&(r[n]=l[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function p(t,e,r){let n=t.icons,a=t.aliases||Object.create(null),i={};function s(t){i=u(n[t]||a[t],i)}return s(e),r.forEach(s),u(t,i)}let d=Object.freeze({...Object.freeze({width:null,height:null}),...l}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(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 n=t.split(f);if(null===n||!n.length)return t;let a=[],i=n.shift(),s=g.test(i);for(;;){if(s){let t=parseFloat(i);isNaN(t)?a.push(i):a.push(Math.ceil(t*e*r)/r)}else a.push(i);if(void 0===(i=n.shift()))return a.join("");s=!s}}let y=/\sid="(\S+)"/g,b=new Map;var x={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},k=new Map,w=new Map,_=(0,i.K)(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.R.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else if("icons"in e)k.set(e.name,e.icons);else throw a.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),v=(0,i.K)(t=>k.has(t)||w.has(t),"isIconPackRegistered"),S=(0,i.K)(async(t,e)=>{let r=((t,e,r,n="")=>{let a=t.split(":");if("@"===t.slice(0,1)){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){let t=a.pop(),r=a.pop(),i={provider:a.length>0?a[0]:n,prefix:r,name:t};return e&&!s(i)?null:i}let i=a[0],o=i.split("-");if(o.length>1){let t={provider:n,prefix:o.shift(),name:o.join("-")};return e&&!s(t)?null:t}if(r&&""===n){let t={provider:n,prefix:"",name:i};return e&&!s(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let i=k.get(n);if(!i){let t=w.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{i={...await t(),prefix:n},k.set(n,i)}catch(t){throw a.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let o=function(t,e){if(t.icons[e])return p(t,e,[]);let r=function(t,e){let r=t.icons,n=t.aliases||Object.create(null),a=Object.create(null);return(e||Object.keys(r).concat(Object.keys(n))).forEach(function t(e){if(r[e])return a[e]=[];if(!(e in a)){a[e]=null;let r=n[e]&&n[e].parent,i=r&&t(r);i&&(a[e]=[r].concat(i))}return a[e]}),a}(t,[e])[e];return r?p(t,e,r):null}(i,r.name);if(!o)throw Error(`Icon not found: ${t}`);return o},"getRegisteredIconData"),M=(0,i.K)(async t=>{try{return await S(t),!0}catch{return!1}},"isIconAvailable"),A=(0,i.K)(async(t,e,r)=>{let i;try{i=await S(t,e?.fallbackPrefix)}catch(t){a.R.error(t),i=x}let s=function(t,e){let r,n,a={...c,...t},i={...d,...e},s={left:a.left,top:a.top,width:a.width,height:a.height},o=a.body;[a,i].forEach(t=>{let e,r=[],n=t.hFlip,a=t.vFlip,i=t.rotate;switch(n?a?i+=2:(r.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),r.push("scale(-1 1)"),s.top=s.left=0):a&&(r.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),r.push("scale(1 -1)"),s.top=s.left=0),i<0&&(i-=4*Math.floor(i/4)),i%=4){case 1:r.unshift("rotate(90 "+(e=s.height/2+s.top).toString()+" "+e.toString()+")");break;case 2:r.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:r.unshift("rotate(-90 "+(e=s.width/2+s.left).toString()+" "+e.toString()+")")}i%2==1&&(s.left!==s.top&&(e=s.left,s.left=s.top,s.top=e),s.width!==s.height&&(e=s.width,s.width=s.height,s.height=e)),r.length&&(o=function(t,e,r){var n,a;let i=function(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let a=t.indexOf(">",n),i=t.indexOf("</"+e);if(-1===a||-1===i)break;let s=t.indexOf(">",i);if(-1===s)break;r+=t.slice(a+1,i).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}(t);return n=i.defs,a=e+i.content+r,n?"<defs>"+n+"</defs>"+a:a}(o,'<g transform="'+r.join(" ")+'">',"</g>"))});let l=i.width,h=i.height,u=s.width,p=s.height;null===l?r=m(n=null===h?"1em":"auto"===h?p:h,u/p):(r="auto"===l?u:l,n=null===h?m(r,p/u):"auto"===h?p:h);let f={},g=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(f[t]=e.toString())};g("width",r),g("height",n);let y=[s.left,s.top,u,p];return f.viewBox=y.join(" "),{attributes:f,viewBox:y,body:o}}(i,e),o=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){let e,r=[];for(;e=y.exec(t);)r.push(e[1]);if(!r.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{let r=function(t){t=t.replace(/[0-9]+$/,"")||"a";let e=b.get(t)||0;return b.set(t,e+1),e?`${t}${e}`:t}(e),a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(s.body),{...s.attributes,...r});return(0,n.jZ)(o,(0,n.zj)())},"getIconSVG")},53161:(t,e,r)=>{"use strict";function n(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>n})},53652:(t,e,r)=>{"use strict";r.d(e,{IU:()=>K,U:()=>$,qV:()=>A});var n=r(94712),a=r(73823),i=r(39020),s=r(7322),o=r(55490),l=r(92826),c=r(58442),h=r(88252),u=r(93962),p=r(36761),d=(0,h.K)(async(t,e,{variant:r="swimlane"}={})=>{let n,h,d="pool"===r,f=d?"pool-title swimlane-title":"swimlane-title",g=d?"pool-body swimlane-body":"swimlane-body",m=(0,l.D7)(),{theme:y,themeVariables:b,handDrawnSeed:x}=m,{clusterBkg:k,clusterBorder:w,borderColorArray:_}=b,{labelStyles:v,nodeStyles:S,borderStyles:M,backgroundStyles:A}=(0,i.GX)(e),T=t.insert("g").attr("class","cluster "+(d?"pool swimlane":"swimlane")+" "+(e.cssClasses||"")).attr("id",e.domId??e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look);(0,o.XE)(T,e.colorIndex,y,_);let $=(0,l._3)(m.flowchart.htmlLabels),K="LR"===e.direction,L=T.insert("g").attr("class","cluster-label "+(d?"pool-label swimlane-label":"swimlane-label")),O=await (0,s.GZ)(L,e.label,{style:e.labelStyle,useHtmlLabels:$,isNode:!0,width:e.width}),E=O.getBBox();if($){let t=O.children[0],e=(0,u.Lt)(O);E=t.getBoundingClientRect(),e.attr("width",E.width),e.attr("height",E.height)}let C=e.padding??0,R=e.width<=E.width+C?E.width+C:e.width;e.width<=E.width+C?e.diff=(R-e.width)/2-C:e.diff=-C;let P=e.height,D=e.y-P/2,I=e.y+P/2,N=e.x-R/2,j=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:D+P/3,B=4*!!K,z=E.height+2*B;if(K){let t=Math.max(z,E.height+2*B),r=N+t,a=Math.max(0,R-t);if("handDrawn"===e.look){let s=p.A.svg(T),o=(0,i.Fr)(e,{roughness:.7,fill:k,stroke:w,seed:x}),l=(0,i.Fr)(e,{roughness:.7,fill:"none",stroke:w,seed:x}),c=s.rectangle(N,D,t,P,o);n=T.insert(()=>c,":first-child").attr("class",f);let u=s.rectangle(r,D,a,P,l);h=T.insert(()=>u,":first-child").attr("class",g),n.select("path:nth-child(2)").attr("style",M.join(";")),n.select("path").attr("style",A.join(";").replace("fill","stroke"))}else n=T.insert("rect",":first-child"),h=T.insert("rect",":first-child"),n.attr("class",f).attr("style",S).attr("x",N).attr("y",D).attr("width",t).attr("height",P).attr("fill",k).attr("stroke",w),h.attr("class",g).attr("style",S).attr("x",r).attr("y",D).attr("width",a).attr("height",P).attr("fill","none").attr("stroke",w);let s=N+t/2,o=e.y;L.attr("transform",`translate(${s}, ${o}) rotate(-90) translate(${-E.width/2}, ${-E.height/2})`)}else{let t=Math.min(z,Math.max(0,j-D)),r=D+t,a=Math.max(0,I-r),s=e.x-R/2;if("handDrawn"===e.look){let o=p.A.svg(T),l=(0,i.Fr)(e,{roughness:.7,fill:k,stroke:w,fillWeight:3,seed:x}),c=(0,i.Fr)(e,{roughness:.7,fill:"none",stroke:w,seed:x}),u=o.rectangle(s,D,R,t,l);n=T.insert(()=>u,":first-child").attr("class",f);let d=o.rectangle(s,r,R,a,c);h=T.insert(()=>d,":first-child").attr("class",g),n.select("path:nth-child(2)").attr("style",M.join(";")),n.select("path").attr("style",A.join(";").replace("fill","stroke"))}else n=T.insert("rect",":first-child"),h=T.insert("rect",":first-child"),n.attr("class",f).attr("style",S).attr("x",s).attr("y",D).attr("width",R).attr("height",t).attr("fill",k).attr("stroke",w),h.attr("class",g).attr("style",S).attr("x",s).attr("y",r).attr("width",R).attr("height",a).attr("fill","none").attr("stroke",w);let o=e.x-E.width/2,l=D+(t-E.height)/2;L.attr("transform",`translate(${o}, ${l})`)}if(c.R.trace("Swimlane data ",e,JSON.stringify(e)),v){let t=L.select("span");t&&t.attr("style",v)}return e.offsetX=0,e.width=R,e.height=P,e.offsetY=E.height-C/2,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:T,labelBBox:E}},"swimlane"),f=(0,h.K)(async(t,e)=>{let r,h;c.R.info("Creating subgraph rect for ",e.id,e);let d=(0,l.D7)(),{theme:f,themeVariables:g,handDrawnSeed:m}=d,{clusterBkg:y,clusterBorder:b,borderColorArray:x}=g,{labelStyles:k,nodeStyles:w,borderStyles:_,backgroundStyles:v}=(0,i.GX)(e),S=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);(0,o.XE)(S,e.colorIndex,f,x);let M=(0,l.E)(d),A=S.insert("g").attr("class","cluster-label "),T=(r="markdown"===e.labelType?await (0,s.GZ)(A,e.label,{style:e.labelStyle,useHtmlLabels:M,isNode:!0,width:e.width}):await (0,a.DA)(A,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,l.E)(d)){let t=r.children[0],e=(0,u.Lt)(r);T=t.getBoundingClientRect(),e.attr("width",T.width),e.attr("height",T.height)}let $=e.width<=T.width+e.padding?T.width+e.padding:e.width;e.width<=T.width+e.padding?e.diff=($-e.width)/2-e.padding:e.diff=-e.padding;let K=e.height,L=e.x-$/2,O=e.y-K/2;if(c.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=p.A.svg(S),r=(0,i.Fr)(e,{roughness:.7,fill:y,stroke:b,fillWeight:3,seed:m}),n=t.path((0,a.FA)(L,O,$,K,0),r);(h=S.insert(()=>(c.R.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",_.join(";")),h.select("path").attr("style",v.join(";").replace("fill","stroke"))}else(h=S.insert("rect",":first-child")).attr("style",w).attr("rx",e.rx).attr("ry",e.ry).attr("x",L).attr("y",O).attr("width",$).attr("height",K);let{subGraphTitleTopMargin:E}=(0,n.Oi)(d);if(A.attr("transform",`translate(${e.x-T.width/2}, ${e.y-e.height/2+E})`),k){let t=A.select("span");t&&t.attr("style",k)}let C=h.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=T.height-e.padding/2,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:S,labelBBox:T}},"rect"),g=(0,h.K)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),i=0*e.padding,s=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-s).attr("y",e.y-e.height/2-s).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let o=n.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),m=(0,h.K)(async(t,e)=>{let r,n=(0,l.D7)(),{theme:i,themeVariables:s,handDrawnSeed:c}=n,{altBackground:h,borderColorArray:d,compositeBackground:f,compositeTitleBackground:g,nodeBorder:m}=s,y=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);(0,o.XE)(y,e.colorIndex,i,d);let b=y.insert("g",":first-child"),x=y.insert("g").attr("class","cluster-label"),k=y.append("rect"),w=await (0,a.DA)(x,e.label,e.labelStyle,void 0,!0),_=w.getBBox();if((0,l.E)(n)){let t=w.children[0],e=(0,u.Lt)(w);_=t.getBoundingClientRect(),e.attr("width",_.width),e.attr("height",_.height)}let v=0*e.padding,S=(e.width<=_.width+e.padding?_.width+e.padding:e.width)+v;e.width<=_.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;let M=e.height+v,A=e.height+v-_.height-6,T=e.x-S/2,$=e.y-M/2;e.width=S;let K=e.y-e.height/2-v/2+_.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),n=p.A.svg(y),i=e.rx||e.ry?n.path((0,a.FA)(T,$,S,M,10),{roughness:.7,fill:g,fillStyle:"solid",stroke:m,seed:c}):n.rectangle(T,$,S,M,{seed:c});r=y.insert(()=>i,":first-child");let s=n.rectangle(T,K,S,A,{fill:t?h:f,fillStyle:t?"hachure":"solid",stroke:m,seed:c});r=y.insert(()=>i,":first-child"),k=y.insert(()=>s),r.attr("class","outer"),k.attr("class","inner")}else(r=b.insert("rect",":first-child")).attr("class","outer").attr("x",T).attr("y",$).attr("width",S).attr("height",M).attr("data-look",e.look),k.attr("class","inner").attr("x",T).attr("y",K).attr("width",S).attr("height",A);return x.attr("transform",`translate(${e.x-_.width/2}, ${$+1-3*!(0,l.E)(n)})`),e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=_.height-e.padding/2,e.labelBBox=_,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:y,labelBBox:_}},"roundedWithTitle"),y=(0,h.K)(async(t,e)=>{let r;c.R.info("Creating subgraph rect for ",e.id,e);let o=(0,l.D7)(),{themeVariables:h,handDrawnSeed:d}=o,{clusterBkg:f,clusterBorder:g}=h,{labelStyles:m,nodeStyles:y,borderStyles:b,backgroundStyles:x}=(0,i.GX)(e),k=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),w=(0,l.E)(o),_=k.insert("g").attr("class","cluster-label "),v=await (0,s.GZ)(_,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}),S=v.getBBox();if((0,l.E)(o)){let t=v.children[0],e=(0,u.Lt)(v);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let M=e.width<=S.width+e.padding?S.width+e.padding:e.width;e.width<=S.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let A=e.height,T=e.x-M/2,$=e.y-A/2;if(c.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=p.A.svg(k),n=(0,i.Fr)(e,{roughness:.7,fill:f,stroke:g,fillWeight:4,seed:d}),s=t.path((0,a.FA)(T,$,M,A,e.rx),n);(r=k.insert(()=>(c.R.debug("Rough node insert CXC",s),s),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(r=k.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",$).attr("width",M).attr("height",A);let{subGraphTitleTopMargin:K}=(0,n.Oi)(o);if(_.attr("transform",`translate(${e.x-S.width/2}, ${e.y-e.height/2+K})`),m){let t=_.select("span");t&&t.attr("style",m)}let L=r.node().getBBox();return e.offsetX=0,e.width=L.width,e.height=L.height,e.offsetY=S.height-e.padding/2,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:k,labelBBox:S}},"kanbanSection"),b=(0,h.K)((t,e)=>{let r,{theme:n,themeVariables:i,handDrawnSeed:s}=(0,l.D7)(),{altBackground:c,nodeBorder:h,borderColorArray:u}=i,d=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);(0,o.XE)(d,e.colorIndex,n,u);let f=d.insert("g",":first-child"),g=0*e.padding,m=e.width+g;e.diff=-e.padding;let y=e.height+g,b=e.x-m/2,x=e.y-y/2;if(e.width=m,"handDrawn"===e.look){let t=p.A.svg(d).rectangle(b,x,m,y,{fill:c??"#efefef",fillStyle:"solid",roughness:.5,strokeLineDash:[5],stroke:h,seed:s});r=d.insert(()=>t,":first-child").attr("class","divider")}else{r=f.insert("rect",":first-child");let t="outer";e.look,t="divider",r.attr("class",t).attr("x",b).attr("y",x).attr("width",m).attr("height",y).attr("data-look",e.look)}return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:d,labelBBox:{}}},"divider"),x=(0,h.K)(async(t,e,r)=>{let h;c.R.info(`Creating ${r.cssClass} for `,e.id,e);let d=(0,l.D7)(),{theme:f,themeVariables:g,handDrawnSeed:m}=d,{borderColorArray:y}=g,{labelStyles:b,borderStyles:x}=(0,i.GX)(e),k=t.insert("g").attr("class","cluster "+r.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);(0,o.XE)(k,e.colorIndex,f,y);let w=(0,l.E)(d),_=k.insert("g").attr("class","cluster-label"),v={width:0,height:0},S=e.label?.trim();if(S){let t;if(v=(t="markdown"===e.labelType?await (0,s.GZ)(_,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}):await (0,a.DA)(_,e.label,e.labelStyle||"",!1,!0)).getBBox(),w){let e=t.children[0],r=(0,u.Lt)(t);v=e.getBoundingClientRect(),r.attr("width",v.width),r.attr("height",v.height)}}let M=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let A=e.height,T=e.x-M/2,$=e.y-A/2;if("handDrawn"===e.look){let t=p.A.svg(k),n=(0,i.Fr)(e,{roughness:r.roughness,fill:r.fill,stroke:r.stroke,strokeWidth:r.strokeWidth,seed:m,..."none"===r.fill?{fillWeight:0}:{fillStyle:"solid"},...r.strokeDash?{strokeLineDash:r.strokeDash}:{}}),s=t.path((0,a.FA)(T,$,M,A,r.rx),n);(h=k.insert(()=>s,":first-child")).select("path:nth-child(2)").attr("style",x.join(";"))}else(h=k.insert("rect",":first-child")).attr("rx",r.rx).attr("ry",r.rx).attr("x",T).attr("y",$).attr("width",M).attr("height",A).attr("fill",r.fill).attr("stroke",r.stroke).attr("stroke-width",r.strokeWidth+"px"),r.strokeDash&&h.attr("stroke-dasharray",r.strokeDash.join(", "));if(S){let{subGraphTitleTopMargin:t}=(0,n.Oi)(d);if(_.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+t})`),b){let t=_.select("span");t&&t.attr("style",b)}}let K=h.node().getBBox();return e.offsetX=0,e.width=K.width,e.height=K.height,e.offsetY=v.height-e.padding/2,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:k,labelBBox:v}},"createContainerGroup"),k=(0,h.K)(async(t,e)=>{let{themeVariables:r}=(0,l.D7)();return x(t,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:r.flowContainerStroke||r.secondaryBorderColor,strokeWidth:.75,roughness:.7})},"flowGroup"),w=(0,h.K)((t,e)=>{let r=t.boundaryType||"rect",n="package"===r?20:t.padding,a="package"===r?e.height+10:0,i=Math.max(t.width,e.width+n),s="package"===r?Math.max(t.height,a+2*t.padding):t.height,o=t.x-i/2,l=t.y-s/2;return{boundaryType:r,width:i,height:s,x:o,y:l,bodyY:l+a,bodyHeight:s-a,tabHeight:a,tabWidth:"package"===r?Math.min(i,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),_=(0,h.K)(async(t,e)=>{c.R.info("Creating usecase system boundary for ",e.id,e);let r=(0,l.D7)(),{theme:h,themeVariables:d,handDrawnSeed:f}=r,{clusterBkg:g,clusterBorder:m,borderColorArray:y}=d,{labelStyles:b,nodeStyles:x}=(0,i.GX)(e),{stylesMap:k}=(0,i.WW)(e),_=e.boundaryType||"rect",v=t.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${_} ${e.cssClasses}`).attr("id","string"==typeof e.domId?e.domId:e.id).attr("data-boundary-type",_).attr("data-look",e.look);(0,o.XE)(v,e.colorIndex,h,y);let S=(0,l.E)(r),M=v.insert("g").attr("class","cluster-label system-boundary-title"),A=await (0,s.GZ)(M,e.label,{style:b,useHtmlLabels:S,isNode:!0}),T=A.getBBox();if(S){let t=A.children[0],e=(0,u.Lt)(A);T=t.getBoundingClientRect(),e.attr("width",T.width),e.attr("height",T.height)}let{width:$,height:K,x:L,y:O,bodyY:E,bodyHeight:C,tabHeight:R,tabWidth:P}=w(e,T);e.diff=e.width<=T.width+e.padding?($-e.width)/2-e.padding:-e.padding;let D=(0,i.Fr)(e,{fill:k.get("fill")||g,stroke:k.get("stroke")||m,strokeWidth:k.get("stroke-width")?.replace("px","")||1,seed:f});if("handDrawn"===e.look){let t=p.A.svg(v),e=t.rectangle(L,E,$,C,D);if(v.insert(()=>e,":first-child").attr("class","boundary-body label-container"),"package"===_){let e=t.rectangle(L,O,P,R,D);v.insert(()=>e,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else v.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",x).attr("x",L).attr("y",E).attr("width",$).attr("height",C),"package"===_&&v.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",x).attr("x",L).attr("y",O).attr("width",P).attr("height",R);let{subGraphTitleTopMargin:I}=(0,n.Oi)(r);return"package"===_?M.attr("transform",`translate(${L+(P-T.width)/2}, ${O+(R-T.height)/2})`):M.attr("transform",`translate(${e.x-T.width/2}, ${O+I})`),b&&(M.attr("style",b),M.select("span").attr("style",b)),e.offsetX=0,e.width=$,e.height=K,e.offsetY=T.height-e.padding/2,e.labelBBox=T,e.intersect=function(t){return(0,a.nM)(e,t)},{cluster:v,labelBBox:T}},"usecaseSystemBoundary"),v=(0,h.K)((t,e)=>d(t,e,{variant:"pool"}),"pool"),S={rect:f,squareRect:f,roundedWithTitle:m,noteGroup:g,divider:b,kanbanSection:y,flowGroup:k,usecaseSystemBoundary:_,swimlane:d,pool:v},M=new Set(["noteGroup","divider"]),A=(0,h.K)(t=>!M.has(t??"rect"),"clusterPaintsTitle"),T=new Map,$=(0,h.K)(async(t,e)=>{let r=e.shape||"rect",n=await S[r](t,e);return T.set(e.id,n),n},"insertCluster"),K=(0,h.K)(()=>{T=new Map},"clear")},55490:(t,e,r)=>{"use strict";r.d(e,{Fx:()=>a,Hu:()=>c,Ic:()=>i,P1:()=>s,XE:()=>u,nw:()=>h,rq:()=>l});var n=r(88252),a=new Set(["redux-color","redux-dark-color"]),i=(0,n.K)(t=>Array.isArray(t)&&t.length>0,"hasPalette"),s=(0,n.K)((t,e)=>null!=t&&a.has(t)&&i(e),"isColorTheme"),o=/^[\w-]+$/,l=(0,n.K)(t=>{let e="string"==typeof t||"number"==typeof t?String(t):"";return o.test(e)?e:"classic"},"safeLook"),c=(0,n.K)(t=>i(t)?t.length:0,"paletteSlotCount"),h=(0,n.K)((t,e)=>i(e)?c(e):"number"==typeof t&&Number.isInteger(t)&&t>0&&t<=64?t:12,"colorSlotCount"),u=(0,n.K)((t,e,r,n)=>{if(void 0===e||!s(r,n))return;let a=e%c(n);t.attr("data-color-id",`color-${a}`)},"stampColorSlot")},56384:(t,e,r)=>{"use strict";r.d(e,{D:()=>s});var n=r(92826),a=r(88252),i=r(93962),s=(0,a.K)(t=>{let{securityLevel:e}=(0,n.D7)(),r=(0,i.Lt)("body");if("sandbox"===e){let e=(0,i.Lt)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,i.Lt)(n.body)}return r.select(`#${t}`)},"selectSvgElement")},57380:(t,e,r)=>{"use strict";r.d(e,{F:()=>a});var n=r(88252),a=(0,n.K)((t,e)=>{let{theme:r,themeVariables:a}=e,{useGradient:i,gradientStart:s,gradientStop:o}=a??{},l=t.attr("id"),c=r?.includes("dark")?"#FFFFFF":"#000000",h=(0,n.K)((e,r,n)=>t.append("defs").append("filter").attr("id",e).attr("height",r).attr("width",r).append("feDropShadow").attr("dx",n).attr("dy",n).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",c),"dropShadow");if(h(`${l}-drop-shadow`,"130%","4"),h(`${l}-drop-shadow-small`,"150%","2"),!i)return;let u=t.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");u.append("svg:stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),u.append("svg:stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)},"insertLookDefs")},57710:(t,e,r)=>{"use strict";function n(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>n})},58442:(t,e,r)=>{"use strict";r.d(e,{H:()=>o,R:()=>s});var n=r(88252),a=r(94089),i={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},o=(0,n.K)(function(t="fatal"){let e=i.fatal;"string"==typeof t?t.toLowerCase()in i&&(e=i[t]):"number"==typeof t&&(e=t),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},e<=i.fatal&&(s.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=i.error&&(s.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=i.warn&&(s.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,l("WARN"))),e<=i.info&&(s.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=i.debug&&(s.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=i.trace&&(s.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=a().format("ss.SSS");return`%c${e} : ${t} : `},"format")},70496:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(25016);let a=(t,e)=>(0,n.A)(t,"l",-e)},73884:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>r2});var n,a=r(10622),i=r(40090);r(57380);var s=r(56384);r(53652),r(77351),r(94712),r(73823),r(39020),r(7322);var o=r(52361);r(55490);var l=r(27058),c=r(92826),h=r(58442),u=r(88252),p=r(22481),d=r(93962),f="comm",g="rule",m="decl",y="@keyframes",b="@layer",x=Math.abs,k=String.fromCharCode;function w(t,e,r){return t.replace(e,r)}function _(t,e){return 0|t.charCodeAt(e)}function v(t,e,r){return t.slice(e,r)}function S(t){return t.length}function M(t,e){return e.push(t),t}function A(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function T(t,e,r,n){switch(t.type){case b:if(t.children.length)break;case"@import":case"@namespace":case m:return t.return=t.return||t.value;case f:return"";case y:return t.return=t.value+"{"+A(t.children,n)+"}";case g:if(!S(t.value=t.props.join(",")))return""}return S(r=A(t.children,n))?t.return=t.value+"{"+r+"}":""}Object.assign;var $=1,K=1,L=0,O=0,E=0,C="";function R(t,e,r,n,a,i,s,o){return{value:t,root:e,parent:r,type:n,props:a,children:i,line:$,column:K,length:s,return:"",siblings:o}}function P(){return E=O<L?_(C,O++):0,K++,10===E&&(K=1,$++),E}function D(){return _(C,O)}function I(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 N(t){var e,r;return(e=O-1,r=function t(e){for(;P();)switch(E){case e:return O;case 34:case 39:34!==e&&39!==e&&t(E);break;case 40:41===e&&t(e);break;case 92:P()}return O}(91===t?t+2:40===t?t+1:t),v(C,e,r)).trim()}function j(t,e,r,n,a,i,s,o,l,c,h,u){for(var p=a-1,d=0===a?i:[""],f=d.length,m=0,y=0,b=0;m<n;++m)for(var k=0,_=v(t,p+1,p=x(y=s[m])),S=t;k<f;++k)(S=(y>0?d[k]+" "+_:w(_,/&\f/g,d[k])).trim())&&(l[b++]=S);return R(t,e,r,0===a?g:o,l,c,h,u)}function B(t,e,r,n,a){return R(t,e,r,m,v(t,0,n),v(t,n+1,-1),n,a)}var z=r(24190),F=r(36299),U=r(57710),W=r(11532),q=r(51044);function H(t){if(null==t)return!0;if((0,U.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,q.P)(t)||!!(0,W.i)(t)||!!(0,F.N)(t))&&0===t.length;if("object"==typeof t){if(t instanceof Map||t instanceof Set)return 0===t.size;let e=Object.keys(t);return!function(t){let e=t?.constructor;return t===("function"==typeof e?e.prototype:Object.prototype)}(t)?0===e.length:0===e.filter(t=>"constructor"!==t).length}return!0}var Y={id:"c4",detector:(0,u.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(5056).then(r.bind(r,95056));return{id:"c4",diagram:t}},"loader")},X="flowchart-v2",G=(0,u.K)(t=>/^\s*(graph|flowchart)/.test(t),"detector"),Z=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(92),r.e(5850)]).then(r.bind(r,75850));return{id:X,diagram:t}},"loader"),V={id:X,detector:G,loader:Z},Q="agentflow",J=(0,u.K)(t=>/^\s*agentflow-beta\b/.test(t),"detector"),tt=(0,u.K)(async()=>{let{diagram:t}=await r.e(6927).then(r.bind(r,36927));return{id:Q,diagram:t}},"loader"),te={id:Q,detector:J,loader:tt},tr="swimlane",tn=(0,u.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),ta=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(92),r.e(5741)]).then(r.bind(r,85741));return{id:tr,diagram:t}},"loader"),ti={id:tr,detector:tn,loader:ta},ts={id:"er",detector:(0,u.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(2477).then(r.bind(r,72477));return{id:"er",diagram:t}},"loader")},to="gitGraph",tl=(0,u.K)(t=>/^\s*gitGraph/.test(t),"detector"),tc=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(2555)]).then(r.bind(r,12555));return{id:to,diagram:t}},"loader"),th={id:to,detector:tl,loader:tc},tu="gantt",tp=(0,u.K)(t=>/^\s*gantt/.test(t),"detector"),td=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7423),r.e(7796)]).then(r.bind(r,27796));return{id:tu,diagram:t}},"loader"),tf={id:tu,detector:tp,loader:td},tg="info",tm=(0,u.K)(t=>/^\s*info/.test(t),"detector"),ty=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(1494)]).then(r.bind(r,91494));return{id:tg,diagram:t}},"loader"),tb={id:tg,detector:tm,loader:ty},tx={id:"pie",detector:(0,u.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(7423),r.e(1208)]).then(r.bind(r,58827));return{id:"pie",diagram:t}},"loader")},tk="quadrantChart",tw=(0,u.K)(t=>/^\s*quadrantChart/.test(t),"detector"),t_=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7423),r.e(2612)]).then(r.bind(r,42612));return{id:tk,diagram:t}},"loader"),tv={id:tk,detector:tw,loader:t_},tS="xychart",tM=(0,u.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tA=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7423),r.e(9599)]).then(r.bind(r,59599));return{id:tS,diagram:t}},"loader"),tT={id:tS,detector:tM,loader:tA},t$="requirement",tK=(0,u.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tL=(0,u.K)(async()=>{let{diagram:t}=await r.e(6694).then(r.bind(r,6694));return{id:t$,diagram:t}},"loader"),tO={id:t$,detector:tK,loader:tL},tE="sequence",tC=(0,u.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tR=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5103),r.e(4808)]).then(r.bind(r,80809));return{id:tE,diagram:t}},"loader"),tP={id:tE,detector:tC,loader:tR},tD="classDiagram",tI=(0,u.K)(t=>/^\s*classDiagram/.test(t),"detector"),tN=(0,u.K)(async()=>{let{diagram:t}=await r.e(3047).then(r.bind(r,43047));return{id:tD,diagram:t}},"loader"),tj={id:tD,detector:tI,loader:tN},tB="stateDiagram",tz=(0,u.K)(t=>/^\s*stateDiagram/.test(t),"detector"),tF=(0,u.K)(async()=>{let{diagram:t}=await r.e(8558).then(r.bind(r,68558));return{id:tB,diagram:t}},"loader"),tU={id:tB,detector:tz,loader:tF},tW="journey",tq=(0,u.K)(t=>/^\s*journey/.test(t),"detector"),tH=(0,u.K)(async()=>{let{diagram:t}=await r.e(2329).then(r.bind(r,22329));return{id:tW,diagram:t}},"loader"),tY={id:tW,detector:tq,loader:tH},tX=(0,u.K)(t=>{let e=[];for(let r of t.split(/\s+/)){let t=[...r];for(;t.length>75;)e.push(t.slice(0,75).join("")),t=t.slice(75);t.length>0&&e.push(t.join(""))}let r=[],n="";for(let t of e){let e=n?`${n} ${t}`:t;[...e].length>75?(r.push(n),n=t):n=e}if(n&&r.push(n),r.length>4){r.length=4;let t=r[3]??"";r[3]=`${[...t].slice(0,72).join("")}...`}return r},"wrapErrorMessage"),tG={draw:(0,u.K)((t,e,r,n)=>{h.R.debug("rendering svg for syntax error\n");let a=(0,s.D)(e),i=a.append("g"),o=tX(n?.db.getErrorMessage?.()??""),l=o.length>0?500+56*o.length:512;a.attr("viewBox",`0 0 2412 ${l}`),(0,c.a$)(a,100,l,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),o.forEach((t,e)=>{i.append("text").attr("class","error-text").attr("x",1440).attr("y",510+56*e).attr("font-size","42px").style("text-anchor","middle").text(t)})},"draw")},tZ={db:{clear(){n=void 0},setErrorMessage(t){n=t},getErrorMessage:()=>n},renderer:tG,parser:{parse:(0,u.K)(()=>{},"parse")}},tV="flowchart-elk",tQ=(0,u.K)((t,e={})=>!!/^\s*flowchart-elk/.test(t)&&(e.layout="elk",!0),"detector"),tJ=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(92),r.e(5850)]).then(r.bind(r,75850));return{id:tV,diagram:t}},"loader"),t0={id:tV,detector:tQ,loader:tJ},t1="timeline",t2=(0,u.K)(t=>/^\s*timeline/.test(t),"detector"),t3=(0,u.K)(async()=>{let{diagram:t}=await r.e(8148).then(r.bind(r,78148));return{id:t1,diagram:t}},"loader"),t5={id:t1,detector:t2,loader:t3},t6="mindmap",t8=(0,u.K)(t=>/^\s*mindmap/.test(t),"detector"),t9=(0,u.K)(async()=>{let{diagram:t}=await r.e(8680).then(r.bind(r,8680));return{id:t6,diagram:t}},"loader"),t4={id:t6,detector:t8,loader:t9},t7="kanban",et=(0,u.K)(t=>/^\s*kanban/.test(t),"detector"),ee=(0,u.K)(async()=>{let{diagram:t}=await r.e(9590).then(r.bind(r,39590));return{id:t7,diagram:t}},"loader"),er={id:t7,detector:et,loader:ee},en="sankey",ea=(0,u.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ei=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7423),r.e(5593)]).then(r.bind(r,95593));return{id:en,diagram:t}},"loader"),es={id:en,detector:ea,loader:ei},eo="packet",el=(0,u.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),ec=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(391)]).then(r.bind(r,20391));return{id:eo,diagram:t}},"loader"),eh={id:eo,detector:el,loader:ec},eu="radar",ep=(0,u.K)(t=>/^\s*radar-beta/.test(t),"detector"),ed=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(7443)]).then(r.bind(r,97443));return{id:eu,diagram:t}},"loader"),ef={id:eu,detector:ep,loader:ed},eg="block",em=(0,u.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),ey=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4267),r.e(9142)]).then(r.bind(r,99142));return{id:eg,diagram:t}},"loader"),eb={id:eg,detector:em,loader:ey},ex="treeView",ek=(0,u.K)(t=>/^\s*treeView-beta/.test(t),"detector"),ew=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(6390)]).then(r.bind(r,66390));return{id:ex,diagram:t}},"loader"),e_={id:ex,detector:ek,loader:ew},ev="architecture",eS=(0,u.K)(t=>/^\s*architecture/.test(t),"detector"),eM=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(9082),r.e(7267),r.e(3023)]).then(r.bind(r,33023));return{id:ev,diagram:t}},"loader"),eA={id:ev,detector:eS,loader:eM},eT="eventmodeling",e$=(0,u.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eK=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(8555)]).then(r.bind(r,68555));return{id:eT,diagram:t}},"loader"),eL={id:eT,detector:e$,loader:eK},eO="ishikawa",eE=(0,u.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eC=(0,u.K)(async()=>{let{diagram:t}=await r.e(8300).then(r.bind(r,18300));return{id:eO,diagram:t}},"loader"),eR={id:eO,detector:eE,loader:eC},eP="venn",eD=(0,u.K)(t=>/^\s*venn-beta/.test(t),"detector"),eI=(0,u.K)(async()=>{let{diagram:t}=await r.e(1299).then(r.bind(r,81299));return{id:eP,diagram:t}},"loader"),eN={id:eP,detector:eD,loader:eI},ej="treemap",eB=(0,u.K)(t=>/^\s*treemap/.test(t),"detector"),ez=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(7423),r.e(9937)]).then(r.bind(r,9937));return{id:ej,diagram:t}},"loader"),eF={id:ej,detector:eB,loader:ez},eU="usecase",eW=(0,u.K)(t=>/^\s*usecase-beta(?:\s|$)/.test(t),"detector"),eq=(0,u.K)(async()=>{let{diagram:t}=await r.e(8771).then(r.bind(r,28771));return{id:eU,diagram:t}},"loader"),eH={id:eU,detector:eW,loader:eq},eY="wardley",eX=(0,u.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eG=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(8608)]).then(r.bind(r,18608));return{id:eY,diagram:t}},"loader"),eZ={id:eY,detector:eX,loader:eG},eV="cynefin",eQ=(0,u.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),eJ=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(1650)]).then(r.bind(r,71650));return{id:eV,diagram:t}},"loader"),e0={id:eV,detector:eQ,loader:eJ},e1="railroad",e2=(0,u.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e3=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(6066),r.e(7573)]).then(r.bind(r,37573));return{id:e1,diagram:t}},"loader"),e5={id:e1,detector:e2,loader:e3},e6="railroadEbnf",e8=(0,u.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),e9=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(6066),r.e(6203)]).then(r.bind(r,6203));return{id:e6,diagram:t}},"loader"),e4={id:e6,detector:e8,loader:e9},e7="railroadAbnf",rt=(0,u.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),re=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(6066),r.e(2938)]).then(r.bind(r,32938));return{id:e7,diagram:t}},"loader"),rr={id:e7,detector:rt,loader:re},rn="railroadPeg",ra=(0,u.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),ri=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3755),r.e(7267),r.e(6066),r.e(7498)]).then(r.bind(r,37498));return{id:rn,diagram:t}},"loader"),rs={id:rn,detector:ra,loader:ri},ro=!1,rl=(0,u.K)(()=>{ro||(ro=!0,(0,c.Js)("error",tZ,t=>"error"===t.toLowerCase().trim()),(0,c.Js)("---",{db:{clear:(0,u.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,u.K)(()=>{},"draw")},parser:{parse:(0,u.K)(()=>{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,u.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,c.Xd)(t0,t4,eA),(0,c.Xd)(te,Y,er,tj,ts,tf,tb,tx,tO,tP,ti,V,t5,th,tU,tY,tv,es,eh,tT,eb,eL,e_,ef,eR,eF,e5,e4,rr,rs,eN,eZ,e0,eH))},"addDiagrams"),rc=(0,u.K)(async()=>{h.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(c.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,c.Gs)(t)}catch{try{let{diagram:t,id:n}=await r();(0,c.Js)(n,t,e)}catch(e){throw h.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete c.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(h.R.error(`Failed to load ${t.length} external diagrams`),t))h.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rh(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function ru(t,e,r,n){if(void 0!==t.insert){if(r){let e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,u.K)(rh,"setA11yDiagramInfo"),(0,u.K)(ru,"addSVGa11yTitleDescription");var rp=class t{constructor(t,e,r,n,a){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=a}static{(0,u.K)(this,"Diagram")}static async fromText(e,r={}){let n="string"==typeof e?{raw:e,cleaned:e}:e,a=(0,c.zj)(),i=(0,c.Ch)(n.cleaned,a);try{(0,c.Gs)(i)}catch{let t=(0,c.J$)(i);if(!t)throw new c.C0(`Diagram ${i} not found.`);let{id:e,diagram:r}=await t();(0,c.Js)(e,r)}let{db:s,parser:o,renderer:u,init:p}=(0,c.Gs)(i);o.parser&&(o.parser.yy=s),s.clear?.(),p?.(a),r.title&&s.setDiagramTitle?.(r.title);let d=n.cleaned;if(s.preserveCommentsWhenParsing&&n.withComments){let t=a.maxTextSize??c.UI.maxTextSize;n.withComments.length>t?h.R.warn(`Comment-preserving source exceeds maxTextSize (${n.withComments.length} > ${t}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):d=n.withComments}let f=(0,l.C4)(d)+"\n";return n.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(n.frontmatterLineOffset),await o.parse(f),new t(i,f,s,o,u)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rd=[],rf=(0,u.K)(()=>{rd.forEach(t=>{t()}),rd=[]},"attachFunctions"),rg=(0,u.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rm(t){let e=(0,c.i_)(t);if(!e)return{text:t,metadata:{}};let r=e.indent,n=r?e.body.split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e.body,i=(0,a.H)(n,{schema:a.r})??{};i="object"!=typeof i||Array.isArray(i)?{}:i;let s={};return i.displayMode&&(s.displayMode=i.displayMode.toString()),i.title&&(s.title=i.title.toString()),i.config&&(s.config=i.config),{text:t.slice(e.length),metadata:s}}(0,u.K)(rm,"extractFrontMatter");var ry=(0,u.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rb=(0,u.K)(t=>{let{text:e,metadata:r}=rm(t),{displayMode:n,title:a,config:i={}}=r;return n&&(i.gantt||(i.gantt={}),i.gantt.displayMode=n),{title:a,config:i,text:e}},"processFrontmatter"),rx=(0,u.K)(t=>{let e=l._K.detectInit(t)??{},r=l._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,l.vU)(t),directive:e}},"processDirectives");function rk(t){let e=ry(t),r=rb(e),n=rx(r.text),a=(0,l.$t)(r.config,n.directive),i=n.text;return{code:{raw:t,cleaned:rg(i),withComments:i,frontmatterLineOffset:e.length>r.text.length?(e.substring(0,e.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:a}}function rw(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,u.K)(rk,"preprocessDiagram"),(0,u.K)(rw,"toBase64");var r_=["foreignobject"],rv=["dominant-baseline"];function rS(t){let e,r=rk(t);(0,c.cL)();try{e=(0,c.Ch)(r.code.cleaned,(0,c.zj)())}catch{e=void 0}return(0,c.yj)(e),(0,c.xA)(r.config??{}),r}async function rM(t,e){rl();try{let{code:e,config:r}=rS(t);return{diagramType:(await rp.fromText(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}finally{(0,c.yj)(void 0)}}(0,u.K)(rS,"processAndSetConfigs"),(0,u.K)(rM,"parse");var rA=(0,u.K)((t,e,r=[])=>{let n=(0,c.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),rT=(0,u.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let n=(0,c.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{H(t.styles)||n.forEach(e=>{r.insertRule(rA(t.id,e,t.styles),r.cssRules.length)}),H(t.textStyles)||r.insertRule(rA(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),n=(0,c.KG)(e)+"\n"}else n+=`${t.themeCSS}
63
+ `;return n+(0,c.KG)(r)},"createCssStyles"),r$=(0,u.K)((t,e)=>A(function(t){var e,r;return r=function t(e,r,n,a,i,s,o,l,c){for(var h,u,p,d,g=0,m=0,y=o,b=0,x=0,A=0,T=1,L=1,z=1,F=0,U=0,W="",q=i,H=s,Y=a,X=W;L;)switch(A=U,U=P()){case 40:108!=A&&58==_(X,y-1)?(F++,X+="("):X+=N(U);break;case 41:F--,X+=")";break;case 34:case 39:case 91:X+=N(U);break;case 9:case 10:case 13:case 32:if(F>0){X+=k(U);break}X+=function(t){for(;E=D();)if(E<33)P();else break;return I(t)>2||I(E)>3?"":" "}(A);break;case 92:X+=function(t,e){for(var r;--e&&P()&&!(E<48)&&!(E>102)&&(!(E>57)||!(E<65))&&(!(E>70)||!(E<97)););return r=O+(e<6&&32==D()&&32==P()),v(C,t,r)}(O-1,7);continue;case 47:switch(D()){case 42:case 47:M((h=function(t,e){for(;P();)if(t+E===57)break;else if(t+E===84&&47===D())break;return"/*"+v(C,e,O-1)+"*"+k(47===t?t:P())}(P(),O),u=r,p=n,d=c,R(h,u,p,f,k(E),v(h,2,-2),0,d)),c),(5==I(A||1)||5==I(D()||1))&&S(X)&&" "!==v(X,-1,void 0)&&(X+=" ");break;default:X+="/"}break;case 123*T:l[g++]=S(X)*z;case 125*T:case 59:case 0:if(F>0&&U){X+=k(U);break}switch(U){case 0:case 125:L=0;case 59+m:-1==z&&(X=w(X,/\f/g,"")),x>0&&(S(X)-y||0===T)&&M(x>32?B(X+";",a,n,y-1,c):B(w(X," ","")+";",a,n,y-2,c),c);break;case 59:X+=";";default:if(M(Y=j(X,r,n,g,m,i,l,W,q=[],H=[],y,s),s),123===U)if(0===m)t(X,r,Y,Y,q,s,y,l,H);else{switch(b){case 99:if(110===_(X,3))break;case 108:if(97===_(X,2))break;default:m=0;case 100:case 109:case 115:}m?t(e,Y,Y,a&&M(j(e,Y,Y,0,0,i,l,W,i,q=[],y,H),H),i,H,y,l,a?q:H):t(X,Y,Y,Y,[""],H,0,l,H)}}g=m=x=0,T=z=1,W=X="",y=o;break;case 58:y=1+S(X),x=A;default:if(T<1){if(123==U)--T;else if(125==U&&0==T++&&125==(E=O>0?_(C,--O):0,K--,10===E&&(K=1,$--),E))continue}switch(X+=k(U),U*T){case 38:z=m>0?1:(X+="\f",-1);break;case 44:if(F>0)break;l[g++]=(S(X)-1)*z,z=1;break;case 64:45===D()&&(X+=N(P())),b=D(),m=y=S(W=X+=function(t){for(;!I(D());)P();return v(C,t,O)}(O)),U++;break;case 45:45===A&&2==S(X)&&(T=0)}}return s}("",null,null,null,[""],(e=t,$=K=1,L=S(C=e),O=0,t=[]),0,[0],t),C="",r}(`${t}{${e}}`),function(t){var e=t.length;return function(r,n,a,i){for(var s="",o=0;o<e;o++)s+=t[o](r,n,a,i)||"";return s}}([(0,u.K)(function(e,r,n,a){"rule"===e.type&&Array.isArray(e.props)?e.parent&&e.parent.type===y||(e.props=e.props.map(r=>r===t&&Array.isArray(e.children)&&e.children.every(t=>"decl"===t.type&&new Set(["font-family","font-size","fill"]).has(t.props))||(r.startsWith(`${t} `)||r.startsWith(`${t}>`))&&!r.startsWith(`${t} ||`)?r:`${t} ${r}`)):e.type.startsWith("@")&&(["@media","@supports",b,"@scope","@container","@starting-style",y].includes(e.type)||(h.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=f))},"addNamespace"),T])),"compileCSS"),rK=(0,u.K)((t,e,r,n)=>{let a=rT(t,r),i=(0,c.tM)(e,a,{...t.themeVariables,theme:t.theme,look:t.look},n);return r$(n,i)},"createUserStyles"),rL=(0,u.K)((t="",e,r)=>{let n=t;return r||e||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,l.Sm)(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rO=(0,u.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",n=rw(`<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,${n}" sandbox="allow-top-navigation-by-user-activation allow-popups">
64
+ The "iframe" tag is not supported by your browser.
65
+ </iframe>`},"putIntoIFrame"),rE=(0,u.K)((t,e,r,n,a)=>{let i=t.append("div");i.attr("id",r),n&&i.attr("style",n);let s=i.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return a&&s.attr("xmlns:xlink",a),s.append("g"),t},"appendDivSvgG");function rC(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,u.K)(rC,"sandboxedIframe");var rR=(0,u.K)((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),rP=(0,u.K)(async function(t,e,r){let n,a;rl();let i=rS(e),s=i.code;e=s.cleaned;let o=(0,c.zj)();h.R.debug(o),e.length>(o?.maxTextSize??5e4)&&(s={raw:e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",cleaned:e});let p=`#${t}`,f="i"+t,g="#"+f,m="d"+t,y="#"+m,b=(0,u.K)(()=>{let t=k?g:y,e=(0,d.Lt)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),x=(0,d.Lt)(document.body),k="sandbox"===o.securityLevel,w="loose"===o.securityLevel,_=o.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),k){let t=rC((0,d.Lt)(r),f);(x=(0,d.Lt)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else x=(0,d.Lt)(r);rE(x,t,m,`font-family: ${_}`,"http://www.w3.org/1999/xlink")}else{if(rR(document,t,m,f),k){let t=rC((0,d.Lt)(document.body),f);(x=(0,d.Lt)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else x=(0,d.Lt)("body");rE(x,t,m)}try{n=await rp.fromText(s,{title:i.title})}catch(t){if(o.suppressErrorRendering)throw b(),t;n=await rp.fromText("error"),a=t,n.db.setErrorMessage?.((0,l.u1)(t))}let v=x.select(y).node(),S=n.type,M=v.firstChild,A=M.firstChild,T=rK(o,S,n.renderer.getClasses?.(e,n),p),$=document.createElement("style");$.innerHTML=T,M.insertBefore($,A);try{await n.renderer.draw(e,t,"12.3.0",n)}catch(r){throw o.suppressErrorRendering?b():tG.draw(e,t,"12.3.0"),r}let K=x.select(`${y} svg`);rj(S,K,n.db.getAccTitle?.(),n.db.getAccDescription?.());let L=(0,u.K)(()=>{x.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let e=x.select(y).node().innerHTML;return h.R.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),e=rL(e,k,(0,c._3)(o.arrowMarkerAbsolute)),k?e=rO(e,x.select(y+" svg").node()):w||(e=z.A.sanitize(e,{ADD_TAGS:r_,ADD_ATTR:rv,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),rf(),e},"serializeSvg")();if(a)throw a;return b(),{diagramType:S,svg:L,bindFunctions:n.db.bindFunctions}},"renderDiagram"),rD=(0,u.K)(async function(t,e,r){try{return await rP(t,e,r)}finally{(0,c.yj)(void 0)}},"render");function rI(t={}){let e=(0,c.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,c.wZ)(e);let r=c.sb.theme;e?.theme&&Object.hasOwn(c.H$,e.theme)?e.themeVariables=c.H$[e.theme].getThemeVariables(e.themeVariables):e&&(null!=e.theme&&"null"!==e.theme&&(e.theme=r),e.themeVariables=c.H$[r].getThemeVariables(e.themeVariables));let n="object"==typeof e?(0,c.UU)(e):(0,c.Q2)();(0,h.H)(n.logLevel),rl()}(0,u.K)(rI,"initialize");var rN=(0,u.K)((t,e={})=>{let{code:r}=rk(t);return rp.fromText(r,e)},"getDiagramFromText");function rj(t,e,r,n){rh(e,t),ru(e,r,n,e.attr("id"))}(0,u.K)(rj,"addA11yInfo");var rB=Object.freeze({render:rD,parse:rM,getDiagramFromText:rN,initialize:rI,getConfig:c.zj,setConfig:c.Nk,getSiteConfig:c.Q2,updateSiteConfig:c.B6,reset:(0,u.K)(()=>{(0,c.cL)()},"reset"),globalReset:(0,u.K)(()=>{(0,c.cL)(c.sb)},"globalReset"),defaultConfig:c.sb});(0,h.H)((0,c.zj)().logLevel),(0,c.cL)((0,c.zj)());var rz=(0,u.K)((t,e,r)=>{h.R.warn(t),(0,l.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"),rF=(0,u.K)(async function(t={querySelector:".mermaid"}){try{await rU(t)}catch(e){if((0,l.dq)(e)&&h.R.error(e.str),r1.parseError&&r1.parseError(e),!t.suppressErrors)throw h.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rU=(0,u.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let n,a,i=rB.getConfig();if(h.R.debug(`${!t?"No ":""}Callback function found`),r)n=r;else if(e)n=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");h.R.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(h.R.debug("Start On Load: "+i?.startOnLoad),rB.updateSiteConfig({startOnLoad:i?.startOnLoad}));let s=new l._K.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o=[];for(let e of Array.from(n)){if(h.R.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,p.T)(l._K.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=l._K.detectInit(a);n&&h.R.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:i}=await rJ(r,a,e);e.innerHTML=n,t&&await t(r),i&&i(e)}catch(t){rz(t,o,r1.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),rW=(0,u.K)(function(t){rB.initialize(t)},"initialize"),rq=(0,u.K)(async function(t,e,r){h.R.warn("mermaid.init is deprecated. Please use run instead."),t&&rW(t);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await rF(n)},"init"),rH=(0,u.K)(async(t,{lazyLoad:e=!0}={})=>{rl(),(0,c.Xd)(...t),!1===e&&await rc()},"registerExternalDiagrams"),rY=(0,u.K)(function(){if(r1.startOnLoad){let{startOnLoad:t}=rB.getConfig();t&&r1.run().catch(t=>h.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",rY,!1);var rX=(0,u.K)(function(t){r1.parseError=t},"setParseErrorHandler"),rG=[],rZ=!1,rV=(0,u.K)(async()=>{if(!rZ){for(rZ=!0;rG.length>0;){let t=rG.shift();if(t)try{await t()}catch(t){h.R.error("Error executing queue",t)}}rZ=!1}},"executeQueue"),rQ=(0,u.K)(async(t,e)=>new Promise((r,n)=>{let a=(0,u.K)(()=>new Promise((a,i)=>{rB.parse(t,e).then(t=>{a(t),r(t)},t=>{h.R.error("Error parsing",t),r1.parseError?.(t),i(t),n(t)})}),"performCall");rG.push(a),rV().catch(n)}),"parse"),rJ=(0,u.K)((t,e,r)=>new Promise((n,a)=>{let i=(0,u.K)(()=>new Promise((i,s)=>{rB.render(t,e,r).then(t=>{i(t),n(t)},t=>{h.R.error("Error parsing",t),r1.parseError?.(t),s(t),a(t)})}),"performCall");rG.push(i),rV().catch(a)}),"render"),r0=(0,u.K)(()=>Object.keys(c.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),r1={startOnLoad:!0,mermaidAPI:rB,parse:rQ,render:rJ,init:rq,run:rF,registerExternalDiagrams:rH,registerLayoutLoaders:i.sO,initialize:rW,parseError:void 0,contentLoaded:rY,setParseErrorHandler:rX,detectType:c.Ch,registerIconPacks:o.pC,getRegisteredDiagramsMetadata:r0},r2=r1},74355:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(42316),a=r(49380);let i=(t,e)=>{let r=a.A.parse(t);for(let t in e)r[t]=n.A.channel.clamp[t](e[t]);return a.A.stringify(r)}},77351:(t,e,r)=>{"use strict";r.d(e,{IU:()=>tp,Jo:()=>tN,Lt:()=>_,Nq:()=>y,Pk:()=>tb,T_:()=>tx,UQ:()=>tu,_p:()=>v,a6:()=>td,g0:()=>en,h1:()=>tn,hq:()=>m,jP:()=>tg,lP:()=>th});var n=r(94712),a=r(73823),i=r(39020),s=r(7322),o=r(27058),l=r(92826),c=r(58442),h=r(88252),u=r(93962),p=r(21982),d=r(25128),f=r(36761),g=(0,h.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),m={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},y={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5,arrow_open_head:4,arrow_hollow_circle:8};function b(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=x(t),e=x(e);let[r,n]=[t.x,t.y],[a,i]=[e.x,e.y],s=a-r,o=i-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}(0,h.K)(b,"calculateDeltaAndAngle");var x=(0,h.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),k=(0,h.K)(t=>({x:(0,h.K)(function(e,r,n){let a=0,i=x(n[0]).x<x(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(m,t.arrowTypeStart)){let{angle:e,deltaX:r}=b(n[0],n[1]);a=m[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(m,t.arrowTypeEnd)){let{angle:e,deltaX:r}=b(n[n.length-1],n[n.length-2]);a=m[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let s=Math.abs(x(e).x-x(n[n.length-1]).x),o=Math.abs(x(e).y-x(n[n.length-1]).y),l=Math.abs(x(e).x-x(n[0]).x),c=Math.abs(x(e).y-x(n[0]).y),h=m[t.arrowTypeStart],u=m[t.arrowTypeEnd];if(s<u&&s>0&&o<u){let t=u+1-s;t*="right"===i?-1:1,a-=t}if(l<h&&l>0&&c<h){let t=h+1-l;t*="right"===i?-1:1,a+=t}return x(e).x+a},"x"),y:(0,h.K)(function(e,r,n){let a=0,i=x(n[0]).y<x(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(m,t.arrowTypeStart)){let{angle:e,deltaY:r}=b(n[0],n[1]);a=m[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(m,t.arrowTypeEnd)){let{angle:e,deltaY:r}=b(n[n.length-1],n[n.length-2]);a=m[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let s=Math.abs(x(e).y-x(n[n.length-1]).y),o=Math.abs(x(e).x-x(n[n.length-1]).x),l=Math.abs(x(e).y-x(n[0]).y),c=Math.abs(x(e).x-x(n[0]).x),h=m[t.arrowTypeStart],u=m[t.arrowTypeEnd];if(s<u&&s>0&&o<u){let t=u+1-s;t*="up"===i?-1:1,a-=t}if(l<h&&l>0&&c<h){let t=h+1-l;t*="up"===i?-1:1,a+=t}return x(e).y+a},"y")}),"getLineFunctionsWithOffset"),w=1,_=(0,h.K)(t=>"number"==typeof t&&Number.isFinite(t)&&t>0?t:w,"getStepDuration"),v=(0,h.K)(t=>"number"==typeof t.step&&Number.isInteger(t.step)&&t.step>0,"isStepEdge"),S=[.25,.35,.15,.65,.75,.5,.85,.1,.9],M=/translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i,A=(0,h.K)((t,e,r=w)=>{let n=Math.max(e,t);return{begin:(t-1)*r,dur:r,gap:(n-1)*r}},"getEdgeStepTiming"),T=(0,h.K)(t=>`step_${Array.from(t,t=>/[\dA-Za-z]/.test(t)?t:`_${(t.codePointAt(0)??0).toString(16)}_`).join("")}`,"toAnimationId"),$=(0,h.K)(t=>{let e=/^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(t.trim());return e?`translate(${e[1]},${e[2]}) `:""},"pathStartTranslate"),K=(0,h.K)(t=>Array.from(t,(e,r)=>{let n=e.codePointAt(0)??0;if(0===n)return"�";let a=n<=31||127===n,i=/\d/.test(e)&&(0===r||1===r&&t.startsWith("-"));return a||i?`\\${n.toString(16)} `:"-"===t?"\\-":n>=128||/[\w-]/.test(e)?e:`\\${e}`}).join(""),"escapeCssIdentifierFallback"),L=(0,h.K)(t=>"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(t):K(t),"escapeCssIdentifier"),O=(0,h.K)((t,e)=>{let r=t.node(),n=r?.ownerSVGElement??r?.closest?.("svg")??r,a=e||n?.getAttribute("id");if(!n||!a||n.querySelector("style.edge-step-style"))return;let i=`#${L(a)} `,s=n.ownerDocument.createElementNS("http://www.w3.org/2000/svg","style");s.setAttribute("class","edge-step-style"),s.textContent=`@media (prefers-reduced-motion: reduce) { ${i}.edge-step-dot, ${i}.edge-step-highlight { display: none; } }`,n.appendChild(s)},"ensureReducedMotionStyle"),E=(0,h.K)((t,e)=>{let r=t.filter(t=>Number.isFinite(t.x)&&Number.isFinite(t.y));if(0===r.length)return;let n=r.slice(1).map((t,e)=>Math.hypot(t.x-r[e].x,t.y-r[e].y)),a=n.reduce((t,e)=>t+e,0)*e;for(let[t,e]of n.entries()){if(a<=e&&e>0){let n=a/e,i=r[t],s=r[t+1];return{x:i.x+(s.x-i.x)*n,y:i.y+(s.y-i.y)*n}}a-=e}return r[r.length-1]},"pointAlongPolyline"),C=(0,h.K)((t,e)=>{let r="function"==typeof e?.getTotalLength?e.getTotalLength():0,n=e?.getPointAtLength?.bind(e);return r>0&&n?t=>{let{x:e,y:a}=n(r*t);return{x:e,y:a}}:e=>E(t,e)},"createPathSampler"),R=(0,h.K)((t,e)=>Math.min(1/0,...e.map(e=>Math.hypot(Math.max(Math.abs(t.x-e.x)-e.halfWidth,0),Math.max(Math.abs(t.y-e.y)-e.halfHeight,0))-9)),"roomAround"),P=(0,h.K)((t,e)=>{let r=t(e),n=t(Math.max(e-.01,0)),a=t(Math.min(e+.01,1));if(!r||!n||!a)return[];let i=Math.hypot(a.x-n.x,a.y-n.y);if(0===i)return[];let s={x:-(a.y-n.y)/i,y:(a.x-n.x)/i};return[1,-1].map(t=>({x:r.x+14*s.x*t,y:r.y+14*s.y*t}))},"besideThePath"),D=(0,h.K)((t,e)=>{let r,n=[...S.map(t),...S.flatMap(e=>P(t,e))],a=-1/0;for(let t of n){if(!t||!Number.isFinite(t.x)||!Number.isFinite(t.y))continue;let n=R(t,e);if(n>=2)return t;n>a&&(r=t,a=n)}return r},"chooseBadgePosition"),I=(0,h.K)((t,e)=>({...t,halfWidth:e,halfHeight:e}),"square"),N=(0,h.K)(t=>{let e=M.exec(t.getAttribute("transform")??"");return e?{x:Number(e[1]),y:Number(e[2])}:{x:0,y:0}},"translationOf"),j=(0,h.K)(t=>{let e={x:0,y:0};for(let r=t;r&&"svg"!==r.localName;r=r.parentElement){let{x:t,y:n}=N(r);e.x+=t,e.y+=n}return e},"offsetInSvg"),B=(0,h.K)((t,e)=>{if(!M.test(t.getAttribute("transform")??""))return;let r=j(t),n=r.x-e.x,a=r.y-e.y,i=t.getBBox?.();if(i)return{x:n+i.x+i.width/2,y:a+i.y+i.height/2,halfWidth:i.width/2,halfHeight:i.height/2}},"boxedObstacle"),z=(0,h.K)(t=>{try{let e=JSON.parse(atob(t.getAttribute("data-points")??""));return Array.isArray(e)?e:[]}catch{return[]}},"readPoints"),F=(0,h.K)((t,e)=>{let r=Math.hypot(t.x-e.x,t.y-e.y);if(0===r)return I(t,12);let n={x:(t.x-e.x)/r,y:(t.y-e.y)/r};return{x:t.x-6*n.x,y:t.y-6*n.y,halfWidth:6*Math.abs(n.x)+6*Math.abs(n.y),halfHeight:6*Math.abs(n.y)+6*Math.abs(n.x)}},"arrowheadObstacle"),U=(0,h.K)((t,e)=>{let r=t.getAttribute(e);return!!r&&"none"!==r},"hasMarker"),W=(0,h.K)((t,e)=>{let r=z(t).filter(t=>Number.isFinite(t?.x)&&Number.isFinite(t?.y));if(0===r.length)return[];let n=j(t),a=(0,h.K)(t=>({x:t.x+n.x-e.x,y:t.y+n.y-e.y}),"toSvg"),i=r.length-1,s=[];return U(t,"marker-start")&&s.push(F(a(r[0]),a(r[Math.min(1,i)]))),U(t,"marker-end")&&s.push(F(a(r[i]),a(r[Math.max(i-1,0)]))),s},"arrowheadObstacles"),q=(0,h.K)(t=>{let e={x:0,y:0};return[...[...t?.querySelectorAll(".edgeLabel, .node")??[]].map(t=>B(t,e)).filter(t=>void 0!==t),...[...t?.querySelectorAll('path[data-edge="true"]')??[]].flatMap(t=>W(t,e))]},"collectBadgeObstacles"),H=(0,h.K)((t,e)=>{if(!t.label||0===e.length)return[];let{x:r,y:n}=o._K.calcLabelPosition(e);return[{x:r,y:n,halfWidth:(t.width??0)/2,halfHeight:(t.height??0)/2}]},"edgeLabelObstacles"),Y=(0,h.K)(t=>{let e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4},"linearChannel"),X=(0,h.K)(t=>{try{let[e,r,n]=["r","g","b"].map(e=>Y((0,p.A)(t,e)));return .2126*e+.7152*r+.0722*n}catch{return}},"relativeLuminance"),G=(0,h.K)((t,e)=>{let r=X(t),n=X(e);return void 0===r||void 0===n?0:(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},"contrastRatio"),Z=(0,h.K)((t,e)=>{let r=[...e.filter(t=>!!t),"#ffffff","#000000"].map(e=>({color:e,ratio:G(t,e)}));return(r.find(({ratio:t})=>t>=4.5)??r.reduce((t,e)=>e.ratio>t.ratio?e:t)).color},"pickBadgeTextColor"),V=(0,h.K)(t=>{let e=t?.replace(/^stroke:\s*/,"").trim();return""===e?void 0:e},"bareColor"),Q=(0,h.K)((t,e,r,n=q(t.node()?.closest("svg")))=>{if(!v(e)||!e.showStepNumber)return;let a=j(t.node()),i=n.map(t=>({...t,x:t.x-a.x,y:t.y-a.y})),s=D(C(r.points,r.pathNode),[...i,...H(e,r.points)]);if(!s)return;let o=V(r.color)??"#333333",l=t.append("g").attr("class","edge-step-badge").attr("transform",`translate(${s.x},${s.y})`).attr("pointer-events","none").attr("data-step",e.step);return l.append("circle").attr("r",9).attr("fill",o),l.append("text").attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",11).attr("fill",Z(o,r.textColors??[])).text(String(e.step)),I({x:s.x+a.x,y:s.y+a.y},9)},"insertEdgeStepBadge"),J=(0,h.K)((t,e,r)=>{t.append("animateTransform").attr("attributeName","transform").attr("type","scale").attr("values","1;1").attr("dur",`${r}s`).attr("begin",`${e}.begin`).attr("fill","remove")},"showWhileStepPlays"),tt=(0,h.K)((t,e,r,n,a)=>{if(!v(e)||!r)return;let{begin:i,dur:s,gap:o}=A(e.step,e.stepCount??e.step,_(e.stepDuration)),l=T(`${n}-${e.id}-step`),c=`${$(r)}scale(0)`,h=a?.replace(/^stroke:\s*/,"");J(t.append("path").attr("class","edge-step-highlight").attr("aria-hidden","true").attr("d",r).attr("fill","none").attr("stroke",h??"currentColor").attr("stroke-width",4).attr("stroke-linecap","round").attr("stroke-opacity",.6).attr("pointer-events","none").attr("transform",c).attr("data-step",e.step),l,s);let u=t.append("circle").attr("class","edge-step-dot").attr("r",4).attr("aria-hidden","true").attr("transform",c).attr("data-step",e.step);h&&u.attr("fill",h).attr("stroke","none"),u.append("animateMotion").attr("id",l).attr("path",r).attr("dur",`${s}s`).attr("begin",`${i}s;${l}.end+${o}s`).attr("fill","remove"),J(u,l,s),O(t,n)},"insertEdgeStepDot"),te=new WeakMap,tr=(0,h.K)(t=>{let e=t.querySelector(":scope > g.edge-step-badges");if(e)return e;let r=t.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");return r.setAttribute("class","edge-step-badges"),t.appendChild(r)},"badgeLayer"),tn=(0,h.K)(t=>{let e=t?te.get(t):void 0;if(!t||!e)return;te.delete(t);let r=q(t);for(let{elem:t,edge:n,options:a}of e){let e=t.node()?.parentElement;if(!e)continue;let i=Q((0,u.Lt)(tr(e)),n,a,r);i&&r.push(i)}},"placeQueuedStepBadges"),ta=(0,h.K)((t,e,r,n,a)=>{tt(t,e,r,n,a.color);let i=t.node(),s=i?.ownerSVGElement??i;s&&v(e)&&e.showStepNumber&&te.set(s,[...te.get(s)??[],{elem:t,edge:e,options:a}])},"insertEdgeStepMarks"),ti=(0,h.K)((t,e,r,n,a,i=!1,s)=>{e.arrowTypeStart&&tl(t,"start",e.arrowTypeStart,r,n,a,i,s),e.arrowTypeEnd&&tl(t,"end",e.arrowTypeEnd,r,n,a,i,s)},"addEdgeMarkers"),ts={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_open_head:{type:"openArrow",fill:!1},arrow_hollow_circle:{type:"hollowCircle",fill:!1},arrow_hierarchy:{type:"hierarchy",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}},to=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],tl=(0,h.K)((t,e,r,n,a,i,s=!1,o)=>{if(!r||"none"===r)return;let l=ts[r],h=l&&to.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let u=l.type,p=`${a}_${i}-${u}${"start"===e?"Start":"End"}${s&&h?"-margin":""}`;if(o&&""!==o.trim()){let r=o.replace(/[^\dA-Za-z]/g,"_"),a=`${p}_${r}`;if(!document.getElementById(a)){let t=document.getElementById(p);if(t){let e=t.cloneNode(!0);e.id=a,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",o),l.fill&&t.setAttribute("fill",o)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${a})`)}else t.attr(`marker-${e}`,`url(${n}#${p})`)},"addEdgeMarker"),tc=(0,h.K)(t=>"string"==typeof t?t:(0,l.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),th=new Map,tu=new Map,tp=(0,h.K)(()=>{th.clear(),tu.clear()},"clear"),td=(0,h.K)(t=>!!(t.label||t.startLabelLeft||t.startLabelRight||t.endLabelLeft||t.endLabelRight),"hasEdgeLabel"),tf=(0,h.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),tg=(0,h.K)(async(t,e)=>{let r,n,o,h=(0,l.D7)(),p=(0,l.E)(h),{labelStyles:d}=(0,i.GX)(e);e.labelStyle=d;let f=t.insert("g").attr("class","edgeLabel"),m=f.insert("g").attr("class","label").attr("data-id",e.id),y="markdown"===e.labelType,b=await (0,s.GZ)(t,e.label,{style:tf(e.labelStyle),useHtmlLabels:p,addSvgBackground:!0,isNode:!1,markdown:y,width:void 0},h);if(m.node().appendChild(b),c.R.info("abc82",e,e.labelType),p){let t=b.children[0],e=(0,u.Lt)(b);n=r=await s.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else{let t=(0,u.Lt)(b).select("text").node();await s.lT.measure(()=>{r=b.getBBox(),n=t&&"function"==typeof t.getBBox?t.getBBox():r})}if(m.attr("transform",g(n,p)),th.set(e.id,f),e.width=r.width,e.height=r.height,e.startLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),i=await (0,a.DA)(n,e.startLabelLeft,tf(e.labelStyle)||"",!1,!1);o=i;let s=i.getBBox();if(p){let t=i.children[0],e=(0,u.Lt)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}n.attr("transform",g(s,p)),tu.get(e.id)||tu.set(e.id,{}),tu.get(e.id).startLeft=r,ty(o,e.startLabelLeft,s),tm(e,"startLeft",s)}if(e.startLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),i=await (0,a.DA)(n,e.startLabelRight,tf(e.labelStyle)||"",!1,!1);o=i;let s=i.getBBox();if(p){let t=i.children[0],e=(0,u.Lt)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}n.attr("transform",g(s,p)),tu.get(e.id)||tu.set(e.id,{}),tu.get(e.id).startRight=r,ty(o,e.startLabelRight,s),tm(e,"startRight",s)}if(e.endLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),i=await (0,a.DA)(n,e.endLabelLeft,tf(e.labelStyle)||"",!1,!1);o=i;let s=i.getBBox();if(p){let t=i.children[0],e=(0,u.Lt)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}n.attr("transform",g(s,p)),tu.get(e.id)||tu.set(e.id,{}),tu.get(e.id).endLeft=r,ty(o,e.endLabelLeft,s),tm(e,"endLeft",s)}if(e.endLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),i=await (0,a.DA)(n,e.endLabelRight,tf(e.labelStyle)||"",!1,!1);o=i;let s=i.getBBox();if(p){let t=i.children[0],e=(0,u.Lt)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}n.attr("transform",g(s,p)),tu.get(e.id)||tu.set(e.id,{}),tu.get(e.id).endRight=r,ty(o,e.endLabelRight,s),tm(e,"endRight",s)}return b},"insertEdgeLabel");function tm(t,e,r){t.terminalLabelSizes??={},t.terminalLabelSizes[e]={width:r.width,height:r.height}}function ty(t,e,r){(0,l.E)((0,l.D7)())&&t&&(t.style.width=Math.max(9*e.length,r.width)+"px",t.style.height=r.height+"px")}(0,h.K)(tm,"recordTerminalLabelSize"),(0,h.K)(ty,"setTerminalWidth");var tb=(0,h.K)((t,e)=>{let r=t.x,n=t.y;if(e?.updatedPath){let a=o._K.calcLabelPosition(e.updatedPath);if(e.originalPath){let i=o._K.calcLabelPosition(e.originalPath);r=t.x+(a.x-i.x),n=t.y+(a.y-i.y)}else r=a.x,n=a.y}return{x:r,y:n}},"resolveEdgeLabelPosition"),tx=(0,h.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,th.get(t.id),e);let r=(0,l.D7)(),{subGraphTitleTotalMargin:a}=(0,n.Oi)(r);if(t.label){let r=th.get(t.id),{x:n,y:i}=tb(t,e);c.R.debug("Moving label "+t.label+" from (",t.x,",",t.y,") to (",n,",",i,") abc88"),r.attr("transform",`translate(${n}, ${i+a/2})`)}let i=e.updatedPath?e.updatedPath:e.originalPath;if(t.startLabelLeft){let e=tu.get(t.id).startLeft,r=t.x,n=t.y;if(i){let e=o._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",i);r=e.x,n=e.y}e.attr("transform",`translate(${r}, ${n})`)}if(t.startLabelRight){let e=tu.get(t.id).startRight,r=t.x,n=t.y;if(i){let e=o._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",i);r=e.x,n=e.y}e.attr("transform",`translate(${r}, ${n})`)}if(t.endLabelLeft){let e=tu.get(t.id).endLeft,r=t.x,n=t.y;if(i){let e=o._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",i);r=e.x,n=e.y}e.attr("transform",`translate(${r}, ${n})`)}if(t.endLabelRight){let e=tu.get(t.id).endRight,r=t.x,n=t.y;if(i){let e=o._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",i);r=e.x,n=e.y}e.attr("transform",`translate(${r}, ${n})`)}},"positionEdgeLabel"),tk=(0,h.K)((t,e)=>.5>Math.abs(t.x-e.x),"sharesColumn"),tw=(0,h.K)((t,e)=>.5>Math.abs(t.y-e.y),"sharesRow"),t_=(0,h.K)((t,e)=>tk(t,e)&&tw(t,e),"coincides");function tv(t,e,r){return tk(t,e)&&!tw(t,e)?tk(r,e):tw(t,e)&&!tk(t,e)?tw(r,e):tk(r,e)||tw(r,e)}function tS(t,e,r){return t_(t,e)?{heading:e,from:r}:{heading:t,from:e}}function tM({heading:t,from:e},r,n){return(t.x-e.x)*(n.x-r.x)+(t.y-e.y)*(n.y-r.y)<0}function tA({heading:t,from:e},r,n){return tw(t,e)&&!tk(t,e)?{x:n.x,y:r.y}:tk(t,e)&&!tw(t,e)?{x:r.x,y:n.y}:n}function tT(t,e,r,n){if((tk(t,e)||tw(t,e))&&!tv(t,e,n))return t;let a=tS(t,e,r);return tM(a,e,n)?e:tA(a,e,n)}function t$(t){let e=Object.hasOwn(m,t)?m[t]:0;return Number.isFinite(e)?e:0}function tK({originalLast:t,lastInner:e,newLast:r,minLength:n}){let a=!t_(t,e),i=Math.hypot(r.x-e.x,r.y-e.y);return i>=Math.max(.5,n)?r:a&&i>=.5?t:void 0}(0,h.K)(tv,"keepsArrivalAxis"),(0,h.K)(tS,"arrivalSegment"),(0,h.K)(tM,"runsAgainstHeading"),(0,h.K)(tA,"snapToArrivalAxis"),(0,h.K)(tT,"dockFinalPoint"),(0,h.K)(t$,"markerPullBack"),(0,h.K)(tK,"finalDockPoint");var tL=(0,h.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,a=Math.abs(n.x-r.x),i=Math.abs(n.y-r.y);return a<.001||i<.001?e:i>=a?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),tO=(0,h.K)((t,e)=>{let r=t.x,n=t.y,a=Math.abs(e.x-r),i=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return a>=s||i>=o},"outsideNode"),tE=(0,h.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
66
+ outsidePoint: ${JSON.stringify(e)}
67
+ insidePoint : ${JSON.stringify(r)}
68
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,a=t.y,i=Math.abs(n-r.x),s=t.width/2,o=r.x<e.x?s-i:s+i,l=t.height/2,h=Math.abs(e.y-r.y),u=Math.abs(e.x-r.x);if(Math.abs(a-e.y)*s>Math.abs(n-e.x)*l){let t=r.y<e.y?e.y-l-a:a-l-e.y;o=u*t/h;let n={x:r.x<e.x?r.x+o:r.x-u+o,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===o&&(n.x=e.x,n.y=e.y),0===u&&(n.x=e.x),0===h&&(n.y=e.y),c.R.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${u}, r ${o}`,n),n}{let t=h*(o=r.x<e.x?e.x-s-n:n-s-e.x)/u,a=r.x<e.x?r.x+u-o:r.x-u+o,i=r.y<e.y?r.y+t:r.y-t;return c.R.debug(`sides calc abc89, Q ${h}, q ${t}, R ${u}, r ${o}`,{_x:a,_y:i}),0===o&&(a=e.x,i=e.y),0===u&&(a=e.x),0===h&&(i=e.y),{x:a,y:i}}},"intersection"),tC=(0,h.K)((t,e)=>{c.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],a=!1;return t.forEach(t=>{if(c.R.info("abc88 checking point",t,e),tO(e,t)||a)c.R.warn("abc88 outside",t,n),n=t,a||r.push(t);else{let i=tE(e,n,t);c.R.debug("abc88 inside",t,n,i),c.R.debug("abc88 intersection",i,e);let s=!1;r.forEach(t=>{s=s||t.x===i.x&&t.y===i.y}),r.some(t=>t.x===i.x&&t.y===i.y)?c.R.warn("abc88 no intersect",i,r):r.push(i),a=!0}}),c.R.debug("returning points",r),r},"cutPathAtIntersect");function tR(t){let e=[],r=[];for(let n=1;n<t.length-1;n++){let a=t[n-1],i=t[n],s=t[n+1];a.x===i.x&&i.y===s.y&&Math.abs(i.x-s.x)>5&&Math.abs(i.y-a.y)>5?(e.push(i),r.push(n)):a.y===i.y&&i.x===s.x&&Math.abs(i.x-a.x)>5&&Math.abs(i.y-s.y)>5&&(e.push(i),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}(0,h.K)(tR,"extractCornerPoints");var tP=(0,h.K)(function(t,e,r){let n=e.x-t.x,a=e.y-t.y,i=r/Math.sqrt(n*n+a*a);return{x:e.x-i*n,y:e.y-i*a}},"findAdjacentPoint"),tD=(0,h.K)(function(t){let{cornerPointPositions:e}=tR(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){let e=t[n-1],a=t[n+1],i=t[n],s=tP(e,i,5),o=tP(a,i,5),l=o.x-s.x,h=o.y-s.y;r.push(s);let u=2*Math.sqrt(2),p={x:i.x,y:i.y};Math.abs(a.x-e.x)>10&&Math.abs(a.y-e.y)>=10?(c.R.debug("Corner point fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y)),p=i.x===s.x?{x:l<0?s.x-5+u:s.x+5-u,y:h<0?s.y-u:s.y+u}:{x:l<0?s.x-u:s.x+u,y:h<0?s.y-5+u:s.y+5-u}):c.R.debug("Corner point skipping fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y)),r.push(p,o)}else r.push(t[n]);return r},"fixCorners"),tI=(0,h.K)((t,e,r)=>{let n=Math.floor((t-e-r)/4),a=Array(Number.isFinite(n)?Math.max(0,n):0).fill("2 2").join(" ");return`0 ${e} ${a} ${r}`},"generateDashArray"),tN=(0,h.K)(function(t,e,r,n,a,s,h,p=!1,g){let m,b;if(!h)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:x,layout:w}=(0,l.D7)(),_=e.points,v=!1,S=[];for(let t in e.cssCompiledStyles)(0,i.KX)(t)||S.push(e.cssCompiledStyles[t]);if("swimlane"===(g??w)){if(!p&&s.intersect&&a.intersect&&Array.isArray(_)&&_.length>=2)if(2===_.length){let[t,e]=_;_=tk(t,e)||tw(t,e)?[a.intersect(t),s.intersect(e)]:[a.intersect(e),s.intersect(t)]}else{let t=_.slice(1,-1),r=t[0],n=t[t.length-1],i=a.intersect(r),o=_[_.length-1],l=s.intersect(n),c=tT(o,n,t.at(-2)??_[0],l),h=tK({originalLast:o,lastInner:n,newLast:c,minLength:t$(e.arrowTypeEnd)});_=[....5>Math.abs(i.x-r.x)&&.5>Math.abs(i.y-r.y)?[]:[i],...t,...h?[h]:[]]}_=tL(e,_)}else s.intersect&&a.intersect&&!p&&((_=_.slice(1,e.points.length-1)).unshift(a.intersect(_[0])),_.push(s.intersect(_[_.length-1])));let M=btoa(JSON.stringify(_));e.toCluster&&(c.R.info("to cluster abc88",r.get(e.toCluster)),_=tC(e.points,r.get(e.toCluster).node),v=!0),e.fromCluster&&(c.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(_,null,2)),_=tC(_.reverse(),r.get(e.fromCluster).node).reverse(),v=!0);let A=_.filter(t=>!Number.isNaN(t.y)),T=tc(e.curve);"rounded"!==T&&(A=tD(A));let $=d.lU;switch(T){case"linear":case"rounded":$=d.lU;break;case"basis":default:$=d.qr;break;case"cardinal":$=d.y8;break;case"bumpX":$=d.Wi;break;case"bumpY":$=d.PG;break;case"catmullRom":$=d.oD;break;case"monotoneX":$=d.nV;break;case"monotoneY":$=d.ux;break;case"natural":$=d.Xf;break;case"step":$=d.GZ;break;case"stepAfter":$=d.UP;break;case"stepBefore":$=d.dy}let{x:K,y:L}=k(e),O=(0,d.n8)().x(K).y(L).curve($);switch(e.thickness){case"normal":default:m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;case"invisible":m="edge-thickness-invisible"}switch(e.pattern){case"solid":default:m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let E="rounded"===T?tj(tz(A,e),5):O(A),C=Array.isArray(e.style)?e.style:[e.style],R=C.find(t=>t?.startsWith("stroke:")),P="";e.animate&&(P="edge-animation-fast"),e.animation&&(P="edge-animation-"+e.animation);let D=!1;if("handDrawn"===e.look){let r=f.A.svg(t);Object.assign([],A);let n=r.path(E,{roughness:.3,seed:x});m+=" transition";let a=(b=(0,u.Lt)(n).select("path").attr("id",`${h}-${e.id}`).attr("class"," "+m+(e.classes?" "+e.classes:"")+(P?" "+P:"")).attr("style",C?C.reduce((t,e)=>t+";"+e,""):"")).attr("d");b.attr("d",a),t.node().appendChild(b.node())}else{let r=S.join(";"),n=C?C.reduce((t,e)=>t+e+";",""):"",a=(r?r+";"+n+";":n)+";"+(C?C.reduce((t,e)=>t+";"+e,""):"");b=t.append("path").attr("d",E).attr("id",`${h}-${e.id}`).attr("class"," "+m+(e.classes?" "+e.classes:"")+(P?" "+P:"")).attr("style",a),R=a.match(/stroke:([^;]+)/)?.[1],D=!0===e.animate||!!e.animation||r.includes("animation");let i=b.node(),s="function"==typeof i.getTotalLength?i.getTotalLength():0,o=y[e.arrowTypeStart]||0,l=y[e.arrowTypeEnd]||0;if("neo"===e.look&&!D){let t="dotted"===e.pattern||"dashed"===e.pattern?tI(s,o,l):`0 ${o} ${s-o-l} ${l}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;b.attr("style",r+b.attr("style"))}}if(b.attr("data-edge",!0),b.attr("data-et","edge"),b.attr("data-id",e.id),b.attr("data-points",M),b.attr("data-look",(0,o.KL)(e.look)),void 0!==e.step){let{themeVariables:r}=(0,l.D7)(),n=R??r?.lineColor;ta(t,e,E,h,{points:A,pathNode:b.node(),color:n,textColors:[r?.background,r?.primaryTextColor]})}e.showPoints&&A.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let I="";((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute)&&(I=(I=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.R.info("arrowTypeStart",e.arrowTypeStart),c.R.info("arrowTypeEnd",e.arrowTypeEnd);let N=!D&&e?.look==="neo";ti(b,e,I,h,n,N,R);let j=Math.floor(_.length/2),B=_[j];o._K.isLabelCoordinateInPath(B,b.attr("d"))||(v=!0);let z={};return v&&(z.updatedPath=_),z.originalPath=e.points,z},"insertEdge");function tj(t,e){if(t.length<2)return"";let r="",n=t.length;for(let a=0;a<n;a++){let i=t[a],s=t[a-1],o=t[a+1];if(0===a)r+=`M${i.x},${i.y}`;else if(a===n-1)r+=`L${i.x},${i.y}`;else{let t=i.x-s.x,n=i.y-s.y,a=o.x-i.x,l=o.y-i.y,c=Math.hypot(t,n),h=Math.hypot(a,l);if(c<1e-5||h<1e-5){r+=`L${i.x},${i.y}`;continue}let u=t/c,p=n/c,d=a/h,f=l/h,g=Math.acos(Math.max(-1,Math.min(1,u*d+p*f)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${i.x},${i.y}`;continue}let m=Math.min(e/Math.sin(g/2),c/2,h/2),y=i.x-u*m,b=i.y-p*m,x=i.x+d*m,k=i.y+f*m;r+=`L${y},${b}Q${i.x},${i.y} ${x},${k}`}}return r}function tB(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function tz(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&m[e.arrowTypeStart]){let n=m[e.arrowTypeStart],a=t[0],{angle:i}=tB(a,t[1]),s=n*Math.cos(i),o=n*Math.sin(i);r[0].x=a.x+s,r[0].y=a.y+o}let n=t.length;if(n>=2&&m[e.arrowTypeEnd]){let a=m[e.arrowTypeEnd],i=t[n-1],{angle:s}=tB(t[n-2],i),o=a*Math.cos(s),l=a*Math.sin(s);r[n-1].x=i.x-o,r[n-1].y=i.y-l}return r}(0,h.K)(tj,"generateRoundedPath"),(0,h.K)(tB,"calculateDeltaAndAngle"),(0,h.K)(tz,"applyMarkerOffsetsToPoints");var tF=(0,h.K)((t,e,r,n)=>{e.forEach(e=>{er[e](t,r,n)})},"insertMarkers"),tU=(0,h.K)((t,e,r)=>{c.R.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",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),tW=(0,h.K)((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),tq=(0,h.K)((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),tH=(0,h.K)((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),tY=(0,h.K)((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").attr("markerUnits","userSpaceOnUse").append("circle").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").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),tX=(0,h.K)((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"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),tG=(0,h.K)((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"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),tZ=(0,h.K)((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"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),tV=(0,h.K)((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"),tQ=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{transitionColor:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),tJ=(0,h.K)((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"),t0=(0,h.K)((t,e,r)=>{let n=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");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.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"),t1=(0,h.K)((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"),t2=(0,h.K)((t,e,r)=>{let n=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");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.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"),t3=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:a}=n;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),t5=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:a,mainBkg:i}=n,s=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").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",i??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);let o=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("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",i??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),t6=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:a}=n;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),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("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),t8=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:a,mainBkg:i}=n,s=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("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",i??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);let o=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").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",i??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),t9=(0,h.K)((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
69
+ L20,10
70
+ M20,10
71
+ L0,20`)},"requirement_arrow"),t4=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:a}=n;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").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
72
+ L20,10
73
+ M20,10
74
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),t7=(0,h.K)((t,e,r)=>{let n=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");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),et=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:a}=n,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").attr("markerUnits","userSpaceOnUse").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),i.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),ee=(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),t.append("marker").attr("id",r+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),er={extension:tU,composition:tW,aggregation:tq,dependency:tH,lollipop:tY,point:tX,circle:tG,cross:tZ,barb:tV,barbNeo:tQ,hierarchy:ee,only_one:tJ,zero_or_one:t0,one_or_more:t1,zero_or_more:t2,only_one_neo:t3,zero_or_one_neo:t5,one_or_more_neo:t6,zero_or_more_neo:t8,requirement_arrow:t9,requirement_contains:t7,requirement_arrow_neo:t4,requirement_contains_neo:et,openArrow:(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-openArrowEnd").attr("class","marker openArrow "+e).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),t.append("marker").attr("id",r+"_"+e+"-openArrowStart").attr("class","marker openArrow "+e).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),hollowCircle:(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-hollowCircleStart").attr("class","marker hollowCircle "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),t.append("marker").attr("id",r+"_"+e+"-hollowCircleEnd").attr("class","marker hollowCircle "+e).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle")},en=tF},82858:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(25016);let a=(t,e)=>(0,n.A)(t,"l",e)},88252:(t,e,r)=>{"use strict";r.d(e,{K:()=>a,V:()=>i});var n=Object.defineProperty,a=(t,e)=>n(t,"name",{value:e,configurable:!0}),i=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},91238:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},93962:(t,e,r)=>{"use strict";r.d(e,{Lt:()=>B});var n="http://www.w3.org/1999/xhtml",a={svg:"http://www.w3.org/2000/svg",xhtml:n,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function i(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 s(t){var e=i(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===n&&e.documentElement.namespaceURI===n?e.createElement(t):e.createElementNS(r,t)}})(e)}function o(){}function l(t){return null==t?o:function(){return this.querySelector(t)}}function c(){return[]}function h(t){return function(e){return e.matches(t)}}var u=Array.prototype.find;function p(){return this.firstElementChild}var d=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,n,a,i){for(var s,o=0,l=e.length,c=i.length;o<c;++o)(s=e[o])?(s.__data__=i[o],n[o]=s):r[o]=new m(t,i[o]);for(;o<l;++o)(s=e[o])&&(a[o]=s)}function b(t,e,r,n,a,i,s){var o,l,c,h=new Map,u=e.length,p=i.length,d=Array(u);for(o=0;o<u;++o)(l=e[o])&&(d[o]=c=s.call(l,l.__data__,o,e)+"",h.has(c)?a[o]=l:h.set(c,l));for(o=0;o<p;++o)c=s.call(t,i[o],o,i)+"",(l=h.get(c))?(n[o]=l,l.__data__=i[o],h.delete(c)):r[o]=new m(t,i[o]);for(o=0;o<u;++o)(l=e[o])&&h.get(d[o])===l&&(a[o]=l)}function x(t){return t.__data__}function k(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function w(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _(t){return t.trim().split(/^|\s+/)}function v(t){return t.classList||new S(t)}function S(t){this._node=t,this._names=_(t.getAttribute("class")||"")}function M(t,e){for(var r=v(t),n=-1,a=e.length;++n<a;)r.add(e[n])}function A(t,e){for(var r=v(t),n=-1,a=e.length;++n<a;)r.remove(e[n])}function T(){this.textContent=""}function $(){this.innerHTML=""}function K(){this.nextSibling&&this.parentNode.appendChild(this)}function L(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function O(){return null}function E(){var t=this.parentNode;t&&t.removeChild(this)}function C(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function R(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function P(t){return function(){var e=this.__on;if(e){for(var r,n=0,a=-1,i=e.length;n<i;++n)(r=e[n],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 D(t,e,r){return function(){var n,a=this.__on,i=function(t){e.call(this,t,this.__data__)};if(a){for(var s=0,o=a.length;s<o;++s)if((n=a[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=i,n.options=r),n.value=e;return}}this.addEventListener(t.type,i,r),n={type:t.type,name:t.name,value:e,listener:i,options:r},a?a.push(n):this.__on=[n]}}function I(t,e,r){var n=w(t),a=n.CustomEvent;"function"==typeof a?a=new a(e,r):(a=n.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 N=[null];function j(t,e){this._groups=t,this._parents=e}function B(t){return"string"==typeof t?new j([[document.querySelector(t)]],[document.documentElement]):new j([[t]],N)}j.prototype=(function(){return new j([[document.documentElement]],N)}).prototype={constructor:j,select:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,r=e.length,n=Array(r),a=0;a<r;++a)for(var i,s,o=e[a],c=o.length,h=n[a]=Array(c),u=0;u<c;++u)(i=o[u])&&(s=t.call(i,i.__data__,u,o))&&("__data__"in i&&(s.__data__=i.__data__),h[u]=s);return new j(n,this._parents)},selectAll:function(t){"function"==typeof t?(s=t,t=function(){var t;return t=s.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}):t=null==(o=t)?c:function(){return this.querySelectorAll(o)};for(var e=this._groups,r=e.length,n=[],a=[],i=0;i<r;++i)for(var s,o,l,h=e[i],u=h.length,p=0;p<u;++p)(l=h[p])&&(n.push(t.call(l,l.__data__,p,h)),a.push(l));return new j(n,a)},selectChild:function(t){var e;return this.select(null==t?p:(e="function"==typeof t?t:h(t),function(){return u.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?f:(e="function"==typeof t?t:h(t),function(){return d.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,n=r.length,a=Array(n),i=0;i<n;++i)for(var s,o=r[i],l=o.length,c=a[i]=[],h=0;h<l;++h)(s=o[h])&&t.call(s,s.__data__,h,o)&&c.push(s);return new j(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,x);var r=e?b:y,n=this._parents,a=this._groups;"function"!=typeof t&&(w=t,t=function(){return w});for(var i=a.length,s=Array(i),o=Array(i),l=Array(i),c=0;c<i;++c){var h=n[c],u=a[c],p=u.length,d="object"==typeof(k=t.call(h,h&&h.__data__,c,n))&&"length"in k?k:Array.from(k),f=d.length,g=o[c]=Array(f),m=s[c]=Array(f);r(h,u,g,m,l[c]=Array(p),d,e);for(var k,w,_,v,S=0,M=0;S<f;++S)if(_=g[S]){for(S>=M&&(M=S+1);!(v=m[M])&&++M<f;);_._next=v||null}}return(s=new j(s,n))._enter=o,s._exit=l,s},enter:function(){return new j(this._enter||this._groups.map(g),this._parents)},exit:function(){return new j(this._exit||this._groups.map(g),this._parents)},join:function(t,e,r){var n=this.enter(),a=this,i=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&(a=e(a))&&(a=a.selection()),null==r?i.remove():r(i),n&&a?n.merge(a).order():a},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,a=r.length,i=n.length,s=Math.min(a,i),o=Array(a),l=0;l<s;++l)for(var c,h=r[l],u=n[l],p=h.length,d=o[l]=Array(p),f=0;f<p;++f)(c=h[f]||u[f])&&(d[f]=c);for(;l<a;++l)o[l]=r[l];return new j(o,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n,a=t[e],i=a.length-1,s=a[i];--i>=0;)(n=a[i])&&(s&&4^n.compareDocumentPosition(s)&&s.parentNode.insertBefore(n,s),s=n);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,n=r.length,a=Array(n),i=0;i<n;++i){for(var s,o=r[i],l=o.length,c=a[i]=Array(l),h=0;h<l;++h)(s=o[h])&&(c[h]=s);c.sort(e)}return new j(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 n=t[e],a=0,i=n.length;a<i;++a){var s=n[a];if(s)return s}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,n=e.length;r<n;++r)for(var a,i=e[r],s=0,o=i.length;s<o;++s)(a=i[s])&&t.call(a,a.__data__,s,i);return this},attr:function(t,e){var r=i(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==e?r.local?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 n,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 n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):(n=this.node(),a=t,n.style.getPropertyValue(a)||w(n).getComputedStyle(n,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=_(t+"");if(arguments.length<2){for(var n=v(this.node()),a=-1,i=r.length;++a<i;)if(!n.contains(r[a]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?M:A)(this,t)}}:e?function(t){return function(){M(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?$:("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(K)},lower:function(){return this.each(L)},append:function(t){var e="function"==typeof t?t:s(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:s(t),n=null==e?O:"function"==typeof e?e:l(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(E)},clone:function(t){return this.select(t?R:C)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var n,a,i=(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}}),s=i.length;if(arguments.length<2){var o=this.node().__on;if(o){for(var l,c=0,h=o.length;c<h;++c)for(n=0,l=o[c];n<s;++n)if((a=i[n]).type===l.type&&a.name===l.name)return l.value}return}for(n=0,o=e?D:P;n<s;++n)this.each(o(i[n],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 n,a=t[e],i=0,s=a.length;i<s;++i)(n=a[i])&&(yield n)}};var z=0;function F(){this._="@"+(++z).toString(36)}F.prototype=(function(){return new F}).prototype={constructor:F,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._}}},94089:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",a="week",i="month",s="quarter",o="year",l="date",c="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|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,p=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},d="en",f={};f[d]={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,n){var a;if(!e)return d;if("string"==typeof e){var i=e.toLowerCase();f[i]&&(a=i),r&&(f[i]=r,a=i);var s=e.split("-");if(!a&&s.length>1)return t(s[0])}else{var o=e.name;f[o]=e,a=o}return!n&&a&&(d=a),a||!n&&d},b=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)},x={s:p,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+p(Math.floor(r/60),2,"0")+":"+p(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),a=e.clone().add(n,i),s=r-a<0,o=e.clone().add(n+(s?-1:1),i);return+(-(n+(r-a)/(s?a-o:o-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:i,y:o,w:a,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:s})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function p(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var d=p.prototype;return d.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(h);if(n){var a=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},d.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()},d.$utils=function(){return x},d.isValid=function(){return this.$d.toString()!==c},d.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},d.isAfter=function(t,e){return b(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<b(t)},d.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,s){var c=this,h=!!x.u(s)||s,u=x.p(t),p=function(t,e){var r=x.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return h?r:r.endOf("day")},d=function(t,e){return x.w(c.toDate()[t].apply(c.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},f=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case o:return h?p(1,0):p(31,11);case i:return h?p(1,g):p(0,g+1);case a:var b=this.$locale().weekStart||0,k=(f<b?f+7:f)-b;return p(h?m-k:m+(6-k),g);case"day":case l:return d(y+"Hours",0);case n:return d(y+"Minutes",1);case r:return d(y+"Seconds",2);case e:return d(y+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(a,s){var c,h=x.p(a),u="set"+(this.$u?"UTC":""),p=((c={}).day=u+"Date",c[l]=u+"Date",c[i]=u+"Month",c[o]=u+"FullYear",c[n]=u+"Hours",c[r]=u+"Minutes",c[e]=u+"Seconds",c[t]=u+"Milliseconds",c)[h],d="day"===h?this.$D+(s-this.$W):s;if(h===i||h===o){var f=this.clone().set(l,1);f.$d[p](d),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[x.p(t)]()},d.add=function(t,s){var l,c=this;t=Number(t);var h=x.p(s),u=function(e){var r=b(c);return x.w(r.date(r.date()+Math.round(e*t)),c)};if(h===i)return this.set(i,this.$M+t);if(h===o)return this.set(o,this.$y+t);if("day"===h)return u(1);if(h===a)return u(7);var p=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[h]||1,d=this.$d.getTime()+t*p;return x.w(d,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",a=x.z(this),i=this.$H,s=this.$m,o=this.$M,l=r.weekdays,h=r.months,p=r.meridiem,d=function(t,r,a,i){return t&&(t[r]||t(e,n))||a[r].slice(0,i)},f=function(t){return x.s(i%12||12,t,"0")},g=p||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(u,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return o+1;case"MM":return x.s(o+1,2,"0");case"MMM":return d(r.monthsShort,o,h,3);case"MMMM":return d(h,o);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,l,2);case"ddd":return d(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(i,s,!0);case"A":return g(i,s,!1);case"m":return String(s);case"mm":return x.s(s,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")})},d.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},d.diff=function(t,l,c){var h,u=this,p=x.p(l),d=b(t),f=(d.utcOffset()-this.utcOffset())*6e4,g=this-d,m=function(){return x.m(u,d)};switch(p){case o:h=m()/12;break;case i:h=m();break;case s:h=m()/3;break;case a:h=(g-f)/6048e5;break;case"day":h=(g-f)/864e5;break;case n:h=g/36e5;break;case r:h=g/6e4;break;case e:h=g/1e3;break;default:h=g}return c?h:x.a(h)},d.daysInMonth=function(){return this.endOf(i).$D},d.$locale=function(){return f[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},d.clone=function(){return x.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},p}(),w=k.prototype;return b.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",i],["$y",o],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,k,b),t.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(t){return b(1e3*t)},b.en=f[d],b.Ls=f,b.p={},b}()},94712:(t,e,r)=>{"use strict";r.d(e,{IU:()=>u,Oi:()=>o,U7:()=>h,U_:()=>p,on:()=>c});var n=r(73823),a=r(27058),i=r(58442),s=r(88252),o=(0,s.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function c(t,e,r){let i,s;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let o=e.shape?n.nq[e.shape]:void 0;if(!o)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let n;"sandbox"===r.config.securityLevel?n="_top":e.linkTarget&&(n=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",n??null),s=await o(i,e,r)}else i=s=await o(t,e,r);return i.attr("data-look",(0,a.KL)(e.look)),e.tooltip&&s.attr("title",e.tooltip),l.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,s.K)(c,"insertNode");var h=(0,s.K)((t,e)=>{l.set(e.id,t)},"setNodeElem"),u=(0,s.K)(()=>{l.clear()},"clear"),p=(0,s.K)(t=>{let e=l.get(t.id);i.R.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")},97688:(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"},99213:(t,e,r)=>{"use strict";r.d(e,{$V:()=>s,Av:()=>n,GX:()=>f,ML:()=>S,NA:()=>u,OG:()=>a,Qb:()=>m,R_:()=>o,Uw:()=>p,VP:()=>l,XZ:()=>k,ZR:()=>x,_u:()=>_,cT:()=>d,i1:()=>w,iq:()=>g,kj:()=>i,pj:()=>h,q:()=>y,ri:()=>v,vC:()=>c,x6:()=>b});let n="[object RegExp]",a="[object String]",i="[object Number]",s="[object Boolean]",o="[object Arguments]",l="[object Symbol]",c="[object Date]",h="[object Map]",u="[object Set]",p="[object Array]",d="[object ArrayBuffer]",f="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",k="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",v="[object Float32Array]",S="[object Float64Array]"}}]);