khoj 1.42.6.dev13__py3-none-any.whl → 1.42.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. khoj/app/settings.py +2 -2
  2. khoj/interface/compiled/404/index.html +2 -2
  3. khoj/interface/compiled/_next/static/chunks/1191.b547ec13349b4aed.js +1 -0
  4. khoj/interface/compiled/_next/static/chunks/1327-3b1a41af530fa8ee.js +20 -0
  5. khoj/interface/compiled/_next/static/chunks/1588.f0558a0bdffc4761.js +117 -0
  6. khoj/interface/compiled/_next/static/chunks/1915-fbfe167c84ad60c5.js +1 -0
  7. khoj/interface/compiled/_next/static/chunks/1918.925cb4a35518d258.js +43 -0
  8. khoj/interface/compiled/_next/static/chunks/{2117-3537ef9986be74d3.js → 2117-e78b6902ad6f75ec.js} +1 -1
  9. khoj/interface/compiled/_next/static/chunks/2242.9a07e19f1a3a8b16.js +1 -0
  10. khoj/interface/compiled/_next/static/chunks/2327-ea623ca2d22f78e9.js +1 -0
  11. khoj/interface/compiled/_next/static/chunks/2612.bcf5a623b3da209e.js +131 -0
  12. khoj/interface/compiled/_next/static/chunks/2849.dc00ae5ba7219cfc.js +1 -0
  13. khoj/interface/compiled/_next/static/chunks/2939-4d4084c5b888b960.js +1 -0
  14. khoj/interface/compiled/_next/static/chunks/303.fe76de943e930fbd.js +1 -0
  15. khoj/interface/compiled/_next/static/chunks/3265.924139c4146ee344.js +1 -0
  16. khoj/interface/compiled/_next/static/chunks/{4299.2aaa569416cfc208.js → 3489.c523fe96a2eee74f.js} +4 -2
  17. khoj/interface/compiled/_next/static/chunks/3592-b2a2444b0ec7b119.js +1 -0
  18. khoj/interface/compiled/_next/static/chunks/3595-ac8e81e04ecb89cb.js +1 -0
  19. khoj/interface/compiled/_next/static/chunks/4327.8d2a1b8f1ea78208.js +60 -0
  20. khoj/interface/compiled/_next/static/chunks/4447-d6cf93724d57e34b.js +1 -0
  21. khoj/interface/compiled/_next/static/chunks/4533.586e74b45a2bde25.js +55 -0
  22. khoj/interface/compiled/_next/static/chunks/4551.82ce1476b5516bc2.js +5 -0
  23. khoj/interface/compiled/_next/static/chunks/{4610.a1e7f40a759ed2aa.js → 4610.196691887afb7fea.js} +1 -1
  24. khoj/interface/compiled/_next/static/chunks/4748.0edd37cba3ea2809.js +59 -0
  25. khoj/interface/compiled/_next/static/chunks/4980.63500d68b3bb1222.js +166 -0
  26. khoj/interface/compiled/_next/static/chunks/5210.cd35a1c1ec594a20.js +93 -0
  27. khoj/interface/compiled/_next/static/chunks/5303-c65c9c6aeb263a0d.js +1 -0
  28. khoj/interface/compiled/_next/static/chunks/5329.f8b3c5b3d16159cd.js +1 -0
  29. khoj/interface/compiled/_next/static/chunks/5427-13d6ffd380fdfab7.js +1 -0
  30. khoj/interface/compiled/_next/static/chunks/5477-18323501c445315e.js +1 -0
  31. khoj/interface/compiled/_next/static/chunks/558-c14e76cff03f6a60.js +1 -0
  32. khoj/interface/compiled/_next/static/chunks/{7211-7fedd2ee3655239c.js → 5639-09e2009a2adedf8b.js} +43 -19
  33. khoj/interface/compiled/_next/static/chunks/5830.8876eccb82da9b7d.js +262 -0
  34. khoj/interface/compiled/_next/static/chunks/6230.88a71d8145347b3f.js +1 -0
  35. khoj/interface/compiled/_next/static/chunks/{6434.7afea9648e238ad5.js → 6434.e6cd986d690f2cef.js} +1 -1
  36. khoj/interface/compiled/_next/static/chunks/7127-880018d56c512906.js +1 -0
  37. khoj/interface/compiled/_next/static/chunks/{3305.1fc7297ba154ee95.js → 7161.77e0530a40ad5ca8.js} +1 -1
  38. khoj/interface/compiled/_next/static/chunks/{5555.f7cf9795d675de51.js → 7303.d0612f812a967a08.js} +2 -2
  39. khoj/interface/compiled/_next/static/chunks/7505.c31027a3695bdebb.js +148 -0
  40. khoj/interface/compiled/_next/static/chunks/{8673.be44c4d9e4f1d084.js → 7760.35649cc21d9585bd.js} +1 -1
  41. khoj/interface/compiled/_next/static/chunks/83.48e2db193a940052.js +1 -0
  42. khoj/interface/compiled/_next/static/chunks/8427.844694e06133fb51.js +1 -0
  43. khoj/interface/compiled/_next/static/chunks/8665.4db7e6b2e8933497.js +174 -0
  44. khoj/interface/compiled/_next/static/chunks/{7890.f681eb1d1f83bea2.js → 8694.2bd9c2f65d8c5847.js} +1 -1
  45. khoj/interface/compiled/_next/static/chunks/872.caf84cc1a39ae59f.js +1 -0
  46. khoj/interface/compiled/_next/static/chunks/{3332.6313db5217bb1b67.js → 8888.ebe0e552b59e7fed.js} +1 -1
  47. khoj/interface/compiled/_next/static/chunks/8890.6e8a59e4de6978bc.js +215 -0
  48. khoj/interface/compiled/_next/static/chunks/8950.5f2272e0ac923f9e.js +1 -0
  49. khoj/interface/compiled/_next/static/chunks/90542734.2c21f16f18b22411.js +1 -0
  50. khoj/interface/compiled/_next/static/chunks/9202.c703864fcedc8d1f.js +63 -0
  51. khoj/interface/compiled/_next/static/chunks/{9433.b1b5f5d050c43e3c.js → 9245.a04e92d034540234.js} +6 -6
  52. khoj/interface/compiled/_next/static/chunks/9320.6aca4885d541aa44.js +24 -0
  53. khoj/interface/compiled/_next/static/chunks/945-74376499b067d28e.js +1 -0
  54. khoj/interface/compiled/_next/static/chunks/9535.f78cd92d03331e55.js +1 -0
  55. khoj/interface/compiled/_next/static/chunks/9537-d9ab442ce15d1e20.js +1 -0
  56. khoj/interface/compiled/_next/static/chunks/9568-0d60ac475f4cc538.js +1 -0
  57. khoj/interface/compiled/_next/static/chunks/9968.b111fc002796da81.js +1 -0
  58. khoj/interface/compiled/_next/static/chunks/app/agents/layout-e3d72f0edda6aa0c.js +1 -0
  59. khoj/interface/compiled/_next/static/chunks/app/agents/page-535e475b00b34838.js +1 -0
  60. khoj/interface/compiled/_next/static/chunks/app/automations/{layout-7f5c33a70e46b3af.js → layout-63603d2cb33279f7.js} +1 -1
  61. khoj/interface/compiled/_next/static/chunks/app/automations/{page-fc4f5a3ca7201154.js → page-4db5ed7bd0f7db76.js} +1 -1
  62. khoj/interface/compiled/_next/static/chunks/app/chat/layout-d5ae861e1ade9d08.js +1 -0
  63. khoj/interface/compiled/_next/static/chunks/app/chat/page-ebf200a5eb69896f.js +1 -0
  64. khoj/interface/compiled/_next/static/chunks/app/page-803cb52577fd6377.js +1 -0
  65. khoj/interface/compiled/_next/static/chunks/app/search/layout-4505b79deb734a30.js +1 -0
  66. khoj/interface/compiled/_next/static/chunks/app/search/page-60f4651fd86ffa86.js +1 -0
  67. khoj/interface/compiled/_next/static/chunks/app/settings/{layout-8a22f370d3eaeed3.js → layout-f88cedfe9ad4df7c.js} +1 -1
  68. khoj/interface/compiled/_next/static/chunks/app/settings/{page-5d9134d4a97f8834.js → page-72819409ddbb79a0.js} +1 -1
  69. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-95998f0bdc22bb13.js +1 -0
  70. khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-bcc8f41edcfbcb6c.js → page-0a3fca790ec23682.js} +1 -1
  71. khoj/interface/compiled/_next/static/chunks/{d3ac728e-07f1976c92cfb109.js → d3ac728e-4c56e7f41db266b7.js} +1 -1
  72. khoj/interface/compiled/_next/static/chunks/f3e3247b-1758d4651e4457c2.js +10 -0
  73. khoj/interface/compiled/_next/static/chunks/{main-63d6432f34cdf74b.js → main-fc8e0fefa2ef3d8c.js} +1 -1
  74. khoj/interface/compiled/_next/static/chunks/webpack-ce326b30c3b056e2.js +1 -0
  75. khoj/interface/compiled/_next/static/css/05f842402ab5db16.css +1 -0
  76. khoj/interface/compiled/_next/static/css/{7017ee76c2f2cd87.css → 3090706713c12a32.css} +1 -1
  77. khoj/interface/compiled/_next/static/css/440ae0f0f650dc35.css +1 -0
  78. khoj/interface/compiled/_next/static/css/a965a23a39df9a3f.css +1 -0
  79. khoj/interface/compiled/_next/static/css/{e4eb883b5265d372.css → db7d90554f3ab82b.css} +1 -1
  80. khoj/interface/compiled/_next/static/css/ee66643a6a5bf71c.css +1 -0
  81. khoj/interface/compiled/agents/index.html +2 -2
  82. khoj/interface/compiled/agents/index.txt +3 -3
  83. khoj/interface/compiled/automations/index.html +2 -2
  84. khoj/interface/compiled/automations/index.txt +4 -4
  85. khoj/interface/compiled/chat/index.html +2 -2
  86. khoj/interface/compiled/chat/index.txt +3 -3
  87. khoj/interface/compiled/index.html +2 -2
  88. khoj/interface/compiled/index.txt +3 -3
  89. khoj/interface/compiled/search/index.html +2 -2
  90. khoj/interface/compiled/search/index.txt +3 -3
  91. khoj/interface/compiled/settings/index.html +2 -2
  92. khoj/interface/compiled/settings/index.txt +5 -5
  93. khoj/interface/compiled/share/chat/index.html +2 -2
  94. khoj/interface/compiled/share/chat/index.txt +3 -3
  95. khoj/processor/conversation/google/utils.py +1 -1
  96. khoj/processor/conversation/openai/utils.py +10 -4
  97. khoj/processor/image/generate.py +50 -1
  98. khoj/processor/tools/online_search.py +8 -1
  99. khoj/routers/helpers.py +20 -14
  100. khoj/search_type/text_search.py +3 -2
  101. {khoj-1.42.6.dev13.dist-info → khoj-1.42.7.dist-info}/METADATA +1 -1
  102. {khoj-1.42.6.dev13.dist-info → khoj-1.42.7.dist-info}/RECORD +112 -110
  103. khoj/interface/compiled/_next/static/chunks/1243.ea2826fb35adb15a.js +0 -1
  104. khoj/interface/compiled/_next/static/chunks/133.392ae90c3b2a67f2.js +0 -1
  105. khoj/interface/compiled/_next/static/chunks/1592.b069bdb7aaddd2eb.js +0 -5
  106. khoj/interface/compiled/_next/static/chunks/1915-ab4353eaca76f690.js +0 -1
  107. khoj/interface/compiled/_next/static/chunks/2069.f060659791c0c484.js +0 -1
  108. khoj/interface/compiled/_next/static/chunks/2170.45431769330fa5b7.js +0 -134
  109. khoj/interface/compiled/_next/static/chunks/2327-024b9e0bd6d8c9eb.js +0 -1
  110. khoj/interface/compiled/_next/static/chunks/3237.c4754f02f1a388cb.js +0 -1
  111. khoj/interface/compiled/_next/static/chunks/3451.421db0b49fdbd881.js +0 -252
  112. khoj/interface/compiled/_next/static/chunks/3460.39c2b9b6a3898384.js +0 -159
  113. khoj/interface/compiled/_next/static/chunks/4327.238d15c09a039b8b.js +0 -60
  114. khoj/interface/compiled/_next/static/chunks/4357-d86d3401f6f6f802.js +0 -1
  115. khoj/interface/compiled/_next/static/chunks/4363-4efaf12abe696251.js +0 -20
  116. khoj/interface/compiled/_next/static/chunks/4415.e0c0da5eedae4dd7.js +0 -47
  117. khoj/interface/compiled/_next/static/chunks/4447-5d44807c40355b1a.js +0 -1
  118. khoj/interface/compiled/_next/static/chunks/4650.41f041da0ad365ad.js +0 -215
  119. khoj/interface/compiled/_next/static/chunks/479.a7e0c9cfc376a695.js +0 -1
  120. khoj/interface/compiled/_next/static/chunks/4872.5422e8324272ab40.js +0 -1
  121. khoj/interface/compiled/_next/static/chunks/5061.79a660faed0e16a9.js +0 -1
  122. khoj/interface/compiled/_next/static/chunks/5279.85d537880b8041ae.js +0 -24
  123. khoj/interface/compiled/_next/static/chunks/5402.b9460f1b16b57e92.js +0 -63
  124. khoj/interface/compiled/_next/static/chunks/5427-442f34b514b9fc26.js +0 -1
  125. khoj/interface/compiled/_next/static/chunks/5473-921e17a6177f9729.js +0 -1
  126. khoj/interface/compiled/_next/static/chunks/5477-b91e9926cfc3095c.js +0 -1
  127. khoj/interface/compiled/_next/static/chunks/5621-415bdc6c7b57af11.js +0 -1
  128. khoj/interface/compiled/_next/static/chunks/58.f4bd8a3c9d88f5fe.js +0 -46
  129. khoj/interface/compiled/_next/static/chunks/5854-745bea90ea77a1c7.js +0 -1
  130. khoj/interface/compiled/_next/static/chunks/5978.ddc72cd73130aadc.js +0 -1
  131. khoj/interface/compiled/_next/static/chunks/6663-133d5db72d2d5f24.js +0 -1
  132. khoj/interface/compiled/_next/static/chunks/7127-7c604e51b92189a7.js +0 -1
  133. khoj/interface/compiled/_next/static/chunks/7140.4be689873f6a2d1f.js +0 -116
  134. khoj/interface/compiled/_next/static/chunks/7647-2aa4cf0e69b7a84d.js +0 -1
  135. khoj/interface/compiled/_next/static/chunks/7836.86884157d53d23a1.js +0 -117
  136. khoj/interface/compiled/_next/static/chunks/7953.f6fc335a23efb959.js +0 -1
  137. khoj/interface/compiled/_next/static/chunks/8254.3145a4fbdcfdca46.js +0 -1
  138. khoj/interface/compiled/_next/static/chunks/8400.c95e4e79bcd79a56.js +0 -78
  139. khoj/interface/compiled/_next/static/chunks/8698.a088118fef40d302.js +0 -1
  140. khoj/interface/compiled/_next/static/chunks/9022.33974a513a281fd2.js +0 -151
  141. khoj/interface/compiled/_next/static/chunks/90542734.9e6e44b1b45b30fe.js +0 -1
  142. khoj/interface/compiled/_next/static/chunks/9259-d8bcd9da9e80c81e.js +0 -1
  143. khoj/interface/compiled/_next/static/chunks/9334-b22127fe2d39bc60.js +0 -1
  144. khoj/interface/compiled/_next/static/chunks/9822.34f293973c4e9b04.js +0 -1
  145. khoj/interface/compiled/_next/static/chunks/app/agents/layout-4e2a134ec26aa606.js +0 -1
  146. khoj/interface/compiled/_next/static/chunks/app/agents/page-774c78ff0f55a228.js +0 -1
  147. khoj/interface/compiled/_next/static/chunks/app/chat/layout-ad4d1792ab1a4108.js +0 -1
  148. khoj/interface/compiled/_next/static/chunks/app/chat/page-e66cd78e0b3507dd.js +0 -1
  149. khoj/interface/compiled/_next/static/chunks/app/page-f7a0286dfc31ad6b.js +0 -1
  150. khoj/interface/compiled/_next/static/chunks/app/search/layout-f5881c7ae3ba0795.js +0 -1
  151. khoj/interface/compiled/_next/static/chunks/app/search/page-f1a7f278c89e09b6.js +0 -1
  152. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-abb6c5f4239ad7be.js +0 -1
  153. khoj/interface/compiled/_next/static/chunks/ebbfb5c1-a73c51b6a41a5ff6.js +0 -10
  154. khoj/interface/compiled/_next/static/chunks/webpack-23f0977ac601de9a.js +0 -1
  155. khoj/interface/compiled/_next/static/css/37a73b87f02df402.css +0 -1
  156. khoj/interface/compiled/_next/static/css/76c658ee459140a9.css +0 -1
  157. khoj/interface/compiled/_next/static/css/93eeacc43e261162.css +0 -1
  158. khoj/interface/compiled/_next/static/css/e1bf03aa79521f86.css +0 -1
  159. /khoj/interface/compiled/_next/static/{hz_CN4sP5gK8Z2tAoqJU- → 6gTfZE67Rm1YXLQnRIZ0L}/_buildManifest.js +0 -0
  160. /khoj/interface/compiled/_next/static/{hz_CN4sP5gK8Z2tAoqJU- → 6gTfZE67Rm1YXLQnRIZ0L}/_ssgManifest.js +0 -0
  161. /khoj/interface/compiled/_next/static/chunks/{7200-cabc57d26c4b32da.js → 7200-ac3b2e37ff30e126.js} +0 -0
  162. /khoj/interface/compiled/_next/static/chunks/{8667-adbe6017a66cef10.js → 8667-4b7790573b08c50d.js} +0 -0
  163. /khoj/interface/compiled/_next/static/chunks/app/_not-found/{page-0ec97c4970898f2d.js → page-84f94d15b2da4eac.js} +0 -0
  164. /khoj/interface/compiled/_next/static/chunks/app/{layout-baa6e7974e560a7a.js → layout-a0c5495d6c582cea.js} +0 -0
  165. /khoj/interface/compiled/_next/static/chunks/{fd9d1056-7454f5bbfcf5bd5b.js → fd9d1056-aa94101ec5388dba.js} +0 -0
  166. {khoj-1.42.6.dev13.dist-info → khoj-1.42.7.dist-info}/WHEEL +0 -0
  167. {khoj-1.42.6.dev13.dist-info → khoj-1.42.7.dist-info}/entry_points.txt +0 -0
  168. {khoj-1.42.6.dev13.dist-info → khoj-1.42.7.dist-info}/licenses/LICENSE +0 -0
@@ -1,10 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1919],{65903:function(t,e,a){a.d(e,{C1:function(){return d},Lf:function(){return en},XO:function(){return b},Yn:function(){return es},ZH:function(){return P},aH:function(){return eo},dW:function(){return er},gU:function(){return eh},jr:function(){return g},us:function(){return L}});var l=a(66384),r=a(75794),i=a(1816),n=a(86954),s=a(30086),h=a(15440),o=a(90705),d=(0,s.eW)(async(t,e,a)=>{let l,r;let o=e.useHtmlLabels||(0,s.ku)(s.nV()?.htmlLabels);l=a||"node default";let d=t.insert("g").attr("class",l).attr("id",e.domId||e.id),c=d.insert("g").attr("class","label").attr("style",(0,n.R7)(e.labelStyle));r=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let g=await (0,i.rw)(c,(0,s.oO)((0,n.SH)(r),(0,s.nV)()),{useHtmlLabels:o,width:e.width||s.nV().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),y=g.getBBox(),f=(e?.padding??0)/2;if(o){let t=g.children[0],e=(0,h.Ys)(g),a=t.getElementsByTagName("img");if(a){let t=""===r.replace(/<img[^>]*>/g,"").trim();await Promise.all([...a].map(e=>new Promise(a=>{function l(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=(0,s.nV)().fontSize?(0,s.nV)().fontSize:window.getComputedStyle(document.body).fontSize,[a=s.vZ.fontSize]=(0,n.VG)(t),l=5*a+"px";e.style.minWidth=l,e.style.maxWidth=l}else e.style.width="100%";a(e)}(0,s.eW)(l,"setupImage"),setTimeout(()=>{e.complete&&l()}),e.addEventListener("error",l),e.addEventListener("load",l)})))}y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return o?c.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):c.attr("transform","translate(0, "+-y.height/2+")"),e.centerLabel&&c.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:d,bbox:y,halfPadding:f,label:c}},"labelHelper"),c=(0,s.eW)(async(t,e,a)=>{let l=a.useHtmlLabels||(0,s.ku)(s.nV()?.flowchart?.htmlLabels),r=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),o=await (0,i.rw)(r,(0,s.oO)((0,n.SH)(e),(0,s.nV)()),{useHtmlLabels:l,width:a.width||s.nV()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),d=o.getBBox(),c=a.padding/2;if((0,s.ku)(s.nV()?.flowchart?.htmlLabels)){let t=o.children[0],e=(0,h.Ys)(o);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}return l?r.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):r.attr("transform","translate(0, "+-d.height/2+")"),a.centerLabel&&r.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),r.insert("rect",":first-child"),{shapeSvg:t,bbox:d,halfPadding:c,label:r}},"insertLabel"),g=(0,s.eW)((t,e)=>{let a=e.node().getBBox();t.width=a.width,t.height=a.height},"updateNodeBounds"),y=(0,s.eW)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function f(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function p(t,e,a,l,r,i){let n=[],s=a-t,h=2*Math.PI/(s/i),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+r*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function u(t,e,a,l,r,i){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}(0,s.eW)(f,"createPathFromPoints"),(0,s.eW)(p,"generateFullSineWavePoints"),(0,s.eW)(u,"generateCirclePoints");var m=(0,s.eW)((t,e)=>{var a,l,r=t.x,i=t.y,n=e.x-r,s=e.y-i,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:r+a,y:i+l}},"intersectRect");function x(t,e){e&&t.attr("style",e)}async function w(t){let e=(0,h.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=e.append("xhtml:div"),l=t.label;t.label&&(0,s.l0)(t.label)&&(l=await (0,s.uT)(t.label.replace(s.SY.lineBreakRegex,"\n"),(0,s.nV)()));let r=t.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+r+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+l+"</span>"),x(a,t.labelStyle),a.style("display","inline-block"),a.style("padding-right","1px"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,s.eW)(x,"applyStyle"),(0,s.eW)(w,"addHtmlLabel");var b=(0,s.eW)(async(t,e,a,l)=>{let r=t||"";if("object"==typeof r&&(r=r[0]),(0,s.ku)((0,s.nV)().flowchart.htmlLabels)){r=r.replace(/\\n|\n/g,"<br />"),s.cM.info("vertexText"+r);let t={isNode:l,label:(0,n.SH)(r).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:e?e.replace("fill:","color:"):e};return await w(t)}{let t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));for(let e of"string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?r:[]){let l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),a?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=e.trim(),t.appendChild(l)}return t}},"createLabel"),$=(0,s.eW)((t,e,a,l,r)=>["M",t+r,e,"H",t+a-r,"A",r,r,0,0,1,t+a,e+r,"V",e+l-r,"A",r,r,0,0,1,t+a-r,e+l,"H",t+r,"A",r,r,0,0,1,t,e+l-r,"V",e+r,"A",r,r,0,0,1,t+r,e,"Z"].join(" "),"createRoundedRectPathD"),k=(0,s.eW)(t=>{let{handDrawnSeed:e}=(0,s.nV)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),M=(0,s.eW)(t=>{let e=S([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),S=(0,s.eW)(t=>{let e=new Map;return t.forEach(t=>{let[a,l]=t.split(":");e.set(a.trim(),l?.trim())}),e},"styles2Map"),D=(0,s.eW)(t=>{let{stylesArray:e}=M(t),a=[],l=[],r=[],i=[];return e.forEach(t=>{let e=t[0];"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e?a.push(t.join(":")+" !important"):(l.push(t.join(":")+" !important"),e.includes("stroke")&&r.push(t.join(":")+" !important"),"fill"===e&&i.push(t.join(":")+" !important"))}),{labelStyles:a.join(";"),nodeStyles:l.join(";"),stylesArray:e,borderStyles:r,backgroundStyles:i}},"styles2String"),W=(0,s.eW)((t,e)=>{let{themeVariables:a,handDrawnSeed:l}=(0,s.nV)(),{nodeBorder:r,mainBkg:i}=a,{stylesMap:n}=M(t);return Object.assign({roughness:.7,fill:n.get("fill")||i,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:n.get("stroke")||r,seed:l,strokeWidth:n.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e)},"userNodeOverrides"),v=(0,s.eW)(async(t,e)=>{let a;s.cM.info("Creating subgraph rect for ",e.id,e);let l=(0,s.nV)(),{themeVariables:n,handDrawnSeed:d}=l,{clusterBkg:c,clusterBorder:g}=n,{labelStyles:y,nodeStyles:f,borderStyles:p,backgroundStyles:u}=D(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),w=(0,s.ku)(l.flowchart.htmlLabels),b=x.insert("g").attr("class","cluster-label "),k=await (0,i.rw)(b,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0}),M=k.getBBox();if((0,s.ku)(l.flowchart.htmlLabels)){let t=k.children[0],e=(0,h.Ys)(k);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let S=e.width<=M.width+e.padding?M.width+e.padding:e.width;e.width<=M.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height,N=e.x-S/2,C=e.y-v/2;if(s.cM.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=o.Z.svg(x),l=W(e,{roughness:.7,fill:c,stroke:g,fillWeight:3,seed:d}),r=t.path($(N,C,S,v,0),l);(a=x.insert(()=>(s.cM.debug("Rough node insert CXC",r),r),":first-child")).select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",u.join(";").replace("fill","stroke"))}else(a=x.insert("rect",":first-child")).attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",N).attr("y",C).attr("width",S).attr("height",v);let{subGraphTitleTopMargin:B}=(0,r.L)(l);if(b.attr("transform",`translate(${e.x-M.width/2}, ${e.y-e.height/2+B})`),y){let t=b.select("span");t&&t.attr("style",y)}let A=a.node().getBBox();return e.offsetX=0,e.width=A.width,e.height=A.height,e.offsetY=M.height-e.padding/2,e.intersect=function(t){return m(e,t)},{cluster:x,labelBBox:M}},"rect"),N=(0,s.eW)((t,e)=>{let a=t.insert("g").attr("class","note-cluster").attr("id",e.id),l=a.insert("rect",":first-child"),r=0*e.padding,i=r/2;l.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-i).attr("y",e.y-e.height/2-i).attr("width",e.width+r).attr("height",e.height+r).attr("fill","none");let n=l.node().getBBox();return e.width=n.width,e.height=n.height,e.intersect=function(t){return m(e,t)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),C=(0,s.eW)(async(t,e)=>{let a;let l=(0,s.nV)(),{themeVariables:r,handDrawnSeed:i}=l,{altBackground:n,compositeBackground:d,compositeTitleBackground:c,nodeBorder:g}=r,y=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),f=y.insert("g",":first-child"),p=y.insert("g").attr("class","cluster-label"),u=y.append("rect"),x=p.node().appendChild(await b(e.label,e.labelStyle,void 0,!0)),w=x.getBBox();if((0,s.ku)(l.flowchart.htmlLabels)){let t=x.children[0],e=(0,h.Ys)(x);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}let k=0*e.padding,M=(e.width<=w.width+e.padding?w.width+e.padding:e.width)+k;e.width<=w.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height+k,D=e.height+k-w.height-6,W=e.x-M/2,v=e.y-S/2;e.width=M;let N=e.y-e.height/2-k/2+w.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),l=o.Z.svg(y),r=e.rx||e.ry?l.path($(W,v,M,S,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:g,seed:i}):l.rectangle(W,v,M,S,{seed:i});a=y.insert(()=>r,":first-child");let s=l.rectangle(W,N,M,D,{fill:t?n:d,fillStyle:t?"hachure":"solid",stroke:g,seed:i});a=y.insert(()=>r,":first-child"),u=y.insert(()=>s)}else(a=f.insert("rect",":first-child")).attr("class","outer").attr("x",W).attr("y",v).attr("width",M).attr("height",S).attr("data-look",e.look),u.attr("class","inner").attr("x",W).attr("y",N).attr("width",M).attr("height",D);p.attr("transform",`translate(${e.x-w.width/2}, ${v+1-((0,s.ku)(l.flowchart.htmlLabels)?0:3)})`);let C=a.node().getBBox();return e.height=C.height,e.offsetX=0,e.offsetY=w.height-e.padding/2,e.labelBBox=w,e.intersect=function(t){return m(e,t)},{cluster:y,labelBBox:w}},"roundedWithTitle"),B=(0,s.eW)(async(t,e)=>{let a;s.cM.info("Creating subgraph rect for ",e.id,e);let l=(0,s.nV)(),{themeVariables:n,handDrawnSeed:d}=l,{clusterBkg:c,clusterBorder:g}=n,{labelStyles:y,nodeStyles:f,borderStyles:p,backgroundStyles:u}=D(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),w=(0,s.ku)(l.flowchart.htmlLabels),b=x.insert("g").attr("class","cluster-label "),k=await (0,i.rw)(b,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}),M=k.getBBox();if((0,s.ku)(l.flowchart.htmlLabels)){let t=k.children[0],e=(0,h.Ys)(k);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let S=e.width<=M.width+e.padding?M.width+e.padding:e.width;e.width<=M.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height,N=e.x-S/2,C=e.y-v/2;if(s.cM.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=o.Z.svg(x),l=W(e,{roughness:.7,fill:c,stroke:g,fillWeight:4,seed:d}),r=t.path($(N,C,S,v,e.rx),l);(a=x.insert(()=>(s.cM.debug("Rough node insert CXC",r),r),":first-child")).select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",u.join(";").replace("fill","stroke"))}else(a=x.insert("rect",":first-child")).attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",N).attr("y",C).attr("width",S).attr("height",v);let{subGraphTitleTopMargin:B}=(0,r.L)(l);if(b.attr("transform",`translate(${e.x-M.width/2}, ${e.y-e.height/2+B})`),y){let t=b.select("span");t&&t.attr("style",y)}let A=a.node().getBBox();return e.offsetX=0,e.width=A.width,e.height=A.height,e.offsetY=M.height-e.padding/2,e.intersect=function(t){return m(e,t)},{cluster:x,labelBBox:M}},"kanbanSection"),A={rect:v,squareRect:v,roundedWithTitle:C,noteGroup:N,divider:(0,s.eW)((t,e)=>{let a;let{themeVariables:l,handDrawnSeed:r}=(0,s.nV)(),{nodeBorder:i}=l,n=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),h=n.insert("g",":first-child"),d=0*e.padding,c=e.width+d;e.diff=-e.padding;let g=e.height+d,y=e.x-c/2,f=e.y-g/2;if(e.width=c,"handDrawn"===e.look){let t=o.Z.svg(n).rectangle(y,f,c,g,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:i,seed:r});a=n.insert(()=>t,":first-child")}else(a=h.insert("rect",":first-child")).attr("class","divider").attr("x",y).attr("y",f).attr("width",c).attr("height",g).attr("data-look",e.look);let p=a.node().getBBox();return e.height=p.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return m(e,t)},{cluster:n,labelBBox:{}}},"divider"),kanbanSection:B},R=new Map,L=(0,s.eW)(async(t,e)=>{let a=e.shape||"rect",l=await A[a](t,e);return R.set(e.id,l),l},"insertCluster"),P=(0,s.eW)(()=>{R=new Map},"clear");function Z(t,e,a,l){var r=t.x,i=t.y,n=r-l.x,s=i-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<r&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<i&&(d=-d),{x:r+o,y:i+d}}function I(t,e,a){return Z(t,e,e,a)}function T(t,e,a,l){var r,i,n,s,h,o,d,c,g,y,f,p,u;if(r=e.y-t.y,n=t.x-e.x,h=e.x*t.y-t.x*e.y,g=r*a.x+n*a.y+h,y=r*l.x+n*l.y+h,!(0!==g&&0!==y&&E(g,y))&&(i=l.y-a.y,s=a.x-l.x,o=l.x*a.y-a.x*l.y,d=i*t.x+s*t.y+o,c=i*e.x+s*e.y+o,!(0!==d&&0!==c&&E(d,c))&&0!=(f=r*s-i*n)))return p=Math.abs(f/2),{x:(u=n*o-s*h)<0?(u-p)/f:(u+p)/f,y:(u=i*h-r*o)<0?(u-p)/f:(u+p)/f}}function E(t,e){return t*e>0}function H(t,e,a){let l=t.x,r=t.y,i=[],n=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=r-t.height/2-s;for(let l=0;l<e.length;l++){let r=e[l],n=e[l<e.length-1?l+1:0],s=T(t,a,{x:h+r.x,y:o+r.y},{x:h+n.x,y:o+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let l=t.x-a.x,r=t.y-a.y,i=Math.sqrt(l*l+r*r),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return i<h?-1:i===h?0:1}),i[0]):t}(0,s.eW)(function(t,e){return t.intersect(e)},"intersectNode"),(0,s.eW)(Z,"intersectEllipse"),(0,s.eW)(I,"intersectCircle"),(0,s.eW)(T,"intersectLine"),(0,s.eW)(E,"sameSign"),(0,s.eW)(H,"intersectPolygon");var V={circle:I,polygon:H,rect:m};function j(t,e){let{labelStyles:a}=D(e);e.labelStyle=a;let l=y(e),r=l;l||(r="anchor");let i=t.insert("g").attr("class",r).attr("id",e.domId||e.id),{cssStyles:h}=e,d=o.Z.svg(i),c=W(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let f=d.circle(0,0,2,c),p=i.insert(()=>f,":first-child");return p.attr("class","anchor").attr("style",(0,n.R7)(h)),g(e,p),e.intersect=function(t){return s.cM.info("Circle intersect",e,1,t),V.circle(e,1,t)},i}function _(t,e,a,l,r,i,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/r)**2+((l-e)/2/i)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*i*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*r*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/r),y=Math.atan2((l-c)/i,(a-d)/r)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let f=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+r*Math.cos(e),l=c+i*Math.sin(e);f.push({x:a,y:l})}return f}async function Y(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),n=i.width+e.padding+20,s=i.height+e.padding,h=s/2,c=h/(2.5+s/50),{cssStyles:p}=e,u=[{x:n/2,y:-s/2},{x:-n/2,y:-s/2},..._(-n/2,-s/2,-n/2,s/2,c,h,!1),{x:n/2,y:s/2},..._(n/2,s/2,n/2,-s/2,c,h,!0)],m=o.Z.svg(r),x=W(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let w=f(u),b=m.path(w,x),$=r.insert(()=>b,":first-child");return $.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",l),$.attr("transform",`translate(${c/2}, 0)`),g(e,$),e.intersect=function(t){return V.polygon(e,u,t)},r}function z(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}async function q(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),s=n.height+e.padding,h=n.width+e.padding+12,c=-s,p=[{x:12,y:c},{x:h,y:c},{x:h,y:0},{x:0,y:0},{x:0,y:c+12},{x:12,y:c}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=f(p),n=t.path(r,l);a=i.insert(()=>n,":first-child").attr("transform",`translate(${-h/2}, ${s/2})`),u&&a.attr("style",u)}else a=z(i,h,s,p);return r&&a.attr("style",r),g(e,a),e.intersect=function(t){return V.polygon(e,p,t)},i}function O(t,e){let{nodeStyles:a}=D(e);e.label="";let l=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:r}=e,i=Math.max(28,e.width??0),n=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}],s=o.Z.svg(l),h=W(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let d=f(n),c=s.path(d,h),g=l.insert(()=>c,":first-child");return r&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",r),a&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return V.polygon(e,n,t)},l}async function F(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:h,halfPadding:c}=await d(t,e,y(e)),f=h.width/2+c,{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=t.circle(0,0,2*f,l);(a=i.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",(0,n.R7)(p))}else a=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",f).attr("cx",0).attr("cy",0);return g(e,a),e.intersect=function(t){return s.cM.info("Circle intersect",e,f,t),V.circle(e,f,t)},i}function X(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,r={x:l/2*e,y:l/2*a},i={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
2
- M ${r.x},${r.y} L ${n.x},${n.y}`}function J(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a,e.label="";let r=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),i=Math.max(30,e?.width??0),{cssStyles:n}=e,h=o.Z.svg(r),d=W(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let c=h.circle(0,0,2*i,d),f=X(i),p=h.path(f,d),u=r.insert(()=>c,":first-child");return u.insert(()=>p),n&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",n),l&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",l),g(e,u),e.intersect=function(t){return s.cM.info("crossedCircle intersect",e,{radius:i,point:t}),V.circle(e,i,t)},r}function G(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function U(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=i.width+(e.padding??0),h=i.height+(e.padding??0),c=Math.max(5,.1*h),{cssStyles:p}=e,u=[...G(s/2,-h/2,c,30,-90,0),{x:-s/2-c,y:c},...G(s/2+2*c,-c,c,20,-180,-270),...G(s/2+2*c,c,c,20,-90,-180),{x:-s/2-c,y:-h/2},...G(s/2,h/2,c,20,0,90)],m=[{x:s/2,y:-h/2-c},{x:-s/2,y:-h/2-c},...G(s/2,-h/2,c,20,-90,0),{x:-s/2-c,y:-c},...G(s/2+.1*s,-c,c,20,-180,-270),...G(s/2+.1*s,c,c,20,-90,-180),{x:-s/2-c,y:h/2},...G(s/2,h/2,c,20,0,90),{x:-s/2,y:h/2+c},{x:s/2,y:h/2+c}],x=o.Z.svg(r),w=W(e,{fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let b=f(u).replace("Z",""),$=x.path(b,w),k=f(m),M=x.path(k,{...w}),S=r.insert("g",":first-child");return S.insert(()=>M,":first-child").attr("stroke-opacity",0),S.insert(()=>$,":first-child"),S.attr("class","text"),p&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",l),S.attr("transform",`translate(${c}, 0)`),n.attr("transform",`translate(${-s/2+c-(i.x-(i.left??0))},${-h/2+(e.padding??0)/2-(i.y-(i.top??0))})`),g(e,S),e.intersect=function(t){return V.polygon(e,m,t)},r}function K(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:i,y:o})}return n}async function Q(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=i.width+(e.padding??0),h=i.height+(e.padding??0),c=Math.max(5,.1*h),{cssStyles:p}=e,u=[...K(s/2,-h/2,c,20,-90,0),{x:s/2+c,y:-c},...K(s/2+2*c,-c,c,20,-180,-270),...K(s/2+2*c,c,c,20,-90,-180),{x:s/2+c,y:h/2},...K(s/2,h/2,c,20,0,90)],m=[{x:-s/2,y:-h/2-c},{x:s/2,y:-h/2-c},...K(s/2,-h/2,c,20,-90,0),{x:s/2+c,y:-c},...K(s/2+2*c,-c,c,20,-180,-270),...K(s/2+2*c,c,c,20,-90,-180),{x:s/2+c,y:h/2},...K(s/2,h/2,c,20,0,90),{x:s/2,y:h/2+c},{x:-s/2,y:h/2+c}],x=o.Z.svg(r),w=W(e,{fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let b=f(u).replace("Z",""),$=x.path(b,w),k=f(m),M=x.path(k,{...w}),S=r.insert("g",":first-child");return S.insert(()=>M,":first-child").attr("stroke-opacity",0),S.insert(()=>$,":first-child"),S.attr("class","text"),p&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",l),S.attr("transform",`translate(${-c}, 0)`),n.attr("transform",`translate(${-s/2+(e.padding??0)/2-(i.x-(i.left??0))},${-h/2+(e.padding??0)/2-(i.y-(i.top??0))})`),g(e,S),e.intersect=function(t){return V.polygon(e,m,t)},r}function tt(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function te(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=i.width+(e.padding??0),h=i.height+(e.padding??0),c=Math.max(5,.1*h),{cssStyles:p}=e,u=[...tt(s/2,-h/2,c,30,-90,0),{x:-s/2-c,y:c},...tt(s/2+2*c,-c,c,20,-180,-270),...tt(s/2+2*c,c,c,20,-90,-180),{x:-s/2-c,y:-h/2},...tt(s/2,h/2,c,20,0,90)],m=[...tt(-s/2+c+c/2,-h/2,c,20,-90,-180),{x:s/2-c/2,y:c},...tt(-s/2-c/2,-c,c,20,0,90),...tt(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...tt(-s/2+c+c/2,h/2,c,30,-180,-270)],x=[{x:s/2,y:-h/2-c},{x:-s/2,y:-h/2-c},...tt(s/2,-h/2,c,20,-90,0),{x:-s/2-c,y:-c},...tt(s/2+2*c,-c,c,20,-180,-270),...tt(s/2+2*c,c,c,20,-90,-180),{x:-s/2-c,y:h/2},...tt(s/2,h/2,c,20,0,90),{x:-s/2,y:h/2+c},{x:s/2-c-c/2,y:h/2+c},...tt(-s/2+c+c/2,-h/2,c,20,-90,-180),{x:s/2-c/2,y:c},...tt(-s/2-c/2,-c,c,20,0,90),...tt(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...tt(-s/2+c+c/2,h/2,c,30,-180,-270)],w=o.Z.svg(r),b=W(e,{fill:"none"});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let $=f(u).replace("Z",""),k=w.path($,b),M=f(m).replace("Z",""),S=w.path(M,b),v=f(x),N=w.path(v,{...b}),C=r.insert("g",":first-child");return C.insert(()=>N,":first-child").attr("stroke-opacity",0),C.insert(()=>k,":first-child"),C.insert(()=>S,":first-child"),C.attr("class","text"),p&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",l),C.attr("transform",`translate(${c-c/4}, 0)`),n.attr("transform",`translate(${-s/2+(e.padding??0)/2-(i.x-(i.left??0))},${-h/2+(e.padding??0)/2-(i.y-(i.top??0))})`),g(e,C),e.intersect=function(t){return V.polygon(e,x,t)},r}async function ta(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),n=Math.max(80,(i.width+(e.padding??0)*2)*1.25,e?.width??0),s=Math.max(20,i.height+(e.padding??0)*2,e?.height??0),h=s/2,{cssStyles:c}=e,p=o.Z.svg(r),m=W(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=n-h,w=s/4,b=[{x:x,y:0},{x:w,y:0},{x:0,y:s/2},{x:w,y:s},{x:x,y:s},...u(-x,-s/2,h,50,270,90)],$=f(b),k=p.path($,m),M=r.insert(()=>k,":first-child");return M.attr("class","basic label-container"),c&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",c),l&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",l),M.attr("transform",`translate(${-n/2}, ${-s/2})`),g(e,M),e.intersect=function(t){return V.polygon(e,b,t)},r}(0,s.eW)(j,"anchor"),(0,s.eW)(_,"generateArcPoints"),(0,s.eW)(Y,"bowTieRect"),(0,s.eW)(z,"insertPolygonShape"),(0,s.eW)(q,"card"),(0,s.eW)(O,"choice"),(0,s.eW)(F,"circle"),(0,s.eW)(X,"createLine"),(0,s.eW)(J,"crossedCircle"),(0,s.eW)(G,"generateCirclePoints"),(0,s.eW)(U,"curlyBraceLeft"),(0,s.eW)(K,"generateCirclePoints"),(0,s.eW)(Q,"curlyBraceRight"),(0,s.eW)(tt,"generateCirclePoints"),(0,s.eW)(te,"curlyBraces"),(0,s.eW)(ta,"curvedTrapezoid");var tl=(0,s.eW)((t,e,a,l,r,i)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),tr=(0,s.eW)((t,e,a,l,r,i)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),ti=(0,s.eW)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tn(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:s,label:h}=await d(t,e,y(e)),c=Math.max(s.width+e.padding,e.width??0),f=c/2,p=f/(2.5+c/50),u=Math.max(s.height+p+e.padding,e.height??0),{cssStyles:m}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=tr(0,0,c,u,f,p),r=ti(0,p,c,u,f,p),n=t.path(l,W(e,{})),s=t.path(r,W(e,{fill:"none"}));a=i.insert(()=>s,":first-child"),(a=i.insert(()=>n,":first-child")).attr("class","basic label-container"),m&&a.attr("style",m)}else{let t=tl(0,0,c,u,f,p);a=i.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,n.R7)(m)).attr("style",r)}return a.attr("label-offset-y",p),a.attr("transform",`translate(${-c/2}, ${-(u/2+p)})`),g(e,a),h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(t){let a=V.rect(e,t),l=a.x-(e.x??0);if(0!=f&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-p)){let r=p*p*(1-l*l/(f*f));r>0&&(r=Math.sqrt(r)),r=p-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},i}async function ts(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=i.width+e.padding,h=i.height+e.padding,c=.2*h,f=-s/2,p=-h/2-c/2,{cssStyles:u}=e,m=o.Z.svg(r),x=W(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let w=m.polygon([{x:f,y:p+c},{x:-f,y:p+c},{x:-f,y:-p},{x:f,y:-p},{x:f,y:p},{x:-f,y:p},{x:-f,y:p+c}].map(t=>[t.x,t.y]),x),b=r.insert(()=>w,":first-child");return b.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",l),n.attr("transform",`translate(${f+(e.padding??0)/2-(i.x-(i.left??0))}, ${p+c+(e.padding??0)/2-(i.y-(i.top??0))})`),g(e,b),e.intersect=function(t){return V.rect(e,t)},r}async function th(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:h,halfPadding:c}=await d(t,e,y(e)),f=h.width/2+c+5,p=h.width/2+c,{cssStyles:u}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{roughness:.2,strokeWidth:2.5}),r=W(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*f,l),h=t.circle(0,0,2*p,r);(a=i.insert("g",":first-child")).attr("class",(0,n.R7)(e.cssClasses)).attr("style",(0,n.R7)(u)),a.node()?.appendChild(s),a.node()?.appendChild(h)}else{let t=(a=i.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",r),t.attr("class","outer-circle").attr("style",r).attr("r",f).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",r).attr("r",p).attr("cx",0).attr("cy",0)}return g(e,a),e.intersect=function(t){return s.cM.info("DoubleCircle intersect",e,f,t),V.circle(e,f,t)},i}function to(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:r}=D(e);e.label="",e.labelStyle=l;let i=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,h=o.Z.svg(i),{nodeBorder:d}=a,c=W(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let f=h.circle(0,0,14,c),p=i.insert(()=>f,":first-child");return p.selectAll("path").attr("style",`fill: ${d} !important;`),n&&n.length>0&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",r),g(e,p),e.intersect=function(t){return s.cM.info("filledCircle intersect",e,{radius:7,point:t}),V.circle(e,7,t)},i}async function td(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),h=i.width+(e.padding??0),c=h+i.height,p=h+i.height,u=[{x:0,y:-c},{x:p,y:-c},{x:p/2,y:0}],{cssStyles:m}=e,x=o.Z.svg(r),w=W(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let b=f(u),$=x.path(b,w),k=r.insert(()=>$,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return m&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",m),l&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",l),e.width=h,e.height=c,g(e,k),n.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-c/2+(e.padding??0)/2+(i.y-(i.top??0))})`),e.intersect=function(t){return s.cM.info("Triangle intersect",e,u,t),V.polygon(e,u,t)},r}function tc(t,e,{dir:a,config:{state:l,themeVariables:r}}){let{nodeStyles:i}=D(e);e.label="";let n=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,h=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);"LR"===a&&(h=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let c=-1*h/2,f=-1*d/2,p=o.Z.svg(n),u=W(e,{stroke:r.lineColor,fill:r.lineColor});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let m=p.rectangle(c,f,h,d,u),x=n.insert(()=>m,":first-child");s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),g(e,x);let w=l?.padding??0;return e.width&&e.height&&(e.width+=w/2||0,e.height+=w/2||0),e.intersect=function(t){return V.rect(e,t)},n}async function tg(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),n=Math.max(80,i.width+(e.padding??0)*2,e?.width??0),h=Math.max(50,i.height+(e.padding??0)*2,e?.height??0),c=h/2,{cssStyles:p}=e,m=o.Z.svg(r),x=W(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let w=[{x:-n/2,y:-h/2},{x:n/2-c,y:-h/2},...u(-n/2+c,0,c,50,90,270),{x:n/2-c,y:h/2},{x:-n/2,y:h/2}],b=f(w),$=m.path(b,x),k=r.insert(()=>$,":first-child");return k.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",p),l&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",l),g(e,k),e.intersect=function(t){return s.cM.info("Pill intersect",e,{radius:c,point:t}),V.polygon(e,w,t)},r}(0,s.eW)(tn,"cylinder"),(0,s.eW)(ts,"dividedRectangle"),(0,s.eW)(th,"doublecircle"),(0,s.eW)(to,"filledCircle"),(0,s.eW)(td,"flippedTriangle"),(0,s.eW)(tc,"forkJoin"),(0,s.eW)(tg,"halfRoundedRectangle");var ty=(0,s.eW)((t,e,a,l,r)=>`M${t+r},${e} L${t+a-r},${e} L${t+a},${e-l/2} L${t+a-r},${e-l} L${t+r},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function tf(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),s=n.height+e.padding,h=s/4,c=n.width+2*h+e.padding,f=[{x:h,y:0},{x:c-h,y:0},{x:c,y:-s/2},{x:c-h,y:-s},{x:h,y:-s},{x:0,y:-s/2}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=ty(0,0,c,s,h),n=t.path(r,l);a=i.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${s/2})`),p&&a.attr("style",p)}else a=z(i,c,s,f);return r&&a.attr("style",r),e.width=c,e.height=s,g(e,a),e.intersect=function(t){return V.polygon(e,f,t)},i}async function tp(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.label="",e.labelStyle=a;let{shapeSvg:r}=await d(t,e,y(e)),i=Math.max(30,e?.width??0),n=Math.max(30,e?.height??0),{cssStyles:h}=e,c=o.Z.svg(r),p=W(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let u=[{x:0,y:0},{x:i,y:0},{x:0,y:n},{x:i,y:n}],m=f(u),x=c.path(m,p),w=r.insert(()=>x,":first-child");return w.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",h),l&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",l),w.attr("transform",`translate(${-i/2}, ${-n/2})`),g(e,w),e.intersect=function(t){return s.cM.info("Pill intersect",e,{points:u}),V.polygon(e,u,t)},r}async function tu(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=D(e);e.labelStyle=i;let n=Math.max(e.assetHeight??48,e.assetWidth??48),h=r?.wrappingWidth;e.width=Math.max(n,h??0);let{shapeSvg:c,bbox:y,label:f}=await d(t,e,"icon-shape default"),p="t"===e.pos,{nodeBorder:u}=a,{stylesMap:m}=M(e),x=-n/2,w=-n/2,b=e.label?8:0,$=o.Z.svg(c),k=W(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=$.rectangle(x,w,n,n,k),v=Math.max(n,y.width),N=n+y.height+b,C=$.rectangle(-v/2,-N/2,v,N,{...k,fill:"transparent",stroke:"none"}),B=c.insert(()=>S,":first-child"),A=c.insert(()=>C);if(e.icon){let t=c.append("g");t.html(`<g>${await (0,l.s4)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,i=a.height,s=a.x,h=a.y;t.attr("transform",`translate(${-r/2-s},${p?y.height/2+b/2-i/2-h:-y.height/2-b/2-i/2-h})`),t.attr("style",`color: ${m.get("stroke")??u};`)}return f.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${p?-N/2:N/2-y.height})`),B.attr("transform",`translate(0,${p?y.height/2+b/2:-y.height/2-b/2})`),g(e,A),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return V.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=p?[{x:a-y.width/2,y:l-r/2},{x:a+y.width/2,y:l-r/2},{x:a+y.width/2,y:l-r/2+y.height+b},{x:a+n/2,y:l-r/2+y.height+b},{x:a+n/2,y:l+r/2},{x:a-n/2,y:l+r/2},{x:a-n/2,y:l-r/2+y.height+b},{x:a-y.width/2,y:l-r/2+y.height+b}]:[{x:a-n/2,y:l-r/2},{x:a+n/2,y:l-r/2},{x:a+n/2,y:l-r/2+n},{x:a+y.width/2,y:l-r/2+n},{x:a+y.width/2/2,y:l+r/2},{x:a-y.width/2,y:l+r/2},{x:a-y.width/2,y:l-r/2+n},{x:a-n/2,y:l-r/2+n}],V.polygon(e,i,t)},c}async function tm(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=D(e);e.labelStyle=i;let n=Math.max(e.assetHeight??48,e.assetWidth??48),h=r?.wrappingWidth;e.width=Math.max(n,h??0);let{shapeSvg:c,bbox:y,label:f}=await d(t,e,"icon-shape default"),p=e.label?8:0,u="t"===e.pos,{nodeBorder:m,mainBkg:x}=a,{stylesMap:w}=M(e),b=o.Z.svg(c),$=W(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=w.get("fill");$.stroke=k??x;let S=c.append("g");e.icon&&S.html(`<g>${await (0,l.s4)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let v=S.node().getBBox(),N=v.width,C=v.height,B=v.x,A=v.y,R=Math.max(N,C)*Math.SQRT2+40,L=b.circle(0,0,R,$),P=Math.max(R,y.width),Z=R+y.height+p,I=b.rectangle(-P/2,-Z/2,P,Z,{...$,fill:"transparent",stroke:"none"}),T=c.insert(()=>L,":first-child"),E=c.insert(()=>I);return S.attr("transform",`translate(${-N/2-B},${u?y.height/2+p/2-C/2-A:-y.height/2-p/2-C/2-A})`),S.attr("style",`color: ${w.get("stroke")??m};`),f.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${u?-Z/2:Z/2-y.height})`),T.attr("transform",`translate(0,${u?y.height/2+p/2:-y.height/2-p/2})`),g(e,E),e.intersect=function(t){return s.cM.info("iconSquare intersect",e,t),V.rect(e,t)},c}async function tx(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=D(e);e.labelStyle=i;let n=Math.max(e.assetHeight??48,e.assetWidth??48),h=r?.wrappingWidth;e.width=Math.max(n,h??0);let{shapeSvg:c,bbox:y,halfPadding:f,label:p}=await d(t,e,"icon-shape default"),u="t"===e.pos,m=n+2*f,x=n+2*f,{nodeBorder:w,mainBkg:b}=a,{stylesMap:k}=M(e),S=e.label?8:0,v=o.Z.svg(c),N=W(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let C=k.get("fill");N.stroke=C??b;let B=v.path($(-x/2,-m/2,x,m,5),N),A=Math.max(x,y.width),R=m+y.height+S,L=v.rectangle(-A/2,-R/2,A,R,{...N,fill:"transparent",stroke:"none"}),P=c.insert(()=>B,":first-child").attr("class","icon-shape2"),Z=c.insert(()=>L);if(e.icon){let t=c.append("g");t.html(`<g>${await (0,l.s4)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,i=a.height,s=a.x,h=a.y;t.attr("transform",`translate(${-r/2-s},${u?y.height/2+S/2-i/2-h:-y.height/2-S/2-i/2-h})`),t.attr("style",`color: ${k.get("stroke")??w};`)}return p.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${u?-R/2:R/2-y.height})`),P.attr("transform",`translate(0,${u?y.height/2+S/2:-y.height/2-S/2})`),g(e,Z),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return V.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=u?[{x:a-y.width/2,y:l-r/2},{x:a+y.width/2,y:l-r/2},{x:a+y.width/2,y:l-r/2+y.height+S},{x:a+x/2,y:l-r/2+y.height+S},{x:a+x/2,y:l+r/2},{x:a-x/2,y:l+r/2},{x:a-x/2,y:l-r/2+y.height+S},{x:a-y.width/2,y:l-r/2+y.height+S}]:[{x:a-x/2,y:l-r/2},{x:a+x/2,y:l-r/2},{x:a+x/2,y:l-r/2+m},{x:a+y.width/2,y:l-r/2+m},{x:a+y.width/2/2,y:l+r/2},{x:a-y.width/2,y:l+r/2},{x:a-y.width/2,y:l-r/2+m},{x:a-x/2,y:l-r/2+m}],V.polygon(e,i,t)},c}async function tw(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=D(e);e.labelStyle=i;let n=Math.max(e.assetHeight??48,e.assetWidth??48),h=r?.wrappingWidth;e.width=Math.max(n,h??0);let{shapeSvg:c,bbox:y,halfPadding:f,label:p}=await d(t,e,"icon-shape default"),u="t"===e.pos,m=n+2*f,x=n+2*f,{nodeBorder:w,mainBkg:b}=a,{stylesMap:k}=M(e),S=e.label?8:0,v=o.Z.svg(c),N=W(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let C=k.get("fill");N.stroke=C??b;let B=v.path($(-x/2,-m/2,x,m,.1),N),A=Math.max(x,y.width),R=m+y.height+S,L=v.rectangle(-A/2,-R/2,A,R,{...N,fill:"transparent",stroke:"none"}),P=c.insert(()=>B,":first-child"),Z=c.insert(()=>L);if(e.icon){let t=c.append("g");t.html(`<g>${await (0,l.s4)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,i=a.height,s=a.x,h=a.y;t.attr("transform",`translate(${-r/2-s},${u?y.height/2+S/2-i/2-h:-y.height/2-S/2-i/2-h})`),t.attr("style",`color: ${k.get("stroke")??w};`)}return p.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${u?-R/2:R/2-y.height})`),P.attr("transform",`translate(0,${u?y.height/2+S/2:-y.height/2-S/2})`),g(e,Z),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return V.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=u?[{x:a-y.width/2,y:l-r/2},{x:a+y.width/2,y:l-r/2},{x:a+y.width/2,y:l-r/2+y.height+S},{x:a+x/2,y:l-r/2+y.height+S},{x:a+x/2,y:l+r/2},{x:a-x/2,y:l+r/2},{x:a-x/2,y:l-r/2+y.height+S},{x:a-y.width/2,y:l-r/2+y.height+S}]:[{x:a-x/2,y:l-r/2},{x:a+x/2,y:l-r/2},{x:a+x/2,y:l-r/2+m},{x:a+y.width/2,y:l-r/2+m},{x:a+y.width/2/2,y:l+r/2},{x:a-y.width/2,y:l+r/2},{x:a-y.width/2,y:l-r/2+m},{x:a-x/2,y:l-r/2+m}],V.polygon(e,i,t)},c}async function tb(t,e,{config:{flowchart:a}}){let l=new Image;l.src=e?.img??"",await l.decode();let r=Number(l.naturalWidth.toString().replace("px","")),i=Number(l.naturalHeight.toString().replace("px",""));e.imageAspectRatio=r/i;let{labelStyles:n}=D(e);e.labelStyle=n;let h=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let c=Math.max(e.label?h??0:0,e?.assetWidth??r),y="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:c,f="on"===e.constraint?y/e.imageAspectRatio:e?.assetHeight??i;e.width=Math.max(y,h??0);let{shapeSvg:p,bbox:u,label:m}=await d(t,e,"image-shape default"),x="t"===e.pos,w=-y/2,b=e.label?8:0,$=o.Z.svg(p),k=W(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$.rectangle(w,-f/2,y,f,k),S=Math.max(y,u.width),v=f+u.height+b,N=$.rectangle(-S/2,-v/2,S,v,{...k,fill:"none",stroke:"none"}),C=p.insert(()=>M,":first-child"),B=p.insert(()=>N);if(e.img){let t=p.append("image");t.attr("href",e.img),t.attr("width",y),t.attr("height",f),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-y/2},${x?v/2-f:-v/2})`)}return m.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${x?-f/2-u.height/2-b/2:f/2-u.height/2+b/2})`),C.attr("transform",`translate(0,${x?u.height/2+b/2:-u.height/2-b/2})`),g(e,B),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return V.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=x?[{x:a-u.width/2,y:l-r/2},{x:a+u.width/2,y:l-r/2},{x:a+u.width/2,y:l-r/2+u.height+b},{x:a+y/2,y:l-r/2+u.height+b},{x:a+y/2,y:l+r/2},{x:a-y/2,y:l+r/2},{x:a-y/2,y:l-r/2+u.height+b},{x:a-u.width/2,y:l-r/2+u.height+b}]:[{x:a-y/2,y:l-r/2},{x:a+y/2,y:l-r/2},{x:a+y/2,y:l-r/2+f},{x:a+u.width/2,y:l-r/2+f},{x:a+u.width/2/2,y:l+r/2},{x:a-u.width/2,y:l+r/2},{x:a-u.width/2,y:l-r/2+f},{x:a-y/2,y:l-r/2+f}],V.polygon(e,i,t)},p}async function t$(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),s=Math.max(n.width+(e.padding??0)*2,e?.width??0),h=Math.max(n.height+(e.padding??0)*2,e?.height??0),c=[{x:0,y:0},{x:s,y:0},{x:s+3*h/6,y:-h},{x:-3*h/6,y:-h}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=f(c),n=t.path(r,l);a=i.insert(()=>n,":first-child").attr("transform",`translate(${-s/2}, ${h/2})`),p&&a.attr("style",p)}else a=z(i,s,h,c);return r&&a.attr("style",r),e.width=s,e.height=h,g(e,a),e.intersect=function(t){return V.polygon(e,c,t)},i}async function tk(t,e,a){let l;let{labelStyles:r,nodeStyles:i}=D(e);e.labelStyle=r;let{shapeSvg:s,bbox:h}=await d(t,e,y(e)),c=Math.max(h.width+2*a.labelPaddingX,e?.width||0),f=Math.max(h.height+2*a.labelPaddingY,e?.height||0),p=-c/2,u=-f/2,{rx:m,ry:x}=e,{cssStyles:w}=e;if(a?.rx&&a.ry&&(m=a.rx,x=a.ry),"handDrawn"===e.look){let t=o.Z.svg(s),a=W(e,{}),r=m||x?t.path($(p,u,c,f,m||0),a):t.rectangle(p,u,c,f,a);(l=s.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",(0,n.R7)(w))}else(l=s.insert("rect",":first-child")).attr("class","basic label-container").attr("style",i).attr("rx",(0,n.R7)(m)).attr("ry",(0,n.R7)(x)).attr("x",p).attr("y",u).attr("width",c).attr("height",f);return g(e,l),e.intersect=function(t){return V.rect(e,t)},s}async function tM(t,e){let{shapeSvg:a,bbox:l,label:r}=await d(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),r.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),g(e,i),e.intersect=function(t){return V.rect(e,t)},a}async function tS(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),s=Math.max(n.width+(e.padding??0),e?.width??0),h=Math.max(n.height+(e.padding??0),e?.height??0),c=[{x:0,y:0},{x:s+3*h/6,y:0},{x:s,y:-h},{x:-(3*h)/6,y:-h}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=f(c),n=t.path(r,l);a=i.insert(()=>n,":first-child").attr("transform",`translate(${-s/2}, ${h/2})`),p&&a.attr("style",p)}else a=z(i,s,h,c);return r&&a.attr("style",r),e.width=s,e.height=h,g(e,a),e.intersect=function(t){return V.polygon(e,c,t)},i}async function tD(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),s=Math.max(n.width+(e.padding??0),e?.width??0),h=Math.max(n.height+(e.padding??0),e?.height??0),c=[{x:-3*h/6,y:0},{x:s,y:0},{x:s+3*h/6,y:-h},{x:0,y:-h}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=f(c),n=t.path(r,l);a=i.insert(()=>n,":first-child").attr("transform",`translate(${-s/2}, ${h/2})`),p&&a.attr("style",p)}else a=z(i,s,h,c);return r&&a.attr("style",r),e.width=s,e.height=h,g(e,a),e.intersect=function(t){return V.polygon(e,c,t)},i}function tW(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.label="",e.labelStyle=a;let r=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(35,e?.width??0),h=Math.max(35,e?.height??0),d=[{x:n,y:0},{x:0,y:h+3.5},{x:n-14,y:h+3.5},{x:0,y:2*h},{x:n,y:h-3.5},{x:14,y:h-3.5}],c=o.Z.svg(r),p=W(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let u=f(d),m=c.path(u,p),x=r.insert(()=>m,":first-child");return i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),l&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",l),x.attr("transform",`translate(-${n/2},${-h})`),g(e,x),e.intersect=function(t){return s.cM.info("lightningBolt intersect",e,t),V.polygon(e,d,t)},r}(0,s.eW)(tf,"hexagon"),(0,s.eW)(tp,"hourglass"),(0,s.eW)(tu,"icon"),(0,s.eW)(tm,"iconCircle"),(0,s.eW)(tx,"iconRounded"),(0,s.eW)(tw,"iconSquare"),(0,s.eW)(tb,"imageSquare"),(0,s.eW)(t$,"inv_trapezoid"),(0,s.eW)(tk,"drawRect"),(0,s.eW)(tM,"labelRect"),(0,s.eW)(tS,"lean_left"),(0,s.eW)(tD,"lean_right"),(0,s.eW)(tW,"lightningBolt");var tv=(0,s.eW)((t,e,a,l,r,i,n)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tN=(0,s.eW)((t,e,a,l,r,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tC=(0,s.eW)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tB(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:s,label:h}=await d(t,e,y(e)),c=Math.max(s.width+(e.padding??0),e.width??0),f=c/2,p=f/(2.5+c/50),u=Math.max(s.height+p+(e.padding??0),e.height??0),m=.1*u,{cssStyles:x}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=tN(0,0,c,u,f,p,m),r=tC(0,p,c,u,f,p),n=W(e,{}),s=t.path(l,n),h=t.path(r,n);i.insert(()=>h,":first-child").attr("class","line"),(a=i.insert(()=>s,":first-child")).attr("class","basic label-container"),x&&a.attr("style",x)}else{let t=tv(0,0,c,u,f,p,m);a=i.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,n.R7)(x)).attr("style",r)}return a.attr("label-offset-y",p),a.attr("transform",`translate(${-c/2}, ${-(u/2+p)})`),g(e,a),h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+p-(s.y-(s.top??0))})`),e.intersect=function(t){let a=V.rect(e,t),l=a.x-(e.x??0);if(0!=f&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-p)){let r=p*p*(1-l*l/(f*f));r>0&&(r=Math.sqrt(r)),r=p-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},i}async function tA(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0)*2,e?.width??0),h=Math.max(i.height+(e.padding??0)*2,e?.height??0),c=h/4,f=h+c,{cssStyles:u}=e,m=o.Z.svg(r),x=W(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let w=[{x:-s/2-s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:f/2},...p(-s/2-s/2*.1,f/2,s/2+s/2*.1,f/2,c,.8),{x:s/2+s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:-f/2},{x:-s/2,y:-f/2},{x:-s/2,y:f/2*1.1},{x:-s/2,y:-f/2}],b=m.polygon(w.map(t=>[t.x,t.y]),x),$=r.insert(()=>b,":first-child");return $.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",l),$.attr("transform",`translate(0,${-c/2})`),n.attr("transform",`translate(${-s/2+(e.padding??0)+s/2*.1/2-(i.x-(i.left??0))},${-h/2+(e.padding??0)-c/2-(i.y-(i.top??0))})`),g(e,$),e.intersect=function(t){return V.polygon(e,w,t)},r}async function tR(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0)*2,e?.width??0),h=Math.max(i.height+(e.padding??0)*2,e?.height??0),c=-s/2,p=-h/2,{cssStyles:u}=e,m=o.Z.svg(r),x=W(e,{}),w=[{x:c-5,y:p+5},{x:c-5,y:p+h+5},{x:c+s-5,y:p+h+5},{x:c+s-5,y:p+h},{x:c+s,y:p+h},{x:c+s,y:p+h-5},{x:c+s+5,y:p+h-5},{x:c+s+5,y:p-5},{x:c+5,y:p-5},{x:c+5,y:p},{x:c,y:p},{x:c,y:p+5}];"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=f(w),$=m.path(b,x),k=f([{x:c,y:p+5},{x:c+s-5,y:p+5},{x:c+s-5,y:p+h},{x:c+s,y:p+h},{x:c+s,y:p},{x:c,y:p}]),M=m.path(k,{...x,fill:"none"}),S=r.insert(()=>M,":first-child");return S.insert(()=>$,":first-child"),S.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",l),n.attr("transform",`translate(${-(i.width/2)-5-(i.x-(i.left??0))}, ${-(i.height/2)+5-(i.y-(i.top??0))})`),g(e,S),e.intersect=function(t){return V.polygon(e,w,t)},r}async function tL(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0)*2,e?.width??0),h=Math.max(i.height+(e.padding??0)*2,e?.height??0),c=h/4,u=h+c,m=-s/2,x=-u/2,{cssStyles:w}=e,b=p(m-5,x+u+5,m+s-5,x+u+5,c,.8),$=b?.[b.length-1],k=[{x:m-5,y:x+5},{x:m-5,y:x+u+5},...b,{x:m+s-5,y:$.y-5},{x:m+s,y:$.y-5},{x:m+s,y:$.y-10},{x:m+s+5,y:$.y-10},{x:m+s+5,y:x-5},{x:m+5,y:x-5},{x:m+5,y:x},{x:m,y:x},{x:m,y:x+5}],M=[{x:m,y:x+5},{x:m+s-5,y:x+5},{x:m+s-5,y:$.y-5},{x:m+s,y:$.y-5},{x:m+s,y:x},{x:m,y:x}],S=o.Z.svg(r),v=W(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let N=f(k),C=S.path(N,v),B=f(M),A=S.path(B,v),R=r.insert(()=>C,":first-child");return R.insert(()=>A),R.attr("class","basic label-container"),w&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",w),l&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",l),R.attr("transform",`translate(0,${-c/2})`),n.attr("transform",`translate(${-(i.width/2)-5-(i.x-(i.left??0))}, ${-(i.height/2)+5-c/2-(i.y-(i.top??0))})`),g(e,R),e.intersect=function(t){return V.polygon(e,k,t)},r}async function tP(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l,e.useHtmlLabels||s.iE().flowchart?.htmlLabels!==!1||(e.centerLabel=!0);let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),h=Math.max(n.width+(e.padding??0)*2,e?.width??0),c=Math.max(n.height+(e.padding??0)*2,e?.height??0),{cssStyles:f}=e,p=o.Z.svg(i),u=W(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let m=p.rectangle(-h/2,-c/2,h,c,u),x=i.insert(()=>m,":first-child");return x.attr("class","basic label-container"),f&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",r),g(e,x),e.intersect=function(t){return V.rect(e,t)},i}(0,s.eW)(tB,"linedCylinder"),(0,s.eW)(tA,"linedWaveEdgedRect"),(0,s.eW)(tR,"multiRect"),(0,s.eW)(tL,"multiWaveEdgedRectangle"),(0,s.eW)(tP,"note");var tZ=(0,s.eW)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function tI(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),h=n.width+e.padding+(n.height+e.padding),c=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=tZ(0,0,h),n=t.path(r,l);a=i.insert(()=>n,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`),f&&a.attr("style",f)}else a=z(i,h,h,c);return r&&a.attr("style",r),g(e,a),e.intersect=function(t){return s.cM.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",V.polygon(e,c,t)),V.polygon(e,c,t)},i}async function tT(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0),e?.width??0),h=Math.max(i.height+(e.padding??0),e?.height??0),c=-s/2,p=-h/2,u=p/2,m=[{x:c+u,y:p},{x:c,y:0},{x:c+u,y:-p},{x:-c,y:-p},{x:-c,y:p}],{cssStyles:x}=e,w=o.Z.svg(r),b=W(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let $=f(m),k=w.path($,b),M=r.insert(()=>k,":first-child");return M.attr("class","basic label-container"),x&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",x),l&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",l),M.attr("transform",`translate(${-u/2},0)`),n.attr("transform",`translate(${-u/2-i.width/2-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),g(e,M),e.intersect=function(t){return V.polygon(e,m,t)},r}async function tE(t,e){let a,l,r;let{labelStyles:i,nodeStyles:n}=D(e);e.labelStyle=i,a=e.cssClasses?"node "+e.cssClasses:"node default";let d=t.insert("g").attr("class",a).attr("id",e.domId||e.id),c=d.insert("g"),y=d.insert("g").attr("class","label").attr("style",n),f=e.description,p=e.label,u=y.node().appendChild(await b(p,e.labelStyle,!0,!0)),m={width:0,height:0};if((0,s.ku)(s.nV()?.flowchart?.htmlLabels)){let t=u.children[0],e=(0,h.Ys)(u);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}s.cM.info("Text 2",f);let x=f||[],w=u.getBBox(),k=y.node().appendChild(await b(x.join?x.join("<br/>"):x,e.labelStyle,!0,!0)),M=k.children[0],S=(0,h.Ys)(k);m=M.getBoundingClientRect(),S.attr("width",m.width),S.attr("height",m.height);let v=(e.padding||0)/2;(0,h.Ys)(k).attr("transform","translate( "+(m.width>w.width?0:(w.width-m.width)/2)+", "+(w.height+v+5)+")"),(0,h.Ys)(u).attr("transform","translate( "+(m.width<w.width?0:-(w.width-m.width)/2)+", 0)"),m=y.node().getBBox(),y.attr("transform","translate("+-m.width/2+", "+(-m.height/2-v+3)+")");let N=m.width+(e.padding||0),C=m.height+(e.padding||0),B=-m.width/2-v,A=-m.height/2-v;if("handDrawn"===e.look){let t=o.Z.svg(d),a=W(e,{}),i=t.path($(B,A,N,C,e.rx||0),a),n=t.line(-m.width/2-v,-m.height/2-v+w.height+v,m.width/2+v,-m.height/2-v+w.height+v,a);r=d.insert(()=>(s.cM.debug("Rough node insert CXC",i),n),":first-child"),l=d.insert(()=>(s.cM.debug("Rough node insert CXC",i),i),":first-child")}else l=c.insert("rect",":first-child"),r=c.insert("line"),l.attr("class","outer title-state").attr("style",n).attr("x",-m.width/2-v).attr("y",-m.height/2-v).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),r.attr("class","divider").attr("x1",-m.width/2-v).attr("x2",m.width/2+v).attr("y1",-m.height/2-v+w.height+v).attr("y2",-m.height/2-v+w.height+v);return g(e,l),e.intersect=function(t){return V.rect(e,t)},d}async function tH(t,e){let a={rx:5,ry:5,classes:"",labelPaddingX:1*(e?.padding||0),labelPaddingY:1*(e?.padding||0)};return tk(t,e,a)}async function tV(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:s}=await d(t,e,y(e)),h=e?.padding??0,c=Math.max(i.width+(e.padding??0)*2,e?.width??0),f=Math.max(i.height+(e.padding??0)*2,e?.height??0),p=-i.width/2-h,u=-i.height/2-h,{cssStyles:m}=e,x=o.Z.svg(r),w=W(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let b=x.polygon([{x:p,y:u},{x:p+c+8,y:u},{x:p+c+8,y:u+f},{x:p-8,y:u+f},{x:p-8,y:u},{x:p,y:u},{x:p,y:u+f}].map(t=>[t.x,t.y]),w),$=r.insert(()=>b,":first-child");return $.attr("class","basic label-container").attr("style",(0,n.R7)(m)),l&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",l),m&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",l),s.attr("transform",`translate(${-c/2+4+(e.padding??0)-(i.x-(i.left??0))},${-f/2+(e.padding??0)-(i.y-(i.top??0))})`),g(e,$),e.intersect=function(t){return V.rect(e,t)},r}async function tj(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0)*2,e?.width??0),h=Math.max(i.height+(e.padding??0)*2,e?.height??0),c=-s/2,p=-h/2,{cssStyles:u}=e,m=o.Z.svg(r),x=W(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let w=[{x:c,y:p},{x:c,y:p+h},{x:c+s,y:p+h},{x:c+s,y:p-h/2}],b=f(w),$=m.path(b,x),k=r.insert(()=>$,":first-child");return k.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",u),l&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",l),k.attr("transform",`translate(0, ${h/4})`),n.attr("transform",`translate(${-s/2+(e.padding??0)-(i.x-(i.left??0))}, ${-h/4+(e.padding??0)-(i.y-(i.top??0))})`),g(e,k),e.intersect=function(t){return V.polygon(e,w,t)},r}async function t_(t,e){let a={rx:0,ry:0,classes:"",labelPaddingX:2*(e?.padding||0),labelPaddingY:1*(e?.padding||0)};return tk(t,e,a)}async function tY(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:s}=await d(t,e,y(e)),h=s.height+e.padding,c=s.width+h/4+e.padding,{cssStyles:f}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=$(-c/2,-h/2,c,h,h/2),s=t.path(r,l);(a=i.insert(()=>s,":first-child")).attr("class","basic label-container").attr("style",(0,n.R7)(f))}else(a=i.insert("rect",":first-child")).attr("class","basic label-container").attr("style",r).attr("rx",h/2).attr("ry",h/2).attr("x",-c/2).attr("y",-h/2).attr("width",c).attr("height",h);return g(e,a),e.intersect=function(t){return V.rect(e,t)},i}async function tz(t,e){return tk(t,e,{rx:5,ry:5,classes:"flowchart-node"})}function tq(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{cssStyles:i}=e,{lineColor:n,stateBorder:s,nodeBorder:h}=a,d=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),c=o.Z.svg(d),y=W(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let f=c.circle(0,0,14,{...y,stroke:n,strokeWidth:2}),p=s??h,u=c.circle(0,0,5,{...y,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),m=d.insert(()=>f,":first-child");return m.insert(()=>u),i&&m.selectAll("path").attr("style",i),r&&m.selectAll("path").attr("style",r),g(e,m),e.intersect=function(t){return V.circle(e,7,t)},d}function tO(t,e,{config:{themeVariables:a}}){let l;let{lineColor:r}=a,i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=o.Z.svg(i).circle(0,0,14,k(r));(l=i.insert(()=>t)).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else(l=i.insert("circle",":first-child")).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return g(e,l),e.intersect=function(t){return V.circle(e,7,t)},i}async function tF(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),s=(e?.padding||0)/2,h=i.width+e.padding,c=i.height+e.padding,f=-i.width/2-s,p=-i.height/2-s,u=[{x:0,y:0},{x:h,y:0},{x:h,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-c},{x:-8,y:-c},{x:-8,y:0}];if("handDrawn"===e.look){let t=o.Z.svg(r),a=W(e,{}),l=t.rectangle(f-8,p,h+16,c,a),i=t.line(f,p,f,p+c,a),s=t.line(f+h,p,f+h,p+c,a);r.insert(()=>i,":first-child"),r.insert(()=>s,":first-child");let d=r.insert(()=>l,":first-child"),{cssStyles:y}=e;d.attr("class","basic label-container").attr("style",(0,n.R7)(y)),g(e,d)}else{let t=z(r,h,c,u);l&&t.attr("style",l),g(e,t)}return e.intersect=function(t){return V.polygon(e,u,t)},r}async function tX(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),n=Math.max(i.width+(e.padding??0)*2,e?.width??0),s=Math.max(i.height+(e.padding??0)*2,e?.height??0),h=-n/2,c=-s/2,p=.2*s,{cssStyles:u}=e,m=o.Z.svg(r),x=W(e,{}),w=[{x:h-p/2,y:c},{x:h+n+p/2,y:c},{x:h+n+p/2,y:c+s},{x:h-p/2,y:c+s}];"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=f(w),$=m.path(b,x),k=f([{x:h+n-p/2,y:c+s},{x:h+n+p/2,y:c+s},{x:h+n+p/2,y:c+s-.2*s}]),M=m.path(k,{...x,fillStyle:"solid"}),S=r.insert(()=>M,":first-child");return S.insert(()=>$,":first-child"),S.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",l),g(e,S),e.intersect=function(t){return V.polygon(e,w,t)},r}async function tJ(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0)*2,e?.width??0),h=Math.max(i.height+(e.padding??0)*2,e?.height??0),c=h/4,u=.2*s,m=.2*h,x=h+c,{cssStyles:w}=e,b=o.Z.svg(r),$=W(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-s/2-s/2*.1,y:x/2},...p(-s/2-s/2*.1,x/2,s/2+s/2*.1,x/2,c,.8),{x:s/2+s/2*.1,y:-x/2},{x:-s/2-s/2*.1,y:-x/2}],M=-s/2+s/2*.1,S=-x/2-.4*m,v=[{x:M+s-u,y:(S+h)*1.4},{x:M+s,y:S+h-m},{x:M+s,y:(S+h)*.9},...p(M+s,(S+h)*1.3,M+s-u,(S+h)*1.5,-(.03*h),.5)],N=f(k),C=b.path(N,$),B=f(v),A=b.path(B,{...$,fillStyle:"solid"}),R=r.insert(()=>A,":first-child");return R.insert(()=>C,":first-child"),R.attr("class","basic label-container"),w&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",w),l&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",l),R.attr("transform",`translate(0,${-c/2})`),n.attr("transform",`translate(${-s/2+(e.padding??0)-(i.x-(i.left??0))},${-h/2+(e.padding??0)-c/2-(i.y-(i.top??0))})`),g(e,R),e.intersect=function(t){return V.polygon(e,k,t)},r}async function tG(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),n=Math.max(i.width+e.padding,e?.width||0),s=Math.max(i.height+e.padding,e?.height||0),h=r.insert("rect",":first-child");return h.attr("class","text").attr("style",l).attr("rx",0).attr("ry",0).attr("x",-n/2).attr("y",-s/2).attr("width",n).attr("height",s),g(e,h),e.intersect=function(t){return V.rect(e,t)},r}(0,s.eW)(tI,"question"),(0,s.eW)(tT,"rect_left_inv_arrow"),(0,s.eW)(tE,"rectWithTitle"),(0,s.eW)(tH,"roundedRect"),(0,s.eW)(tV,"shadedProcess"),(0,s.eW)(tj,"slopedRect"),(0,s.eW)(t_,"squareRect"),(0,s.eW)(tY,"stadium"),(0,s.eW)(tz,"state"),(0,s.eW)(tq,"stateEnd"),(0,s.eW)(tO,"stateStart"),(0,s.eW)(tF,"subroutine"),(0,s.eW)(tX,"taggedRect"),(0,s.eW)(tJ,"taggedWaveEdgedRectangle"),(0,s.eW)(tG,"text");var tU=(0,s.eW)((t,e,a,l,r,i)=>`M${t},${e}
3
- a${r},${i} 0,0,1 0,${-l}
4
- l${a},0
5
- a${r},${i} 0,0,1 0,${l}
6
- M${a},${-l}
7
- a${r},${i} 0,0,0 0,${l}
8
- l${-a},0`,"createCylinderPathD"),tK=(0,s.eW)((t,e,a,l,r,i)=>`M${t},${e} M${t+a},${e} a${r},${i} 0,0,0 0,${-l} l${-a},0 a${r},${i} 0,0,0 0,${l} l${a},0`,"createOuterCylinderPathD"),tQ=(0,s.eW)((t,e,a,l,r,i)=>`M${t+a/2},${-l/2} a${r},${i} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function t0(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:s,label:h,halfPadding:c}=await d(t,e,y(e)),f="neo"===e.look?2*c:c,p=s.height+f,u=p/2,m=u/(2.5+p/50),x=s.width+m+f,{cssStyles:w}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=tK(0,0,x,p,m,u),r=tQ(0,0,x,p,m,u),n=t.path(l,W(e,{})),s=t.path(r,W(e,{fill:"none"}));a=i.insert(()=>s,":first-child"),(a=i.insert(()=>n,":first-child")).attr("class","basic label-container"),w&&a.attr("style",w)}else{let t=tU(0,0,x,p,m,u);(a=i.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,n.R7)(w)).attr("style",r)).attr("class","basic label-container"),w&&a.selectAll("path").attr("style",w),r&&a.selectAll("path").attr("style",r)}return a.attr("label-offset-x",m),a.attr("transform",`translate(${-x/2}, ${p/2} )`),h.attr("transform",`translate(${-(s.width/2)-m-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),g(e,a),e.intersect=function(t){let a=V.rect(e,t),l=a.y-(e.y??0);if(0!=u&&(Math.abs(l)<(e.height??0)/2||Math.abs(l)==(e.height??0)/2&&Math.abs(a.x-(e.x??0))>(e.width??0)/2-m)){let r=m*m*(1-l*l/(u*u));0!=r&&(r=Math.sqrt(Math.abs(r))),r=m-r,t.x-(e.x??0)>0&&(r=-r),a.x+=r}return a},i}async function t2(t,e){let a;let{labelStyles:l,nodeStyles:r}=D(e);e.labelStyle=l;let{shapeSvg:i,bbox:n}=await d(t,e,y(e)),s=n.width+e.padding,h=n.height+e.padding,c=[{x:-3*h/6,y:0},{x:s+3*h/6,y:0},{x:s,y:-h},{x:0,y:-h}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),l=W(e,{}),r=f(c),n=t.path(r,l);a=i.insert(()=>n,":first-child").attr("transform",`translate(${-s/2}, ${h/2})`),p&&a.attr("style",p)}else a=z(i,s,h,c);return r&&a.attr("style",r),e.width=s,e.height=h,g(e,a),e.intersect=function(t){return V.polygon(e,c,t)},i}async function t1(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),n=Math.max(60,i.width+(e.padding??0)*2,e?.width??0),s=Math.max(20,i.height+(e.padding??0)*2,e?.height??0),{cssStyles:h}=e,c=o.Z.svg(r),p=W(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let u=[{x:-n/2*.8,y:-s/2},{x:n/2*.8,y:-s/2},{x:n/2,y:-s/2*.6},{x:n/2,y:s/2},{x:-n/2,y:s/2},{x:-n/2,y:-s/2*.6}],m=f(u),x=c.path(m,p),w=r.insert(()=>x,":first-child");return w.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",h),l&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",l),g(e,w),e.intersect=function(t){return V.polygon(e,u,t)},r}async function t5(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),h=(0,s.ku)(s.nV().flowchart?.htmlLabels),c=i.width+(e.padding??0),p=c+i.height,u=c+i.height,m=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-p}],{cssStyles:x}=e,w=o.Z.svg(r),b=W(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let $=f(m),k=w.path($,b),M=r.insert(()=>k,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`);return x&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",x),l&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",l),e.width=c,e.height=p,g(e,M),n.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${p/2-(i.height+(e.padding??0)/(h?2:1)-(i.y-(i.top??0)))})`),e.intersect=function(t){return s.cM.info("Triangle intersect",e,m,t),V.polygon(e,m,t)},r}async function t8(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0)*2,e?.width??0),h=Math.max(i.height+(e.padding??0)*2,e?.height??0),c=h/8,u=h+c,{cssStyles:m}=e,x=70-s,w=x>0?x/2:0,b=o.Z.svg(r),$=W(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-s/2-w,y:u/2},...p(-s/2-w,u/2,s/2+w,u/2,c,.8),{x:s/2+w,y:-u/2},{x:-s/2-w,y:-u/2}],M=f(k),S=b.path(M,$),v=r.insert(()=>S,":first-child");return v.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),v.attr("transform",`translate(0,${-c/2})`),n.attr("transform",`translate(${-s/2+(e.padding??0)-(i.x-(i.left??0))},${-h/2+(e.padding??0)-c-(i.y-(i.top??0))})`),g(e,v),e.intersect=function(t){return V.polygon(e,k,t)},r}async function t4(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i}=await d(t,e,y(e)),n=Math.max(i.width+(e.padding??0)*2,e?.width??0),s=Math.max(i.height+(e.padding??0)*2,e?.height??0),h=n/s,c=n,u=s;c>u*h?u=c/h:c=u*h,c=Math.max(c,100);let m=Math.min(.2*(u=Math.max(u,50)),u/4),x=u+2*m,{cssStyles:w}=e,b=o.Z.svg(r),$=W(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-c/2,y:x/2},...p(-c/2,x/2,c/2,x/2,m,1),{x:c/2,y:-x/2},...p(c/2,-x/2,-c/2,-x/2,m,-1)],M=f(k),S=b.path(M,$),v=r.insert(()=>S,":first-child");return v.attr("class","basic label-container"),w&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",w),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),g(e,v),e.intersect=function(t){return V.polygon(e,k,t)},r}async function t7(t,e){let{labelStyles:a,nodeStyles:l}=D(e);e.labelStyle=a;let{shapeSvg:r,bbox:i,label:n}=await d(t,e,y(e)),s=Math.max(i.width+(e.padding??0)*2,e?.width??0),h=Math.max(i.height+(e.padding??0)*2,e?.height??0),c=-s/2,f=-h/2,{cssStyles:p}=e,u=o.Z.svg(r),m=W(e,{}),x=[{x:c-5,y:f-5},{x:c-5,y:f+h},{x:c+s,y:f+h},{x:c+s,y:f-5}],w=`M${c-5},${f-5} L${c+s},${f-5} L${c+s},${f+h} L${c-5},${f+h} L${c-5},${f-5}
9
- M${c-5},${f} L${c+s},${f}
10
- M${c},${f-5} L${c},${f+h}`;"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let b=u.path(w,m),$=r.insert(()=>b,":first-child");return $.attr("transform","translate(2.5, 2.5)"),$.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",l),n.attr("transform",`translate(${-(i.width/2)+2.5-(i.x-(i.left??0))}, ${-(i.height/2)+2.5-(i.y-(i.top??0))})`),g(e,$),e.intersect=function(t){return V.polygon(e,x,t)},r}async function t9(t,e,a,l,r=a.class.padding??12){let i=l?0:3,n=t.insert("g").attr("class",y(e)).attr("id",e.domId||e.id),s=null,h=null,o=null,d=null,c=0,g=0,f=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await t3(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}h=n.insert("g").attr("class","label-group text"),await t3(h,e,0,["font-weight: bolder"]);let p=h.node().getBBox();g=p.height,o=n.insert("g").attr("class","members-group text");let u=0;for(let t of e.members){let e=await t3(o,t,u,[t.parseClassifier()]);u+=e+i}(f=o.node().getBBox().height)<=0&&(f=r/2),d=n.insert("g").attr("class","methods-group text");let m=0;for(let t of e.methods){let e=await t3(d,t,m,[t.parseClassifier()]);m+=e+i}let x=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-p.width/2}, ${c})`),x=n.node().getBBox(),o.attr("transform",`translate(0, ${c+g+2*r})`),x=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(f?f+4*r:2*r)})`),x=n.node().getBBox(),{shapeSvg:n,bbox:x}}async function t3(t,e,a,l=[]){let r;let o=t.insert("g").attr("class","label").attr("style",l.join("; ")),d=(0,s.iE)(),c="useHtmlLabels"in e?e.useHtmlLabels:(0,s.ku)(d.htmlLabels)??!0,g="";g="text"in e?e.text:e.label,!c&&g.startsWith("\\")&&(g=g.substring(1)),(0,s.l0)(g)&&(c=!0);let y=await (0,i.rw)(o,(0,s.uX)((0,n.SH)(g)),{width:(0,n.Cq)(g,d)+50,classes:"markdown-node-label",useHtmlLabels:c},d),f=1;if(c){let t=y.children[0],e=(0,h.Ys)(y);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1);let a=t.getElementsByTagName("img");if(a){let t=""===g.replace(/<img[^>]*>/g,"").trim();await Promise.all([...a].map(e=>new Promise(a=>{function l(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=5*parseInt(d.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,10)+"px";e.style.minWidth=t,e.style.maxWidth=t}else e.style.width="100%";a(e)}(0,s.eW)(l,"setupImage"),setTimeout(()=>{e.complete&&l()}),e.addEventListener("error",l),e.addEventListener("load",l)})))}r=t.getBoundingClientRect(),e.attr("width",r.width),e.attr("height",r.height)}else{l.includes("font-weight: bolder")&&(0,h.Ys)(y).selectAll("tspan").attr("font-weight",""),f=y.children.length;let t=y.children[0];(""===y.textContent||y.textContent.includes("&gt"))&&(t.textContent=g[0]+g.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===g[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),r=y.getBBox()}return o.attr("transform","translate(0,"+(-r.height/(2*f)+a)+")"),r.height}async function t6(t,e){let a=(0,s.nV)(),l=a.class.padding??12,r=e.useHtmlLabels??(0,s.ku)(a.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:i,bbox:n}=await t9(t,e,a,r,l),{labelStyles:d,nodeStyles:c}=D(e);e.labelStyle=d,e.cssStyles=e.styles||"";let y=e.styles?.join(";")||c||"";e.cssStyles||(e.cssStyles=y.replaceAll("!important","").split(";"));let f=0===e.members.length&&0===e.methods.length&&!a.class?.hideEmptyMembersBox,p=o.Z.svg(i),u=W(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let m=n.width,x=n.height;0===e.members.length&&0===e.methods.length?x+=l:e.members.length>0&&0===e.methods.length&&(x+=2*l);let w=-m/2,b=-x/2,$=p.rectangle(w-l,b-l-(f?l:0===e.members.length&&0===e.methods.length?-l/2:0),m+2*l,x+2*l+(f?2*l:0===e.members.length&&0===e.methods.length?-l:0),u),k=i.insert(()=>$,":first-child");k.attr("class","basic label-container");let M=k.node().getBBox();i.selectAll(".text").each((t,a,n)=>{let s=(0,h.Ys)(n[a]),o=s.attr("transform"),d=0;if(o){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(d=parseFloat(t[2]))}let c=d+b+l-(f?l:0===e.members.length&&0===e.methods.length?-l/2:0);r||(c-=4);let g=w;(s.attr("class").includes("label-group")||s.attr("class").includes("annotation-group"))&&(g=-s.node()?.getBBox().width/2||0,i.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(g=0)})),s.attr("transform",`translate(${g}, ${c})`)});let S=i.select(".annotation-group").node().getBBox().height-(f?l/2:0)||0,v=i.select(".label-group").node().getBBox().height-(f?l/2:0)||0,N=i.select(".members-group").node().getBBox().height-(f?l/2:0)||0;if(e.members.length>0||e.methods.length>0||f){let t=p.line(M.x,S+v+b+l,M.x+M.width,S+v+b+l,u);i.insert(()=>t).attr("class","divider").attr("style",y)}if(f||e.members.length>0||e.methods.length>0){let t=p.line(M.x,S+v+N+b+2*l+l,M.x+M.width,S+v+N+b+l+2*l,u);i.insert(()=>t).attr("class","divider").attr("style",y)}if("handDrawn"!==e.look&&i.selectAll("path").attr("style",y),k.select(":nth-child(2)").attr("style",y),i.selectAll(".divider").select("path").attr("style",y),e.labelStyle?i.selectAll("span").attr("style",e.labelStyle):i.selectAll("span").attr("style",y),!r){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(y);if(e){let t=e[0].replace("color","fill");i.selectAll("tspan").attr("style",t)}else if(d){let e=t.exec(d);if(e){let t=e[0].replace("color","fill");i.selectAll("tspan").attr("style",t)}}}return g(e,k),e.intersect=function(t){return V.rect(e,t)},i}(0,s.eW)(t0,"tiltedCylinder"),(0,s.eW)(t2,"trapezoid"),(0,s.eW)(t1,"trapezoidalPentagon"),(0,s.eW)(t5,"triangle"),(0,s.eW)(t8,"waveEdgedRectangle"),(0,s.eW)(t4,"waveRectangle"),(0,s.eW)(t7,"windowPane"),(0,s.eW)(t9,"textHelper"),(0,s.eW)(t3,"addText"),(0,s.eW)(t6,"classBox");var et=(0,s.eW)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ee(t,e,{config:a}){let l,r,i,n;let{labelStyles:s,nodeStyles:h}=D(e);e.labelStyle=s||"";let f=e.width;e.width=(e.width??200)-10;let{shapeSvg:p,bbox:u,label:m}=await d(t,e,y(e)),x=e.padding||10,w="";"ticket"in e&&e.ticket&&a?.kanban?.ticketBaseUrl&&(w=a?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),l=p.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",w).attr("target","_blank"));let b={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};l?{label:r,bbox:i}=await c(l,"ticket"in e&&e.ticket||"",b):{label:r,bbox:i}=await c(p,"ticket"in e&&e.ticket||"",b);let{label:k,bbox:M}=await c(p,"assigned"in e&&e.assigned||"",b);e.width=f;let S=e?.width||0,v=Math.max(i.height,M.height)/2,N=Math.max(u.height+20,e?.height||0)+v,C=-S/2,B=-N/2;m.attr("transform","translate("+(x-S/2)+", "+(-v-u.height/2)+")"),r.attr("transform","translate("+(x-S/2)+", "+(-v+u.height/2)+")"),k.attr("transform","translate("+(x+S/2-M.width-20)+", "+(-v+u.height/2)+")");let{rx:A,ry:R}=e,{cssStyles:L}=e;if("handDrawn"===e.look){let t=o.Z.svg(p),a=W(e,{}),l=A||R?t.path($(C,B,S,N,A||0),a):t.rectangle(C,B,S,N,a);(n=p.insert(()=>l,":first-child")).attr("class","basic label-container").attr("style",L||null)}else{(n=p.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",h).attr("rx",A??5).attr("ry",R??5).attr("x",C).attr("y",B).attr("width",S).attr("height",N);let t="priority"in e&&e.priority;if(t){let e=p.append("line"),a=C+2,l=B+Math.floor((A??0)/2),r=B+N-Math.floor((A??0)/2);e.attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",r).attr("stroke-width","4").attr("stroke",et(t))}}return g(e,n),e.height=N,e.intersect=function(t){return V.rect(e,t)},p}(0,s.eW)(ee,"kanbanItem");var ea=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:t_},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tH},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tY},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tF},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tn},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:F},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tI},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tf},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tD},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tS},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t2},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:t$},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:th},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tG},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:q},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tV},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tO},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tq},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tc},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tp},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:U},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Q},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:te},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tW},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:t8},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tg},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tB},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ta},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ts},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t5},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:t7},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:to},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t1},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:td},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tj},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tL},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tR},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Y},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:J},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tJ},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tX},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:t4},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tT},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tA}],el=(0,s.eW)(()=>Object.fromEntries([...Object.entries({state:tz,choice:O,note:tP,rectWithTitle:tE,labelRect:tM,iconSquare:tw,iconCircle:tm,icon:tu,iconRounded:tx,imageSquare:tb,anchor:j,kanbanItem:ee,classBox:t6}),...ea.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function er(t){return t in el}(0,s.eW)(er,"isValidShape");var ei=new Map;async function en(t,e,a){let l,r;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let i=e.shape?el[e.shape]:void 0;if(!i)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let n;"sandbox"===a.config.securityLevel?n="_top":e.linkTarget&&(n=e.linkTarget||"_blank"),l=t.insert("svg:a").attr("xlink:href",e.link).attr("target",n??null),r=await i(l,e,a)}else l=r=await i(t,e,a);return e.tooltip&&r.attr("title",e.tooltip),ei.set(e.id,l),e.haveCallback&&l.attr("class",l.attr("class")+" clickable"),l}(0,s.eW)(en,"insertNode");var es=(0,s.eW)((t,e)=>{ei.set(e.id,t)},"setNodeElem"),eh=(0,s.eW)(()=>{ei.clear()},"clear"),eo=(0,s.eW)(t=>{let e=ei.get(t.id);s.cM.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode")}}]);
@@ -1 +0,0 @@
1
- !function(){"use strict";var e,t,n,r,o,a,c,f,u,i={},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}},r=!0;try{i[e].call(n.exports,n,n.exports,b),r=!1}finally{r&&delete d[e]}return n.exports}b.m=i,e=[],b.O=function(t,n,r,o){if(n){o=o||0;for(var a=e.length;a>0&&e[a-1][2]>o;a--)e[a]=e[a-1];e[a]=[n,r,o];return}for(var c=1/0,a=0;a<e.length;a++){for(var n=e[a][0],r=e[a][1],o=e[a][2],f=!0,u=0;u<n.length;u++)c>=o&&Object.keys(b.O).every(function(e){return b.O[e](n[u])})?n.splice(u--,1):(f=!1,o<c&&(c=o));if(f){e.splice(a--,1);var i=r();void 0!==i&&(t=i)}}return t},b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);b.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var c=2&r&&e;"object"==typeof c&&!~t.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach(function(t){a[t]=function(){return e[t]}});return a.default=function(){return e},b.d(o,a),o},b.d=function(e,t){for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,n){return b.f[n](e,t),t},[]))},b.u=function(e){return 4609===e?"static/chunks/4609-33aa487dff03a9fd.js":"static/chunks/"+(({1264:"90542734",6555:"964ecbae",7293:"94ca1967"})[e]||e)+"."+({58:"f4bd8a3c9d88f5fe",133:"392ae90c3b2a67f2",479:"a7e0c9cfc376a695",1243:"ea2826fb35adb15a",1264:"9e6e44b1b45b30fe",1592:"b069bdb7aaddd2eb",2069:"f060659791c0c484",2170:"45431769330fa5b7",3237:"c4754f02f1a388cb",3305:"1fc7297ba154ee95",3332:"6313db5217bb1b67",3451:"421db0b49fdbd881",3460:"39c2b9b6a3898384",4299:"2aaa569416cfc208",4327:"238d15c09a039b8b",4415:"e0c0da5eedae4dd7",4610:"a1e7f40a759ed2aa",4650:"41f041da0ad365ad",4872:"5422e8324272ab40",5061:"79a660faed0e16a9",5279:"85d537880b8041ae",5402:"b9460f1b16b57e92",5555:"f7cf9795d675de51",5978:"ddc72cd73130aadc",6434:"7afea9648e238ad5",6555:"d5be7c49c320d695",7140:"4be689873f6a2d1f",7293:"1b3402358e0e1255",7836:"86884157d53d23a1",7890:"f681eb1d1f83bea2",7953:"f6fc335a23efb959",8254:"3145a4fbdcfdca46",8400:"c95e4e79bcd79a56",8673:"be44c4d9e4f1d084",8698:"a088118fef40d302",9022:"33974a513a281fd2",9433:"b1b5f5d050c43e3c",9822:"34f293973c4e9b04"})[e]+".js"},b.miniCssF=function(e){},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",b.l=function(e,t,n,a){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var c,f,u=document.getElementsByTagName("script"),i=0;i<u.length;i++){var d=u[i];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+n){c=d;break}}c||(f=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,b.nc&&c.setAttribute("nonce",b.nc),c.setAttribute("data-webpack",o+n),c.src=b.tu(e)),r[e]=[t];var l=function(t,n){c.onerror=c.onload=null,clearTimeout(s);var o=r[e];if(delete r[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=l.bind(null,c.onerror),c.onload=l.bind(null,c.onload),f&&document.head.appendChild(c)},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.tt=function(){return void 0===a&&(a={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(a=trustedTypes.createPolicy("nextjs#bundler",a))),a},b.tu=function(e){return b.tt().createScriptURL(e)},b.p="/_next/",c={2272:0,3254:0,3587:0,6250:0,8255:0,4173:0,9346:0,2026:0,6008:0},b.f.j=function(e,t){var n=b.o(c,e)?c[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(2026|2272|3254|3587|4173|6008|6250|8255|9346)$/.test(e))c[e]=0;else{var r=new Promise(function(t,r){n=c[e]=[t,r]});t.push(n[2]=r);var o=b.p+b.u(e),a=Error();b.l(o,function(t){if(b.o(c,e)&&(0!==(n=c[e])&&(c[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}},"chunk-"+e,e)}}},b.O.j=function(e){return 0===c[e]},f=function(e,t){var n,r,o=t[0],a=t[1],f=t[2],u=0;if(o.some(function(e){return 0!==c[e]})){for(n in a)b.o(a,n)&&(b.m[n]=a[n]);if(f)var i=f(b)}for(e&&e(t);u<o.length;u++)r=o[u],b.o(c,r)&&c[r]&&c[r][0](),c[r]=0;return b.O(i)},(u=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(f.bind(null,0)),u.push=f.bind(null,u.push.bind(u)),b.nc=void 0}();
@@ -1 +0,0 @@
1
- div.search_searchLayout__fP3m0{display:grid;grid-template-columns:1fr;gap:1rem;height:100%}@media screen and (max-width:768px){div.search_searchLayout__fP3m0{gap:0}}
@@ -1 +0,0 @@
1
- div.sharedChat_main__7Nayy{height:100%;color:hsla(var(--foreground));margin-left:auto;margin-right:auto}.sharedChat_suggestions__V8kr_{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem;justify-content:center}div.sharedChat_inputBox__wRW5A{border:1px solid var(--border-color);margin-bottom:20px;gap:12px;align-content:center}input.sharedChat_inputBox__wRW5A{border:none}input.sharedChat_inputBox__wRW5A:focus{outline:none;background-color:transparent}div.sharedChat_inputBox__wRW5A:focus{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}div.sharedChat_chatBodyFull__O1MOv{display:grid;grid-template-columns:1fr;height:auto}button.sharedChat_inputBox__wRW5A{border:none;outline:none;background-color:transparent;cursor:pointer;border-radius:.5rem;padding:.5rem;background:linear-gradient(var(--calm-green),var(--calm-blue))}div.sharedChat_chatBody__OnHDL{display:grid;grid-template-columns:1fr 1fr;height:100%}.sharedChat_inputBox__wRW5A{color:hsla(var(--foreground))}div.sharedChat_chatLayout__gutlc{display:grid;grid-template-columns:auto 1fr;gap:1rem;width:100%}div.sharedChat_chatBox__PmAPg{display:grid;height:100%}div.sharedChat_titleBar__vOHp_{display:grid;grid-template-columns:1fr auto}div.sharedChat_chatBoxBody__ef2Nl{display:grid;height:100%;width:100%;margin:auto}div.sharedChat_agentIndicator__ORCl4 a{display:flex;text-align:center;align-content:center;align-items:center}div.sharedChat_agentIndicator__ORCl4{padding:10px}div.sharedChat_chatTitleWrapper__rVdYj{grid-template-columns:1fr auto}@media screen and (max-width:768px){div.sharedChat_inputBox__wRW5A{margin-bottom:0}div.sharedChat_chatBoxBody__ef2Nl{width:100%}div.sharedChat_chatBody__OnHDL{grid-template-columns:0fr 1fr}div.sharedChat_chatBox__PmAPg{padding:0;height:100%}div.sharedChat_chatLayout__gutlc{gap:0;grid-template-columns:1fr}}
@@ -1 +0,0 @@
1
- div.agents_titleBar__FzYbY{padding:16px 0;text-align:left}.agents_agentPersonality__o0Ysz p{white-space:inherit;overflow:hidden;height:77px;line-height:1.5}div.agents_agentPersonality__o0Ysz{text-align:left;grid-column:span 3;overflow:hidden}div.agents_pageLayout__gR3S3{max-width:60vw;margin:auto auto 2rem}button.agents_infoButton__NqI7E{border:none;background-color:transparent!important;text-align:left;font-family:inherit;font-size:medium}div.agents_agentList__XVx4A{display:grid;gap:20px;padding-top:30px;margin-right:auto;grid-auto-flow:row;grid-template-columns:1fr 1fr;margin-left:auto}@media only screen and (max-width:768px){div.agents_agentList__XVx4A{width:100%;padding:0;margin-right:auto;margin-left:auto;grid-template-columns:1fr}div.agents_pageLayout__gR3S3{max-width:90vw}}.loginPrompt_gsiMaterialButton__8QVFH{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-appearance:none;background-image:none;border-radius:20px;box-sizing:border-box;color:#1f1f1f;cursor:pointer;font-family:Roboto,arial,sans-serif;font-size:14px;height:40px;letter-spacing:.25px;outline:none;overflow:hidden;padding:0;position:relative;text-align:center;transition:background-color .218s,border-color .218s,box-shadow .218s;vertical-align:middle;white-space:nowrap;width:40px;max-width:400px;min-width:-moz-min-content;min-width:min-content}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonIcon__6TSC5{height:100%;min-width:20px;width:100%;margin:0;padding:9px}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonContentWrapper__9tahB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;height:100%;justify-content:space-between;position:relative;width:100%}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonContents__3_YcB{flex-grow:1;font-family:Roboto,arial,sans-serif;font-weight:500;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonState__CDGQm{transition:opacity .218s;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.loginPrompt_gsiMaterialButton__8QVFH:disabled{cursor:default;background-color:#ffffff61;border-color:#1f1f1f1f}.loginPrompt_gsiMaterialButton__8QVFH:disabled .loginPrompt_gsiMaterialButtonContents__3_YcB,.loginPrompt_gsiMaterialButton__8QVFH:disabled .loginPrompt_gsiMaterialButtonIcon__6TSC5{opacity:38%}.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):active .loginPrompt_gsiMaterialButton-State__mAfCZ,.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):focus .loginPrompt_gsiMaterialButtonState__CDGQm{background-color:#303030;opacity:12%}.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):hover{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15)}.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):hover .loginPrompt_gsiMaterialButtonState__CDGQm{background-color:#303030;opacity:8%}div.sidePanel_session__EeNjH{padding:.5rem;margin-bottom:.25rem;border-radius:.5rem;cursor:pointer;max-width:14rem;font-size:medium;display:grid;grid-template-columns:minmax(auto,400px) 1fr;gap:0}div.sidePanel_compressed__CUgIn{grid-template-columns:minmax(12rem,100%) 1fr 1fr}div.sidePanel_sessionHover__cf_VO,div.sidePanel_session__EeNjH:hover{background-color:hsla(var(--popover))}div.sidePanel_session__EeNjH:hover{color:hsla(var(--popover-foreground))}div.sidePanel_session__EeNjH a{text-decoration:none}button.sidePanel_button__NzdN_{border:none;outline:none;background-color:transparent;cursor:pointer;color:var(--main-text-color);width:24px}button.sidePanel_showMoreButton__nDt4Z{border-radius:.5rem;padding:8px}div.sidePanel_panel__9offQ{display:flex;flex-direction:column;padding:1rem;overflow-y:auto;max-width:auto;transition:background-color .5s}div.sidePanel_expanded__aHnYV{gap:1rem;background-color:hsla(var(--muted));height:100%}div.sidePanel_collapsed__ewO3e{display:grid;grid-template-columns:1fr;height:-moz-fit-content;height:fit-content;padding:1rem 0 0 1rem}p.sidePanel_session__EeNjH{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;font-size:small}p.sidePanel_compressed__CUgIn{width:11rem}p.sidePanel_expanded__aHnYV{max-width:20rem}div.sidePanel_header__NCT_v{display:grid;grid-template-columns:1fr auto}div.sidePanel_profile__pfAJU{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:center;margin-top:auto}div.sidePanel_panelWrapper__cDMvb{display:grid;grid-template-rows:1fr auto auto;height:100%}div.sidePanel_modalSessionsList___u3aa{position:fixed;top:0;left:0;width:100%;height:100%;background-color:hsla(var(--frosted-background-color));z-index:1;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}div.sidePanel_modalSessionsList___u3aa div.sidePanel_content__z60YO{max-width:80%;max-height:80%;background-color:hsla(var(--frosted-background-color));overflow:auto;padding:20px;border-radius:10px}div.sidePanel_modalSessionsList___u3aa div.sidePanel_session__EeNjH{max-width:100%;text-overflow:ellipsis}@media screen and (max-width:768px){div.sidePanel_panel__9offQ{padding:.25rem;width:100%}div.sidePanel_expanded__aHnYV{z-index:1}div.sidePanel_singleReference__vmXZr{padding:4px}div.sidePanel_panelWrapper__cDMvb{width:100%;padding:0 1rem}div.sidePanel_session__EeNjH.sidePanel_compressed__CUgIn{max-width:100%;display:grid;grid-template-columns:70vw auto;justify-content:space-between}div.sidePanel_session__EeNjH{max-width:100%;grid-template-columns:minmax(auto,70vw) 1fr}}.agentCard_agentPersonality__MmRlN p{white-space:inherit;overflow:hidden;height:77px;line-height:1.5}div.agentCard_agentPersonality__MmRlN{text-align:left;grid-column:span 3;overflow:hidden}button.agentCard_infoButton__heh_w{border:none;background-color:transparent!important;text-align:left;font-family:inherit;font-size:medium}.trainOfThoughtVideoPlayer_videoPlayer__Dz3mA{border:1px solid hsl(var(--border));border-radius:8px;background-color:hsl(var(--background));margin:16px 0;overflow:hidden}.trainOfThoughtVideoPlayer_screen__dvEVh{position:relative;background-color:hsl(var(--muted));min-height:300px;display:flex;align-items:center;justify-content:center}.trainOfThoughtVideoPlayer_screenImage__3SgOQ{max-width:100%;max-height:400px;-o-object-fit:contain;object-fit:contain;border-radius:4px}.trainOfThoughtVideoPlayer_textOverlay__BGbhO{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.8));padding:20px 16px 12px;color:#fff}.trainOfThoughtVideoPlayer_thoughtText__zn_vT{font-size:14px;line-height:1.4;max-height:100px;overflow-y:auto}.trainOfThoughtVideoPlayer_controls__HDkO_{padding:12px 16px;background-color:hsl(var(--card));border-top:1px solid hsl(var(--border))}.trainOfThoughtVideoPlayer_timeline__hSpWu{position:relative;margin-bottom:12px}.trainOfThoughtVideoPlayer_timelineSlider__GQ8dx{width:100%;height:4px;background-color:hsl(var(--muted));border-radius:2px;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.trainOfThoughtVideoPlayer_timelineSlider__GQ8dx::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background-color:hsl(var(--primary));cursor:pointer;border:2px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}.trainOfThoughtVideoPlayer_timelineSlider__GQ8dx::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background-color:hsl(var(--primary));cursor:pointer;border:2px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}.trainOfThoughtVideoPlayer_frameMarkers__5y3He{position:absolute;top:-2px;left:0;right:0;height:8px;display:flex;justify-content:space-between;pointer-events:none}.trainOfThoughtVideoPlayer_frameMarker__DBO9Y{width:6px;height:8px;border-radius:1px;cursor:pointer;pointer-events:auto;transition:all .2s ease}.trainOfThoughtVideoPlayer_frameMarker__DBO9Y.trainOfThoughtVideoPlayer_hasImage__GFGAk{background-color:hsl(var(--primary))}.trainOfThoughtVideoPlayer_frameMarker__DBO9Y.trainOfThoughtVideoPlayer_textOnly__okufk{background-color:hsl(var(--muted-foreground))}.trainOfThoughtVideoPlayer_frameMarker__DBO9Y.trainOfThoughtVideoPlayer_active__zp6u9{background-color:hsl(var(--accent))!important;transform:scaleY(1.5)}.trainOfThoughtVideoPlayer_frameMarker__DBO9Y:hover{transform:scaleY(1.2)}.trainOfThoughtVideoPlayer_controlButtons__rqfIH{display:flex;align-items:center;gap:8px;margin-bottom:8px}.trainOfThoughtVideoPlayer_controlButton___RdE_{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid hsl(var(--border));border-radius:4px;background-color:hsl(var(--background));color:hsl(var(--foreground));cursor:pointer;transition:all .2s ease}.trainOfThoughtVideoPlayer_controlButton___RdE_:hover:not(:disabled){background-color:hsl(var(--muted))}.trainOfThoughtVideoPlayer_controlButton___RdE_:disabled{opacity:.5;cursor:not-allowed}.trainOfThoughtVideoPlayer_controlButton___RdE_.trainOfThoughtVideoPlayer_active__zp6u9{background-color:hsl(var(--primary));color:hsl(var(--primary-foreground))}.trainOfThoughtVideoPlayer_frameInfo__u5nwA{display:flex;justify-content:center;font-size:12px;color:hsl(var(--muted-foreground))}@media (prefers-color-scheme:dark){.trainOfThoughtVideoPlayer_textOverlay__BGbhO{background:linear-gradient(transparent,rgba(0,0,0,.9))}}div.automations_automationsLayout__Atoh_{display:grid;grid-template-columns:1fr 1fr;gap:1rem}div.automations_automationCard__BKidA{display:grid;grid-template-rows:auto 1fr auto}div.automations_pageLayout__OaoYA{max-width:60vw;margin:auto auto 2rem}@media screen and (max-width:768px){div.automations_automationsLayout__Atoh_{grid-template-columns:1fr}div.automations_pageLayout__OaoYA{max-width:90vw}}
@@ -1 +0,0 @@
1
- div.chat_main__8xQu5{height:100%;color:hsla(var(--foreground));margin-left:auto;margin-right:auto}.chat_suggestions__m8n2t{display:flex;overflow-x:none;height:50%;padding:10px;white-space:nowrap;gap:1rem}div.chat_inputBox__LOFws{border:1px solid var(--border-color);margin-bottom:20px;gap:12px;align-content:center}input.chat_inputBox__LOFws{border:none}input.chat_inputBox__LOFws:focus{outline:none;background-color:transparent}div.chat_inputBox__LOFws:focus{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}div.chat_chatBodyFull__FfKEK{display:grid;grid-template-columns:1fr;height:auto}button.chat_inputBox__LOFws{border:none;outline:none;background-color:transparent;cursor:pointer;border-radius:.5rem;padding:.5rem;background:linear-gradient(var(--calm-green),var(--calm-blue))}div.chat_chatBody__sS1LX{display:grid;grid-template-columns:1fr 1fr;height:100%}.chat_inputBox__LOFws{color:hsla(var(--foreground))}div.chat_chatLayout__pR203{display:grid;grid-template-columns:1fr;gap:1rem;width:100%}div.chat_chatBox__FBct_{display:grid;height:100%}div.chat_titleBar__R5QlK{display:grid;grid-template-columns:1fr auto}div.chat_chatBoxBody__qT_SC{display:grid;height:100%;width:100%;margin:auto}div.chat_agentIndicator__8V55w a{display:flex;text-align:center;align-content:center;align-items:center}div.chat_agentIndicator__8V55w{padding:10px}div.chat_chatTitleWrapper__6ChWq{grid-template-columns:1fr auto}@media screen and (max-width:768px){div.chat_inputBox__LOFws{margin-bottom:0}div.chat_chatBoxBody__qT_SC{width:100%}div.chat_chatBody__sS1LX{grid-template-columns:0fr 1fr}div.chat_chatBox__FBct_{padding:0;height:100%}div.chat_chatLayout__pR203{gap:0;grid-template-columns:1fr}}div.chatHistory_chatHistory__CoaVT{display:flex;flex-direction:column;height:100%;margin:auto}div.chatHistory_agentIndicator__wOU1f a{display:flex;text-align:center;align-content:center;align-items:center}div.chatHistory_trainOfThought__mMWSR{padding:8px 16px;margin:12px}div.chatMessage_chatMessageContainer__sAivf{display:flex;flex-direction:column;margin:12px;border-radius:16px;padding:8px 16px 0;word-break:break-word}div.chatMessage_chatMessageWrapper__u5m8A{padding-left:1rem;padding-bottom:1rem}div.chatMessage_chatMessageWrapper__u5m8A ol,div.chatMessage_chatMessageWrapper__u5m8A p:not(:last-child),div.chatMessage_chatMessageWrapper__u5m8A ul{margin-bottom:16px}div.chatMessage_chatMessageWrapper__u5m8A a span{display:revert!important}div.chatMessage_khojfullHistory__NPu2l{padding-left:4px}div.chatMessage_youfullHistory__ioyfH{max-width:100%}div.chatMessage_chatMessageContainer__sAivf.chatMessage_youfullHistory__ioyfH{padding-left:0}div.chatMessage_you__6GUC4{background-color:hsla(var(--secondary));align-self:flex-end;border-radius:16px}div.chatMessage_khoj__cjWON{background-color:transparent;color:hsl(var(--accent-foreground));align-self:flex-start}div.chatMessage_khojChatMessage__BabQz{padding-top:8px;padding-left:16px}div.chatMessage_emptyChatMessage__J9JRn{display:none}div.chatMessage_imagesContainer__HTRjT{display:flex;overflow-x:auto;padding-bottom:8px;margin-bottom:8px}div.chatMessage_imageWrapper__DF92M{flex:0 0 auto;margin-right:8px}div.chatMessage_imageWrapper__DF92M img{width:auto;height:128px;-o-object-fit:cover;object-fit:cover;border-radius:8px}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M img{height:512px}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M{flex:1 1 auto}div.chatMessage_khoj__cjWON div.chatMessage_imagesContainer__HTRjT{display:flex;flex-wrap:wrap;flex-direction:row;overflow-x:hidden}div.chatMessage_chatMessageContainer__sAivf>img{width:auto;height:auto;max-width:100%;max-height:80vh;-o-object-fit:contain;object-fit:contain;display:block;margin-top:.25rem;margin-right:auto}div.chatMessage_chatMessageContainer__sAivf h3 img{width:24px}div.chatMessage_you__6GUC4{color:hsla(var(--secondary-foreground))}div.chatMessage_author__muRtC{font-size:.75rem;color:grey;text-align:right}div.chatMessage_chatFooter__0vR8s{display:flex;justify-content:space-between;min-height:28px}div.chatMessage_chatButtons__Lbk8T{display:flex;justify-content:flex-end;width:-moz-min-content;width:min-content;border:1px solid var(--border-color);border-radius:16px;position:relative;bottom:-12px;background-color:hsla(var(--secondary))}div.chatMessage_chatFooter__0vR8s button{cursor:pointer;color:hsl(var(--muted-foreground));border:none;border-radius:16px;padding:4px;margin-left:4px;margin-right:4px}div.chatMessage_chatFooter__0vR8s button:hover{background-color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv{cursor:pointer;float:right;border-radius:8px}button.chatMessage_codeCopyButton__Y_Ujv:hover{color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv img,button.chatMessage_copyButton__jd7q7 img,button.chatMessage_retryButton__Z7Pzk img,div.chatMessage_feedbackButtons___Brdy img{width:24px}div.chatMessage_trainOfThought__mR2Gg strong{font-weight:500}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb strong{font-weight:500;color:hsla(var(--secondary-foreground))}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb p{color:inherit}div.chatMessage_trainOfThoughtElement__le_bC{display:grid;grid-template-columns:auto 1fr;align-items:start}div.chatMessage_trainOfThoughtElement__le_bC ol,div.chatMessage_trainOfThoughtElement__le_bC ul{margin:auto;word-break:break-word}@media screen and (max-width:768px){div.chatMessage_youfullHistory__ioyfH{max-width:90%}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M img{width:100%;height:auto}}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2) format("woff2"),url(/_next/static/media/KaTeX_AMS-Regular.1608a09b.woff) format("woff"),url(/_next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Regular.7c187121.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Bold.d181c465.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/_next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff) format("woff"),url(/_next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/_next/static/media/KaTeX_Main-Italic.8916142b.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Italic.9024d815.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Italic.47373d1e.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Main-Regular.0462f03b.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Regular.7f51fe03.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/_next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff) format("woff"),url(/_next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/_next/static/media/KaTeX_Math-Italic.f28c23ac.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-Italic.5295ba48.woff) format("woff"),url(/_next/static/media/KaTeX_Math-Italic.939bc644.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(/_next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Regular.74048478.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Script-Regular.03e9641d.woff2) format("woff2"),url(/_next/static/media/KaTeX_Script-Regular.07505710.woff) format("woff"),url(/_next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size1-Regular.eae34984.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size1-Regular.e1e279cb.woff) format("woff"),url(/_next/static/media/KaTeX_Size1-Regular.fabc004a.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size2-Regular.5916a24f.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size2-Regular.57727022.woff) format("woff"),url(/_next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size3-Regular.9acaf01c.woff) format("woff"),url(/_next/static/media/KaTeX_Size3-Regular.a144ef58.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size4-Regular.7a996c9d.woff) format("woff"),url(/_next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2) format("woff2"),url(/_next/static/media/KaTeX_Typewriter-Regular.6258592b.woff) format("woff"),url(/_next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.21"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.suggestions_card__fbiZo{border-radius:.5rem}.suggestions_title__vNozc{font-size:1rem}.suggestions_text__J_IfY{padding-top:.2rem;font-size:.9rem;white-space:wrap;padding-right:4px;color:#000}div.chatInputArea_actualInputArea__Ha6cN{display:grid;grid-template-columns:auto 1fr auto auto}