beads-map 0.3.3 → 0.3.4

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 (30) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +2 -2
  3. package/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/next-minimal-server.js.nft.json +1 -1
  6. package/.next/next-server.js.nft.json +1 -1
  7. package/.next/prerender-manifest.json +1 -1
  8. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_not-found.html +1 -1
  10. package/.next/server/app/_not-found.rsc +1 -1
  11. package/.next/server/app/api/beads.body +1 -1
  12. package/.next/server/app/index.html +1 -1
  13. package/.next/server/app/index.rsc +2 -2
  14. package/.next/server/app/page.js +3 -3
  15. package/.next/server/app/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app-paths-manifest.json +5 -5
  17. package/.next/server/functions-config-manifest.json +1 -1
  18. package/.next/server/pages/404.html +1 -1
  19. package/.next/server/pages/500.html +1 -1
  20. package/.next/server/server-reference-manifest.json +1 -1
  21. package/.next/static/chunks/app/page-cf8e14cb4afc8112.js +1 -0
  22. package/.next/static/css/ade5301262971664.css +3 -0
  23. package/app/page.tsx +43 -3
  24. package/components/BeadsGraph.tsx +108 -10
  25. package/components/ContextMenu.tsx +51 -5
  26. package/package.json +1 -1
  27. package/.next/static/chunks/app/page-4a4f07fcb5bd4637.js +0 -1
  28. package/.next/static/css/df2737696baac0fa.css +0 -3
  29. /package/.next/static/{bsmkR-2y8Ra7VuoNZWLzB → JmL0suxsggbSwPxWcmUFV}/_buildManifest.js +0 -0
  30. /package/.next/static/{bsmkR-2y8Ra7VuoNZWLzB → JmL0suxsggbSwPxWcmUFV}/_ssgManifest.js +0 -0
@@ -1,8 +1,8 @@
1
- (()=>{var e={};e.id=931,e.ids=[931],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},41041:e=>{"use strict";e.exports=require("node:url")},32143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>o.a,__next_app__:()=>h,originalPathname:()=>d,pages:()=>u,routeModule:()=>p,tree:()=>c}),n(71363),n(19709),n(10311);var r=n(69296),i=n(31650),l=n(87045),o=n.n(l),s=n(58184),a={};for(let e in s)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(a[e]=()=>s[e]);n.d(t,a);let c=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.bind(n,71363)),"/Users/david/Projects/gainforest/beads-map/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(n.bind(n,19709)),"/Users/david/Projects/gainforest/beads-map/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,10311,23)),"next/dist/client/components/not-found-error"]}],u=["/Users/david/Projects/gainforest/beads-map/app/page.tsx"],d="/page",h={require:n,loadChunk:()=>Promise.resolve()},p=new r.AppPageRouteModule({definition:{kind:i.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},40585:(e,t,n)=>{Promise.resolve().then(n.bind(n,67960))},12178:(e,t,n)=>{Promise.resolve().then(n.bind(n,85406))},15169:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,66544,23)),Promise.resolve().then(n.t.bind(n,93477,23)),Promise.resolve().then(n.t.bind(n,95116,23)),Promise.resolve().then(n.t.bind(n,96676,23)),Promise.resolve().then(n.t.bind(n,59645,23)),Promise.resolve().then(n.t.bind(n,88850,23))},85406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i6});var r={};n.r(r),n.d(r,{boolean:()=>G,booleanish:()=>Y,commaOrSpaceSeparated:()=>Q,commaSeparated:()=>Z,number:()=>J,overloadedBoolean:()=>X,spaceSeparated:()=>K});var i={};n.r(i),n.d(i,{attentionMarkers:()=>t6,contentInitial:()=>t0,disable:()=>t8,document:()=>tQ,flow:()=>t5,flowInitial:()=>t1,insideSpan:()=>t3,string:()=>t2,text:()=>t4});var l=n(98924),o=n(63911);let s={status:"Status",priority:"Priority",owner:"Owner",assignee:"Assignee",prefix:"Prefix"},a={open:"#10b981",in_progress:"#f59e0b",blocked:"#ef4444",deferred:"#8b5cf6",closed:"#a1a1aa"},c={open:"Open",in_progress:"In Progress",blocked:"Blocked",deferred:"Deferred",closed:"Closed"},u={0:"P0 - Critical",1:"P1 - High",2:"P2 - Medium",3:"P3 - Low",4:"P4 - Backlog"},d={0:"#ef4444",1:"#f97316",2:"#3b82f6",3:"#a1a1aa",4:"#d4d4d8"},h=["#d20f39","#179299","#fe640b","#1e66f5","#40a02b","#8839ef","#df8e1d","#209fb5","#ea76cb","#04a5e5","#e64553","#7287fd","#dd7878","#dc8a78"],p={bug:"\uD83D\uDC1B",feature:"✨",task:"\uD83D\uDCDD",epic:"\uD83C\uDFAF",chore:"\uD83D\uDD27"};function f(e){return e.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function m(e){if(!e)return"#acb0be";let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=16777619*t>>>0;return h[t%h.length]}let x=new Proxy({},{get:(e,t)=>f(t),has:()=>!0}),g=new Proxy({},{get:(e,t)=>(function(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=16777619*t>>>0;let n=t%360;return`hsl(${n}, 65%, 55%)`})(t),has:()=>!0});function y(e){return function(){return e}}var b=n(26669);function v(e){return(e()-.5)*1e-6}function k(e){return e.x+e.vx}function w(e){return e.y+e.vy}function j(e){var t,n,r,i=1,l=1;function o(){for(var e,o,a,c,u,d,h,p=t.length,f=0;f<l;++f)for(e=0,o=(0,b.Z)(t,k,w).visitAfter(s);e<p;++e)h=(d=n[(a=t[e]).index])*d,c=a.x+a.vx,u=a.y+a.vy,o.visit(m);function m(e,t,n,l,o){var s=e.data,p=e.r,f=d+p;if(s){if(s.index>a.index){var m=c-s.x-s.vx,x=u-s.y-s.vy,g=m*m+x*x;g<f*f&&(0===m&&(g+=(m=v(r))*m),0===x&&(g+=(x=v(r))*x),g=(f-(g=Math.sqrt(g)))/g*i,a.vx+=(m*=g)*(f=(p*=p)/(h+p)),a.vy+=(x*=g)*f,s.vx-=m*(f=1-f),s.vy-=x*f)}return}return t>c+f||l<c-f||n>u+f||o<u-f}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function a(){if(t){var r,i,l=t.length;for(r=0,n=Array(l);r<l;++r)n[(i=t[r]).index]=+e(i,r,t)}}return"function"!=typeof e&&(e=y(null==e?1:+e)),o.initialize=function(e,n){t=e,r=n,a()},o.iterations=function(e){return arguments.length?(l=+e,o):l},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),a(),o):e},o}let N=null;function C(e){let t=e.blockerCount+e.dependentCount;return"epic"===e.issueType&&(t+=3),5+17*Math.min(t/6,1)}let S="status";function z(e){switch(S){case"priority":return d[e.priority]||d[2];case"owner":return m(e.createdBy);case"assignee":return m(e.assignee);case"prefix":return m(e.prefix);default:return a[e.status]||a.open}}function D(e){return 1-(1-e)*(1-e)}let L=new Map;function M(e,t){let n=L.get(e);if("loading"===n||"failed"===n)return null;if(n)return n;L.set(e,"loading");let r=new Image;return r.onload=()=>{L.set(e,r),t()},r.onerror=()=>{L.set(e,"failed")},r.src=e,null}function A(e,t,n,r,i,l){e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.fillStyle="#e4e4e7",e.fill();let o=i.replace("@","").charAt(0).toUpperCase();e.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.fillStyle="#71717a",e.fillText(o,t,n+.3)}function T(e,t){let n=new Set([e]),r=[{id:e,depth:0}];for(;r.length>0;){let{id:e,depth:i}=r.shift();if(!(i>=2))for(let l of t){let t="object"==typeof l.source?l.source.id:l.source,o="object"==typeof l.target?l.target.id:l.target;t!==e||n.has(o)||(n.add(o),r.push({id:o,depth:i+1})),o!==e||n.has(t)||(n.add(t),r.push({id:t,depth:i+1}))}}return n}function E(e){let t=e.current;if(!t)return;let n=t.zoom();"number"!=typeof n||isNaN(n)||(t.zoom(1.000001*n,0),requestAnimationFrame(()=>{e.current&&e.current.zoom(n,0)}))}let P=(0,o.forwardRef)(function({nodes:e,links:t,selectedNode:r,hoveredNode:i,onNodeClick:h,onNodeHover:p,onBackgroundClick:x,onNodeRightClick:g,commentedNodeIds:b,claimedNodeAvatars:v,onAvatarHover:k,timelineActive:w,stats:L,sidebarOpen:P,collapsedEpicIds:F,onCollapseAll:q,onExpandAll:R,colorMode:O="status",onColorModeChange:B,autoFit:_=!0,onAutoFitToggle:U,pulseNodeId:H,showPulse:V=!0,onShowPulseToggle:$},W){let G=(0,o.useRef)(null),Y=(0,o.useRef)(null),X=(0,o.useRef)(null),J=(0,o.useRef)(0),K=(0,o.useRef)(()=>{}),[Z,Q]=(0,o.useState)({width:800,height:600}),ee=(0,o.useRef)(!1),[et,en]=(0,o.useState)({w:160,h:120}),er=et.w,ei=et.h,el=(0,o.useRef)(null),[eo,es]=(0,o.useState)(N);(0,o.useEffect)(()=>{N||n.e(29).then(n.bind(n,31029)).then(e=>{N=e.default||e,es(()=>N)})},[]);let[ea,ec]=(0,o.useState)("dag"),[eu,ed]=(0,o.useState)(!0),eh=(0,o.useRef)(r),ep=(0,o.useRef)(i),ef=(0,o.useRef)(new Set),em=(0,o.useRef)(b||new Map),ex=(0,o.useRef)(v||new Map),eg=(0,o.useRef)(O),ey=(0,o.useRef)(H||null),eb=(0,o.useRef)(V),ev=(0,o.useRef)(()=>{});ev.current=()=>E(G);let ek=(0,o.useRef)(k);ek.current=k;let ew=(0,o.useRef)(null),ej=(0,o.useRef)({x:0,y:0}),eN=(0,o.useRef)(e),eC=(0,o.useRef)([]),{viewNodes:eS,viewLinks:ez}=(0,o.useMemo)(()=>{if(!F||0===F.size)return{viewNodes:e,viewLinks:t};let n=new Map;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&n.set(r,t)}let r=new Set(e.map(e=>e.id));for(let t of e)if(!n.has(t.id)&&t.id.includes(".")){let e=t.id.split(".")[0];r.has(e)&&n.set(t.id,e)}let i=new Set;for(let[e,t]of n)F.has(t)&&i.add(e);if(0===i.size)return{viewNodes:e,viewLinks:t};let l=new Map;for(let e of i)l.set(e,n.get(e));let o=new Map,s=new Map,a=new Map;for(let[t,n]of l){o.set(n,(o.get(n)||0)+1);let r=e.find(e=>e.id===t);r&&(s.set(n,(s.get(n)||0)+r.blockerCount),a.set(n,(a.get(n)||0)+r.dependentCount))}let c=e.filter(e=>!i.has(e.id)).map(e=>({...e,blockerCount:e.blockerCount+(s.get(e.id)||0),dependentCount:e.dependentCount+(a.get(e.id)||0),collapsedCount:o.get(e.id)||0})),u=[],d=new Set;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,n="object"==typeof e.target?e.target.id:e.target;if("parent-child"===e.type&&i.has(n)||(t=l.get(t)||t)===(n=l.get(n)||n))continue;let r=`${t}->${n}:${e.type}`;d.has(r)||(d.add(r),u.push({source:t,target:n,type:e.type}))}return{viewNodes:c,viewLinks:u}},[e,t,F]);eN.current=eS,(0,o.useEffect)(()=>{let n=new Map;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&n.set(r,t)}let r=new Set(e.map(e=>e.id));for(let t of e)if(!n.has(t.id)&&t.id.includes(".")){let e=t.id.split(".")[0];r.has(e)&&n.set(t.id,e)}let i=new Map;for(let[e,t]of n){let n=i.get(t)||[];n.push(e),i.set(t,n)}let l=new Map(e.map(e=>[e.id,e])),o=[];for(let[e,t]of i){let n=l.get(e);n&&o.push({parentId:e,title:n.title||e,prefix:n.prefix,memberIds:[e,...t]})}eC.current=o},[e,t]);let eD=(0,o.useMemo)(()=>{if("status"===O||"priority"===O)return[];let e=new Map;for(let t of eS)switch(O){case"owner":{let n=t.createdBy||void 0;e.set(n||"Unassigned",m(n));break}case"assignee":{let n=t.assignee||void 0;e.set(n||"Unassigned",m(n));break}case"prefix":e.set(f(t.prefix),m(t.prefix))}return Array.from(e.entries()).sort(([e],[t])=>"Unassigned"===e?1:"Unassigned"===t?-1:e.localeCompare(t)).map(([e,t])=>({label:e,color:t}))},[O,eS]);(0,o.useEffect)(()=>{eh.current=r;let e=ep.current||r;e?ef.current=T(e.id,ez):ef.current=new Set,E(G),cancelAnimationFrame(J.current),J.current=requestAnimationFrame(()=>K.current())},[r,ez]),(0,o.useEffect)(()=>{ep.current=i;let e=i||eh.current;e?ef.current=T(e.id,ez):ef.current=new Set,E(G),cancelAnimationFrame(J.current),J.current=requestAnimationFrame(()=>K.current())},[i,ez]),(0,o.useEffect)(()=>{em.current=b||new Map,E(G)},[b]),(0,o.useEffect)(()=>{ex.current=v||new Map,E(G)},[v]),(0,o.useEffect)(()=>{eg.current=O,S=O,E(G),J.current=requestAnimationFrame(()=>K.current())},[O]),(0,o.useEffect)(()=>{ey.current=H||null,eb.current=V,E(G)},[H,V]),(0,o.useEffect)(()=>{let e=Y.current;if(!e)return;let t=t=>{let n;ej.current={x:t.clientX,y:t.clientY};let r=G.current,i=ek.current;if(!r||!i)return;let l=ex.current;if(0===l.size){ew.current&&(ew.current=null,i(null));return}let o=e.getBoundingClientRect(),s=t.clientX-o.left,a=t.clientY-o.top;try{n=r.screen2GraphCoords(s,a)}catch{return}let c=Math.max(4,10/(r.zoom()||1));for(let e of eN.current){if(null==e.x||null==e.y)continue;let r=l.get(e.id);if(!r)continue;let o=C(e),s=e.x+.7*o,a=e.y+.7*o,u=n.x-s,d=n.y-a;if(u*u+d*d<=c*c){ew.current!==e.id&&(ew.current=e.id,i({handle:r.handle,avatar:r.avatar,claimedAt:r.claimedAt,did:r.did,x:t.clientX,y:t.clientY}));return}}ew.current&&(ew.current=null,i(null))};return e.addEventListener("mousemove",t),()=>e.removeEventListener("mousemove",t)},[]),(0,o.useEffect)(()=>{let e=()=>{if(Y.current){let e=Y.current.getBoundingClientRect();Q({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let eL=(0,o.useCallback)(e=>{let t=G.current;if(!t)return;let n=eS.find(t=>t.id===e.id);n&&void 0!==n.x&&void 0!==n.y&&(t.centerAt(n.x,n.y,500),t.zoom(2.5,500),h(e))},[h,eS]);(0,o.useImperativeHandle)(W,()=>({focusNode:eL}),[eL]),(0,o.useEffect)(()=>{let e;let t=G.current;if(!t||0===eS.length)return;let n=()=>{t.d3Force("radial",null),t.d3Force("x",null),t.d3Force("y",null)},r=()=>{eS.forEach(e=>{delete e.fx,delete e.fy})};if("dag"===ea)n(),t.d3Force("charge")?.strength(-80).distanceMax(300),t.d3Force("link")?.distance(50).strength(.3),t.d3Force("center")?.strength(.01),t.d3Force("collision",null);else if("radial"===ea){n(),r();let e=new Map;for(let t of ez){if("parent-child"===t.type)continue;let n="object"==typeof t.target?t.target.id:t.target,r="object"==typeof t.source?t.source.id:t.source;e.has(n)||e.set(n,[]),e.get(n).push(r)}let i=new Map,l=[];eS.forEach(t=>{e.has(t.id)||(i.set(t.id,0),l.push(t.id))});let o=0;for(;o<l.length;){let e=l[o++],t=i.get(e);for(let n of ez){if("parent-child"===n.type)continue;let r="object"==typeof n.source?n.source.id:n.source,o="object"==typeof n.target?n.target.id:n.target;r!==e||i.has(o)||(i.set(o,t+1),l.push(o))}}eS.forEach(e=>{e._depth=i.get(e.id)??0}),Array.from(i.values());let s=Math.max(200,4*eS.length);t.d3Force("charge")?.strength(-300).distanceMax(800),t.d3Force("link")?.distance(150).strength(.15),t.d3Force("center")?.strength(0),t.d3Force("radial",(function(e,t,n){var r,i,l,o=y(.1);function s(e){for(var o=0,s=r.length;o<s;++o){var a=r[o],c=a.x-t||1e-6,u=a.y-n||1e-6,d=Math.sqrt(c*c+u*u),h=(l[o]-d)*i[o]*e/d;a.vx+=c*h,a.vy+=u*h}}function a(){if(r){var t,n=r.length;for(t=0,i=Array(n),l=Array(n);t<n;++t)l[t]=+e(r[t],t,r),i[t]=isNaN(l[t])?0:+o(r[t],t,r)}}return"function"!=typeof e&&(e=y(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){r=e,a()},s.strength=function(e){return arguments.length?(o="function"==typeof e?e:y(+e),a(),s):o},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),a(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s})(e=>(e._depth||0)*s,0,0).strength(.8)),t.d3Force("x",null),t.d3Force("y",null),t.d3Force("collision",j().radius(e=>C(e)+10).strength(.9))}else if("cluster"===ea){n(),r();let e=[...new Set(eS.map(e=>e.prefix))],i=Math.max(400,5*eS.length,150*e.length),l=new Map;e.forEach((t,n)=>{let r=2*Math.PI*n/e.length-Math.PI/2;l.set(t,{x:Math.cos(r)*i,y:Math.sin(r)*i})}),t.d3Force("charge")?.strength(-200).distanceMax(600),t.d3Force("link")?.distance(100).strength(.15),t.d3Force("center")?.strength(0),t.d3Force("x",(function(e){var t,n,r,i=y(.1);function l(e){for(var i,l=0,o=t.length;l<o;++l)i=t[l],i.vx+=(r[l]-i.x)*n[l]*e}function o(){if(t){var l,o=t.length;for(l=0,n=Array(o),r=Array(o);l<o;++l)n[l]=isNaN(r[l]=+e(t[l],l,t))?0:+i(t[l],l,t)}}return"function"!=typeof e&&(e=y(null==e?0:+e)),l.initialize=function(e){t=e,o()},l.strength=function(e){return arguments.length?(i="function"==typeof e?e:y(+e),o(),l):i},l.x=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),o(),l):e},l})(e=>l.get(e.prefix)?.x||0).strength(.5)),t.d3Force("y",(function(e){var t,n,r,i=y(.1);function l(e){for(var i,l=0,o=t.length;l<o;++l)i=t[l],i.vy+=(r[l]-i.y)*n[l]*e}function o(){if(t){var l,o=t.length;for(l=0,n=Array(o),r=Array(o);l<o;++l)n[l]=isNaN(r[l]=+e(t[l],l,t))?0:+i(t[l],l,t)}}return"function"!=typeof e&&(e=y(null==e?0:+e)),l.initialize=function(e){t=e,o()},l.strength=function(e){return arguments.length?(i="function"==typeof e?e:y(+e),o(),l):i},l.y=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),o(),l):e},l})(e=>l.get(e.prefix)?.y||0).strength(.5)),t.d3Force("collision",j().radius(e=>C(e)+10).strength(.9))}else"spread"===ea?(n(),r(),t.d3Force("charge")?.strength(-300).distanceMax(500),t.d3Force("link")?.distance(180).strength(.4),t.d3Force("center")?.strength(.02),t.d3Force("collision",j().radius(e=>C(e)+8).strength(.8))):(n(),r(),t.d3Force("charge")?.strength(-180).distanceMax(400),t.d3Force("link")?.distance(e=>((e.source?.blockerCount||0)+(e.source?.dependentCount||0)+((e.target?.blockerCount||0)+(e.target?.dependentCount||0)))/2>4?90:120).strength(.6),t.d3Force("center")?.strength(.03),t.d3Force("collision",j().radius(e=>C(e)+6).strength(.7)));return t.d3ReheatSimulation(),_&&(e=setTimeout(()=>{G.current&&G.current.zoomToFit(400,60)},ee.current?600:1e3)),ee.current=!0,()=>{e&&clearTimeout(e)}},[ea,eS,ez,_]);let eM=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(eM.current||!eo||0===e.length)return;eM.current=!0;let t=setTimeout(()=>{ec("force")},15);return()=>clearTimeout(t)},[eo,e.length]),(0,o.useEffect)(()=>{if(!w&&_&&G.current&&e.length>0){let e=setTimeout(()=>{G.current.zoomToFit(400,60)},800);return()=>clearTimeout(e)}},[e.length,w,_]);let eA=(0,o.useMemo)(()=>{let e=Math.sqrt(eS.length)||1;return eS.forEach((t,n)=>{if(null==t.x&&null==t.y){let r=n*Math.PI*(3-Math.sqrt(5)),i=300*Math.sqrt(.5+n)/e;t.x=i*Math.cos(r),t.y=i*Math.sin(r)}}),{nodes:eS,links:ez}},[eS,ez]),eT=(0,o.useCallback)((e,t,n)=>{let r=C(e),i=z(e),l=m(e.prefix),o=eh.current?.id===e.id,s=ep.current?.id===e.id,c=ef.current,u=c.has(e.id),d=c.size>0,h=Date.now(),p=1,f=e._spawnTime;if(f){let e=h-f;if(e<500){var x;p=1+2.70158*Math.pow((x=e/500)-1,3)+1.70158*Math.pow(x-1,2)}}let g=1,y=1,b=e._removeTime;if(b){let e=h-b;if(e<400){let t=e/400;g=1-D(t),y=1-t}else g=0,y=0}let v=p*g;if(v<=.01)return;let k=r*v,w=(d&&!u?.15:"closed"===e.status?.5:1)*y;if(w<=.01)return;t.save(),t.globalAlpha=w,u&&d&&(t.shadowColor="#10b981",t.shadowBlur=o?20:s?16:10),n>.3&&(t.beginPath(),t.arc(e.x,e.y,k+2,0,2*Math.PI),t.strokeStyle=l,t.lineWidth=2,t.stroke()),t.beginPath(),t.arc(e.x,e.y,k,0,2*Math.PI),t.fillStyle=i,t.fill(),t.strokeStyle=o?"#10b981":s?"#3f3f46":"#e4e4e7",t.lineWidth=o?2.5:s?2:1,t.stroke(),t.shadowBlur=0;let j=e._changedAt;if(j){let n=h-j;if(n<800){let r=n/800,i=a[e.status]||"#a1a1aa";t.beginPath(),t.arc(e.x,e.y,k+4+20*r,0,2*Math.PI),t.strokeStyle=i,t.lineWidth=2*(1-r),t.globalAlpha=(1-r)*.6,t.stroke(),t.globalAlpha=w}}if(eb.current&&ey.current===e.id){let r=k+Math.max(25,30/n);for(let i=0;i<3;i++){let l=(h+500*i)%2e3/2e3,o=k+2/n+l*(r-k),s=(1-l)*.6;t.beginPath(),t.arc(e.x,e.y,o,0,2*Math.PI),t.strokeStyle="#10b981",t.lineWidth=Math.max(1.5/n,.5),t.globalAlpha=s*w,t.stroke()}t.globalAlpha=w}if(f){let n=h-f;if(n<500){let r=n/500;t.beginPath(),t.arc(e.x,e.y,k+6+8*r,0,2*Math.PI),t.strokeStyle="#10b981",t.lineWidth=3*(1-r),t.globalAlpha=(1-r)*.4,t.stroke(),t.globalAlpha=w}}if(e.priority<=1&&n>.5&&(t.font=`${Math.min(10,Math.max(4,12/n))}px sans-serif`,t.textAlign="center",t.textBaseline="bottom",t.fillText(0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25",e.x,e.y-k-2)),n>.5){let r=Math.min(7,Math.max(3,10/n));t.font=`500 ${r}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="top",t.fillStyle="#3f3f46",t.globalAlpha=.85*w;let i=e.id;n>1.5?i=I(e.title||e.id,30):n>.9&&(i=I(e.title||e.id,18)),t.fillText(i,e.x,e.y+k+3);let l=e.collapsedCount;l&&l>0&&(t.font=`400 ${Math.min(5.5,Math.max(2.5,8/n))}px 'Inter', system-ui, sans-serif`,t.fillStyle="#a1a1aa",t.fillText(`${l} task${1!==l?"s":""}`,e.x,e.y+k+3+r+1))}let N=em.current.get(e.id);if(N&&N>0&&n>.4){let r=Math.min(6,Math.max(3.5,8/n)),i=e.x+.75*k,l=e.y-.75*k,o=N>99?"99+":String(N);t.save(),t.globalAlpha=Math.min(w,.95),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.fillStyle="#ef4444",t.fill(),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="middle",t.fillStyle="#ffffff",t.fillText(o,i,l+.3),t.restore()}let S=ex.current.get(e.id);if(S){let r=Math.max(4,10/n),i=e.x+.7*k,l=e.y+.7*k;if(t.save(),t.globalAlpha=1,S.avatar){let e=M(S.avatar,()=>ev.current());e?(t.save(),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.clip(),t.drawImage(e,i-r,l-r,2*r,2*r),t.restore()):A(t,i,l,r,S.handle,n)}else A(t,i,l,r,S.handle,n);t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.restore()}t.restore()},[]),eE=(0,o.useCallback)((e,t,n)=>{let r=e.source,i=e.target;if(void 0===r.x||void 0===i.x)return;let l=Date.now(),o=1,s=1,a=e._spawnTime;if(a){let e=l-a;if(e<500){let t=e/500;o=D(t),s=1+(1-t)*1.5}}let c=1,u=e._removeTime;if(u){let e=l-u;if(!(e<400))return;c=1-D(e/400)}let d=o*c;if(d<=.01)return;let h=r.id||e.source,p=i.id||e.target,f="parent-child"===e.type,m=ef.current,x=m.size>0,g=x&&m.has(h)&&m.has(p),y=(f?x?g?.5:.05:.2:x?g?.8:.08:.35)*d;if(y<=.01)return;t.save(),t.globalAlpha=y,f?(t.strokeStyle=g?"#71717a":"#a1a1aa",t.lineWidth=Math.max(.6,1.5/n)*s,t.setLineDash([4,3])):(t.strokeStyle=g?"#10b981":"#d4d4d8",t.lineWidth=(g?Math.max(2,2.5/n):Math.max(.8,1.2/n))*s);let b=i.x-r.x,v=i.y-r.y,k=Math.sqrt(b*b+v*v),w=(r.x+i.x)/2+.15*v,j=(r.y+i.y)/2-.15*b;if(t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(w,j,i.x,i.y),t.stroke(),f&&t.setLineDash([]),a){let e=l-a;e<300&&(t.save(),t.globalAlpha=(1-e/300)*.5,t.strokeStyle="#10b981",t.lineWidth=(f?3:4)/n,t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(w,j,i.x,i.y),t.stroke(),t.restore())}if(!f){let e=C(i);if(k<e+1){t.restore();return}let l=Math.min(8,6/n),o=1-e/k,s=r.x+o*b,a=r.y+o*v,c=Math.atan2(v,b);t.fillStyle=g?"#10b981":"#d4d4d8",t.beginPath(),t.moveTo(s,a),t.lineTo(s-l*Math.cos(c-Math.PI/7),a-l*Math.sin(c-Math.PI/7)),t.lineTo(s-l*Math.cos(c+Math.PI/7),a-l*Math.sin(c+Math.PI/7)),t.closePath(),t.fill()}t.restore()},[]),eP=(0,o.useCallback)((e,t)=>{if(!eu)return;let n=t>=.8?0:t<=.4?1:(.8-t)/.4;if(n<=.01)return;let r=eC.current;if(0===r.length)return;let i=new Map;for(let e of eS)null!=e.x&&null!=e.y&&i.set(e.id,{x:e.x,y:e.y});for(let l of(e.save(),r)){let r=0,o=0,s=0;for(let e of l.memberIds){let t=i.get(e);t&&(r+=t.x,o+=t.y,s++)}if(0===s)continue;let a=r/s,c=o/s,u=0;for(let e of l.memberIds){let t=i.get(e);if(t){let e=t.x-a,n=t.y-c,r=Math.sqrt(e*e+n*n);r>u&&(u=r)}}let d=u+30,h=m(l.prefix);e.beginPath(),e.arc(a,c,d,0,2*Math.PI),e.globalAlpha=.05*n,e.fillStyle=h,e.fill(),e.globalAlpha=.25*n,e.strokeStyle=h,e.lineWidth=1.5/t,e.setLineDash([8/t,4/t]),e.stroke(),e.setLineDash([]);let p=Math.min(24,Math.max(10,14/t)),f=Math.min(12,Math.max(5,8/t)),x=.35*p;e.font=`500 ${f}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.globalAlpha=.45*n,e.fillStyle="#71717a",e.fillText(l.parentId,a,c-.5*p-x),e.font=`600 ${p}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.85*n,e.fillStyle="#18181b";let g=l.title.length>40?l.title.slice(0,39)+"…":l.title;e.fillText(g,a,c+.15*p);let y=Math.min(14,Math.max(6,9/t));e.font=`400 ${y}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.5*n,e.fillStyle="#71717a",e.fillText(`${l.memberIds.length} issue${1!==l.memberIds.length?"s":""}`,a,c+.15*p+.7*p)}e.restore()},[eS,e,eu]),eI=(0,o.useCallback)((e,t,n)=>{let r=C(e)+5;n.fillStyle=t,n.beginPath(),n.arc(e.x,e.y,r,0,2*Math.PI),n.fill()},[]),eF=(0,o.useCallback)(()=>{},[]),eq=(0,o.useCallback)(()=>{let e=X.current,t=G.current;if(!e||!t)return;let n=e.getContext("2d");if(!n)return;let r=1/0,i=-1/0,l=1/0,o=-1/0,s=!1;for(let e of eS)null!=e.x&&null!=e.y&&(s=!0,e.x<r&&(r=e.x),e.x>i&&(i=e.x),e.y<l&&(l=e.y),e.y>o&&(o=e.y));if(!s)return;let a=(i+=40)-(r-=40)||1,c=(o+=40)-(l-=40)||1,u=er-16,d=ei-16,h=Math.min(u/a,d/c),p=8+(u-a*h)/2,f=8+(d-c*h)/2,m=window.devicePixelRatio||1;(e.width!==er*m||e.height!==ei*m)&&(e.width=er*m,e.height=ei*m,n.setTransform(m,0,0,m,0,0)),n.clearRect(0,0,er,ei),n.fillStyle="rgba(250, 250, 250, 0.92)",n.beginPath(),n.roundRect(0,0,er,ei,6),n.fill();let x=ef.current,g=x.size>0,y=ep.current?.id||eh.current?.id||null;for(let e of ez){let t=e.source,i=e.target;if(null==t.x||null==i.x)continue;let o=t.id||e.source,s=i.id||e.target,a=g&&x.has(o)&&x.has(s);n.globalAlpha=g?a?.5:.04:.1,n.strokeStyle=a?"#10b981":"#a1a1aa",n.lineWidth=a?1:.5;let c=p+(t.x-r)*h,u=f+(t.y-l)*h,d=p+(i.x-r)*h,m=f+(i.y-l)*h;n.beginPath(),n.moveTo(c,u),n.lineTo(d,m),n.stroke()}for(let e of(n.globalAlpha=1,eS)){if(null==e.x||null==e.y)continue;let t=p+(e.x-r)*h,i=f+(e.y-l)*h,o=e.id===y,s=x.has(e.id);g&&!s?n.globalAlpha=.1:"closed"===e.status?n.globalAlpha=.35:n.globalAlpha=.85,n.fillStyle=z(e);let a="epic"===e.issueType?3:2;o?a=5:g&&s&&(a=4),o&&(n.globalAlpha=.4,n.fillStyle="#10b981",n.beginPath(),n.arc(t,i,a+2,0,2*Math.PI),n.fill(),n.globalAlpha=1,n.fillStyle=z(e)),n.fillRect(t-a/2,i-a/2,a,a)}n.globalAlpha=1;let b=ex.current;if(b.size>0)for(let e of eS){if(null==e.x||null==e.y)continue;let t=b.get(e.id);if(!t)continue;let i=p+(e.x-r)*h,o=f+(e.y-l)*h;if(n.save(),n.globalAlpha=1,t.avatar){let e=M(t.avatar,()=>ev.current());e?(n.save(),n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.clip(),n.drawImage(e,i-5,o-5,10,10),n.restore()):(n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill())}else n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill();n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.strokeStyle="#ffffff",n.lineWidth=1,n.stroke(),n.restore()}try{let e=t.screen2GraphCoords(0,0),i=t.screen2GraphCoords(Z.width,Z.height),o=p+(e.x-r)*h,s=f+(e.y-l)*h,a=(i.x-e.x)*h,c=(i.y-e.y)*h,u=Math.max(0,o),d=Math.max(0,s),m=Math.min(er-u,a-(u-o)),x=Math.min(ei-d,c-(d-s));m>0&&x>0&&(n.fillStyle="rgba(16, 185, 129, 0.06)",n.fillRect(u,d,m,x),n.strokeStyle="rgba(16, 185, 129, 0.5)",n.lineWidth=1.5,n.strokeRect(u,d,m,x))}catch{}},[eS,ez,Z,er,ei,8]);K.current=eq;let eR=(0,o.useCallback)(()=>{cancelAnimationFrame(J.current),J.current=requestAnimationFrame(()=>{eq()})},[eq]);(0,o.useEffect)(()=>{if(!eo||0===e.length)return;let t=setInterval(()=>{eq()},200);return()=>clearInterval(t)},[eo,e.length,eq]),(0,o.useEffect)(()=>{let e;let t=!0;return function n(){if(!t)return;let r=Date.now();(eS.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400||!!e._changedAt&&r-e._changedAt<800)||ez.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400))&&E(G),e=requestAnimationFrame(n)}(),()=>{t=!1,cancelAnimationFrame(e)}},[eS,ez]);let eO=(0,o.useCallback)(e=>{let t=G.current;if(!t)return;let n=e.currentTarget.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,l=1/0,o=-1/0,s=1/0,a=-1/0;for(let e of eS)null!=e.x&&null!=e.y&&(e.x<l&&(l=e.x),e.x>o&&(o=e.x),e.y<s&&(s=e.y),e.y>a&&(a=e.y));let c=(o+=40)-(l-=40)||1,u=(a+=40)-(s-=40)||1,d=er-16,h=ei-16,p=Math.min(d/c,h/u),f=l+(r-(8+(d-c*p)/2))/p,m=s+(i-(8+(h-u*p)/2))/p;t.centerAt(f,m,300)},[eS,er,ei,8]);return(0,l.jsxs)("div",{ref:Y,className:"w-full h-full relative","data-tutorial":"graph",children:[(0,l.jsxs)("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-10 flex flex-col gap-1.5 sm:gap-2",children:[l.jsx("div",{className:"flex items-start gap-1.5 sm:gap-2",children:(0,l.jsxs)("div",{className:"flex bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm overflow-hidden","data-tutorial":"layouts",children:[l.jsx("button",{onClick:()=>ec("force"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"force"===ea?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"4",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"3",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13",cy:"11",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"4",y1:"4",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"3",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"3",y1:"12",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"13",y1:"11",x2:"8",y2:"8",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Force"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ec("dag"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"dag"===ea?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"2.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"4",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"2",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"6",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"8",y1:"4",x2:"4",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"8",y1:"4",x2:"12",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"2",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"6",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"9.5",x2:"12",y2:"12",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"DAG"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ec("radial"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"radial"===ea?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"2",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"5",fill:"none",strokeOpacity:"0.5"}),l.jsx("circle",{cx:"8",cy:"8",r:"7.5",fill:"none",strokeOpacity:"0.3"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Radial"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ec("cluster"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"cluster"===ea?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"3.5",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"6",cy:"6",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"7",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"11",cy:"10",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13.5",cy:"11.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"11",cy:"13",r:"1.5",fill:"currentColor",stroke:"none"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Cluster"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ec("spread"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"spread"===ea?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"2",cy:"2",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"14",cy:"3",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"14",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13",cy:"13",r:"1.5",fill:"currentColor",stroke:"none"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Spread"})]})})]})}),(0,l.jsxs)("div",{className:"flex items-start gap-1.5 sm:gap-2","data-tutorial":"view-controls",children:[(q||R)&&l.jsx("button",{onClick:F&&F.size>0?R:q,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50 transition-colors",children:F&&F.size>0?(0,l.jsxs)(l.Fragment,{children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),l.jsx("span",{className:"hidden sm:inline",children:"Expand all"})]}):(0,l.jsxs)(l.Fragment,{children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})}),l.jsx("span",{className:"hidden sm:inline",children:"Collapse all"})]})}),(0,l.jsxs)("button",{onClick:()=>ed(e=>!e),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium backdrop-blur-sm rounded-lg border shadow-sm transition-colors ${eu?"bg-emerald-500 text-white border-emerald-500":"bg-white/90 text-zinc-500 border-zinc-200 hover:text-zinc-700 hover:bg-zinc-50"}`,title:eu?"Hide cluster labels":"Show cluster labels",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6",strokeDasharray:"2.5 2",strokeOpacity:eu?1:.5}),l.jsx("line",{x1:"5",y1:"8",x2:"11",y2:"8",strokeOpacity:eu?1:.4}),l.jsx("line",{x1:"6",y1:"10",x2:"10",y2:"10",strokeOpacity:eu?.6:.25,strokeWidth:"1"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Clusters"})]}),(0,l.jsxs)("button",{onClick:()=>U?.(),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium backdrop-blur-sm rounded-lg border shadow-sm transition-colors ${_?"bg-emerald-500 text-white border-emerald-500":"bg-white/90 text-zinc-500 border-zinc-200 hover:text-zinc-700 hover:bg-zinc-50"}`,title:_?"Auto-fit enabled: camera adjusts after updates":"Auto-fit disabled: camera stays fixed",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:[l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 3.75H6A2.25 2.25 0 003.75 6v1.5M16.5 3.75H18A2.25 2.25 0 0120.25 6v1.5M20.25 16.5V18A2.25 2.25 0 0118 20.25h-1.5M3.75 16.5V18A2.25 2.25 0 006 20.25h1.5"}),l.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Auto-fit"})]}),(0,l.jsxs)("button",{onClick:()=>$?.(),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium backdrop-blur-sm rounded-lg border shadow-sm transition-colors ${V?"bg-emerald-500 text-white border-emerald-500":"bg-white/90 text-zinc-500 border-zinc-200 hover:text-zinc-700 hover:bg-zinc-50"}`,title:V?"Pulse enabled: ripple highlights most recent activity":"Pulse disabled: no activity highlight",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:[l.jsx("circle",{cx:"12",cy:"12",r:"3"}),l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.07 4.93A10 10 0 014.93 19.07M4.93 4.93a10 10 0 0114.14 14.14",strokeOpacity:"0.5"}),l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.24 7.76a6 6 0 01.01 8.49M7.76 7.76a6 6 0 000 8.49",strokeOpacity:"0.7"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Pulse"})]})]})]}),!w&&(0,l.jsxs)("div",{className:"absolute bottom-4 z-10 bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 text-xs text-zinc-400 transition-[right] duration-300 ease-out","data-tutorial":"legend",style:{right:P?"calc(360px + 1rem)":"1rem",maxWidth:320},children:[L&&(0,l.jsxs)("div",{className:"text-zinc-500 mb-1.5",children:[l.jsx("strong",{className:"text-zinc-700",children:L.total})," issues"," \xb7 ",l.jsx("strong",{className:"text-zinc-700",children:L.edges})," deps"," \xb7 ",l.jsx("strong",{className:"text-emerald-600",children:L.prefixes.length}),1===L.prefixes.length?" project":" projects"]}),l.jsx("div",{className:"hidden sm:flex bg-zinc-100 rounded-md overflow-hidden mb-1.5",children:["status","priority","owner","assignee","prefix"].map(e=>l.jsx("button",{onClick:()=>B?.(e),className:`flex-1 px-2 py-1 text-[10px] font-medium transition-colors ${O===e?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-200/60"}`,children:s[e]},e))}),l.jsx("div",{className:"hidden sm:flex flex-wrap gap-x-3 gap-y-1 mb-1.5",children:"status"===O?l.jsx(l.Fragment,{children:["open","in_progress","blocked","deferred","closed"].map(e=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:a[e]}}),l.jsx("span",{className:"text-zinc-500",children:c[e]})]},e))}):"priority"===O?l.jsx(l.Fragment,{children:[0,1,2,3,4].map(e=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:d[e]}}),l.jsx("span",{className:"text-zinc-500",children:u[e]})]},e))}):l.jsx(l.Fragment,{children:eD.map(({label:e,color:t})=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:t}}),l.jsx("span",{className:"text-zinc-500 truncate max-w-[80px]",children:e})]},e))})}),l.jsx("div",{className:"hidden sm:flex flex-col gap-0.5 text-zinc-400",children:(0,l.jsxs)("span",{children:["Size = importance \xb7 Ring = project","status"!==O&&` \xb7 Fill = ${s[O].toLowerCase()}`]})}),l.jsx("span",{className:"sm:hidden",children:"Tap a node for details"})]}),(0,l.jsxs)("div",{className:"hidden sm:block absolute bottom-4 left-4 z-10","data-tutorial":"minimap",style:{width:er,height:ei},children:[l.jsx("canvas",{ref:X,width:er,height:ei,onClick:eO,className:"rounded-lg border border-zinc-200 shadow-sm cursor-crosshair",style:{width:er,height:ei}}),l.jsx("div",{className:"absolute top-0 left-2 right-2 h-1.5 cursor-n-resize hover:bg-zinc-300/40 rounded-t-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),el.current={edge:"top",startX:e.clientX,startY:e.clientY,startW:er,startH:ei};let t=e=>{if(!el.current)return;let t=el.current.startY-e.clientY,n=Math.max(80,Math.min(400,el.current.startH+t));en(e=>({...e,h:n}))},n=()=>{el.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-2 right-0 bottom-2 w-1.5 cursor-e-resize hover:bg-zinc-300/40 rounded-r-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),el.current={edge:"right",startX:e.clientX,startY:e.clientY,startW:er,startH:ei};let t=e=>{if(!el.current)return;let t=e.clientX-el.current.startX,n=Math.max(100,Math.min(500,el.current.startW+t));en(e=>({...e,w:n}))},n=()=>{el.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 cursor-ne-resize hover:bg-zinc-300/40 rounded-tr-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),el.current={edge:"top-right",startX:e.clientX,startY:e.clientY,startW:er,startH:ei};let t=e=>{if(!el.current)return;let t=e.clientX-el.current.startX,n=el.current.startY-e.clientY;en({w:Math.max(100,Math.min(500,el.current.startW+t)),h:Math.max(80,Math.min(400,el.current.startH+n))})},n=()=>{el.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}})]}),eo?l.jsx(eo,{ref:G,graphData:eA,width:Z.width,height:Z.height,nodeCanvasObject:eT,nodeCanvasObjectMode:()=>"replace",nodePointerAreaPaint:eI,onRenderFramePost:eP,linkCanvasObject:eE,linkCanvasObjectMode:()=>"replace",linkDirectionalParticles:e=>"parent-child"===e.type?0:2,linkDirectionalParticleSpeed:.004,linkDirectionalParticleWidth:2.5,linkDirectionalParticleColor:()=>"#10b981",dagMode:"dag"===ea?"td":void 0,dagLevelDistance:60,onDagError:eF,d3AlphaDecay:.02,d3VelocityDecay:.3,cooldownTicks:300,warmupTicks:50,onNodeClick:e=>h(e),onNodeHover:e=>p(e||null,ej.current.x,ej.current.y),onNodeRightClick:(e,t)=>{t.preventDefault(),g?.(e,t)},onBackgroundClick:x,onZoom:eR,backgroundColor:"transparent",autoPauseRedraw:!(V&&H)}):l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("div",{className:"text-zinc-400 text-sm animate-pulse-soft",children:"Loading graph engine..."})})]})});function I(e,t){return e.length<=t?e:e.slice(0,t-1)+"…"}let F=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R={};function O(e,t){return((t||R).jsx?q:F).test(e)}let B=/[ \t\n\f\r]/g;function _(e){return""===e.replace(B,"")}class U{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function H(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new U(n,r,t)}function V(e){return e.toLowerCase()}U.prototype.normal={},U.prototype.property={},U.prototype.space=void 0;class ${constructor(e,t){this.attribute=t,this.property=e}}$.prototype.attribute="",$.prototype.booleanish=!1,$.prototype.boolean=!1,$.prototype.commaOrSpaceSeparated=!1,$.prototype.commaSeparated=!1,$.prototype.defined=!1,$.prototype.mustUseProperty=!1,$.prototype.number=!1,$.prototype.overloadedBoolean=!1,$.prototype.property="",$.prototype.spaceSeparated=!1,$.prototype.space=void 0;let W=0,G=ee(),Y=ee(),X=ee(),J=ee(),K=ee(),Z=ee(),Q=ee();function ee(){return 2**++W}let et=Object.keys(r);class en extends ${constructor(e,t,n,i){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++l<et.length;){let e=et[l];(function(e,t,n){n&&(e[t]=n)})(this,et[l],(n&r[e])===r[e])}}}function er(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new en(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[V(r)]=r,n[V(l.attribute)]=r}return new U(t,n,e.space)}en.prototype.defined=!0;let ei=er({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:K,ariaCurrent:null,ariaDescribedBy:K,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:K,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:K,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:K,ariaLevel:J,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:K,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:K,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Y,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function el(e,t){return t in e?e[t]:t}function eo(e,t){return el(e,t.toLowerCase())}let es=er({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Z,acceptCharset:K,accessKey:K,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:K,autoFocus:G,autoPlay:G,blocking:K,capture:null,charSet:null,checked:G,cite:null,className:K,cols:J,colSpan:null,content:null,contentEditable:Y,controls:G,controlsList:K,coords:J|Z,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:X,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:K,height:J,hidden:X,high:J,href:null,hrefLang:null,htmlFor:K,httpEquiv:K,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:K,itemRef:K,itemScope:G,itemType:K,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:G,optimum:J,pattern:null,ping:K,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:K,required:G,reversed:G,rows:J,rowSpan:J,sandbox:K,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:Y,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:K,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:G,disableRemotePlayback:G,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:eo}),ea=er({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Q,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:K,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Z,g2:Z,glyphName:Z,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Q,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:K,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Q,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Q,rev:Q,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Q,requiredFeatures:Q,requiredFonts:Q,requiredFormats:Q,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Q,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Q,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Q,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:el}),ec=er({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),eu=er({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eo}),ed=er({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),eh=H([ei,es,ec,eu,ed],"html"),ep=H([ei,ea,ec,eu,ed],"svg"),ef=/[A-Z]/g,em=/-[a-z]/g,ex=/^data[-\w.:]+$/i;function eg(e){return"-"+e.toLowerCase()}function ey(e){return e.charAt(1).toUpperCase()}let eb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ev=n(63767);let ek=ej("end"),ew=ej("start");function ej(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function eN(e){return e&&"object"==typeof e?"position"in e||"type"in e?eS(e.position):"start"in e||"end"in e?eS(e):"line"in e||"column"in e?eC(e):"":""}function eC(e){return ez(e&&e.line)+":"+ez(e&&e.column)}function eS(e){return eC(e&&e.start)+"-"+eC(e&&e.end)}function ez(e){return e&&"number"==typeof e?e:1}class eD extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=eN(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}eD.prototype.file="",eD.prototype.name="",eD.prototype.reason="",eD.prototype.message="",eD.prototype.stack="",eD.prototype.column=void 0,eD.prototype.line=void 0,eD.prototype.ancestors=void 0,eD.prototype.cause=void 0,eD.prototype.fatal=void 0,eD.prototype.place=void 0,eD.prototype.ruleId=void 0,eD.prototype.source=void 0;let eL={}.hasOwnProperty,eM=new Map,eA=/[A-Z]/g,eT=new Set(["table","tbody","thead","tfoot","tr"]),eE=new Set(["td","th"]),eP="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eI(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=ep,e.schema=i),e.ancestors.push(t);let l=eO(e,t.tagName,!1),o=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&eL.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=V(t),r=t,i=$;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ex.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(em,ey);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!em.test(e)){let n=e.replace(ef,eg);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=en}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return ev(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new eD("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=eP+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)eL.call(e,t)&&(n[function(e){let t=e.replace(eA,e_);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?eb[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&eE.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),s=eR(e,t);return eT.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&_(e.value):_(e))})),eF(e,o,l,t),eq(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eB(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=ep,e.schema=i),e.ancestors.push(t);let l=null===t.name?e.Fragment:eO(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eB(e,t.position)}else{let i;let l=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eB(e,t.position)}else i=null===r.value||r.value;n[l]=i}return n}(e,t),s=eR(e,t);return eF(e,o,l,t),eq(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eB(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return eq(r,eR(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eF(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eq(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function eR(e,t){let n=[],r=-1,i=e.passKeys?new Map:eM;for(;++r<t.children.length;){let l;let o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let s=eI(e,o,l);void 0!==s&&n.push(s)}return n}function eO(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=O(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=O(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return eL.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eB(e)}function eB(e,t){let n=new eD("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=eP+"#cannot-handle-mdx-estrees-without-createevaluater",n}function e_(e){return"-"+e.toLowerCase()}let eU={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},eH={};function eV(e,t){let n=t||eH;return e$(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function e$(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eW(e.children,t,n)}return Array.isArray(e)?eW(e,t,n):""}function eW(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=e$(e[i],t,n);return r.join("")}function eG(e,t,n,r){let i;let l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function eY(e,t){return e.length>0?(eG(e,e.length,0,t),e):t}class eX{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&eJ(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),eJ(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eJ(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);eJ(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);eJ(this.left,t.reverse())}}}}function eJ(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eK(e){let t,n,r,i,l,o,s;let a={},c=-1,u=new eX(e);for(;++c<u.length;){for(;(c in a);)c=a[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(a,function(e,t){let n,r;let i=e.get(t)[1],l=e.get(t)[2],o=t-1,s=[],a=i._tokenizer;!a&&(a=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let c=a.events,u=[],d={},h=-1,p=i,f=0,m=0,x=[0];for(;p;){for(;e.get(++o)[1]!==p;);s.push(o),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(n),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++h<c.length;)"exit"===c[h][0]&&"enter"===c[h-1][0]&&c[h][1].type===c[h-1][1].type&&c[h][1].start.line!==c[h][1].end.line&&(m=h+1,x.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),h=x.length;h--;){let t=c.slice(x[h],x[h+1]),n=s.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),h=-1;++h<u.length;)d[f+u[h][0]]=f+u[h][1],f+=u[h][1]-u[h][0]-1;return d}(u,c)),c=a[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(l=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,l))}}return eG(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}let eZ={}.hasOwnProperty;function eQ(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(eZ.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){eZ.call(i,r)||(i[r]=[]);let e=l[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eG(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}let e0=tn(/[A-Za-z]/),e1=tn(/[\dA-Za-z]/),e5=tn(/[#-'*+\--9=?A-Z^-~]/);function e2(e){return null!==e&&(e<32||127===e)}let e4=tn(/\d/),e3=tn(/[\dA-Fa-f]/),e6=tn(/[!-/:-@[-`{-~]/);function e8(e){return null!==e&&e<-2}function e7(e){return null!==e&&(e<0||32===e)}function e9(e){return -2===e||-1===e||32===e}let te=tn(/\p{P}|\p{S}/u),tt=tn(/\s/);function tn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function tr(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,l=0;return function(r){return e9(r)?(e.enter(n),function r(o){return e9(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let ti={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tr(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return e8(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},tl={tokenize:function(e){let t,n,r;let i=this,l=[],o=0;return s;function s(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,a,c)(t)}return c(t)}function a(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&g();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}x(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return eG(i.events,l+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(o===l.length){if(!t)return h(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(to,u,d)(n)}function u(e){return t&&g(),x(o),h(e)}function d(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,f(e)}function h(t){return i.containerState={},e.attempt(to,p,f)(t)}function p(e){return o++,l.push([i.currentConstruct,i.containerState]),h(e)}function f(r){if(null===r){t&&g(),x(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),x(0),e.consume(n);return}return e8(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,l){let s=i.sliceStream(e);if(l&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let s=i.events.length,a=s;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){if(e){n=i.events[a][1].end;break}e=!0}for(x(o),l=s;l<i.events.length;)i.events[l][1].end={...n},l++;eG(i.events,a+1,0,i.events.slice(s)),i.events.length=l}}function x(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function g(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},to={tokenize:function(e,t,n){return tr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ts={partial:!0,tokenize:function(e,t,n){return function(t){return e9(t)?tr(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||e8(e)?t(e):n(e)}}},ta={resolve:function(e){return eK(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):e8(t)?e.check(tc,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tc={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tr(e,i,"linePrefix")};function i(i){if(null===i||e8(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},tu={tokenize:function(e){let t=this,n=e.attempt(ts,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,tr(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ta,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},td={resolveAll:tm()},th=tf("string"),tp=tf("text");function tf(e){return{resolveAll:tm("text"===e?tx:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return a(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return a(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function a(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function tm(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function tx(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],l=t.sliceStream(i),o=l.length,s=-1,a=0;for(;o--;){let e=l[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)a++,s--;if(s)break;s=-1}else if(-2===e)r=!0,a++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){let l={type:n===e.length||r||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}let tg={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){return e.enter("thematicBreak"),r=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),e9(n)?tr(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||e8(o))?(e.exit("thematicBreak"),t(o)):n(o)}(l)}}},ty={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ts,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,tr(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!e9(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tv,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,tr(e,e.attempt(ty,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:e4(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tg,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return e4(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ts,r.interrupt?n:a,e.attempt(tb,u,c))}function a(e){return r.containerState.initialBlankLine=!0,l++,u(e)}function c(t){return e9(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tb={partial:!0,tokenize:function(e,t,n){let r=this;return tr(e,function(e){let i=r.events[r.events.length-1];return!e9(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tv={partial:!0,tokenize:function(e,t,n){let r=this;return tr(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tk={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return e9(t)?tr(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tk,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return e9(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function tw(e,t,n,r,i,l,o,s,a){let c=a||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||e2(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||e8(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!u&&(null===i||41===i||e7(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||e2(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function tj(e,t,n,r,i,l){let o;let s=this,a=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),c};function c(d){return a>999||null===d||91===d||93===d&&!o||94===d&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):e8(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||e8(t)||a++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!e9(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function tN(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),a(n))}function a(t){return t===o?(e.exit(l),s(o)):null===t?n(t):e8(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tr(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||e8(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function tC(e,t){let n;return function r(i){return e8(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):e9(i)?tr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tS(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tz={partial:!0,tokenize:function(e,t,n){return function(t){return e7(t)?tC(e,r)(t):n(t)};function r(t){return tN(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return e9(t)?tr(e,l,"whitespace")(t):l(t)}function l(e){return null===e||e8(e)?t(e):n(e)}}},tD={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),tr(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):e8(n)?e.attempt(tL,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||e8(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},tL={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):e8(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):tr(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):e8(e)?i(e):n(e)}}},tM={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),e9(n)?tr(e,l,"lineSuffix")(n):l(n))}(t)):n(t)};function l(r){return null===r||e8(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},tA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tT=["pre","script","style","textarea"],tE={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ts,t,n)}}},tP={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e8(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tI={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tF={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),e9(t)?tr(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=s?(e.exit("codeFencedFenceSequence"),e9(i)?tr(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||e8(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){return function(t){let l=i.events[i.events.length-1];return o=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),e9(i)?tr(e,a,"whitespace")(i):a(i))}(t)}(t)};function a(l){return null===l||e8(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tI,u,f)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e8(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(i)):e9(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),tr(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function c(t){return null===t||e8(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e8(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(l,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return o>0&&e9(t)?tr(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||e8(t)?e.check(tI,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||e8(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},tq={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"⁡",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"⁣",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},tR={}.hasOwnProperty;function tO(e){return!!tR.call(tq,e)&&tq[e]}let tB={name:"characterReference",tokenize:function(e,t,n){let r,i;let l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),r=31,i=e1,c(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=e3,c):(e.enter("characterReferenceValue"),r=7,i=e4,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==e1||tO(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),c):n(s)}}},t_={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return e6(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tU={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),tr(e,t,"linePrefix")}}};function tH(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let tV={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eG(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let a={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return l=eY(l=[["enter",a,t],["enter",c,t]],e.slice(r+1,r+s+3)),l=eY(l,[["enter",u,t]]),l=eY(l,tH(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),l=eY(l,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),l=eY(l,e.slice(i+1)),l=eY(l,[["exit",a,t]]),eG(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i;let l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=l.parser.defined.includes(tS(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(t$,c,i?c:u)(t):91===t?e.attempt(tW,c,i?a:u)(t):i?c(t):u(t)}function a(t){return e.attempt(tG,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},t$={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return e7(t)?tC(e,i)(t):i(t)}function i(t){return 41===t?c(t):tw(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return e7(t)?tC(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?tN(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function a(t){return e7(t)?tC(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tW={tokenize:function(e,t,n){let r=this;return function(t){return tj.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},tG={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tY={name:"labelStartImage",resolveAll:tV.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tX(e){return null===e||e7(e)||tt(e)?1:te(e)?2:void 0}let tJ={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,s,a,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[u][1].start};tK(d,-s),tK(h,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:h},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[u][1].start={...o.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=eY(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=eY(a,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),a=eY(a,tH(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),a=eY(a,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,a=eY(a,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,eG(e,n-1,u-n+3,a),u=n+a.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=tX(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let a=e.exit("attentionSequence"),c=tX(s),u=!c||2===c&&l||r.includes(s),d=!l||2===l&&c||r.includes(i);return a._open=!!(42===n?u:u&&(l||!d)),a._close=!!(42===n?d:d&&(c||!u)),t(s)}(o)}}};function tK(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tZ={name:"labelStartLink",resolveAll:tV.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tQ={42:ty,43:ty,45:ty,48:ty,49:ty,50:ty,51:ty,52:ty,53:ty,54:ty,55:ty,56:ty,57:ty,62:tk},t0={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),tj.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function l(t){return(r=tS(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return e7(t)?tC(e,s)(t):s(t)}function s(t){return tw(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(tz,c,c)(t)}function c(t){return e9(t)?tr(e,u,"whitespace")(t):u(t)}function u(l){return null===l||e8(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},t1={[-2]:tD,[-1]:tD,32:tD},t5={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eG(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||e7(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||e8(r)?(e.exit("atxHeading"),t(r)):e9(r)?tr(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||e7(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(i)}}},42:tg,45:[tM,tg],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,s;let a=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,a.interrupt?t:T):e0(o)?(e.consume(o),l=String.fromCharCode(o),f):n(o)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,h):e0(i)?(e.consume(i),r=4,a.interrupt?t:T):n(i)}function d(r){return 45===r?(e.consume(r),a.interrupt?t:T):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?a.interrupt?t:N:h:n(r)}function p(t){return e0(t)?(e.consume(t),l=String.fromCharCode(t),f):n(t)}function f(o){if(null===o||47===o||62===o||e7(o)){let s=47===o,c=l.toLowerCase();return!s&&!i&&tT.includes(c)?(r=1,a.interrupt?t(o):N(o)):tA.includes(l.toLowerCase())?(r=6,s)?(e.consume(o),m):a.interrupt?t(o):N(o):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(o):i?function t(n){return e9(n)?(e.consume(n),t):w(n)}(o):x(o))}return 45===o||e1(o)?(e.consume(o),l+=String.fromCharCode(o),f):n(o)}function m(r){return 62===r?(e.consume(r),a.interrupt?t:N):n(r)}function x(t){return 47===t?(e.consume(t),w):58===t||95===t||e0(t)?(e.consume(t),g):e9(t)?(e.consume(t),x):w(t)}function g(t){return 45===t||46===t||58===t||95===t||e1(t)?(e.consume(t),g):y(t)}function y(t){return 61===t?(e.consume(t),b):e9(t)?(e.consume(t),y):x(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,v):e9(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||e7(n)?y(n):(e.consume(n),t)}(t)}function v(t){return t===s?(e.consume(t),s=null,k):null===t||e8(t)?n(t):(e.consume(t),v)}function k(e){return 47===e||62===e||e9(e)?x(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||e8(t)?N(t):e9(t)?(e.consume(t),j):n(t)}function N(t){return 45===t&&2===r?(e.consume(t),D):60===t&&1===r?(e.consume(t),L):62===t&&4===r?(e.consume(t),E):63===t&&3===r?(e.consume(t),T):93===t&&5===r?(e.consume(t),A):e8(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tE,P,C)(t)):null===t||e8(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),N)}function C(t){return e.check(tP,S,P)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||e8(t)?C(t):(e.enter("htmlFlowData"),N(t))}function D(t){return 45===t?(e.consume(t),T):N(t)}function L(t){return 47===t?(e.consume(t),l="",M):N(t)}function M(t){if(62===t){let n=l.toLowerCase();return tT.includes(n)?(e.consume(t),E):N(t)}return e0(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),M):N(t)}function A(t){return 93===t?(e.consume(t),T):N(t)}function T(t){return 62===t?(e.consume(t),E):45===t&&2===r?(e.consume(t),T):N(t)}function E(t){return null===t||e8(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),E)}function P(n){return e.exit("htmlFlow"),t(n)}}},61:tM,95:tg,96:tF,126:tF},t2={38:tB,92:t_},t4={[-5]:tU,[-4]:tU,[-3]:tU,33:tY,38:tB,42:tJ,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return e0(t)?(e.consume(t),l):64===t?n(t):s(t)}function l(t){return 43===t||45===t||46===t||e1(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||e1(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||e2(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),a):e5(t)?(e.consume(t),s):n(t)}function a(i){return e1(i)?function i(l){return 46===l?(e.consume(l),r=0,a):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||e1(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),v):63===t?(e.consume(t),y):e0(t)?(e.consume(t),w):n(t)}function a(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):e0(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):e8(t)?(l=u,M(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?L(e):45===e?d(e):u(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):e8(t)?(l=f,M(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),x):f(t)}function x(t){return 62===t?L(t):93===t?(e.consume(t),x):f(t)}function g(t){return null===t||62===t?L(t):e8(t)?(l=g,M(t)):(e.consume(t),g)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):e8(t)?(l=y,M(t)):(e.consume(t),y)}function b(e){return 62===e?L(e):y(e)}function v(t){return e0(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||e1(t)?(e.consume(t),k):function t(n){return e8(n)?(l=t,M(n)):e9(n)?(e.consume(n),t):L(n)}(t)}function w(t){return 45===t||e1(t)?(e.consume(t),w):47===t||62===t||e7(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),L):58===t||95===t||e0(t)?(e.consume(t),N):e8(t)?(l=j,M(t)):e9(t)?(e.consume(t),j):L(t)}function N(t){return 45===t||46===t||58===t||95===t||e1(t)?(e.consume(t),N):function t(n){return 61===n?(e.consume(n),C):e8(n)?(l=t,M(n)):e9(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):e8(t)?(l=C,M(t)):e9(t)?(e.consume(t),C):(e.consume(t),z)}function S(t){return t===r?(e.consume(t),r=void 0,D):null===t?n(t):e8(t)?(l=S,M(t)):(e.consume(t),S)}function z(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||e7(t)?j(t):(e.consume(t),z)}function D(e){return 47===e||62===e||e7(e)?j(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return e9(t)?tr(e,T,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):T(t)}function T(t){return e.enter("htmlTextData"),l(t)}}}],91:tZ,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return e8(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},t_],93:tV,95:tJ,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(a){return null===a?n(a):32===a?(e.enter("space"),e.consume(a),e.exit("space"),o):96===a?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(a)):e8(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(a))}function s(t){return null===t||32===t||96===t||e8(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},t3={null:[tJ,td]},t6={null:[42,95]},t8={null:[]},t7=/[\0\t\n\r]/g;function t9(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ne=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nt(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return t9(n.slice(t?2:1),t?16:10)}return tO(n)||e}let nn={}.hasOwnProperty;function nr(e){return{line:e.line,column:e.column,offset:e.offset}}function ni(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+eN({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eN({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+eN({start:t.start,end:t.end})+") is still open")}function nl(e){let t=this;t.parser=function(n){var r,l;let o,s,a,c;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(g),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(x,i),htmlFlowData:c,htmlText:r(x,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(g),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=t9(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tO(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=nr(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tS(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ne,nt),n.identifier=tS(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=nr(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tS(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(nn.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:l,exit:s,buffer:i,resume:a,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,l,o,s=t-1,a=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||a||l||(l=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,l=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];nn.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||ni).call(o,void 0,e[0])}for(r.position={start:nr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:nr(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ni).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+eN({start:e.start,end:e.end})+"): it’s not open");n.position.end=nr(e.end)}function a(){return eV(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:nr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nr(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function x(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!eK(e););return e}((function(e){let t={constructs:eQ([i,...(e||{}).extensions||[]]),content:n(ti),defined:[],document:n(tl),flow:n(tu),lazy:{},string:n(th),text:n(tp)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],s=[],a={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){e8(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:f(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,x()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l;let o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=eY(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(m(t,0),c.events=tH(l,c.events,c),c.events)}},u=t.tokenize.call(c,a);return t.resolveAll&&l.push(t),c;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function f(e,t){return function(n,i,l){let o,u,d,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function f(e){return(o=e,u=0,0===e.length)?l:m(e[u])}function m(e){return function(n){return(p=function(){let e=h(),t=c.previous,n=c.currentConstruct,i=c.events.length,l=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=l,x()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,a,g,y)(n)}}function g(t){return e(d,p),i}function y(e){return(p.restore(),++u<o.length)?m(o[u]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&eG(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(l).document().write((s=1,a="",c=!0,function(e,t,n){let r,i,l,u,d;let h=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),l=0,a="",c&&(65279===e.charCodeAt(0)&&l++,c=void 0);l<e.length;){if(t7.lastIndex=l,u=(r=t7.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){a=e.slice(l);break}if(10===d&&l===u&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),l<u&&(h.push(e.slice(l,u)),s+=u-l),d){case 0:h.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),h.push(-2);s++<i;)h.push(-1);break;case 10:h.push(-4),s=1;break;default:o=!0,s=1}l=u+1}return n&&(o&&h.push(-5),a&&h.push(a),h.push(null)),h})(n,r,!0))))}}let no="object"==typeof self?self:globalThis,ns=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[l,o]=t[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new no[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new no[l](o),i)};return r},na=e=>ns(new Map,e)(0),{toString:nc}={},{keys:nu}=Object,nd=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=nc.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},nh=([e,t])=>0===e&&("function"===t||"symbol"===t),np=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},l=r=>{if(n.has(r))return n.get(r);let[o,s]=nd(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(l(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return l(r.toJSON());let n=[],a=i([o,n],r);for(let t of nu(r))(e||!nh(nd(r[t])))&&n.push([l(t),l(r[t])]);return a}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(nh(nd(n))||nh(nd(i))))&&t.push([l(n),l(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!nh(nd(n)))&&t.push(l(n));return n}}let{message:a}=r;return i([o,{name:s,message:a}],r)};return l},nf=(e,{json:t,lossy:n}={})=>{let r=[];return np(!(t||n),!!t,new Map,r)(e),r},nm="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?na(nf(e,t)):structuredClone(e):(e,t)=>na(nf(e,t));function nx(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&e1(e.charCodeAt(n+1))&&e1(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ng(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ny(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let nb=function(e){if(null==e)return nk;if("function"==typeof e)return nv(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nb(e[n]);return nv(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):nv(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return nv(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function nv(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function nk(){return!0}let nw=[];function nj(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=nb(i),o=r?-1:1;(function e(i,s,a){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node (\x1b[33m"+i.type+(e?"<"+e+">":"")+"\x1b[39m)"})}return u;function u(){var c;let u,d,h,p=nw;if((!t||l(i,s,a[a.length-1]||void 0))&&!1===(p=Array.isArray(c=n(i,a))?c:"number"==typeof c?[!0,c]:null==c?nw:[c])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+o,h=a.concat(i);d>-1&&d<i.children.length;){if(!1===(u=e(i.children[d],d,h)())[0])return u;d="number"==typeof u[1]?u[1]:d+o}return p}})(e,void 0,[])()}function nN(e,t,n,r){let i,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,i=n):(l=t,o=n,i=r),nj(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function nC(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function nS(e){let t=e.spread;return null==t?e.children.length>1:t}function nz(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let nD={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=nx(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let a={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let c={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nC(e,t);let i={src:nx(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:nx(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nC(e,t);let i={href:nx(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:nx(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=nS(n[r])}return t}(n):nS(t),l={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let a=r[r.length-1];a&&(i||"element"!==a.type||"p"!==a.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=ew(t.children[1]),o=ek(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,s=-1,a=[];for(;++s<o;){let n=t.children[s],r={},o=l?l[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),a.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(nz(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(nz(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nL,yaml:nL,definition:nL,footnoteDefinition:nL};function nL(){}let nM={}.hasOwnProperty,nA={};function nT(e,t){e.position&&(t.position=function(e){let t=ew(e),n=ek(e);if(t&&n)return{start:t,end:n}}(e))}function nE(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,nm(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nP(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nI(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nF(e,t){let n=function(e,t){let n=t||nA,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nI(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nI(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nE,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nD,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(nM.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=nm(n);return r.children=l.all(e),r}return nm(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nM.call(n,"hProperties")||nM.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:nT,wrap:nP};return nN(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ng,r=e.options.footnoteBackLabel||ny,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],a=-1;for(;++a<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[a]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),c=nx(o.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(o);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(l,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...nm(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:"\n"},i),l}function nq(e,t){return e&&"run"in e?async function(n,r){let i=nF(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nF(n,{file:r,...e||t})}}function nR(e){if(e)throw e}var nO=n(75609);function nB(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let n_=require("node:path"),nU=require("node:process");function nH(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}var nV=n(41041);let n$=["history","path","basename","stem","extname","dirname"];class nW{constructor(e){let t,n;t=e?nH(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<n$.length;){let e=n$[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)n$.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?n_.basename(this.path):void 0}set basename(e){nY(e,"basename"),nG(e,"basename"),this.path=n_.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?n_.dirname(this.path):void 0}set dirname(e){nX(this.basename,"dirname"),this.path=n_.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?n_.extname(this.path):void 0}set extname(e){if(nG(e,"extname"),nX(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=n_.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nH(e)&&(e=(0,nV.fileURLToPath)(e)),nY(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?n_.basename(this.path,this.extname):void 0}set stem(e){nY(e,"stem"),nG(e,"stem"),this.path=n_.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new eD(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nG(e,t){if(e&&e.includes(n_.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+n_.sep+"`")}function nY(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nX(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nJ=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nK={}.hasOwnProperty;class nZ extends nJ{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(l,...o){let s=e[++n],a=-1;if(l){r(l);return}for(;++a<t.length;)(null===o[a]||void 0===o[a])&&(o[a]=t[a]);t=o,s?(function(e,t){let n;return function(...t){let l;let o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nZ,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nO(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(n5("data",this.frozen),this.namespace[e]=t,this):nK.call(this.namespace,e)&&this.namespace[e]||void 0:e?(n5("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=n3(e),n=this.parser||this.Parser;return n0("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),n0("process",this.parser||this.Parser),n1("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=n3(e),o=n.parse(l);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,l,function(e,t,r){if(e||!t||!r)return s(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),n0("processSync",this.parser||this.Parser),n1("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nR(e),t=r}),n4("processSync","process",n),t}run(e,t,n){n2(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){let o=n3(t);r.run(e,o,function(t,r,o){let s=r||e;t?l(t):i?i(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nR(e),n=t,r=!0}),n4("runSync","run",r),n}stringify(e,t){this.freeze();let n=n3(t),r=this.compiler||this.Compiler;return n1("stringify",r),n2(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(n5("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=nO(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];nB(o)&&nB(r)&&(r=nO(!0,o,r)),n[i]=[e,r,...l]}}}}let nQ=new nZ().freeze();function n0(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function n1(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function n5(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function n2(e){if(!nB(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function n4(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function n3(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new nW(e)}let n6=[],n8={allowDangerousHtml:!0},n7=/^(https?|ircs?|mailto|xmpp)$/i,n9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function re(e){let t=function(e){let t=e.rehypePlugins||n6,n=e.remarkPlugins||n6,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n8}:n8;return nQ().use(nl).use(n).use(nq,r).use(t)}(e),n=function(e){let t=e.children||"",n=new nW;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,c=t.urlTransform||rt;for(let e of n9)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return nN(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return s?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eU)if(Object.hasOwn(eU,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eU[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,l=function(e,t,r,i){let l=Array.isArray(r.children),s=ew(e);return n(t,r,i,l,{columnNumber:s?s.column-1:void 0,fileName:o,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,l=function(e,t,n,l){let o=Array.isArray(n.children)?i:r;return l?o(t,n,l):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ep:eh,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=eI(s,e,void 0);return a&&"string"!=typeof a?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}(e,{Fragment:l.Fragment,components:i,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function rt(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||n7.test(e.slice(0,t))?e:""}function rn(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let rr="phrasing",ri=["autolink","link","image","label"];function rl(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ro(e){this.config.enter.autolinkProtocol.call(this,e)}function rs(e){this.config.exit.autolinkProtocol.call(this,e)}function ra(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function rc(e){this.config.exit.autolinkEmail.call(this,e)}function ru(e){this.exit(e)}function rd(e){!function(e,t,n){let r=nb((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)nj(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],o=i[l][1],s=0,a=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=o(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(l)?u.push(...l):l&&u.push(l),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(a,1,...u)):u=[e],a+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rh],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,rp]],{ignore:["link","linkReference"]})}function rh(e,t,n,r,i){let l="";if(!rf(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=rn(e,"("),l=rn(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function rp(e,t,n,r){return!(!rf(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function rf(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||tt(n)||te(n))&&(!t||47!==n)}function rm(){this.buffer()}function rx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rg(){this.buffer()}function ry(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rb(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rv(e){this.exit(e)}function rk(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rw(e){this.exit(e)}function rj(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),s(),o(),l+=i.move("]")}function rN(e,t,n){return 0===t?e:rC(e,t,n)}function rC(e,t,n){return(n?"":" ")+e}rj.peek=function(){return"["};let rS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rz(e){this.enter({type:"delete",children:[]},e)}function rD(e){this.exit(e)}function rL(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"})+i.move("~~"),l(),o}function rM(e){return e.length}function rA(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}rL.peek=function(){return"~"};function rT(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e;let t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rT.peek=function(){return"`"},nb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let rE={inlineCode:rT,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(l+" ".repeat(o-l.length)),s.shift(o);let a=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return a(),c}};function rP(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rI(e){this.exit(e),this.data.inTable=void 0}function rF(e){this.enter({type:"tableRow",children:[]},e)}function rq(e){this.exit(e)}function rR(e){this.enter({type:"tableCell",children:[]},e)}function rO(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rB));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rB(e,t){return"|"===t?t:e}function r_(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function rU(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function rH(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);l&&s.move(o);let a=rE.listItem(e,t,n,{...r,...s.current()});return l&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),a}let rV={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},r$={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(rG,a,s)(t):null===t||e7(t)||tt(t)||45!==t&&te(t)?a(t):(l=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function a(e){return i||r||!l?n(e):t(e)}},partial:!0},rW={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(rG,t,l)(o):null===o||e7(o)||tt(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rG={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||e7(o)||tt(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||e7(e)||tt(e)?t(e):r(e)}function l(t){return e0(t)?function t(i){return 59===i?(e.consume(i),r):e0(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rY={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return e1(e)?n(e):t(e)}},partial:!0},rX={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!r0.call(r,r.previous)||r4(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rV,e.attempt(r$,e.attempt(rW,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:r0},rJ={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&r1.call(r,r.previous)&&!r4(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(e0(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),l)?a:(l=!0,s):n(t)}function a(t){return null===t||e2(t)||e7(t)||tt(t)||te(t)?n(t):e.attempt(r$,e.attempt(rW,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:r1},rK={name:"emailAutolink",tokenize:function(e,t,n){let r,i;let l=this;return function(t){return!r2(t)||!r5.call(l,l.previous)||r4(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return r2(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(rY,a,s)(t):45===t||95===t||e1(t)?(i=!0,e.consume(t),o):a(t)}function s(t){return e.consume(t),r=!0,o}function a(o){return i&&r&&e0(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:r5},rZ={},rQ=48;for(;rQ<123;)rZ[rQ]=rK,58==++rQ?rQ=65:91===rQ&&(rQ=97);function r0(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||e7(e)}function r1(e){return!e0(e)}function r5(e){return!(47===e||r2(e))}function r2(e){return 43===e||45===e||46===e||95===e||e1(e)}function r4(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rZ[43]=rK,rZ[45]=rK,rZ[46]=rK,rZ[95]=rK,rZ[72]=[rK,rJ],rZ[104]=[rK,rJ],rZ[87]=[rK,rX],rZ[119]=[rK,rX];let r3={tokenize:function(e,t,n){let r=this;return tr(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function r6(e,t,n){let r;let i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let s=tS(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function r8(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function r7(e,t,n){let r;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(s){if(o>999||93===s&&!r||null===s||91===s||e7(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(tS(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return e7(s)||(r=!0),o++,e.consume(s),92===s?c:a}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,a):a(t)}}function r9(e,t,n){let r,i;let l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),a};function a(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||e7(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tS(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return e7(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),tr(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function ie(e,t,n){return e.check(ts,t,e.attempt(r3,t,n))}function it(e){e.exit("gfmFootnoteDefinition")}class ir{constructor(){this.map=[]}add(e,t,n){(function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}})(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function ii(e,t,n){let r;let i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:s;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,o+=1),a(t)}function a(t){return null===t?n(t):e8(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):e9(t)?tr(e,a,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,a):(e.enter("data"),c(t))}function c(t){return null===t||124===t||e7(t)?(e.exit("data"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,e9(t))?tr(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return e9(t)?tr(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||e8(t)?g(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(n))}(t)):n(t)}function x(t){return e9(t)?tr(e,g,"whitespace")(t):g(t)}function g(i){return 124===i?h(i):null===i||e8(i)?r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function y(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||e8(n)?(e.exit("tableRow"),t(n)):e9(n)?tr(e,b,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||e7(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:v)}function k(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function il(e,t){let n,r,i,l=-1,o=!0,s=0,a=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,h=new ir;for(;++l<e.length;){let p=e[l],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==d&&(is(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(o=!0,i=void 0,a=[0,0,0,0],c=[0,l+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(o=!1,0===c[2]&&(0!==a[1]&&(c[0]=c[1],i=io(h,t,a,s,void 0,i),a=[0,0,0,0]),c[2]=l)):"tableCellDivider"===f.type&&(o?o=!1:(0!==a[1]&&(c[0]=c[1],i=io(h,t,a,s,void 0,i)),c=[(a=c)[1],l,0,0])):"tableHead"===f.type?(u=!0,d=l):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=l,0!==a[1]?(c[0]=c[1],i=io(h,t,a,s,l,i)):0!==c[1]&&(i=io(h,t,c,s,l,i)),s=0):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=l)}for(0!==d&&is(h,t,d,n,r),h.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function io(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},ia(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=ia(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=ia(t.events,n[2]),l=ia(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},ia(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function is(e,t,n,r,i){let l=[],o=ia(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function ia(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ic={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return e7(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return e8(r)?t(r):e9(r)?e.check({tokenize:iu},t,n)(r):n(r)}}};function iu(e,t,n){return tr(e,function(e){return null===e?n(e):t(e)},"whitespace")}let id={};function ih(e){let t;let n=e||id,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(eQ([{text:rZ},{document:{91:{name:"gfmFootnoteDefinition",tokenize:r9,continuation:{tokenize:ie},exit:it}},text:{91:{name:"gfmFootnoteCall",tokenize:r7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:r6,resolveTo:r8}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function l(s){let a=tX(i);if(126===s)return o>1?r(s):(e.consume(s),o++,l);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=tX(s);return c._open=!u||2===u&&!!a,c._close=!a||2===a&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],s=t.parser.constructs.insideSpan.null;s&&eG(o,o.length,0,tH(s,e.slice(r+1,n),t)),eG(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eG(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:ii,resolveAll:il}}},{text:{91:ic}}])),l.push([{transforms:[rd],enter:{literalAutolink:rl,literalAutolinkEmail:ro,literalAutolinkHttp:ro,literalAutolinkWww:ro},exit:{literalAutolink:ru,literalAutolinkEmail:rc,literalAutolinkHttp:rs,literalAutolinkWww:ra}},{enter:{gfmFootnoteCallString:rm,gfmFootnoteCall:rx,gfmFootnoteDefinitionLabelString:rg,gfmFootnoteDefinition:ry},exit:{gfmFootnoteCallString:rb,gfmFootnoteCall:rv,gfmFootnoteDefinitionLabelString:rk,gfmFootnoteDefinition:rw}},{canContainEols:["delete"],enter:{strikethrough:rz},exit:{strikethrough:rD}},{enter:{table:rP,tableData:rR,tableHeader:rR,tableRow:rF},exit:{codeText:rO,table:rI,tableData:rq,tableHeader:rq,tableRow:rq}},{exit:{taskListCheckValueChecked:r_,taskListCheckValueUnchecked:r_,paragraph:rU}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rr,notInConstruct:ri},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rr,notInConstruct:ri},{character:":",before:"[ps]",after:"\\/",inConstruct:rr,notInConstruct:ri}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let l=r.createTracker(i),o=l.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return o+=l.move(r.safe(r.associationId(e),{before:o,after:"]"})),a(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,l.current()),t?rC:rN))),s(),o},footnoteReference:rj},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rS}],handlers:{delete:rL}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rE.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=a(r[i],t,n);return o(),l}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([a(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:l,after:l});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rM,l=[],o=[],s=[],a=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){var d;let o=null==(d=e[u][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===a[l]||e>a[l])&&(a[l]=e)}t.push(o)}o[u]=t,s[u]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<c;)l[h]=rA(r[h]);else{let e=rA(r);for(;++h<c;)l[h]=e}h=-1;let p=[],f=[];for(;++h<c;){let e=l[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,a[h]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>a[h]&&(a[h]=i),f[h]=i),p[h]=o}o.splice(1,0,p),s.splice(1,0,f),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];h=-1;let r=[];for(;++h<c;){let i=e[h]||"",o="",s="";if(!1!==n.alignDelimiters){let e=a[h]-(t[h]||0),n=l[h];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function a(e,t,n){let r=e.children,i=-1,l=[],s=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return s(),l}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rH}}]})}var ip=n(76348);function im(e){let t=new Date(e),n=Math.floor((new Date().getTime()-t.getTime())/1e3);if(n<60)return"just now";let r=Math.floor(n/60);if(r<60)return`${r}m ago`;let i=Math.floor(r/60);if(i<24)return`${i}h ago`;let l=Math.floor(i/24);return l<7?`${l}d ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function ix(e,t){let n=[];return n.push(`[${f(e.prefix)}] ${e.id}`),t&&n.push(t),n.push(""),n.push(e.description||""),n.join("\n")}function ig({node:e,onClose:t,repoUrl:n}){let[r,i]=(0,o.useState)(!1);return e.description?(0,ip.createPortal)(l.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:t,children:(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-[90vw] max-w-2xl max-h-[80vh] flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600 shrink-0",children:e.id}),l.jsx("span",{className:"text-sm font-semibold text-zinc-900 truncate",children:e.title})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[l.jsx("button",{onClick:()=>{e.description&&navigator.clipboard.writeText(ix(e,n)).then(()=>{i(!0),setTimeout(()=>i(!1),1500)})},className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",title:"Copy description",children:r?l.jsx("svg",{className:"w-4 h-4 text-emerald-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}):l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9.75a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"})})}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]}),l.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4 custom-scrollbar description-markdown text-sm text-zinc-700 leading-relaxed",children:l.jsx(re,{remarkPlugins:[ih],children:e.description})})]})}),document.body):null}function iy({className:e="w-3 h-3",filled:t=!1}){return t?l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"})}):l.jsx("svg",{className:e,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})})}function ib({node:e,allNodes:t,onNodeNavigate:n,comments:r,onPostComment:i,onDeleteComment:s,onLikeComment:h,onReplyComment:f,isAuthenticated:m,currentDid:y,repoUrls:b}){let[v,k]=(0,o.useState)(null),[w,j]=(0,o.useState)(""),[N,C]=(0,o.useState)(!1),[S,z]=(0,o.useState)(!1),[D,L]=(0,o.useState)(!1),M=e=>{k(e.uri),j("")},A=()=>{k(null),j("")},T=async()=>{if(w.trim()&&v&&f){C(!0);try{let e=t=>{for(let n of t){if(n.uri===v)return n;let t=e(n.replies);if(t)return t}},t=r?e(r):void 0;t&&await f(t,w.trim()),k(null),j("")}catch(e){console.error("Failed to post reply:",e)}finally{C(!1)}}};if(!e)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-zinc-100 flex items-center justify-center mb-4",children:l.jsx("svg",{className:"w-6 h-6 text-zinc-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"})})}),l.jsx("p",{className:"text-sm text-zinc-500 leading-relaxed",children:"Click a node to see details"}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Hover to highlight connections"})]});let E=p[e.issueType]||"\uD83D\uDCCB",P=a[e.status]||a.open,I=c[e.status]||e.status,F=u[e.priority]||`P${e.priority}`,q=d[e.priority]||"#a1a1aa",R=x[e.prefix]||e.prefix,O=g[e.prefix]||"#a1a1aa",B=b?.[e.prefix],_=e.blockerIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),U=e.dependentIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),H=e=>{try{let t=new Date(e),n=t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),r=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!1});return`${n} at ${r}`}catch{return e}};return(0,l.jsxs)("div",{className:"animate-fade-in",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[l.jsx("span",{className:"text-2xl mt-0.5",children:E}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"flex items-center gap-2",children:l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600",children:e.id})}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-900 mt-1 leading-snug",children:e.title})]})]}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2 mb-4",children:[(0,l.jsxs)("span",{className:"status-badge",style:{backgroundColor:P+"18",color:P,border:`1px solid ${P}30`},children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full mr-1.5",style:{backgroundColor:P}}),I]}),l.jsx("span",{className:"status-badge",style:{backgroundColor:q+"15",color:q,border:`1px solid ${q}25`},children:F}),B?(0,l.jsxs)("a",{href:B,target:"_blank",rel:"noopener noreferrer",className:"status-badge hover:opacity-80 transition-opacity",style:{backgroundColor:O+"15",color:O,border:`1px solid ${O}25`,textDecoration:"none"},children:[R,l.jsx("svg",{className:"w-2.5 h-2.5 ml-1 opacity-50",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})]}):l.jsx("span",{className:"status-badge",style:{backgroundColor:O+"15",color:O,border:`1px solid ${O}25`},children:R})]}),B&&l.jsx("div",{className:"mb-4",children:(0,l.jsxs)("a",{href:B,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})}),B.replace(/^https?:\/\//,"")]})}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[l.jsx(ik,{label:"Blocks",value:e.blockerCount,color:e.blockerCount>0?"#f59e0b":void 0}),l.jsx(ik,{label:"Blocked by",value:e.dependentCount,color:e.dependentCount>0?"#ef4444":void 0})]}),(0,l.jsxs)("div",{className:"space-y-1.5 mb-4 text-xs text-zinc-500",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Created"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:H(e.createdAt)})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Updated"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:H(e.updatedAt)})]}),e.closedAt&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Closed"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:H(e.closedAt)})]}),e.closeReason&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Reason"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.closeReason})]}),e.owner&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Owner"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.owner})]})]}),e.description&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider",children:"Description"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:()=>{if(!e.description)return;let t=b?.[e.prefix];navigator.clipboard.writeText(ix(e,t)).then(()=>{L(!0),setTimeout(()=>L(!1),1500)})},className:"text-zinc-400 hover:text-zinc-600 transition-colors",title:"Copy description",children:D?l.jsx("svg",{className:"w-3.5 h-3.5 text-emerald-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}):l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9.75a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"})})}),l.jsx("button",{onClick:()=>z(!0),className:"text-[10px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"View in window"})]})]}),l.jsx("div",{className:"text-xs text-zinc-600 leading-relaxed bg-zinc-50 rounded-lg p-3 max-h-40 overflow-y-auto custom-scrollbar border border-zinc-100 description-markdown",children:l.jsx(re,{remarkPlugins:[ih],children:e.description})})]}),S&&e.description&&l.jsx(ig,{node:e,onClose:()=>z(!1),repoUrl:b?.[e.prefix]}),_.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocks (",_.length,")"]}),l.jsx("div",{className:"space-y-1",children:_.map(e=>l.jsx(iw,{node:e,onClick:()=>n(e.id)},e.id))})]}),U.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocked by (",U.length,")"]}),l.jsx("div",{className:"space-y-1",children:U.map(e=>l.jsx(iw,{node:e,onClick:()=>n(e.id)},e.id))})]}),(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Comments"," ",r&&r.length>0&&l.jsx("span",{className:"ml-1 px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:r.length})]}),r&&r.length>0?l.jsx("div",{className:"space-y-1",children:r.map(e=>l.jsx(ij,{comment:e,currentDid:y,isAuthenticated:m,onDelete:s,onLike:h,onStartReply:M,replyingToUri:v,replyText:w,onReplyTextChange:j,onSubmitReply:T,onCancelReply:A,isSubmittingReply:N,depth:0},e.uri))}):l.jsx("p",{className:"text-xs text-zinc-400 italic",children:"No comments yet"}),m&&i?l.jsx(iN,{onSubmit:i}):m?null:l.jsx("p",{className:"text-xs text-zinc-400 mt-2",children:"Sign in to leave a comment"})]})]})}function iv({replyingTo:e,replyText:t,onTextChange:n,onSubmit:r,onCancel:i,isSubmitting:o}){return(0,l.jsxs)("div",{className:"mt-2 ml-4 pl-3 border-l border-emerald-200 space-y-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] text-zinc-400",children:[l.jsx("span",{children:"Replying to"}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-600 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[l.jsx("input",{type:"text",value:t,onChange:e=>n(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||r()},placeholder:"Write a reply...",disabled:o,autoFocus:!0,className:"flex-1 px-2 py-1 text-xs bg-white border border-zinc-200 rounded placeholder-zinc-400 focus:outline-none focus:border-emerald-400 disabled:opacity-50"}),l.jsx("button",{onClick:r,disabled:!t.trim()||o,className:"px-2 py-1 text-[10px] font-medium text-emerald-600 hover:text-emerald-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o?"...":"Reply"}),l.jsx("button",{onClick:i,disabled:o,className:"px-2 py-1 text-[10px] text-zinc-400 hover:text-zinc-600 disabled:opacity-50 transition-colors",children:"Cancel"})]})]})}function ik({label:e,value:t,color:n}){return(0,l.jsxs)("div",{className:"bg-zinc-50 rounded-lg p-3 border border-zinc-100",children:[l.jsx("div",{className:"text-xl font-bold",style:{color:n||"#3f3f46"},children:t}),l.jsx("div",{className:"text-[10px] text-zinc-400 uppercase tracking-wider mt-0.5",children:e})]})}function iw({node:e,onClick:t}){let n=a[e.status]||a.open;return(0,l.jsxs)("button",{onClick:t,className:"w-full flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-zinc-50 transition-colors text-left group border border-transparent hover:border-zinc-200",children:[l.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:n}}),l.jsx("span",{className:"text-xs font-mono text-emerald-600 group-hover:text-emerald-700 shrink-0",children:e.id}),l.jsx("span",{className:"text-xs text-zinc-500 truncate",children:e.title})]})}function ij({comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:s,replyingToUri:a,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:h,isSubmittingReply:p,depth:f}){let[m,x]=(0,o.useState)(!1),[g,y]=(0,o.useState)(!1),b=t&&t===e.did,v=!!t&&e.likes.some(e=>e.did===t),k=a===e.uri,w=async()=>{if(r&&!m){x(!0);try{await r(e)}catch(e){console.error("Failed to delete comment:",e)}finally{x(!1)}}},j=async()=>{if(i&&!g){y(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{y(!1)}}};return(0,l.jsxs)("div",{className:`${f>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:"py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:im(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:j,disabled:!n||g,className:`flex items-center gap-0.5 transition-colors ${v?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(iy,{className:"w-3 h-3",filled:v}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),l.jsx("button",{onClick:()=>s(e),disabled:!n,className:`transition-colors disabled:opacity-50 ${k?"text-emerald-500":"text-zinc-300 hover:text-zinc-500"}`,children:"reply"}),b&&r&&l.jsx("button",{onClick:w,disabled:m,className:"ml-auto shrink-0 text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:m?"...":"delete"})]})]}),k&&l.jsx(iv,{replyingTo:e,replyText:c,onTextChange:u,onSubmit:d,onCancel:h,isSubmitting:p}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(ij,{comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:s,replyingToUri:a,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:h,isSubmittingReply:p,depth:f+1},e.uri))})]})}function iN({onSubmit:e}){let[t,n]=(0,o.useState)(""),[r,i]=(0,o.useState)(!1),s=async()=>{if(t.trim()&&!r){i(!0);try{await e(t.trim()),n("")}catch(e){console.error("Failed to post comment:",e)}finally{i(!1)}}};return(0,l.jsxs)("div",{className:"mt-3 space-y-2",children:[l.jsx("textarea",{value:t,onChange:e=>n(e.target.value),placeholder:"Leave a comment...",rows:2,className:"w-full px-2.5 py-1.5 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),l.jsx("button",{onClick:s,disabled:!t.trim()||r,className:"px-3 py-1 text-xs font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:r?"Sending...":"Comment"})]})}var iC=n(67960);function iS(){let{isAuthenticated:e,isLoading:t,session:n,login:r,logout:i}=(0,iC.a)(),[s,a]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(""),[p,f]=(0,o.useState)(!1),[m,x]=(0,o.useState)(""),g=(0,o.useRef)(null),y=async e=>{if(e.preventDefault(),d.trim()){f(!0),x("");try{await r(d.trim())}catch(e){x(e instanceof Error?e.message:"Login failed"),f(!1)}}},b=async()=>{u(!1),await i()};return t?l.jsx("div",{className:"w-4 h-4 rounded-full border-2 border-zinc-200 border-t-zinc-400 animate-spin"}):e&&n?(0,l.jsxs)("div",{className:"relative",ref:g,children:[(0,l.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-2 px-3 py-1.5 rounded-full hover:bg-zinc-50 transition-colors cursor-pointer",children:[n.avatar?l.jsx("img",{src:n.avatar,alt:n.handle,width:24,height:24,className:"rounded-full"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 flex items-center justify-center text-[11px] text-emerald-700 font-medium",children:(n.displayName||n.handle).charAt(0).toUpperCase()}),l.jsx("span",{className:"text-sm text-zinc-600 max-w-[100px] truncate",children:n.displayName||n.handle})]}),c&&(0,l.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-44 bg-white rounded-xl shadow-xl border border-zinc-100 py-2 z-50",children:[(0,l.jsxs)("a",{href:n.did?`https://www.impactindexer.org/data?did=${n.did}`:"#",target:"_blank",rel:"noopener noreferrer",className:"block px-3 py-1.5 text-xs text-zinc-400 truncate hover:text-emerald-600 transition-colors",children:["@",n.handle]}),l.jsx("div",{className:"h-px bg-zinc-100 my-1"}),(0,l.jsxs)("button",{onClick:b,className:"flex items-center gap-2 w-full px-3 py-1.5 text-xs text-zinc-600 hover:bg-zinc-50 transition-colors cursor-pointer",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0-3-3m0 0 3-3m-3 3H15"})}),"Sign out"]})]})]}):(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>a(!0),className:"px-4 py-1.5 text-sm font-medium text-zinc-600 rounded-full hover:text-zinc-900 hover:bg-zinc-50 transition-colors cursor-pointer whitespace-nowrap",children:"Sign in"}),s&&(0,l.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>a(!1),children:[l.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm"}),(0,l.jsxs)("div",{className:"relative w-full max-w-sm mx-4 bg-white rounded-xl shadow-lg border border-zinc-200 p-6",onClick:e=>e.stopPropagation(),children:[l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Sign in with ATProto"}),l.jsx("p",{className:"text-sm text-zinc-400 mb-5",children:"Enter your Bluesky handle to connect."}),(0,l.jsxs)("form",{onSubmit:y,children:[l.jsx("label",{htmlFor:"auth-handle",className:"block text-sm text-zinc-600 mb-1.5",children:"Handle"}),l.jsx("input",{id:"auth-handle",type:"text",value:d,onChange:e=>h(e.target.value),placeholder:"alice.bsky.social",disabled:p,autoFocus:!0,className:"w-full px-3 py-2 text-sm bg-white border border-zinc-200 rounded-lg placeholder:text-zinc-300 focus:outline-none focus:ring-2 focus:ring-emerald-500/30 focus:border-emerald-400 disabled:opacity-50 disabled:cursor-not-allowed"}),l.jsx("p",{className:"text-xs text-zinc-300 mt-1.5",children:"Just a username? We'll add .bsky.social for you."}),m&&l.jsx("p",{className:"text-sm text-red-500 mt-2",children:m}),(0,l.jsxs)("div",{className:"flex gap-2 mt-5",children:[l.jsx("button",{type:"button",onClick:()=>a(!1),disabled:p,className:"flex-1 px-3 py-2 text-sm text-zinc-600 bg-zinc-50 rounded-lg hover:bg-zinc-100 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),l.jsx("button",{type:"submit",disabled:p||!d.trim(),className:"flex-1 px-3 py-2 text-sm text-white bg-emerald-600 rounded-lg hover:bg-emerald-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:p?"Connecting...":"Connect"})]})]})]})]})]})}function iz({className:e}){return(0,l.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",className:e,"aria-hidden":"true",children:[l.jsx("polygon",{points:"16,3 27,9.5 27,22.5 16,29 5,22.5 5,9.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none",opacity:"0.7",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 16 16;360 16 16",dur:"40s",repeatCount:"indefinite"})}),l.jsx("polygon",{points:"16,8 22.5,11.5 22.5,20.5 16,24 9.5,20.5 9.5,11.5",stroke:"currentColor",strokeWidth:"0.8",fill:"none",opacity:"0.35",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 16 16;0 16 16",dur:"30s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"3",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"0.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"29",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2.5s"})}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"2.5",fill:"currentColor",opacity:"0.8",children:[l.jsx("animate",{attributeName:"r",values:"2;3;2",dur:"3s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.7;1;0.7",dur:"3s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"3",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"29",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"2s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"10",stroke:"currentColor",strokeWidth:"0.4",fill:"none",opacity:"0.15",children:[l.jsx("animate",{attributeName:"r",values:"9;11;9",dur:"4s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"4s",repeatCount:"indefinite"})]})]})}function iD({node:e,x:t,y:n,onClose:r,onSubmit:i,isAuthenticated:s,existingComments:a}){let[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(!1),p=(0,o.useRef)(null),f=(0,o.useRef)(null),[m,x]=(0,o.useState)({x:0,y:0}),[y,b]=(0,o.useState)(!1),v=(0,o.useCallback)(async()=>{if(c.trim()&&!d){h(!0);try{await i(c.trim()),u("")}catch(e){console.error("Failed to post comment:",e)}finally{h(!1)}}},[c,d,i]),k=(0,o.useCallback)(e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),v())},[v]),w=g[e.prefix]||"#a1a1aa",j=a?.length||0;return(0,l.jsxs)("div",{ref:p,style:{position:"fixed",left:m.x,top:m.y,width:320,zIndex:100,opacity:y?1:0,transform:y?"translateY(0)":"translateY(4px)",transition:"opacity 0.2s ease, transform 0.2s ease"},className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",onContextMenu:e=>e.preventDefault(),children:[l.jsx("style",{children:`
1
+ (()=>{var e={};e.id=931,e.ids=[931],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},41041:e=>{"use strict";e.exports=require("node:url")},32143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>o.a,__next_app__:()=>h,originalPathname:()=>d,pages:()=>u,routeModule:()=>p,tree:()=>c}),n(71363),n(19709),n(10311);var r=n(69296),i=n(31650),l=n(87045),o=n.n(l),s=n(58184),a={};for(let e in s)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(a[e]=()=>s[e]);n.d(t,a);let c=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.bind(n,71363)),"/Users/david/Projects/gainforest/beads-map/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(n.bind(n,19709)),"/Users/david/Projects/gainforest/beads-map/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,10311,23)),"next/dist/client/components/not-found-error"]}],u=["/Users/david/Projects/gainforest/beads-map/app/page.tsx"],d="/page",h={require:n,loadChunk:()=>Promise.resolve()},p=new r.AppPageRouteModule({definition:{kind:i.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},40585:(e,t,n)=>{Promise.resolve().then(n.bind(n,67960))},12178:(e,t,n)=>{Promise.resolve().then(n.bind(n,85406))},15169:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,66544,23)),Promise.resolve().then(n.t.bind(n,93477,23)),Promise.resolve().then(n.t.bind(n,95116,23)),Promise.resolve().then(n.t.bind(n,96676,23)),Promise.resolve().then(n.t.bind(n,59645,23)),Promise.resolve().then(n.t.bind(n,88850,23))},85406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i6});var r={};n.r(r),n.d(r,{boolean:()=>G,booleanish:()=>Y,commaOrSpaceSeparated:()=>Q,commaSeparated:()=>Z,number:()=>J,overloadedBoolean:()=>X,spaceSeparated:()=>K});var i={};n.r(i),n.d(i,{attentionMarkers:()=>t6,contentInitial:()=>t0,disable:()=>t8,document:()=>tQ,flow:()=>t5,flowInitial:()=>t1,insideSpan:()=>t3,string:()=>t2,text:()=>t4});var l=n(98924),o=n(63911);let s={status:"Status",priority:"Priority",owner:"Owner",assignee:"Assignee",prefix:"Prefix"},a={open:"#10b981",in_progress:"#f59e0b",blocked:"#ef4444",deferred:"#8b5cf6",closed:"#a1a1aa"},c={open:"Open",in_progress:"In Progress",blocked:"Blocked",deferred:"Deferred",closed:"Closed"},u={0:"P0 - Critical",1:"P1 - High",2:"P2 - Medium",3:"P3 - Low",4:"P4 - Backlog"},d={0:"#ef4444",1:"#f97316",2:"#3b82f6",3:"#a1a1aa",4:"#d4d4d8"},h=["#d20f39","#179299","#fe640b","#1e66f5","#40a02b","#8839ef","#df8e1d","#209fb5","#ea76cb","#04a5e5","#e64553","#7287fd","#dd7878","#dc8a78"],p={bug:"\uD83D\uDC1B",feature:"✨",task:"\uD83D\uDCDD",epic:"\uD83C\uDFAF",chore:"\uD83D\uDD27"};function f(e){return e.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function m(e){if(!e)return"#acb0be";let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=16777619*t>>>0;return h[t%h.length]}let x=new Proxy({},{get:(e,t)=>f(t),has:()=>!0}),g=new Proxy({},{get:(e,t)=>(function(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=16777619*t>>>0;let n=t%360;return`hsl(${n}, 65%, 55%)`})(t),has:()=>!0});function y(e){return function(){return e}}var b=n(26669);function v(e){return(e()-.5)*1e-6}function k(e){return e.x+e.vx}function w(e){return e.y+e.vy}function j(e){var t,n,r,i=1,l=1;function o(){for(var e,o,a,c,u,d,h,p=t.length,f=0;f<l;++f)for(e=0,o=(0,b.Z)(t,k,w).visitAfter(s);e<p;++e)h=(d=n[(a=t[e]).index])*d,c=a.x+a.vx,u=a.y+a.vy,o.visit(m);function m(e,t,n,l,o){var s=e.data,p=e.r,f=d+p;if(s){if(s.index>a.index){var m=c-s.x-s.vx,x=u-s.y-s.vy,g=m*m+x*x;g<f*f&&(0===m&&(g+=(m=v(r))*m),0===x&&(g+=(x=v(r))*x),g=(f-(g=Math.sqrt(g)))/g*i,a.vx+=(m*=g)*(f=(p*=p)/(h+p)),a.vy+=(x*=g)*f,s.vx-=m*(f=1-f),s.vy-=x*f)}return}return t>c+f||l<c-f||n>u+f||o<u-f}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function a(){if(t){var r,i,l=t.length;for(r=0,n=Array(l);r<l;++r)n[(i=t[r]).index]=+e(i,r,t)}}return"function"!=typeof e&&(e=y(null==e?1:+e)),o.initialize=function(e,n){t=e,r=n,a()},o.iterations=function(e){return arguments.length?(l=+e,o):l},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),a(),o):e},o}let N=null;function C(e){let t=e.blockerCount+e.dependentCount;return"epic"===e.issueType&&(t+=3),5+17*Math.min(t/6,1)}let S="status";function z(e){switch(S){case"priority":return d[e.priority]||d[2];case"owner":return m(e.createdBy);case"assignee":return m(e.assignee);case"prefix":return m(e.prefix);default:return a[e.status]||a.open}}function M(e){return 1-(1-e)*(1-e)}let L=new Map;function A(e,t){let n=L.get(e);if("loading"===n||"failed"===n)return null;if(n)return n;L.set(e,"loading");let r=new Image;return r.onload=()=>{L.set(e,r),t()},r.onerror=()=>{L.set(e,"failed")},r.src=e,null}function D(e,t,n,r,i,l){e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.fillStyle="#e4e4e7",e.fill();let o=i.replace("@","").charAt(0).toUpperCase();e.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.fillStyle="#71717a",e.fillText(o,t,n+.3)}function T(e,t){let n=new Set([e]),r=[{id:e,depth:0}];for(;r.length>0;){let{id:e,depth:i}=r.shift();if(!(i>=2))for(let l of t){let t="object"==typeof l.source?l.source.id:l.source,o="object"==typeof l.target?l.target.id:l.target;t!==e||n.has(o)||(n.add(o),r.push({id:o,depth:i+1})),o!==e||n.has(t)||(n.add(t),r.push({id:t,depth:i+1}))}}return n}function E(e){let t=e.current;if(!t)return;let n=t.zoom();"number"!=typeof n||isNaN(n)||(t.zoom(1.000001*n,0),requestAnimationFrame(()=>{e.current&&e.current.zoom(n,0)}))}let P=(0,o.forwardRef)(function({nodes:e,links:t,selectedNode:r,hoveredNode:i,onNodeClick:h,onNodeHover:p,onBackgroundClick:x,onNodeRightClick:g,commentedNodeIds:b,claimedNodeAvatars:v,onAvatarHover:k,timelineActive:w,stats:L,sidebarOpen:P,collapsedEpicIds:F,onCollapseAll:q,onExpandAll:R,colorMode:O="status",onColorModeChange:B,autoFit:_=!0,onAutoFitToggle:U,pulseNodeId:H,showPulse:$=!0,onShowPulseToggle:V,focusedEpicId:W,onExitFocusedEpic:G},Y){let X=(0,o.useRef)(null),J=(0,o.useRef)(null),K=(0,o.useRef)(null),Z=(0,o.useRef)(0),Q=(0,o.useRef)(()=>{}),[ee,et]=(0,o.useState)({width:800,height:600}),en=(0,o.useRef)(!1),[er,ei]=(0,o.useState)({w:160,h:120}),el=er.w,eo=er.h,es=(0,o.useRef)(null),[ea,ec]=(0,o.useState)(N);(0,o.useEffect)(()=>{N||n.e(29).then(n.bind(n,31029)).then(e=>{N=e.default||e,ec(()=>N)})},[]);let[eu,ed]=(0,o.useState)("dag"),[eh,ep]=(0,o.useState)(!0),ef=(0,o.useRef)(r),em=(0,o.useRef)(i),ex=(0,o.useRef)(new Set),eg=(0,o.useRef)(b||new Map),ey=(0,o.useRef)(v||new Map),eb=(0,o.useRef)(O),ev=(0,o.useRef)(H||null),ek=(0,o.useRef)($),ew=(0,o.useRef)(()=>{});ew.current=()=>E(X);let ej=(0,o.useRef)(k);ej.current=k;let eN=(0,o.useRef)(null),eC=(0,o.useRef)({x:0,y:0}),eS=(0,o.useRef)(e),ez=(0,o.useRef)([]),{viewNodes:eM,viewLinks:eL}=(0,o.useMemo)(()=>{let n=e,r=t;if(W){let e=new Map;for(let t of r){let n="object"==typeof t.source?t.source.id:t.source,r="object"==typeof t.target?t.target.id:t.target;"parent-child"===t.type&&e.set(r,n)}let t=new Set(n.map(e=>e.id));for(let r of n)if(!e.has(r.id)&&r.id.includes(".")){let n=r.id.split(".")[0];t.has(n)&&e.set(r.id,n)}let i=new Set;for(let[t,n]of(i.add(W),e))n===W&&i.add(t);for(let e of r){let n="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"!==e.type&&(i.has(n)&&t.has(r)&&i.add(r),i.has(r)&&t.has(n)&&i.add(n))}n=n.filter(e=>i.has(e.id)),r=r.filter(e=>{let t="object"==typeof e.source?e.source.id:e.source,n="object"==typeof e.target?e.target.id:e.target;return i.has(t)&&i.has(n)})}if(!F||0===F.size)return{viewNodes:n,viewLinks:r};let i=new Map;for(let e of r){let t="object"==typeof e.source?e.source.id:e.source,n="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&i.set(n,t)}let l=new Set(n.map(e=>e.id));for(let e of n)if(!i.has(e.id)&&e.id.includes(".")){let t=e.id.split(".")[0];l.has(t)&&i.set(e.id,t)}let o=new Set;for(let[e,t]of i)F.has(t)&&o.add(e);if(0===o.size)return{viewNodes:n,viewLinks:r};let s=new Map;for(let e of o)s.set(e,i.get(e));let a=new Map,c=new Map,u=new Map;for(let[e,t]of s){a.set(t,(a.get(t)||0)+1);let r=n.find(t=>t.id===e);r&&(c.set(t,(c.get(t)||0)+r.blockerCount),u.set(t,(u.get(t)||0)+r.dependentCount))}let d=n.filter(e=>!o.has(e.id)).map(e=>({...e,blockerCount:e.blockerCount+(c.get(e.id)||0),dependentCount:e.dependentCount+(u.get(e.id)||0),collapsedCount:a.get(e.id)||0})),h=[],p=new Set;for(let e of r){let t="object"==typeof e.source?e.source.id:e.source,n="object"==typeof e.target?e.target.id:e.target;if("parent-child"===e.type&&o.has(n)||(t=s.get(t)||t)===(n=s.get(n)||n))continue;let r=`${t}->${n}:${e.type}`;p.has(r)||(p.add(r),h.push({source:t,target:n,type:e.type}))}return{viewNodes:d,viewLinks:h}},[e,t,F,W]);eS.current=eM,(0,o.useEffect)(()=>{let n=new Map;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&n.set(r,t)}let r=new Set(e.map(e=>e.id));for(let t of e)if(!n.has(t.id)&&t.id.includes(".")){let e=t.id.split(".")[0];r.has(e)&&n.set(t.id,e)}let i=new Map;for(let[e,t]of n){let n=i.get(t)||[];n.push(e),i.set(t,n)}let l=new Map(e.map(e=>[e.id,e])),o=[];for(let[e,t]of i){let n=l.get(e);n&&o.push({parentId:e,title:n.title||e,prefix:n.prefix,memberIds:[e,...t]})}ez.current=o},[e,t]);let eA=(0,o.useMemo)(()=>{if("status"===O||"priority"===O)return[];let e=new Map;for(let t of eM)switch(O){case"owner":{let n=t.createdBy||void 0;e.set(n||"Unassigned",m(n));break}case"assignee":{let n=t.assignee||void 0;e.set(n||"Unassigned",m(n));break}case"prefix":e.set(f(t.prefix),m(t.prefix))}return Array.from(e.entries()).sort(([e],[t])=>"Unassigned"===e?1:"Unassigned"===t?-1:e.localeCompare(t)).map(([e,t])=>({label:e,color:t}))},[O,eM]);(0,o.useEffect)(()=>{ef.current=r;let e=em.current||r;e?ex.current=T(e.id,eL):ex.current=new Set,E(X),cancelAnimationFrame(Z.current),Z.current=requestAnimationFrame(()=>Q.current())},[r,eL]),(0,o.useEffect)(()=>{em.current=i;let e=i||ef.current;e?ex.current=T(e.id,eL):ex.current=new Set,E(X),cancelAnimationFrame(Z.current),Z.current=requestAnimationFrame(()=>Q.current())},[i,eL]),(0,o.useEffect)(()=>{eg.current=b||new Map,E(X)},[b]),(0,o.useEffect)(()=>{ey.current=v||new Map,E(X)},[v]),(0,o.useEffect)(()=>{eb.current=O,S=O,E(X),Z.current=requestAnimationFrame(()=>Q.current())},[O]),(0,o.useEffect)(()=>{ev.current=H||null,ek.current=$,E(X)},[H,$]),(0,o.useEffect)(()=>{let e=J.current;if(!e)return;let t=t=>{let n;eC.current={x:t.clientX,y:t.clientY};let r=X.current,i=ej.current;if(!r||!i)return;let l=ey.current;if(0===l.size){eN.current&&(eN.current=null,i(null));return}let o=e.getBoundingClientRect(),s=t.clientX-o.left,a=t.clientY-o.top;try{n=r.screen2GraphCoords(s,a)}catch{return}let c=Math.max(4,10/(r.zoom()||1));for(let e of eS.current){if(null==e.x||null==e.y)continue;let r=l.get(e.id);if(!r)continue;let o=C(e),s=e.x+.7*o,a=e.y+.7*o,u=n.x-s,d=n.y-a;if(u*u+d*d<=c*c){eN.current!==e.id&&(eN.current=e.id,i({handle:r.handle,avatar:r.avatar,claimedAt:r.claimedAt,did:r.did,x:t.clientX,y:t.clientY}));return}}eN.current&&(eN.current=null,i(null))};return e.addEventListener("mousemove",t),()=>e.removeEventListener("mousemove",t)},[]),(0,o.useEffect)(()=>{let e=()=>{if(J.current){let e=J.current.getBoundingClientRect();et({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let eD=(0,o.useCallback)(e=>{let t=X.current;if(!t)return;let n=eM.find(t=>t.id===e.id);n&&void 0!==n.x&&void 0!==n.y&&(t.centerAt(n.x,n.y,500),t.zoom(2.5,500),h(e))},[h,eM]);(0,o.useImperativeHandle)(Y,()=>({focusNode:eD}),[eD]),(0,o.useEffect)(()=>{let e;let t=X.current;if(!t||0===eM.length)return;let n=()=>{t.d3Force("radial",null),t.d3Force("x",null),t.d3Force("y",null)},r=()=>{eM.forEach(e=>{delete e.fx,delete e.fy})};if("dag"===eu)n(),t.d3Force("charge")?.strength(-80).distanceMax(300),t.d3Force("link")?.distance(50).strength(.3),t.d3Force("center")?.strength(.01),t.d3Force("collision",null);else if("radial"===eu){n(),r();let e=new Map;for(let t of eL){if("parent-child"===t.type)continue;let n="object"==typeof t.target?t.target.id:t.target,r="object"==typeof t.source?t.source.id:t.source;e.has(n)||e.set(n,[]),e.get(n).push(r)}let i=new Map,l=[];eM.forEach(t=>{e.has(t.id)||(i.set(t.id,0),l.push(t.id))});let o=0;for(;o<l.length;){let e=l[o++],t=i.get(e);for(let n of eL){if("parent-child"===n.type)continue;let r="object"==typeof n.source?n.source.id:n.source,o="object"==typeof n.target?n.target.id:n.target;r!==e||i.has(o)||(i.set(o,t+1),l.push(o))}}eM.forEach(e=>{e._depth=i.get(e.id)??0}),Array.from(i.values());let s=Math.max(200,4*eM.length);t.d3Force("charge")?.strength(-300).distanceMax(800),t.d3Force("link")?.distance(150).strength(.15),t.d3Force("center")?.strength(0),t.d3Force("radial",(function(e,t,n){var r,i,l,o=y(.1);function s(e){for(var o=0,s=r.length;o<s;++o){var a=r[o],c=a.x-t||1e-6,u=a.y-n||1e-6,d=Math.sqrt(c*c+u*u),h=(l[o]-d)*i[o]*e/d;a.vx+=c*h,a.vy+=u*h}}function a(){if(r){var t,n=r.length;for(t=0,i=Array(n),l=Array(n);t<n;++t)l[t]=+e(r[t],t,r),i[t]=isNaN(l[t])?0:+o(r[t],t,r)}}return"function"!=typeof e&&(e=y(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){r=e,a()},s.strength=function(e){return arguments.length?(o="function"==typeof e?e:y(+e),a(),s):o},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),a(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s})(e=>(e._depth||0)*s,0,0).strength(.8)),t.d3Force("x",null),t.d3Force("y",null),t.d3Force("collision",j().radius(e=>C(e)+10).strength(.9))}else if("cluster"===eu){n(),r();let e=[...new Set(eM.map(e=>e.prefix))],i=Math.max(400,5*eM.length,150*e.length),l=new Map;e.forEach((t,n)=>{let r=2*Math.PI*n/e.length-Math.PI/2;l.set(t,{x:Math.cos(r)*i,y:Math.sin(r)*i})}),t.d3Force("charge")?.strength(-200).distanceMax(600),t.d3Force("link")?.distance(100).strength(.15),t.d3Force("center")?.strength(0),t.d3Force("x",(function(e){var t,n,r,i=y(.1);function l(e){for(var i,l=0,o=t.length;l<o;++l)i=t[l],i.vx+=(r[l]-i.x)*n[l]*e}function o(){if(t){var l,o=t.length;for(l=0,n=Array(o),r=Array(o);l<o;++l)n[l]=isNaN(r[l]=+e(t[l],l,t))?0:+i(t[l],l,t)}}return"function"!=typeof e&&(e=y(null==e?0:+e)),l.initialize=function(e){t=e,o()},l.strength=function(e){return arguments.length?(i="function"==typeof e?e:y(+e),o(),l):i},l.x=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),o(),l):e},l})(e=>l.get(e.prefix)?.x||0).strength(.5)),t.d3Force("y",(function(e){var t,n,r,i=y(.1);function l(e){for(var i,l=0,o=t.length;l<o;++l)i=t[l],i.vy+=(r[l]-i.y)*n[l]*e}function o(){if(t){var l,o=t.length;for(l=0,n=Array(o),r=Array(o);l<o;++l)n[l]=isNaN(r[l]=+e(t[l],l,t))?0:+i(t[l],l,t)}}return"function"!=typeof e&&(e=y(null==e?0:+e)),l.initialize=function(e){t=e,o()},l.strength=function(e){return arguments.length?(i="function"==typeof e?e:y(+e),o(),l):i},l.y=function(t){return arguments.length?(e="function"==typeof t?t:y(+t),o(),l):e},l})(e=>l.get(e.prefix)?.y||0).strength(.5)),t.d3Force("collision",j().radius(e=>C(e)+10).strength(.9))}else"spread"===eu?(n(),r(),t.d3Force("charge")?.strength(-300).distanceMax(500),t.d3Force("link")?.distance(180).strength(.4),t.d3Force("center")?.strength(.02),t.d3Force("collision",j().radius(e=>C(e)+8).strength(.8))):(n(),r(),t.d3Force("charge")?.strength(-180).distanceMax(400),t.d3Force("link")?.distance(e=>((e.source?.blockerCount||0)+(e.source?.dependentCount||0)+((e.target?.blockerCount||0)+(e.target?.dependentCount||0)))/2>4?90:120).strength(.6),t.d3Force("center")?.strength(.03),t.d3Force("collision",j().radius(e=>C(e)+6).strength(.7)));return t.d3ReheatSimulation(),_&&(e=setTimeout(()=>{X.current&&X.current.zoomToFit(400,60)},en.current?600:1e3)),en.current=!0,()=>{e&&clearTimeout(e)}},[eu,eM,eL,_]);let eT=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(eT.current||!ea||0===e.length)return;eT.current=!0;let t=setTimeout(()=>{ed("force")},15);return()=>clearTimeout(t)},[ea,e.length]),(0,o.useEffect)(()=>{if(!w&&_&&X.current&&e.length>0){let e=setTimeout(()=>{X.current.zoomToFit(400,60)},800);return()=>clearTimeout(e)}},[e.length,w,_]);let eE=(0,o.useRef)(void 0);(0,o.useEffect)(()=>{if(void 0===eE.current){eE.current=W??null;return}eE.current=W??null;let e=X.current;if(!e)return;let t=setTimeout(()=>{e.zoomToFit(400,60)},100);return()=>clearTimeout(t)},[W]);let eP=(0,o.useMemo)(()=>{let e=Math.sqrt(eM.length)||1;return eM.forEach((t,n)=>{if(null==t.x&&null==t.y){let r=n*Math.PI*(3-Math.sqrt(5)),i=300*Math.sqrt(.5+n)/e;t.x=i*Math.cos(r),t.y=i*Math.sin(r)}}),{nodes:eM,links:eL}},[eM,eL]),eI=(0,o.useCallback)((e,t,n)=>{let r=C(e),i=z(e),l=m(e.prefix),o=ef.current?.id===e.id,s=em.current?.id===e.id,c=ex.current,u=c.has(e.id),d=c.size>0,h=Date.now(),p=1,f=e._spawnTime;if(f){let e=h-f;if(e<500){var x;p=1+2.70158*Math.pow((x=e/500)-1,3)+1.70158*Math.pow(x-1,2)}}let g=1,y=1,b=e._removeTime;if(b){let e=h-b;if(e<400){let t=e/400;g=1-M(t),y=1-t}else g=0,y=0}let v=p*g;if(v<=.01)return;let k=r*v,w=(d&&!u?.15:"closed"===e.status?.5:1)*y;if(w<=.01)return;t.save(),t.globalAlpha=w,u&&d&&(t.shadowColor="#10b981",t.shadowBlur=o?20:s?16:10),n>.3&&(t.beginPath(),t.arc(e.x,e.y,k+2,0,2*Math.PI),t.strokeStyle=l,t.lineWidth=2,t.stroke()),t.beginPath(),t.arc(e.x,e.y,k,0,2*Math.PI),t.fillStyle=i,t.fill(),t.strokeStyle=o?"#10b981":s?"#3f3f46":"#e4e4e7",t.lineWidth=o?2.5:s?2:1,t.stroke(),t.shadowBlur=0;let j=e._changedAt;if(j){let n=h-j;if(n<800){let r=n/800,i=a[e.status]||"#a1a1aa";t.beginPath(),t.arc(e.x,e.y,k+4+20*r,0,2*Math.PI),t.strokeStyle=i,t.lineWidth=2*(1-r),t.globalAlpha=(1-r)*.6,t.stroke(),t.globalAlpha=w}}if(ek.current&&ev.current===e.id){let r=k+Math.max(25,30/n);for(let i=0;i<3;i++){let l=(h+500*i)%2e3/2e3,o=k+2/n+l*(r-k),s=(1-l)*.6;t.beginPath(),t.arc(e.x,e.y,o,0,2*Math.PI),t.strokeStyle="#10b981",t.lineWidth=Math.max(1.5/n,.5),t.globalAlpha=s*w,t.stroke()}t.globalAlpha=w}if(f){let n=h-f;if(n<500){let r=n/500;t.beginPath(),t.arc(e.x,e.y,k+6+8*r,0,2*Math.PI),t.strokeStyle="#10b981",t.lineWidth=3*(1-r),t.globalAlpha=(1-r)*.4,t.stroke(),t.globalAlpha=w}}if(e.priority<=1&&n>.5&&(t.font=`${Math.min(10,Math.max(4,12/n))}px sans-serif`,t.textAlign="center",t.textBaseline="bottom",t.fillText(0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25",e.x,e.y-k-2)),n>.5){let r=Math.min(7,Math.max(3,10/n));t.font=`500 ${r}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="top",t.fillStyle="#3f3f46",t.globalAlpha=.85*w;let i=e.id;n>1.5?i=I(e.title||e.id,30):n>.9&&(i=I(e.title||e.id,18)),t.fillText(i,e.x,e.y+k+3);let l=e.collapsedCount;l&&l>0&&(t.font=`400 ${Math.min(5.5,Math.max(2.5,8/n))}px 'Inter', system-ui, sans-serif`,t.fillStyle="#a1a1aa",t.fillText(`${l} task${1!==l?"s":""}`,e.x,e.y+k+3+r+1))}let N=eg.current.get(e.id);if(N&&N>0&&n>.4){let r=Math.min(6,Math.max(3.5,8/n)),i=e.x+.75*k,l=e.y-.75*k,o=N>99?"99+":String(N);t.save(),t.globalAlpha=Math.min(w,.95),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.fillStyle="#ef4444",t.fill(),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="middle",t.fillStyle="#ffffff",t.fillText(o,i,l+.3),t.restore()}let S=ey.current.get(e.id);if(S){let r=Math.max(4,10/n),i=e.x+.7*k,l=e.y+.7*k;if(t.save(),t.globalAlpha=1,S.avatar){let e=A(S.avatar,()=>ew.current());e?(t.save(),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.clip(),t.drawImage(e,i-r,l-r,2*r,2*r),t.restore()):D(t,i,l,r,S.handle,n)}else D(t,i,l,r,S.handle,n);t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.restore()}t.restore()},[]),eF=(0,o.useCallback)((e,t,n)=>{let r=e.source,i=e.target;if(void 0===r.x||void 0===i.x)return;let l=Date.now(),o=1,s=1,a=e._spawnTime;if(a){let e=l-a;if(e<500){let t=e/500;o=M(t),s=1+(1-t)*1.5}}let c=1,u=e._removeTime;if(u){let e=l-u;if(!(e<400))return;c=1-M(e/400)}let d=o*c;if(d<=.01)return;let h=r.id||e.source,p=i.id||e.target,f="parent-child"===e.type,m=ex.current,x=m.size>0,g=x&&m.has(h)&&m.has(p),y=(f?x?g?.5:.05:.2:x?g?.8:.08:.35)*d;if(y<=.01)return;t.save(),t.globalAlpha=y,f?(t.strokeStyle=g?"#71717a":"#a1a1aa",t.lineWidth=Math.max(.6,1.5/n)*s,t.setLineDash([4,3])):(t.strokeStyle=g?"#10b981":"#d4d4d8",t.lineWidth=(g?Math.max(2,2.5/n):Math.max(.8,1.2/n))*s);let b=i.x-r.x,v=i.y-r.y,k=Math.sqrt(b*b+v*v),w=(r.x+i.x)/2+.15*v,j=(r.y+i.y)/2-.15*b;if(t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(w,j,i.x,i.y),t.stroke(),f&&t.setLineDash([]),a){let e=l-a;e<300&&(t.save(),t.globalAlpha=(1-e/300)*.5,t.strokeStyle="#10b981",t.lineWidth=(f?3:4)/n,t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(w,j,i.x,i.y),t.stroke(),t.restore())}if(!f){let e=C(i);if(k<e+1){t.restore();return}let l=Math.min(8,6/n),o=1-e/k,s=r.x+o*b,a=r.y+o*v,c=Math.atan2(v,b);t.fillStyle=g?"#10b981":"#d4d4d8",t.beginPath(),t.moveTo(s,a),t.lineTo(s-l*Math.cos(c-Math.PI/7),a-l*Math.sin(c-Math.PI/7)),t.lineTo(s-l*Math.cos(c+Math.PI/7),a-l*Math.sin(c+Math.PI/7)),t.closePath(),t.fill()}t.restore()},[]),eq=(0,o.useCallback)((e,t)=>{if(!eh)return;let n=t>=.8?0:t<=.4?1:(.8-t)/.4;if(n<=.01)return;let r=ez.current;if(0===r.length)return;let i=new Map;for(let e of eM)null!=e.x&&null!=e.y&&i.set(e.id,{x:e.x,y:e.y});for(let l of(e.save(),r)){let r=0,o=0,s=0;for(let e of l.memberIds){let t=i.get(e);t&&(r+=t.x,o+=t.y,s++)}if(0===s)continue;let a=r/s,c=o/s,u=0;for(let e of l.memberIds){let t=i.get(e);if(t){let e=t.x-a,n=t.y-c,r=Math.sqrt(e*e+n*n);r>u&&(u=r)}}let d=u+30,h=m(l.prefix);e.beginPath(),e.arc(a,c,d,0,2*Math.PI),e.globalAlpha=.05*n,e.fillStyle=h,e.fill(),e.globalAlpha=.25*n,e.strokeStyle=h,e.lineWidth=1.5/t,e.setLineDash([8/t,4/t]),e.stroke(),e.setLineDash([]);let p=Math.min(24,Math.max(10,14/t)),f=Math.min(12,Math.max(5,8/t)),x=.35*p;e.font=`500 ${f}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.globalAlpha=.45*n,e.fillStyle="#71717a",e.fillText(l.parentId,a,c-.5*p-x),e.font=`600 ${p}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.85*n,e.fillStyle="#18181b";let g=l.title.length>40?l.title.slice(0,39)+"…":l.title;e.fillText(g,a,c+.15*p);let y=Math.min(14,Math.max(6,9/t));e.font=`400 ${y}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.5*n,e.fillStyle="#71717a",e.fillText(`${l.memberIds.length} issue${1!==l.memberIds.length?"s":""}`,a,c+.15*p+.7*p)}e.restore()},[eM,e,eh]),eR=(0,o.useCallback)((e,t,n)=>{let r=C(e)+5;n.fillStyle=t,n.beginPath(),n.arc(e.x,e.y,r,0,2*Math.PI),n.fill()},[]),eO=(0,o.useCallback)(()=>{},[]),eB=(0,o.useCallback)(()=>{let e=K.current,t=X.current;if(!e||!t)return;let n=e.getContext("2d");if(!n)return;let r=1/0,i=-1/0,l=1/0,o=-1/0,s=!1;for(let e of eM)null!=e.x&&null!=e.y&&(s=!0,e.x<r&&(r=e.x),e.x>i&&(i=e.x),e.y<l&&(l=e.y),e.y>o&&(o=e.y));if(!s)return;let a=(i+=40)-(r-=40)||1,c=(o+=40)-(l-=40)||1,u=el-16,d=eo-16,h=Math.min(u/a,d/c),p=8+(u-a*h)/2,f=8+(d-c*h)/2,m=window.devicePixelRatio||1;(e.width!==el*m||e.height!==eo*m)&&(e.width=el*m,e.height=eo*m,n.setTransform(m,0,0,m,0,0)),n.clearRect(0,0,el,eo),n.fillStyle="rgba(250, 250, 250, 0.92)",n.beginPath(),n.roundRect(0,0,el,eo,6),n.fill();let x=ex.current,g=x.size>0,y=em.current?.id||ef.current?.id||null;for(let e of eL){let t=e.source,i=e.target;if(null==t.x||null==i.x)continue;let o=t.id||e.source,s=i.id||e.target,a=g&&x.has(o)&&x.has(s);n.globalAlpha=g?a?.5:.04:.1,n.strokeStyle=a?"#10b981":"#a1a1aa",n.lineWidth=a?1:.5;let c=p+(t.x-r)*h,u=f+(t.y-l)*h,d=p+(i.x-r)*h,m=f+(i.y-l)*h;n.beginPath(),n.moveTo(c,u),n.lineTo(d,m),n.stroke()}for(let e of(n.globalAlpha=1,eM)){if(null==e.x||null==e.y)continue;let t=p+(e.x-r)*h,i=f+(e.y-l)*h,o=e.id===y,s=x.has(e.id);g&&!s?n.globalAlpha=.1:"closed"===e.status?n.globalAlpha=.35:n.globalAlpha=.85,n.fillStyle=z(e);let a="epic"===e.issueType?3:2;o?a=5:g&&s&&(a=4),o&&(n.globalAlpha=.4,n.fillStyle="#10b981",n.beginPath(),n.arc(t,i,a+2,0,2*Math.PI),n.fill(),n.globalAlpha=1,n.fillStyle=z(e)),n.fillRect(t-a/2,i-a/2,a,a)}n.globalAlpha=1;let b=ey.current;if(b.size>0)for(let e of eM){if(null==e.x||null==e.y)continue;let t=b.get(e.id);if(!t)continue;let i=p+(e.x-r)*h,o=f+(e.y-l)*h;if(n.save(),n.globalAlpha=1,t.avatar){let e=A(t.avatar,()=>ew.current());e?(n.save(),n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.clip(),n.drawImage(e,i-5,o-5,10,10),n.restore()):(n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill())}else n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill();n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.strokeStyle="#ffffff",n.lineWidth=1,n.stroke(),n.restore()}try{let e=t.screen2GraphCoords(0,0),i=t.screen2GraphCoords(ee.width,ee.height),o=p+(e.x-r)*h,s=f+(e.y-l)*h,a=(i.x-e.x)*h,c=(i.y-e.y)*h,u=Math.max(0,o),d=Math.max(0,s),m=Math.min(el-u,a-(u-o)),x=Math.min(eo-d,c-(d-s));m>0&&x>0&&(n.fillStyle="rgba(16, 185, 129, 0.06)",n.fillRect(u,d,m,x),n.strokeStyle="rgba(16, 185, 129, 0.5)",n.lineWidth=1.5,n.strokeRect(u,d,m,x))}catch{}},[eM,eL,ee,el,eo,8]);Q.current=eB;let e_=(0,o.useCallback)(()=>{cancelAnimationFrame(Z.current),Z.current=requestAnimationFrame(()=>{eB()})},[eB]);(0,o.useEffect)(()=>{if(!ea||0===e.length)return;let t=setInterval(()=>{eB()},200);return()=>clearInterval(t)},[ea,e.length,eB]),(0,o.useEffect)(()=>{let e;let t=!0;return function n(){if(!t)return;let r=Date.now();(eM.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400||!!e._changedAt&&r-e._changedAt<800)||eL.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400))&&E(X),e=requestAnimationFrame(n)}(),()=>{t=!1,cancelAnimationFrame(e)}},[eM,eL]);let eU=(0,o.useCallback)(e=>{let t=X.current;if(!t)return;let n=e.currentTarget.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,l=1/0,o=-1/0,s=1/0,a=-1/0;for(let e of eM)null!=e.x&&null!=e.y&&(e.x<l&&(l=e.x),e.x>o&&(o=e.x),e.y<s&&(s=e.y),e.y>a&&(a=e.y));let c=(o+=40)-(l-=40)||1,u=(a+=40)-(s-=40)||1,d=el-16,h=eo-16,p=Math.min(d/c,h/u),f=l+(r-(8+(d-c*p)/2))/p,m=s+(i-(8+(h-u*p)/2))/p;t.centerAt(f,m,300)},[eM,el,eo,8]);return(0,l.jsxs)("div",{ref:J,className:"w-full h-full relative","data-tutorial":"graph",children:[(0,l.jsxs)("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-10 flex flex-col gap-1.5 sm:gap-2",children:[W&&G&&(0,l.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs font-medium bg-emerald-50/90 backdrop-blur-sm rounded-lg border border-emerald-200 shadow-sm text-emerald-700",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-emerald-500 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 3.75H6A2.25 2.25 0 003.75 6v1.5M16.5 3.75H18A2.25 2.25 0 0120.25 6v1.5M16.5 20.25H18A2.25 2.25 0 0020.25 18v-1.5M7.5 20.25H6A2.25 2.25 0 013.75 18v-1.5"})}),(0,l.jsxs)("span",{className:"truncate max-w-[180px]",children:["Focused: ",l.jsx("span",{className:"font-semibold",children:e.find(e=>e.id===W)?.title||W})]}),l.jsx("button",{onClick:G,className:"ml-auto p-0.5 rounded hover:bg-emerald-200/50 transition-colors flex-shrink-0",title:"Show full graph",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex items-start gap-1.5 sm:gap-2",children:(0,l.jsxs)("div",{className:"flex bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm overflow-hidden","data-tutorial":"layouts",children:[l.jsx("button",{onClick:()=>ed("force"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"force"===eu?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"4",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"3",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13",cy:"11",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"4",y1:"4",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"3",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"3",y1:"12",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"13",y1:"11",x2:"8",y2:"8",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Force"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ed("dag"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"dag"===eu?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"2.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"4",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"2",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"6",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"8",y1:"4",x2:"4",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"8",y1:"4",x2:"12",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"2",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"6",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"9.5",x2:"12",y2:"12",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"DAG"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ed("radial"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"radial"===eu?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"2",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"5",fill:"none",strokeOpacity:"0.5"}),l.jsx("circle",{cx:"8",cy:"8",r:"7.5",fill:"none",strokeOpacity:"0.3"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Radial"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ed("cluster"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"cluster"===eu?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"3.5",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"6",cy:"6",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"7",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"11",cy:"10",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13.5",cy:"11.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"11",cy:"13",r:"1.5",fill:"currentColor",stroke:"none"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Cluster"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>ed("spread"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"spread"===eu?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"2",cy:"2",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"14",cy:"3",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"14",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13",cy:"13",r:"1.5",fill:"currentColor",stroke:"none"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Spread"})]})})]})}),(0,l.jsxs)("div",{className:"flex items-start gap-1.5 sm:gap-2","data-tutorial":"view-controls",children:[(q||R)&&l.jsx("button",{onClick:F&&F.size>0?R:q,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50 transition-colors",children:F&&F.size>0?(0,l.jsxs)(l.Fragment,{children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),l.jsx("span",{className:"hidden sm:inline",children:"Expand all"})]}):(0,l.jsxs)(l.Fragment,{children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})}),l.jsx("span",{className:"hidden sm:inline",children:"Collapse all"})]})}),(0,l.jsxs)("button",{onClick:()=>ep(e=>!e),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium backdrop-blur-sm rounded-lg border shadow-sm transition-colors ${eh?"bg-emerald-500 text-white border-emerald-500":"bg-white/90 text-zinc-500 border-zinc-200 hover:text-zinc-700 hover:bg-zinc-50"}`,title:eh?"Hide cluster labels":"Show cluster labels",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6",strokeDasharray:"2.5 2",strokeOpacity:eh?1:.5}),l.jsx("line",{x1:"5",y1:"8",x2:"11",y2:"8",strokeOpacity:eh?1:.4}),l.jsx("line",{x1:"6",y1:"10",x2:"10",y2:"10",strokeOpacity:eh?.6:.25,strokeWidth:"1"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Clusters"})]}),(0,l.jsxs)("button",{onClick:()=>U?.(),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium backdrop-blur-sm rounded-lg border shadow-sm transition-colors ${_?"bg-emerald-500 text-white border-emerald-500":"bg-white/90 text-zinc-500 border-zinc-200 hover:text-zinc-700 hover:bg-zinc-50"}`,title:_?"Auto-fit enabled: camera adjusts after updates":"Auto-fit disabled: camera stays fixed",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:[l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 3.75H6A2.25 2.25 0 003.75 6v1.5M16.5 3.75H18A2.25 2.25 0 0120.25 6v1.5M20.25 16.5V18A2.25 2.25 0 0118 20.25h-1.5M3.75 16.5V18A2.25 2.25 0 006 20.25h1.5"}),l.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Auto-fit"})]}),(0,l.jsxs)("button",{onClick:()=>V?.(),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium backdrop-blur-sm rounded-lg border shadow-sm transition-colors ${$?"bg-emerald-500 text-white border-emerald-500":"bg-white/90 text-zinc-500 border-zinc-200 hover:text-zinc-700 hover:bg-zinc-50"}`,title:$?"Pulse enabled: ripple highlights most recent activity":"Pulse disabled: no activity highlight",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:[l.jsx("circle",{cx:"12",cy:"12",r:"3"}),l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.07 4.93A10 10 0 014.93 19.07M4.93 4.93a10 10 0 0114.14 14.14",strokeOpacity:"0.5"}),l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.24 7.76a6 6 0 01.01 8.49M7.76 7.76a6 6 0 000 8.49",strokeOpacity:"0.7"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Pulse"})]})]})]}),!w&&(0,l.jsxs)("div",{className:"absolute bottom-4 z-10 bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 text-xs text-zinc-400 transition-[right] duration-300 ease-out","data-tutorial":"legend",style:{right:P?"calc(360px + 1rem)":"1rem",maxWidth:320},children:[L&&(0,l.jsxs)("div",{className:"text-zinc-500 mb-1.5",children:[l.jsx("strong",{className:"text-zinc-700",children:L.total})," issues"," \xb7 ",l.jsx("strong",{className:"text-zinc-700",children:L.edges})," deps"," \xb7 ",l.jsx("strong",{className:"text-emerald-600",children:L.prefixes.length}),1===L.prefixes.length?" project":" projects"]}),l.jsx("div",{className:"hidden sm:flex bg-zinc-100 rounded-md overflow-hidden mb-1.5",children:["status","priority","owner","assignee","prefix"].map(e=>l.jsx("button",{onClick:()=>B?.(e),className:`flex-1 px-2 py-1 text-[10px] font-medium transition-colors ${O===e?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-200/60"}`,children:s[e]},e))}),l.jsx("div",{className:"hidden sm:flex flex-wrap gap-x-3 gap-y-1 mb-1.5",children:"status"===O?l.jsx(l.Fragment,{children:["open","in_progress","blocked","deferred","closed"].map(e=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:a[e]}}),l.jsx("span",{className:"text-zinc-500",children:c[e]})]},e))}):"priority"===O?l.jsx(l.Fragment,{children:[0,1,2,3,4].map(e=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:d[e]}}),l.jsx("span",{className:"text-zinc-500",children:u[e]})]},e))}):l.jsx(l.Fragment,{children:eA.map(({label:e,color:t})=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:t}}),l.jsx("span",{className:"text-zinc-500 truncate max-w-[80px]",children:e})]},e))})}),l.jsx("div",{className:"hidden sm:flex flex-col gap-0.5 text-zinc-400",children:(0,l.jsxs)("span",{children:["Size = importance \xb7 Ring = project","status"!==O&&` \xb7 Fill = ${s[O].toLowerCase()}`]})}),l.jsx("span",{className:"sm:hidden",children:"Tap a node for details"})]}),(0,l.jsxs)("div",{className:"hidden sm:block absolute bottom-4 left-4 z-10","data-tutorial":"minimap",style:{width:el,height:eo},children:[l.jsx("canvas",{ref:K,width:el,height:eo,onClick:eU,className:"rounded-lg border border-zinc-200 shadow-sm cursor-crosshair",style:{width:el,height:eo}}),l.jsx("div",{className:"absolute top-0 left-2 right-2 h-1.5 cursor-n-resize hover:bg-zinc-300/40 rounded-t-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),es.current={edge:"top",startX:e.clientX,startY:e.clientY,startW:el,startH:eo};let t=e=>{if(!es.current)return;let t=es.current.startY-e.clientY,n=Math.max(80,Math.min(400,es.current.startH+t));ei(e=>({...e,h:n}))},n=()=>{es.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-2 right-0 bottom-2 w-1.5 cursor-e-resize hover:bg-zinc-300/40 rounded-r-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),es.current={edge:"right",startX:e.clientX,startY:e.clientY,startW:el,startH:eo};let t=e=>{if(!es.current)return;let t=e.clientX-es.current.startX,n=Math.max(100,Math.min(500,es.current.startW+t));ei(e=>({...e,w:n}))},n=()=>{es.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 cursor-ne-resize hover:bg-zinc-300/40 rounded-tr-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),es.current={edge:"top-right",startX:e.clientX,startY:e.clientY,startW:el,startH:eo};let t=e=>{if(!es.current)return;let t=e.clientX-es.current.startX,n=es.current.startY-e.clientY;ei({w:Math.max(100,Math.min(500,es.current.startW+t)),h:Math.max(80,Math.min(400,es.current.startH+n))})},n=()=>{es.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}})]}),ea?l.jsx(ea,{ref:X,graphData:eP,width:ee.width,height:ee.height,nodeCanvasObject:eI,nodeCanvasObjectMode:()=>"replace",nodePointerAreaPaint:eR,onRenderFramePost:eq,linkCanvasObject:eF,linkCanvasObjectMode:()=>"replace",linkDirectionalParticles:e=>"parent-child"===e.type?0:2,linkDirectionalParticleSpeed:.004,linkDirectionalParticleWidth:2.5,linkDirectionalParticleColor:()=>"#10b981",dagMode:"dag"===eu?"td":void 0,dagLevelDistance:60,onDagError:eO,d3AlphaDecay:.02,d3VelocityDecay:.3,cooldownTicks:300,warmupTicks:50,onNodeClick:e=>h(e),onNodeHover:e=>p(e||null,eC.current.x,eC.current.y),onNodeRightClick:(e,t)=>{t.preventDefault(),g?.(e,t)},onBackgroundClick:x,onZoom:e_,backgroundColor:"transparent",autoPauseRedraw:!($&&H)}):l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("div",{className:"text-zinc-400 text-sm animate-pulse-soft",children:"Loading graph engine..."})})]})});function I(e,t){return e.length<=t?e:e.slice(0,t-1)+"…"}let F=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R={};function O(e,t){return((t||R).jsx?q:F).test(e)}let B=/[ \t\n\f\r]/g;function _(e){return""===e.replace(B,"")}class U{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function H(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new U(n,r,t)}function $(e){return e.toLowerCase()}U.prototype.normal={},U.prototype.property={},U.prototype.space=void 0;class V{constructor(e,t){this.attribute=t,this.property=e}}V.prototype.attribute="",V.prototype.booleanish=!1,V.prototype.boolean=!1,V.prototype.commaOrSpaceSeparated=!1,V.prototype.commaSeparated=!1,V.prototype.defined=!1,V.prototype.mustUseProperty=!1,V.prototype.number=!1,V.prototype.overloadedBoolean=!1,V.prototype.property="",V.prototype.spaceSeparated=!1,V.prototype.space=void 0;let W=0,G=ee(),Y=ee(),X=ee(),J=ee(),K=ee(),Z=ee(),Q=ee();function ee(){return 2**++W}let et=Object.keys(r);class en extends V{constructor(e,t,n,i){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++l<et.length;){let e=et[l];(function(e,t,n){n&&(e[t]=n)})(this,et[l],(n&r[e])===r[e])}}}function er(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new en(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[$(r)]=r,n[$(l.attribute)]=r}return new U(t,n,e.space)}en.prototype.defined=!0;let ei=er({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:K,ariaCurrent:null,ariaDescribedBy:K,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:K,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:K,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:K,ariaLevel:J,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:K,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:K,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Y,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function el(e,t){return t in e?e[t]:t}function eo(e,t){return el(e,t.toLowerCase())}let es=er({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Z,acceptCharset:K,accessKey:K,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:K,autoFocus:G,autoPlay:G,blocking:K,capture:null,charSet:null,checked:G,cite:null,className:K,cols:J,colSpan:null,content:null,contentEditable:Y,controls:G,controlsList:K,coords:J|Z,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:X,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:K,height:J,hidden:X,high:J,href:null,hrefLang:null,htmlFor:K,httpEquiv:K,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:K,itemRef:K,itemScope:G,itemType:K,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:G,optimum:J,pattern:null,ping:K,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:K,required:G,reversed:G,rows:J,rowSpan:J,sandbox:K,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:Y,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:K,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:G,disableRemotePlayback:G,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:eo}),ea=er({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Q,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:K,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Z,g2:Z,glyphName:Z,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Q,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:K,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Q,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Q,rev:Q,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Q,requiredFeatures:Q,requiredFonts:Q,requiredFormats:Q,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Q,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Q,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Q,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:el}),ec=er({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),eu=er({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eo}),ed=er({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),eh=H([ei,es,ec,eu,ed],"html"),ep=H([ei,ea,ec,eu,ed],"svg"),ef=/[A-Z]/g,em=/-[a-z]/g,ex=/^data[-\w.:]+$/i;function eg(e){return"-"+e.toLowerCase()}function ey(e){return e.charAt(1).toUpperCase()}let eb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ev=n(63767);let ek=ej("end"),ew=ej("start");function ej(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function eN(e){return e&&"object"==typeof e?"position"in e||"type"in e?eS(e.position):"start"in e||"end"in e?eS(e):"line"in e||"column"in e?eC(e):"":""}function eC(e){return ez(e&&e.line)+":"+ez(e&&e.column)}function eS(e){return eC(e&&e.start)+"-"+eC(e&&e.end)}function ez(e){return e&&"number"==typeof e?e:1}class eM extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=eN(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}eM.prototype.file="",eM.prototype.name="",eM.prototype.reason="",eM.prototype.message="",eM.prototype.stack="",eM.prototype.column=void 0,eM.prototype.line=void 0,eM.prototype.ancestors=void 0,eM.prototype.cause=void 0,eM.prototype.fatal=void 0,eM.prototype.place=void 0,eM.prototype.ruleId=void 0,eM.prototype.source=void 0;let eL={}.hasOwnProperty,eA=new Map,eD=/[A-Z]/g,eT=new Set(["table","tbody","thead","tfoot","tr"]),eE=new Set(["td","th"]),eP="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eI(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=ep,e.schema=i),e.ancestors.push(t);let l=eO(e,t.tagName,!1),o=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&eL.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=$(t),r=t,i=V;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ex.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(em,ey);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!em.test(e)){let n=e.replace(ef,eg);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=en}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return ev(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new eM("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=eP+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)eL.call(e,t)&&(n[function(e){let t=e.replace(eD,e_);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?eb[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&eE.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),s=eR(e,t);return eT.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&_(e.value):_(e))})),eF(e,o,l,t),eq(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eB(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=ep,e.schema=i),e.ancestors.push(t);let l=null===t.name?e.Fragment:eO(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eB(e,t.position)}else{let i;let l=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eB(e,t.position)}else i=null===r.value||r.value;n[l]=i}return n}(e,t),s=eR(e,t);return eF(e,o,l,t),eq(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eB(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return eq(r,eR(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eF(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eq(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function eR(e,t){let n=[],r=-1,i=e.passKeys?new Map:eA;for(;++r<t.children.length;){let l;let o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let s=eI(e,o,l);void 0!==s&&n.push(s)}return n}function eO(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=O(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=O(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return eL.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eB(e)}function eB(e,t){let n=new eM("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=eP+"#cannot-handle-mdx-estrees-without-createevaluater",n}function e_(e){return"-"+e.toLowerCase()}let eU={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},eH={};function e$(e,t){let n=t||eH;return eV(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eV(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eW(e.children,t,n)}return Array.isArray(e)?eW(e,t,n):""}function eW(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eV(e[i],t,n);return r.join("")}function eG(e,t,n,r){let i;let l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function eY(e,t){return e.length>0?(eG(e,e.length,0,t),e):t}class eX{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&eJ(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),eJ(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eJ(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);eJ(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);eJ(this.left,t.reverse())}}}}function eJ(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eK(e){let t,n,r,i,l,o,s;let a={},c=-1,u=new eX(e);for(;++c<u.length;){for(;(c in a);)c=a[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(a,function(e,t){let n,r;let i=e.get(t)[1],l=e.get(t)[2],o=t-1,s=[],a=i._tokenizer;!a&&(a=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let c=a.events,u=[],d={},h=-1,p=i,f=0,m=0,x=[0];for(;p;){for(;e.get(++o)[1]!==p;);s.push(o),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(n),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++h<c.length;)"exit"===c[h][0]&&"enter"===c[h-1][0]&&c[h][1].type===c[h-1][1].type&&c[h][1].start.line!==c[h][1].end.line&&(m=h+1,x.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),h=x.length;h--;){let t=c.slice(x[h],x[h+1]),n=s.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),h=-1;++h<u.length;)d[f+u[h][0]]=f+u[h][1],f+=u[h][1]-u[h][0]-1;return d}(u,c)),c=a[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(l=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,l))}}return eG(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}let eZ={}.hasOwnProperty;function eQ(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(eZ.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){eZ.call(i,r)||(i[r]=[]);let e=l[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eG(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}let e0=tn(/[A-Za-z]/),e1=tn(/[\dA-Za-z]/),e5=tn(/[#-'*+\--9=?A-Z^-~]/);function e2(e){return null!==e&&(e<32||127===e)}let e4=tn(/\d/),e3=tn(/[\dA-Fa-f]/),e6=tn(/[!-/:-@[-`{-~]/);function e8(e){return null!==e&&e<-2}function e7(e){return null!==e&&(e<0||32===e)}function e9(e){return -2===e||-1===e||32===e}let te=tn(/\p{P}|\p{S}/u),tt=tn(/\s/);function tn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function tr(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,l=0;return function(r){return e9(r)?(e.enter(n),function r(o){return e9(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let ti={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tr(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return e8(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},tl={tokenize:function(e){let t,n,r;let i=this,l=[],o=0;return s;function s(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,a,c)(t)}return c(t)}function a(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&g();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}x(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return eG(i.events,l+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(o===l.length){if(!t)return h(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(to,u,d)(n)}function u(e){return t&&g(),x(o),h(e)}function d(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,f(e)}function h(t){return i.containerState={},e.attempt(to,p,f)(t)}function p(e){return o++,l.push([i.currentConstruct,i.containerState]),h(e)}function f(r){if(null===r){t&&g(),x(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),x(0),e.consume(n);return}return e8(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,l){let s=i.sliceStream(e);if(l&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let s=i.events.length,a=s;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){if(e){n=i.events[a][1].end;break}e=!0}for(x(o),l=s;l<i.events.length;)i.events[l][1].end={...n},l++;eG(i.events,a+1,0,i.events.slice(s)),i.events.length=l}}function x(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function g(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},to={tokenize:function(e,t,n){return tr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ts={partial:!0,tokenize:function(e,t,n){return function(t){return e9(t)?tr(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||e8(e)?t(e):n(e)}}},ta={resolve:function(e){return eK(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):e8(t)?e.check(tc,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tc={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tr(e,i,"linePrefix")};function i(i){if(null===i||e8(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},tu={tokenize:function(e){let t=this,n=e.attempt(ts,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,tr(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ta,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},td={resolveAll:tm()},th=tf("string"),tp=tf("text");function tf(e){return{resolveAll:tm("text"===e?tx:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return a(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return a(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function a(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function tm(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function tx(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],l=t.sliceStream(i),o=l.length,s=-1,a=0;for(;o--;){let e=l[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)a++,s--;if(s)break;s=-1}else if(-2===e)r=!0,a++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){let l={type:n===e.length||r||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}let tg={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){return e.enter("thematicBreak"),r=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),e9(n)?tr(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||e8(o))?(e.exit("thematicBreak"),t(o)):n(o)}(l)}}},ty={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ts,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,tr(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!e9(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tv,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,tr(e,e.attempt(ty,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:e4(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tg,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return e4(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ts,r.interrupt?n:a,e.attempt(tb,u,c))}function a(e){return r.containerState.initialBlankLine=!0,l++,u(e)}function c(t){return e9(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tb={partial:!0,tokenize:function(e,t,n){let r=this;return tr(e,function(e){let i=r.events[r.events.length-1];return!e9(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tv={partial:!0,tokenize:function(e,t,n){let r=this;return tr(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tk={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return e9(t)?tr(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tk,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return e9(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function tw(e,t,n,r,i,l,o,s,a){let c=a||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||e2(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||e8(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!u&&(null===i||41===i||e7(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||e2(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function tj(e,t,n,r,i,l){let o;let s=this,a=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),c};function c(d){return a>999||null===d||91===d||93===d&&!o||94===d&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):e8(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||e8(t)||a++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!e9(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function tN(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),a(n))}function a(t){return t===o?(e.exit(l),s(o)):null===t?n(t):e8(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tr(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||e8(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function tC(e,t){let n;return function r(i){return e8(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):e9(i)?tr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tS(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tz={partial:!0,tokenize:function(e,t,n){return function(t){return e7(t)?tC(e,r)(t):n(t)};function r(t){return tN(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return e9(t)?tr(e,l,"whitespace")(t):l(t)}function l(e){return null===e||e8(e)?t(e):n(e)}}},tM={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),tr(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):e8(n)?e.attempt(tL,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||e8(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},tL={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):e8(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):tr(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):e8(e)?i(e):n(e)}}},tA={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),e9(n)?tr(e,l,"lineSuffix")(n):l(n))}(t)):n(t)};function l(r){return null===r||e8(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},tD=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tT=["pre","script","style","textarea"],tE={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ts,t,n)}}},tP={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e8(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tI={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tF={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),e9(t)?tr(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=s?(e.exit("codeFencedFenceSequence"),e9(i)?tr(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||e8(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){return function(t){let l=i.events[i.events.length-1];return o=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),e9(i)?tr(e,a,"whitespace")(i):a(i))}(t)}(t)};function a(l){return null===l||e8(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tI,u,f)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e8(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(i)):e9(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),tr(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function c(t){return null===t||e8(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e8(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(l,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return o>0&&e9(t)?tr(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||e8(t)?e.check(tI,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||e8(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},tq={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"⁡",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"⁣",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},tR={}.hasOwnProperty;function tO(e){return!!tR.call(tq,e)&&tq[e]}let tB={name:"characterReference",tokenize:function(e,t,n){let r,i;let l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),r=31,i=e1,c(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=e3,c):(e.enter("characterReferenceValue"),r=7,i=e4,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==e1||tO(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),c):n(s)}}},t_={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return e6(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tU={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),tr(e,t,"linePrefix")}}};function tH(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let t$={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eG(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let a={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return l=eY(l=[["enter",a,t],["enter",c,t]],e.slice(r+1,r+s+3)),l=eY(l,[["enter",u,t]]),l=eY(l,tH(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),l=eY(l,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),l=eY(l,e.slice(i+1)),l=eY(l,[["exit",a,t]]),eG(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i;let l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=l.parser.defined.includes(tS(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(tV,c,i?c:u)(t):91===t?e.attempt(tW,c,i?a:u)(t):i?c(t):u(t)}function a(t){return e.attempt(tG,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},tV={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return e7(t)?tC(e,i)(t):i(t)}function i(t){return 41===t?c(t):tw(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return e7(t)?tC(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?tN(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function a(t){return e7(t)?tC(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tW={tokenize:function(e,t,n){let r=this;return function(t){return tj.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},tG={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tY={name:"labelStartImage",resolveAll:t$.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tX(e){return null===e||e7(e)||tt(e)?1:te(e)?2:void 0}let tJ={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,s,a,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[u][1].start};tK(d,-s),tK(h,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:h},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[u][1].start={...o.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=eY(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=eY(a,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),a=eY(a,tH(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),a=eY(a,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,a=eY(a,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,eG(e,n-1,u-n+3,a),u=n+a.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=tX(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let a=e.exit("attentionSequence"),c=tX(s),u=!c||2===c&&l||r.includes(s),d=!l||2===l&&c||r.includes(i);return a._open=!!(42===n?u:u&&(l||!d)),a._close=!!(42===n?d:d&&(c||!u)),t(s)}(o)}}};function tK(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tZ={name:"labelStartLink",resolveAll:t$.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tQ={42:ty,43:ty,45:ty,48:ty,49:ty,50:ty,51:ty,52:ty,53:ty,54:ty,55:ty,56:ty,57:ty,62:tk},t0={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),tj.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function l(t){return(r=tS(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return e7(t)?tC(e,s)(t):s(t)}function s(t){return tw(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(tz,c,c)(t)}function c(t){return e9(t)?tr(e,u,"whitespace")(t):u(t)}function u(l){return null===l||e8(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},t1={[-2]:tM,[-1]:tM,32:tM},t5={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eG(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||e7(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||e8(r)?(e.exit("atxHeading"),t(r)):e9(r)?tr(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||e7(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(i)}}},42:tg,45:[tA,tg],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,s;let a=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,a.interrupt?t:T):e0(o)?(e.consume(o),l=String.fromCharCode(o),f):n(o)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,h):e0(i)?(e.consume(i),r=4,a.interrupt?t:T):n(i)}function d(r){return 45===r?(e.consume(r),a.interrupt?t:T):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?a.interrupt?t:N:h:n(r)}function p(t){return e0(t)?(e.consume(t),l=String.fromCharCode(t),f):n(t)}function f(o){if(null===o||47===o||62===o||e7(o)){let s=47===o,c=l.toLowerCase();return!s&&!i&&tT.includes(c)?(r=1,a.interrupt?t(o):N(o)):tD.includes(l.toLowerCase())?(r=6,s)?(e.consume(o),m):a.interrupt?t(o):N(o):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(o):i?function t(n){return e9(n)?(e.consume(n),t):w(n)}(o):x(o))}return 45===o||e1(o)?(e.consume(o),l+=String.fromCharCode(o),f):n(o)}function m(r){return 62===r?(e.consume(r),a.interrupt?t:N):n(r)}function x(t){return 47===t?(e.consume(t),w):58===t||95===t||e0(t)?(e.consume(t),g):e9(t)?(e.consume(t),x):w(t)}function g(t){return 45===t||46===t||58===t||95===t||e1(t)?(e.consume(t),g):y(t)}function y(t){return 61===t?(e.consume(t),b):e9(t)?(e.consume(t),y):x(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,v):e9(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||e7(n)?y(n):(e.consume(n),t)}(t)}function v(t){return t===s?(e.consume(t),s=null,k):null===t||e8(t)?n(t):(e.consume(t),v)}function k(e){return 47===e||62===e||e9(e)?x(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||e8(t)?N(t):e9(t)?(e.consume(t),j):n(t)}function N(t){return 45===t&&2===r?(e.consume(t),M):60===t&&1===r?(e.consume(t),L):62===t&&4===r?(e.consume(t),E):63===t&&3===r?(e.consume(t),T):93===t&&5===r?(e.consume(t),D):e8(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tE,P,C)(t)):null===t||e8(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),N)}function C(t){return e.check(tP,S,P)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||e8(t)?C(t):(e.enter("htmlFlowData"),N(t))}function M(t){return 45===t?(e.consume(t),T):N(t)}function L(t){return 47===t?(e.consume(t),l="",A):N(t)}function A(t){if(62===t){let n=l.toLowerCase();return tT.includes(n)?(e.consume(t),E):N(t)}return e0(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),A):N(t)}function D(t){return 93===t?(e.consume(t),T):N(t)}function T(t){return 62===t?(e.consume(t),E):45===t&&2===r?(e.consume(t),T):N(t)}function E(t){return null===t||e8(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),E)}function P(n){return e.exit("htmlFlow"),t(n)}}},61:tA,95:tg,96:tF,126:tF},t2={38:tB,92:t_},t4={[-5]:tU,[-4]:tU,[-3]:tU,33:tY,38:tB,42:tJ,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return e0(t)?(e.consume(t),l):64===t?n(t):s(t)}function l(t){return 43===t||45===t||46===t||e1(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||e1(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||e2(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),a):e5(t)?(e.consume(t),s):n(t)}function a(i){return e1(i)?function i(l){return 46===l?(e.consume(l),r=0,a):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||e1(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),v):63===t?(e.consume(t),y):e0(t)?(e.consume(t),w):n(t)}function a(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):e0(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):e8(t)?(l=u,A(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?L(e):45===e?d(e):u(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):e8(t)?(l=f,A(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),x):f(t)}function x(t){return 62===t?L(t):93===t?(e.consume(t),x):f(t)}function g(t){return null===t||62===t?L(t):e8(t)?(l=g,A(t)):(e.consume(t),g)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):e8(t)?(l=y,A(t)):(e.consume(t),y)}function b(e){return 62===e?L(e):y(e)}function v(t){return e0(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||e1(t)?(e.consume(t),k):function t(n){return e8(n)?(l=t,A(n)):e9(n)?(e.consume(n),t):L(n)}(t)}function w(t){return 45===t||e1(t)?(e.consume(t),w):47===t||62===t||e7(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),L):58===t||95===t||e0(t)?(e.consume(t),N):e8(t)?(l=j,A(t)):e9(t)?(e.consume(t),j):L(t)}function N(t){return 45===t||46===t||58===t||95===t||e1(t)?(e.consume(t),N):function t(n){return 61===n?(e.consume(n),C):e8(n)?(l=t,A(n)):e9(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):e8(t)?(l=C,A(t)):e9(t)?(e.consume(t),C):(e.consume(t),z)}function S(t){return t===r?(e.consume(t),r=void 0,M):null===t?n(t):e8(t)?(l=S,A(t)):(e.consume(t),S)}function z(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||e7(t)?j(t):(e.consume(t),z)}function M(e){return 47===e||62===e||e7(e)?j(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return e9(t)?tr(e,T,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):T(t)}function T(t){return e.enter("htmlTextData"),l(t)}}}],91:tZ,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return e8(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},t_],93:t$,95:tJ,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(a){return null===a?n(a):32===a?(e.enter("space"),e.consume(a),e.exit("space"),o):96===a?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(a)):e8(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(a))}function s(t){return null===t||32===t||96===t||e8(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},t3={null:[tJ,td]},t6={null:[42,95]},t8={null:[]},t7=/[\0\t\n\r]/g;function t9(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ne=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nt(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return t9(n.slice(t?2:1),t?16:10)}return tO(n)||e}let nn={}.hasOwnProperty;function nr(e){return{line:e.line,column:e.column,offset:e.offset}}function ni(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+eN({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eN({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+eN({start:t.start,end:t.end})+") is still open")}function nl(e){let t=this;t.parser=function(n){var r,l;let o,s,a,c;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(g),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(x,i),htmlFlowData:c,htmlText:r(x,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(g),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=t9(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tO(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=nr(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tS(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ne,nt),n.identifier=tS(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=nr(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tS(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(nn.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:l,exit:s,buffer:i,resume:a,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,l,o,s=t-1,a=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||a||l||(l=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,l=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];nn.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||ni).call(o,void 0,e[0])}for(r.position={start:nr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:nr(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ni).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+eN({start:e.start,end:e.end})+"): it’s not open");n.position.end=nr(e.end)}function a(){return e$(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:nr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nr(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function x(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!eK(e););return e}((function(e){let t={constructs:eQ([i,...(e||{}).extensions||[]]),content:n(ti),defined:[],document:n(tl),flow:n(tu),lazy:{},string:n(th),text:n(tp)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],s=[],a={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){e8(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:f(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,x()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l;let o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=eY(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(m(t,0),c.events=tH(l,c.events,c),c.events)}},u=t.tokenize.call(c,a);return t.resolveAll&&l.push(t),c;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function f(e,t){return function(n,i,l){let o,u,d,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function f(e){return(o=e,u=0,0===e.length)?l:m(e[u])}function m(e){return function(n){return(p=function(){let e=h(),t=c.previous,n=c.currentConstruct,i=c.events.length,l=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=l,x()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,a,g,y)(n)}}function g(t){return e(d,p),i}function y(e){return(p.restore(),++u<o.length)?m(o[u]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&eG(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(l).document().write((s=1,a="",c=!0,function(e,t,n){let r,i,l,u,d;let h=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),l=0,a="",c&&(65279===e.charCodeAt(0)&&l++,c=void 0);l<e.length;){if(t7.lastIndex=l,u=(r=t7.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){a=e.slice(l);break}if(10===d&&l===u&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),l<u&&(h.push(e.slice(l,u)),s+=u-l),d){case 0:h.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),h.push(-2);s++<i;)h.push(-1);break;case 10:h.push(-4),s=1;break;default:o=!0,s=1}l=u+1}return n&&(o&&h.push(-5),a&&h.push(a),h.push(null)),h})(n,r,!0))))}}let no="object"==typeof self?self:globalThis,ns=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[l,o]=t[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new no[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new no[l](o),i)};return r},na=e=>ns(new Map,e)(0),{toString:nc}={},{keys:nu}=Object,nd=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=nc.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},nh=([e,t])=>0===e&&("function"===t||"symbol"===t),np=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},l=r=>{if(n.has(r))return n.get(r);let[o,s]=nd(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(l(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return l(r.toJSON());let n=[],a=i([o,n],r);for(let t of nu(r))(e||!nh(nd(r[t])))&&n.push([l(t),l(r[t])]);return a}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(nh(nd(n))||nh(nd(i))))&&t.push([l(n),l(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!nh(nd(n)))&&t.push(l(n));return n}}let{message:a}=r;return i([o,{name:s,message:a}],r)};return l},nf=(e,{json:t,lossy:n}={})=>{let r=[];return np(!(t||n),!!t,new Map,r)(e),r},nm="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?na(nf(e,t)):structuredClone(e):(e,t)=>na(nf(e,t));function nx(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&e1(e.charCodeAt(n+1))&&e1(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ng(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ny(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let nb=function(e){if(null==e)return nk;if("function"==typeof e)return nv(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nb(e[n]);return nv(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):nv(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return nv(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function nv(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function nk(){return!0}let nw=[];function nj(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=nb(i),o=r?-1:1;(function e(i,s,a){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node (\x1b[33m"+i.type+(e?"<"+e+">":"")+"\x1b[39m)"})}return u;function u(){var c;let u,d,h,p=nw;if((!t||l(i,s,a[a.length-1]||void 0))&&!1===(p=Array.isArray(c=n(i,a))?c:"number"==typeof c?[!0,c]:null==c?nw:[c])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+o,h=a.concat(i);d>-1&&d<i.children.length;){if(!1===(u=e(i.children[d],d,h)())[0])return u;d="number"==typeof u[1]?u[1]:d+o}return p}})(e,void 0,[])()}function nN(e,t,n,r){let i,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,i=n):(l=t,o=n,i=r),nj(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function nC(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function nS(e){let t=e.spread;return null==t?e.children.length>1:t}function nz(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let nM={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=nx(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let a={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let c={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nC(e,t);let i={src:nx(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:nx(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nC(e,t);let i={href:nx(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:nx(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=nS(n[r])}return t}(n):nS(t),l={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let a=r[r.length-1];a&&(i||"element"!==a.type||"p"!==a.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=ew(t.children[1]),o=ek(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,s=-1,a=[];for(;++s<o;){let n=t.children[s],r={},o=l?l[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),a.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(nz(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(nz(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nL,yaml:nL,definition:nL,footnoteDefinition:nL};function nL(){}let nA={}.hasOwnProperty,nD={};function nT(e,t){e.position&&(t.position=function(e){let t=ew(e),n=ek(e);if(t&&n)return{start:t,end:n}}(e))}function nE(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,nm(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nP(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nI(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nF(e,t){let n=function(e,t){let n=t||nD,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nI(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nI(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nE,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nM,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(nA.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=nm(n);return r.children=l.all(e),r}return nm(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nA.call(n,"hProperties")||nA.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:nT,wrap:nP};return nN(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ng,r=e.options.footnoteBackLabel||ny,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],a=-1;for(;++a<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[a]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),c=nx(o.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(o);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(l,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...nm(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:"\n"},i),l}function nq(e,t){return e&&"run"in e?async function(n,r){let i=nF(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nF(n,{file:r,...e||t})}}function nR(e){if(e)throw e}var nO=n(75609);function nB(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let n_=require("node:path"),nU=require("node:process");function nH(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}var n$=n(41041);let nV=["history","path","basename","stem","extname","dirname"];class nW{constructor(e){let t,n;t=e?nH(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nV.length;){let e=nV[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nV.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?n_.basename(this.path):void 0}set basename(e){nY(e,"basename"),nG(e,"basename"),this.path=n_.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?n_.dirname(this.path):void 0}set dirname(e){nX(this.basename,"dirname"),this.path=n_.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?n_.extname(this.path):void 0}set extname(e){if(nG(e,"extname"),nX(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=n_.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nH(e)&&(e=(0,n$.fileURLToPath)(e)),nY(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?n_.basename(this.path,this.extname):void 0}set stem(e){nY(e,"stem"),nG(e,"stem"),this.path=n_.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new eM(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nG(e,t){if(e&&e.includes(n_.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+n_.sep+"`")}function nY(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nX(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nJ=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nK={}.hasOwnProperty;class nZ extends nJ{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(l,...o){let s=e[++n],a=-1;if(l){r(l);return}for(;++a<t.length;)(null===o[a]||void 0===o[a])&&(o[a]=t[a]);t=o,s?(function(e,t){let n;return function(...t){let l;let o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nZ,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nO(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(n5("data",this.frozen),this.namespace[e]=t,this):nK.call(this.namespace,e)&&this.namespace[e]||void 0:e?(n5("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=n3(e),n=this.parser||this.Parser;return n0("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),n0("process",this.parser||this.Parser),n1("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=n3(e),o=n.parse(l);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,l,function(e,t,r){if(e||!t||!r)return s(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),n0("processSync",this.parser||this.Parser),n1("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nR(e),t=r}),n4("processSync","process",n),t}run(e,t,n){n2(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){let o=n3(t);r.run(e,o,function(t,r,o){let s=r||e;t?l(t):i?i(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nR(e),n=t,r=!0}),n4("runSync","run",r),n}stringify(e,t){this.freeze();let n=n3(t),r=this.compiler||this.Compiler;return n1("stringify",r),n2(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(n5("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=nO(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];nB(o)&&nB(r)&&(r=nO(!0,o,r)),n[i]=[e,r,...l]}}}}let nQ=new nZ().freeze();function n0(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function n1(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function n5(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function n2(e){if(!nB(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function n4(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function n3(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new nW(e)}let n6=[],n8={allowDangerousHtml:!0},n7=/^(https?|ircs?|mailto|xmpp)$/i,n9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function re(e){let t=function(e){let t=e.rehypePlugins||n6,n=e.remarkPlugins||n6,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n8}:n8;return nQ().use(nl).use(n).use(nq,r).use(t)}(e),n=function(e){let t=e.children||"",n=new nW;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,c=t.urlTransform||rt;for(let e of n9)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return nN(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return s?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eU)if(Object.hasOwn(eU,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eU[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,l=function(e,t,r,i){let l=Array.isArray(r.children),s=ew(e);return n(t,r,i,l,{columnNumber:s?s.column-1:void 0,fileName:o,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,l=function(e,t,n,l){let o=Array.isArray(n.children)?i:r;return l?o(t,n,l):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ep:eh,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=eI(s,e,void 0);return a&&"string"!=typeof a?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}(e,{Fragment:l.Fragment,components:i,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function rt(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||n7.test(e.slice(0,t))?e:""}function rn(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let rr="phrasing",ri=["autolink","link","image","label"];function rl(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ro(e){this.config.enter.autolinkProtocol.call(this,e)}function rs(e){this.config.exit.autolinkProtocol.call(this,e)}function ra(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function rc(e){this.config.exit.autolinkEmail.call(this,e)}function ru(e){this.exit(e)}function rd(e){!function(e,t,n){let r=nb((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)nj(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],o=i[l][1],s=0,a=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=o(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(l)?u.push(...l):l&&u.push(l),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(a,1,...u)):u=[e],a+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rh],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,rp]],{ignore:["link","linkReference"]})}function rh(e,t,n,r,i){let l="";if(!rf(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=rn(e,"("),l=rn(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function rp(e,t,n,r){return!(!rf(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function rf(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||tt(n)||te(n))&&(!t||47!==n)}function rm(){this.buffer()}function rx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rg(){this.buffer()}function ry(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rb(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rv(e){this.exit(e)}function rk(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rw(e){this.exit(e)}function rj(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),s(),o(),l+=i.move("]")}function rN(e,t,n){return 0===t?e:rC(e,t,n)}function rC(e,t,n){return(n?"":" ")+e}rj.peek=function(){return"["};let rS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rz(e){this.enter({type:"delete",children:[]},e)}function rM(e){this.exit(e)}function rL(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"})+i.move("~~"),l(),o}function rA(e){return e.length}function rD(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}rL.peek=function(){return"~"};function rT(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e;let t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rT.peek=function(){return"`"},nb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let rE={inlineCode:rT,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(l+" ".repeat(o-l.length)),s.shift(o);let a=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return a(),c}};function rP(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rI(e){this.exit(e),this.data.inTable=void 0}function rF(e){this.enter({type:"tableRow",children:[]},e)}function rq(e){this.exit(e)}function rR(e){this.enter({type:"tableCell",children:[]},e)}function rO(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rB));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rB(e,t){return"|"===t?t:e}function r_(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function rU(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function rH(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);l&&s.move(o);let a=rE.listItem(e,t,n,{...r,...s.current()});return l&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),a}let r$={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},rV={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(rG,a,s)(t):null===t||e7(t)||tt(t)||45!==t&&te(t)?a(t):(l=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function a(e){return i||r||!l?n(e):t(e)}},partial:!0},rW={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(rG,t,l)(o):null===o||e7(o)||tt(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rG={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||e7(o)||tt(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||e7(e)||tt(e)?t(e):r(e)}function l(t){return e0(t)?function t(i){return 59===i?(e.consume(i),r):e0(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rY={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return e1(e)?n(e):t(e)}},partial:!0},rX={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!r0.call(r,r.previous)||r4(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(r$,e.attempt(rV,e.attempt(rW,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:r0},rJ={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&r1.call(r,r.previous)&&!r4(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(e0(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),l)?a:(l=!0,s):n(t)}function a(t){return null===t||e2(t)||e7(t)||tt(t)||te(t)?n(t):e.attempt(rV,e.attempt(rW,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:r1},rK={name:"emailAutolink",tokenize:function(e,t,n){let r,i;let l=this;return function(t){return!r2(t)||!r5.call(l,l.previous)||r4(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return r2(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(rY,a,s)(t):45===t||95===t||e1(t)?(i=!0,e.consume(t),o):a(t)}function s(t){return e.consume(t),r=!0,o}function a(o){return i&&r&&e0(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:r5},rZ={},rQ=48;for(;rQ<123;)rZ[rQ]=rK,58==++rQ?rQ=65:91===rQ&&(rQ=97);function r0(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||e7(e)}function r1(e){return!e0(e)}function r5(e){return!(47===e||r2(e))}function r2(e){return 43===e||45===e||46===e||95===e||e1(e)}function r4(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rZ[43]=rK,rZ[45]=rK,rZ[46]=rK,rZ[95]=rK,rZ[72]=[rK,rJ],rZ[104]=[rK,rJ],rZ[87]=[rK,rX],rZ[119]=[rK,rX];let r3={tokenize:function(e,t,n){let r=this;return tr(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function r6(e,t,n){let r;let i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let s=tS(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function r8(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function r7(e,t,n){let r;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(s){if(o>999||93===s&&!r||null===s||91===s||e7(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(tS(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return e7(s)||(r=!0),o++,e.consume(s),92===s?c:a}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,a):a(t)}}function r9(e,t,n){let r,i;let l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),a};function a(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||e7(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tS(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return e7(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),tr(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function ie(e,t,n){return e.check(ts,t,e.attempt(r3,t,n))}function it(e){e.exit("gfmFootnoteDefinition")}class ir{constructor(){this.map=[]}add(e,t,n){(function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}})(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function ii(e,t,n){let r;let i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:s;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,o+=1),a(t)}function a(t){return null===t?n(t):e8(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):e9(t)?tr(e,a,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,a):(e.enter("data"),c(t))}function c(t){return null===t||124===t||e7(t)?(e.exit("data"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,e9(t))?tr(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return e9(t)?tr(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||e8(t)?g(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(n))}(t)):n(t)}function x(t){return e9(t)?tr(e,g,"whitespace")(t):g(t)}function g(i){return 124===i?h(i):null===i||e8(i)?r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function y(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||e8(n)?(e.exit("tableRow"),t(n)):e9(n)?tr(e,b,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||e7(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:v)}function k(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function il(e,t){let n,r,i,l=-1,o=!0,s=0,a=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,h=new ir;for(;++l<e.length;){let p=e[l],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==d&&(is(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(o=!0,i=void 0,a=[0,0,0,0],c=[0,l+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(o=!1,0===c[2]&&(0!==a[1]&&(c[0]=c[1],i=io(h,t,a,s,void 0,i),a=[0,0,0,0]),c[2]=l)):"tableCellDivider"===f.type&&(o?o=!1:(0!==a[1]&&(c[0]=c[1],i=io(h,t,a,s,void 0,i)),c=[(a=c)[1],l,0,0])):"tableHead"===f.type?(u=!0,d=l):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=l,0!==a[1]?(c[0]=c[1],i=io(h,t,a,s,l,i)):0!==c[1]&&(i=io(h,t,c,s,l,i)),s=0):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=l)}for(0!==d&&is(h,t,d,n,r),h.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function io(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},ia(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=ia(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=ia(t.events,n[2]),l=ia(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},ia(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function is(e,t,n,r,i){let l=[],o=ia(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function ia(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ic={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return e7(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return e8(r)?t(r):e9(r)?e.check({tokenize:iu},t,n)(r):n(r)}}};function iu(e,t,n){return tr(e,function(e){return null===e?n(e):t(e)},"whitespace")}let id={};function ih(e){let t;let n=e||id,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(eQ([{text:rZ},{document:{91:{name:"gfmFootnoteDefinition",tokenize:r9,continuation:{tokenize:ie},exit:it}},text:{91:{name:"gfmFootnoteCall",tokenize:r7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:r6,resolveTo:r8}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function l(s){let a=tX(i);if(126===s)return o>1?r(s):(e.consume(s),o++,l);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=tX(s);return c._open=!u||2===u&&!!a,c._close=!a||2===a&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],s=t.parser.constructs.insideSpan.null;s&&eG(o,o.length,0,tH(s,e.slice(r+1,n),t)),eG(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eG(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:ii,resolveAll:il}}},{text:{91:ic}}])),l.push([{transforms:[rd],enter:{literalAutolink:rl,literalAutolinkEmail:ro,literalAutolinkHttp:ro,literalAutolinkWww:ro},exit:{literalAutolink:ru,literalAutolinkEmail:rc,literalAutolinkHttp:rs,literalAutolinkWww:ra}},{enter:{gfmFootnoteCallString:rm,gfmFootnoteCall:rx,gfmFootnoteDefinitionLabelString:rg,gfmFootnoteDefinition:ry},exit:{gfmFootnoteCallString:rb,gfmFootnoteCall:rv,gfmFootnoteDefinitionLabelString:rk,gfmFootnoteDefinition:rw}},{canContainEols:["delete"],enter:{strikethrough:rz},exit:{strikethrough:rM}},{enter:{table:rP,tableData:rR,tableHeader:rR,tableRow:rF},exit:{codeText:rO,table:rI,tableData:rq,tableHeader:rq,tableRow:rq}},{exit:{taskListCheckValueChecked:r_,taskListCheckValueUnchecked:r_,paragraph:rU}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rr,notInConstruct:ri},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rr,notInConstruct:ri},{character:":",before:"[ps]",after:"\\/",inConstruct:rr,notInConstruct:ri}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let l=r.createTracker(i),o=l.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return o+=l.move(r.safe(r.associationId(e),{before:o,after:"]"})),a(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,l.current()),t?rC:rN))),s(),o},footnoteReference:rj},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rS}],handlers:{delete:rL}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rE.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=a(r[i],t,n);return o(),l}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([a(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:l,after:l});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rA,l=[],o=[],s=[],a=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){var d;let o=null==(d=e[u][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===a[l]||e>a[l])&&(a[l]=e)}t.push(o)}o[u]=t,s[u]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<c;)l[h]=rD(r[h]);else{let e=rD(r);for(;++h<c;)l[h]=e}h=-1;let p=[],f=[];for(;++h<c;){let e=l[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,a[h]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>a[h]&&(a[h]=i),f[h]=i),p[h]=o}o.splice(1,0,p),s.splice(1,0,f),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];h=-1;let r=[];for(;++h<c;){let i=e[h]||"",o="",s="";if(!1!==n.alignDelimiters){let e=a[h]-(t[h]||0),n=l[h];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function a(e,t,n){let r=e.children,i=-1,l=[],s=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return s(),l}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rH}}]})}var ip=n(76348);function im(e){let t=new Date(e),n=Math.floor((new Date().getTime()-t.getTime())/1e3);if(n<60)return"just now";let r=Math.floor(n/60);if(r<60)return`${r}m ago`;let i=Math.floor(r/60);if(i<24)return`${i}h ago`;let l=Math.floor(i/24);return l<7?`${l}d ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function ix(e,t){let n=[];return n.push(`[${f(e.prefix)}] ${e.id}`),t&&n.push(t),n.push(""),n.push(e.description||""),n.join("\n")}function ig({node:e,onClose:t,repoUrl:n}){let[r,i]=(0,o.useState)(!1);return e.description?(0,ip.createPortal)(l.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:t,children:(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-[90vw] max-w-2xl max-h-[80vh] flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600 shrink-0",children:e.id}),l.jsx("span",{className:"text-sm font-semibold text-zinc-900 truncate",children:e.title})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[l.jsx("button",{onClick:()=>{e.description&&navigator.clipboard.writeText(ix(e,n)).then(()=>{i(!0),setTimeout(()=>i(!1),1500)})},className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",title:"Copy description",children:r?l.jsx("svg",{className:"w-4 h-4 text-emerald-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}):l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9.75a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"})})}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]}),l.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4 custom-scrollbar description-markdown text-sm text-zinc-700 leading-relaxed",children:l.jsx(re,{remarkPlugins:[ih],children:e.description})})]})}),document.body):null}function iy({className:e="w-3 h-3",filled:t=!1}){return t?l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"})}):l.jsx("svg",{className:e,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})})}function ib({node:e,allNodes:t,onNodeNavigate:n,comments:r,onPostComment:i,onDeleteComment:s,onLikeComment:h,onReplyComment:f,isAuthenticated:m,currentDid:y,repoUrls:b}){let[v,k]=(0,o.useState)(null),[w,j]=(0,o.useState)(""),[N,C]=(0,o.useState)(!1),[S,z]=(0,o.useState)(!1),[M,L]=(0,o.useState)(!1),A=e=>{k(e.uri),j("")},D=()=>{k(null),j("")},T=async()=>{if(w.trim()&&v&&f){C(!0);try{let e=t=>{for(let n of t){if(n.uri===v)return n;let t=e(n.replies);if(t)return t}},t=r?e(r):void 0;t&&await f(t,w.trim()),k(null),j("")}catch(e){console.error("Failed to post reply:",e)}finally{C(!1)}}};if(!e)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-zinc-100 flex items-center justify-center mb-4",children:l.jsx("svg",{className:"w-6 h-6 text-zinc-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"})})}),l.jsx("p",{className:"text-sm text-zinc-500 leading-relaxed",children:"Click a node to see details"}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Hover to highlight connections"})]});let E=p[e.issueType]||"\uD83D\uDCCB",P=a[e.status]||a.open,I=c[e.status]||e.status,F=u[e.priority]||`P${e.priority}`,q=d[e.priority]||"#a1a1aa",R=x[e.prefix]||e.prefix,O=g[e.prefix]||"#a1a1aa",B=b?.[e.prefix],_=e.blockerIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),U=e.dependentIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),H=e=>{try{let t=new Date(e),n=t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),r=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!1});return`${n} at ${r}`}catch{return e}};return(0,l.jsxs)("div",{className:"animate-fade-in",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[l.jsx("span",{className:"text-2xl mt-0.5",children:E}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"flex items-center gap-2",children:l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600",children:e.id})}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-900 mt-1 leading-snug",children:e.title})]})]}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2 mb-4",children:[(0,l.jsxs)("span",{className:"status-badge",style:{backgroundColor:P+"18",color:P,border:`1px solid ${P}30`},children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full mr-1.5",style:{backgroundColor:P}}),I]}),l.jsx("span",{className:"status-badge",style:{backgroundColor:q+"15",color:q,border:`1px solid ${q}25`},children:F}),B?(0,l.jsxs)("a",{href:B,target:"_blank",rel:"noopener noreferrer",className:"status-badge hover:opacity-80 transition-opacity",style:{backgroundColor:O+"15",color:O,border:`1px solid ${O}25`,textDecoration:"none"},children:[R,l.jsx("svg",{className:"w-2.5 h-2.5 ml-1 opacity-50",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})]}):l.jsx("span",{className:"status-badge",style:{backgroundColor:O+"15",color:O,border:`1px solid ${O}25`},children:R})]}),B&&l.jsx("div",{className:"mb-4",children:(0,l.jsxs)("a",{href:B,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})}),B.replace(/^https?:\/\//,"")]})}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[l.jsx(ik,{label:"Blocks",value:e.blockerCount,color:e.blockerCount>0?"#f59e0b":void 0}),l.jsx(ik,{label:"Blocked by",value:e.dependentCount,color:e.dependentCount>0?"#ef4444":void 0})]}),(0,l.jsxs)("div",{className:"space-y-1.5 mb-4 text-xs text-zinc-500",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Created"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:H(e.createdAt)})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Updated"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:H(e.updatedAt)})]}),e.closedAt&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Closed"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:H(e.closedAt)})]}),e.closeReason&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Reason"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.closeReason})]}),e.owner&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Owner"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.owner})]})]}),e.description&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider",children:"Description"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:()=>{if(!e.description)return;let t=b?.[e.prefix];navigator.clipboard.writeText(ix(e,t)).then(()=>{L(!0),setTimeout(()=>L(!1),1500)})},className:"text-zinc-400 hover:text-zinc-600 transition-colors",title:"Copy description",children:M?l.jsx("svg",{className:"w-3.5 h-3.5 text-emerald-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}):l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9.75a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"})})}),l.jsx("button",{onClick:()=>z(!0),className:"text-[10px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"View in window"})]})]}),l.jsx("div",{className:"text-xs text-zinc-600 leading-relaxed bg-zinc-50 rounded-lg p-3 max-h-40 overflow-y-auto custom-scrollbar border border-zinc-100 description-markdown",children:l.jsx(re,{remarkPlugins:[ih],children:e.description})})]}),S&&e.description&&l.jsx(ig,{node:e,onClose:()=>z(!1),repoUrl:b?.[e.prefix]}),_.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocks (",_.length,")"]}),l.jsx("div",{className:"space-y-1",children:_.map(e=>l.jsx(iw,{node:e,onClick:()=>n(e.id)},e.id))})]}),U.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocked by (",U.length,")"]}),l.jsx("div",{className:"space-y-1",children:U.map(e=>l.jsx(iw,{node:e,onClick:()=>n(e.id)},e.id))})]}),(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Comments"," ",r&&r.length>0&&l.jsx("span",{className:"ml-1 px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:r.length})]}),r&&r.length>0?l.jsx("div",{className:"space-y-1",children:r.map(e=>l.jsx(ij,{comment:e,currentDid:y,isAuthenticated:m,onDelete:s,onLike:h,onStartReply:A,replyingToUri:v,replyText:w,onReplyTextChange:j,onSubmitReply:T,onCancelReply:D,isSubmittingReply:N,depth:0},e.uri))}):l.jsx("p",{className:"text-xs text-zinc-400 italic",children:"No comments yet"}),m&&i?l.jsx(iN,{onSubmit:i}):m?null:l.jsx("p",{className:"text-xs text-zinc-400 mt-2",children:"Sign in to leave a comment"})]})]})}function iv({replyingTo:e,replyText:t,onTextChange:n,onSubmit:r,onCancel:i,isSubmitting:o}){return(0,l.jsxs)("div",{className:"mt-2 ml-4 pl-3 border-l border-emerald-200 space-y-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] text-zinc-400",children:[l.jsx("span",{children:"Replying to"}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-600 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[l.jsx("input",{type:"text",value:t,onChange:e=>n(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||r()},placeholder:"Write a reply...",disabled:o,autoFocus:!0,className:"flex-1 px-2 py-1 text-xs bg-white border border-zinc-200 rounded placeholder-zinc-400 focus:outline-none focus:border-emerald-400 disabled:opacity-50"}),l.jsx("button",{onClick:r,disabled:!t.trim()||o,className:"px-2 py-1 text-[10px] font-medium text-emerald-600 hover:text-emerald-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o?"...":"Reply"}),l.jsx("button",{onClick:i,disabled:o,className:"px-2 py-1 text-[10px] text-zinc-400 hover:text-zinc-600 disabled:opacity-50 transition-colors",children:"Cancel"})]})]})}function ik({label:e,value:t,color:n}){return(0,l.jsxs)("div",{className:"bg-zinc-50 rounded-lg p-3 border border-zinc-100",children:[l.jsx("div",{className:"text-xl font-bold",style:{color:n||"#3f3f46"},children:t}),l.jsx("div",{className:"text-[10px] text-zinc-400 uppercase tracking-wider mt-0.5",children:e})]})}function iw({node:e,onClick:t}){let n=a[e.status]||a.open;return(0,l.jsxs)("button",{onClick:t,className:"w-full flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-zinc-50 transition-colors text-left group border border-transparent hover:border-zinc-200",children:[l.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:n}}),l.jsx("span",{className:"text-xs font-mono text-emerald-600 group-hover:text-emerald-700 shrink-0",children:e.id}),l.jsx("span",{className:"text-xs text-zinc-500 truncate",children:e.title})]})}function ij({comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:s,replyingToUri:a,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:h,isSubmittingReply:p,depth:f}){let[m,x]=(0,o.useState)(!1),[g,y]=(0,o.useState)(!1),b=t&&t===e.did,v=!!t&&e.likes.some(e=>e.did===t),k=a===e.uri,w=async()=>{if(r&&!m){x(!0);try{await r(e)}catch(e){console.error("Failed to delete comment:",e)}finally{x(!1)}}},j=async()=>{if(i&&!g){y(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{y(!1)}}};return(0,l.jsxs)("div",{className:`${f>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:"py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:im(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:j,disabled:!n||g,className:`flex items-center gap-0.5 transition-colors ${v?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(iy,{className:"w-3 h-3",filled:v}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),l.jsx("button",{onClick:()=>s(e),disabled:!n,className:`transition-colors disabled:opacity-50 ${k?"text-emerald-500":"text-zinc-300 hover:text-zinc-500"}`,children:"reply"}),b&&r&&l.jsx("button",{onClick:w,disabled:m,className:"ml-auto shrink-0 text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:m?"...":"delete"})]})]}),k&&l.jsx(iv,{replyingTo:e,replyText:c,onTextChange:u,onSubmit:d,onCancel:h,isSubmitting:p}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(ij,{comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:s,replyingToUri:a,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:h,isSubmittingReply:p,depth:f+1},e.uri))})]})}function iN({onSubmit:e}){let[t,n]=(0,o.useState)(""),[r,i]=(0,o.useState)(!1),s=async()=>{if(t.trim()&&!r){i(!0);try{await e(t.trim()),n("")}catch(e){console.error("Failed to post comment:",e)}finally{i(!1)}}};return(0,l.jsxs)("div",{className:"mt-3 space-y-2",children:[l.jsx("textarea",{value:t,onChange:e=>n(e.target.value),placeholder:"Leave a comment...",rows:2,className:"w-full px-2.5 py-1.5 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),l.jsx("button",{onClick:s,disabled:!t.trim()||r,className:"px-3 py-1 text-xs font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:r?"Sending...":"Comment"})]})}var iC=n(67960);function iS(){let{isAuthenticated:e,isLoading:t,session:n,login:r,logout:i}=(0,iC.a)(),[s,a]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(""),[p,f]=(0,o.useState)(!1),[m,x]=(0,o.useState)(""),g=(0,o.useRef)(null),y=async e=>{if(e.preventDefault(),d.trim()){f(!0),x("");try{await r(d.trim())}catch(e){x(e instanceof Error?e.message:"Login failed"),f(!1)}}},b=async()=>{u(!1),await i()};return t?l.jsx("div",{className:"w-4 h-4 rounded-full border-2 border-zinc-200 border-t-zinc-400 animate-spin"}):e&&n?(0,l.jsxs)("div",{className:"relative",ref:g,children:[(0,l.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-2 px-3 py-1.5 rounded-full hover:bg-zinc-50 transition-colors cursor-pointer",children:[n.avatar?l.jsx("img",{src:n.avatar,alt:n.handle,width:24,height:24,className:"rounded-full"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 flex items-center justify-center text-[11px] text-emerald-700 font-medium",children:(n.displayName||n.handle).charAt(0).toUpperCase()}),l.jsx("span",{className:"text-sm text-zinc-600 max-w-[100px] truncate",children:n.displayName||n.handle})]}),c&&(0,l.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-44 bg-white rounded-xl shadow-xl border border-zinc-100 py-2 z-50",children:[(0,l.jsxs)("a",{href:n.did?`https://www.impactindexer.org/data?did=${n.did}`:"#",target:"_blank",rel:"noopener noreferrer",className:"block px-3 py-1.5 text-xs text-zinc-400 truncate hover:text-emerald-600 transition-colors",children:["@",n.handle]}),l.jsx("div",{className:"h-px bg-zinc-100 my-1"}),(0,l.jsxs)("button",{onClick:b,className:"flex items-center gap-2 w-full px-3 py-1.5 text-xs text-zinc-600 hover:bg-zinc-50 transition-colors cursor-pointer",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0-3-3m0 0 3-3m-3 3H15"})}),"Sign out"]})]})]}):(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>a(!0),className:"px-4 py-1.5 text-sm font-medium text-zinc-600 rounded-full hover:text-zinc-900 hover:bg-zinc-50 transition-colors cursor-pointer whitespace-nowrap",children:"Sign in"}),s&&(0,l.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>a(!1),children:[l.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm"}),(0,l.jsxs)("div",{className:"relative w-full max-w-sm mx-4 bg-white rounded-xl shadow-lg border border-zinc-200 p-6",onClick:e=>e.stopPropagation(),children:[l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Sign in with ATProto"}),l.jsx("p",{className:"text-sm text-zinc-400 mb-5",children:"Enter your Bluesky handle to connect."}),(0,l.jsxs)("form",{onSubmit:y,children:[l.jsx("label",{htmlFor:"auth-handle",className:"block text-sm text-zinc-600 mb-1.5",children:"Handle"}),l.jsx("input",{id:"auth-handle",type:"text",value:d,onChange:e=>h(e.target.value),placeholder:"alice.bsky.social",disabled:p,autoFocus:!0,className:"w-full px-3 py-2 text-sm bg-white border border-zinc-200 rounded-lg placeholder:text-zinc-300 focus:outline-none focus:ring-2 focus:ring-emerald-500/30 focus:border-emerald-400 disabled:opacity-50 disabled:cursor-not-allowed"}),l.jsx("p",{className:"text-xs text-zinc-300 mt-1.5",children:"Just a username? We'll add .bsky.social for you."}),m&&l.jsx("p",{className:"text-sm text-red-500 mt-2",children:m}),(0,l.jsxs)("div",{className:"flex gap-2 mt-5",children:[l.jsx("button",{type:"button",onClick:()=>a(!1),disabled:p,className:"flex-1 px-3 py-2 text-sm text-zinc-600 bg-zinc-50 rounded-lg hover:bg-zinc-100 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),l.jsx("button",{type:"submit",disabled:p||!d.trim(),className:"flex-1 px-3 py-2 text-sm text-white bg-emerald-600 rounded-lg hover:bg-emerald-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:p?"Connecting...":"Connect"})]})]})]})]})]})}function iz({className:e}){return(0,l.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",className:e,"aria-hidden":"true",children:[l.jsx("polygon",{points:"16,3 27,9.5 27,22.5 16,29 5,22.5 5,9.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none",opacity:"0.7",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 16 16;360 16 16",dur:"40s",repeatCount:"indefinite"})}),l.jsx("polygon",{points:"16,8 22.5,11.5 22.5,20.5 16,24 9.5,20.5 9.5,11.5",stroke:"currentColor",strokeWidth:"0.8",fill:"none",opacity:"0.35",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 16 16;0 16 16",dur:"30s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"3",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"0.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"29",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2.5s"})}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"2.5",fill:"currentColor",opacity:"0.8",children:[l.jsx("animate",{attributeName:"r",values:"2;3;2",dur:"3s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.7;1;0.7",dur:"3s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"3",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"29",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"2s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"10",stroke:"currentColor",strokeWidth:"0.4",fill:"none",opacity:"0.15",children:[l.jsx("animate",{attributeName:"r",values:"9;11;9",dur:"4s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"4s",repeatCount:"indefinite"})]})]})}function iM({node:e,x:t,y:n,onClose:r,onSubmit:i,isAuthenticated:s,existingComments:a}){let[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(!1),p=(0,o.useRef)(null),f=(0,o.useRef)(null),[m,x]=(0,o.useState)({x:0,y:0}),[y,b]=(0,o.useState)(!1),v=(0,o.useCallback)(async()=>{if(c.trim()&&!d){h(!0);try{await i(c.trim()),u("")}catch(e){console.error("Failed to post comment:",e)}finally{h(!1)}}},[c,d,i]),k=(0,o.useCallback)(e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),v())},[v]),w=g[e.prefix]||"#a1a1aa",j=a?.length||0;return(0,l.jsxs)("div",{ref:p,style:{position:"fixed",left:m.x,top:m.y,width:320,zIndex:100,opacity:y?1:0,transform:y?"translateY(0)":"translateY(4px)",transition:"opacity 0.2s ease, transform 0.2s ease"},className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",onContextMenu:e=>e.preventDefault(),children:[l.jsx("style",{children:`
2
2
  .comment-tooltip-shadow {
3
3
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.08);
4
4
  }
5
- `}),(0,l.jsxs)("div",{className:"comment-tooltip-shadow p-[18px_20px]",children:[l.jsx("div",{className:"rounded-sm mb-2.5",style:{width:24,height:2,background:w,opacity:.6}}),(0,l.jsxs)("div",{className:"mb-3",children:[l.jsx("span",{className:"text-xs font-mono text-emerald-600",children:e.id}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-800 leading-tight mt-0.5",children:e.title})]}),j>0&&a&&(0,l.jsxs)("div",{className:"mb-3 pb-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-blue-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),(0,l.jsxs)("span",{className:"text-[10px] font-medium text-zinc-500 uppercase tracking-wider",children:[j," comment",1!==j?"s":""]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[a.slice(0,2).map(e=>(0,l.jsxs)("div",{className:"flex gap-1.5",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden mt-0.5",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[7px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] font-medium text-zinc-500 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle}),l.jsx("p",{className:"text-[11px] text-zinc-500 line-clamp-2 leading-tight",children:e.text})]})]},e.uri)),j>2&&(0,l.jsxs)("p",{className:"text-[10px] text-zinc-400 italic",children:["+",j-2," more — see detail panel"]})]})]}),s?(0,l.jsxs)("div",{children:[l.jsx("textarea",{ref:f,value:c,onChange:e=>u(e.target.value),onKeyDown:k,placeholder:"Leave a comment...",rows:3,className:"w-full px-2.5 py-2 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-300",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","+Enter to send"]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:r,className:"px-2.5 py-1 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"Cancel"}),l.jsx("button",{onClick:v,disabled:!c.trim()||d,className:"px-3 py-1 text-[11px] font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:d?(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsxs)("svg",{className:"w-3 h-3 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending"]}):"Send"})]})]})]}):(0,l.jsxs)("div",{className:"text-center py-3",children:[l.jsx("svg",{className:"w-5 h-5 text-zinc-300 mx-auto mb-1.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"Sign in to comment"})]})]})]})}function iL({node:e,x:t,y:n,onShowDescription:r,onAddComment:i,onClaimTask:s,onUnclaimTask:a,onCollapseEpic:c,onUncollapseEpic:u,onClose:d}){let h=(0,o.useRef)(null),[p,f]=(0,o.useState)({x:0,y:0}),[m,x]=(0,o.useState)(!1);return l.jsx("div",{ref:h,style:{position:"fixed",left:p.x,top:p.y,zIndex:100,opacity:m?1:0,transform:m?"translateY(0)":"translateY(2px)",transition:"opacity 0.15s ease, transform 0.15s ease"},onContextMenu:e=>e.preventDefault(),children:(0,l.jsxs)("div",{className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",style:{minWidth:180,boxShadow:"0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06)"},children:[e.description&&(0,l.jsxs)("button",{onClick:r,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors border-b border-zinc-100",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Show description"]}),(0,l.jsxs)("button",{onClick:i,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${s||a||c||u?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),"Add comment"]}),s&&(0,l.jsxs)("button",{onClick:s,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${c||u?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})}),"Claim task"]}),a&&(0,l.jsxs)("button",{onClick:a,className:`w-full px-3 py-2.5 text-xs text-red-500 hover:bg-red-50 flex items-center gap-2 transition-colors${c||u?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-red-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10.5h-6m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z"})}),"Unclaim task"]}),c&&(0,l.jsxs)("button",{onClick:c,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})}),"Collapse epic"]}),u&&(0,l.jsxs)("button",{onClick:u,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),"Uncollapse epic"]})]})})}let iM={bg:"#FFFFFF",border:"#E5E7EB",borderLight:"#F3F4F6",shadow:"rgba(0,0,0,0.08)",text:"#131316",textMuted:"#737680",textDim:"#7F818B"};function iA({node:e,x:t,y:n,prefixColor:r,allNodes:i}){let s=(0,o.useRef)(null),[a,c]=(0,o.useState)({x:0,y:0}),h=e.dependentIds.map(e=>{let t=i.find(t=>t.id===e);return t?{id:e,title:t.title}:{id:e,title:e}}).filter(Boolean),p=u[e.priority]||`P${e.priority}`,m=d[e.priority]||"#a1a1aa";return(0,l.jsxs)("div",{ref:s,className:"bead-tooltip",style:{position:"fixed",left:a.x,top:a.y,width:280,zIndex:100,pointerEvents:"none",background:iM.bg,border:`1px solid ${iM.border}`,boxShadow:`0 8px 32px ${iM.shadow}, 0 2px 8px ${iM.shadow}`,borderRadius:8,padding:"16px 18px",animation:"beadTooltipFade 0.2s ease"},children:[l.jsx("div",{style:{width:24,height:2,background:r,opacity:.5,marginBottom:8,borderRadius:1}}),(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[l.jsx("span",{style:{fontSize:10,fontWeight:600,color:r,letterSpacing:.5,textTransform:"uppercase"},children:f(e.prefix)}),l.jsx("span",{style:{fontSize:10,fontFamily:"monospace",color:iM.textDim},children:e.id})]}),l.jsx("div",{style:{fontSize:14,fontWeight:600,color:iM.text,lineHeight:1.25,marginBottom:12,overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:e.title}),(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,l.jsxs)("div",{children:[l.jsx("div",{style:iT,children:"Created"}),l.jsx("div",{style:iE,children:im(e.createdAt)})]}),e.owner&&(0,l.jsxs)("div",{children:[l.jsx("div",{style:iT,children:"Owner"}),l.jsx("div",{style:iE,children:e.owner})]}),(e.assignee||e.createdBy)&&(0,l.jsxs)("div",{children:[e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:iT,children:"Assignee"}),l.jsx("div",{style:iE,children:e.assignee})]}),e.createdBy&&!e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:iT,children:"Created by"}),l.jsx("div",{style:iE,children:e.createdBy})]}),e.createdBy&&e.assignee&&e.createdBy!==e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:{...iT,marginTop:4},children:"Created by"}),l.jsx("div",{style:iE,children:e.createdBy})]})]}),(0,l.jsxs)("div",{children:[l.jsx("div",{style:iT,children:"Blocked by"}),0===h.length?l.jsx("div",{style:{...iE,color:"#10b981"},children:"None"}):l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:3},children:h.map(e=>(0,l.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[l.jsx("span",{style:{fontSize:10,fontFamily:"monospace",color:iM.textDim,flexShrink:0},children:e.id}),l.jsx("span",{style:{fontSize:12,color:iM.textMuted,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title})]},e.id))})]}),(0,l.jsxs)("div",{style:{borderTop:`1px solid ${iM.borderLight}`,paddingTop:8},children:[l.jsx("div",{style:iT,children:"Priority"}),(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[l.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:m,flexShrink:0}}),l.jsx("span",{style:iE,children:p})]})]})]})]})}let iT={fontSize:10,fontWeight:600,letterSpacing:1.5,textTransform:"uppercase",color:"#7F818B",marginBottom:3},iE={fontSize:12,color:"#737680",lineHeight:1.45};function iP({isOpen:e,onClose:t,allComments:n,onNodeNavigate:r,isAuthenticated:i,currentDid:o,onLikeComment:s,onDeleteComment:a}){return(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${e?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"All Comments"}),n.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:n.length})]}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-3",children:n.length>0?l.jsx("div",{className:"space-y-0",children:n.filter(e=>!e.replyTo).map(e=>l.jsx(iI,{comment:e,currentDid:o,isAuthenticated:i,onNodeNavigate:r,onLike:s,onDelete:a,depth:0},e.uri))}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"No comments yet"}),l.jsx("p",{className:"text-[10px] text-zinc-300 mt-1",children:"Right-click a node to leave a comment"})]})}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[n.length," comment",1!==n.length?"s":""," across all issues"]})})]})}function iI({comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:s,depth:a}){let[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(!1),p=t&&t===e.did,f=!!t&&e.likes.some(e=>e.did===t),m=async()=>{if(i&&!c){u(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{u(!1)}}},x=async()=>{if(s&&!d){h(!0);try{await s(e)}catch(e){console.error("Failed to delete comment:",e)}finally{h(!1)}}};return(0,l.jsxs)("div",{className:`${a>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:`py-3 ${0===a?"border-b border-zinc-50":""}`,children:[0===a&&l.jsx("button",{onClick:()=>r(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 mb-1.5 rounded text-[10px] font-mono bg-emerald-50 text-emerald-600 hover:bg-emerald-100 transition-colors",children:e.nodeId}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:im(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:m,disabled:!n||c,className:`flex items-center gap-0.5 transition-colors ${f?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(iy,{className:"w-3 h-3",filled:f}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),p&&s&&l.jsx("button",{onClick:x,disabled:d,className:"ml-auto text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:d?"...":"delete"})]})]}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(iI,{comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:s,depth:a+1},e.uri))})]})}function iF({type:e,className:t}){let n=t||"w-3.5 h-3.5 shrink-0";switch(e){case"node-created":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("line",{x1:"8",y1:"5",x2:"8",y2:"11"}),l.jsx("line",{x1:"5",y1:"8",x2:"11",y2:"8"})]});case"node-closed":return(0,l.jsxs)("svg",{className:`${n} text-zinc-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"5.5,8 7.5,10 10.5,6"})]});case"node-status-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 8h10M10 5l3 3-3 3"})});case"node-priority-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M8 3v7M5 6l3-3 3 3M4 13h8"})});case"node-title-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 4h10M3 8h6M3 12h8"})});case"node-owner-changed":return(0,l.jsxs)("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"6",cy:"6",r:"2.5"}),l.jsx("path",{d:"M1.5 13c0-2 1.8-3.5 4.5-3.5M10 9l2 2 3-3"})]});case"link-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M6.5 9.5l3-3M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"})});case"link-removed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("path",{d:"M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"}),l.jsx("line",{x1:"3",y1:"3",x2:"13",y2:"13",strokeWidth:"1.5"})]});case"comment-added":case"reply-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M2 4.5a1.5 1.5 0 011.5-1.5h9A1.5 1.5 0 0114 4.5v5a1.5 1.5 0 01-1.5 1.5H5L2 14V4.5z"})});case"task-claimed":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"})]});case"task-unclaimed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"}),l.jsx("line",{x1:"11",y1:"3",x2:"13",y2:"5"})]});case"like-added":return l.jsx("svg",{className:`${n} text-rose-400`,viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 13.7l-.6-.5C4 10.2 2 8.3 2 6a3 3 0 016-1 3 3 0 016 1c0 2.3-2 4.2-5.4 7.2l-.6.5z"})})}}function iq(e){switch(e){case"node-created":case"task-claimed":return"bg-emerald-400";case"node-closed":return"bg-zinc-300";case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"bg-amber-400";case"link-added":case"comment-added":case"reply-added":return"bg-blue-400";case"link-removed":case"task-unclaimed":return"bg-red-300";case"like-added":return"bg-rose-300"}}function iR(e){switch(e.type){case"node-created":{let t=e.meta?.issueType||"task";return`${t} created`}case"node-closed":return`closed${e.detail&&"Closed"!==e.detail?` (${e.detail})`:""}`;case"node-status-changed":return e.detail||"status changed";case"node-priority-changed":return`priority ${e.detail||"changed"}`;case"node-title-changed":return"title updated";case"node-owner-changed":return`owner ${e.detail||"changed"}`;case"link-added":return`dep added: ${e.meta?.target||""}`;case"link-removed":return`dep removed: ${e.meta?.target||""}`;case"comment-added":return e.detail||"commented";case"reply-added":return e.detail||"replied";case"task-claimed":return"claimed this task";case"task-unclaimed":return"unclaimed this task";case"like-added":return e.detail||"liked a comment"}}function iO({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 group hover:bg-zinc-50/60 transition-colors",children:[l.jsx("div",{className:`w-1 h-1 rounded-full shrink-0 ${iq(e.type)}`}),l.jsx(iF,{type:e.type,className:"w-3 h-3 shrink-0"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0 text-[11px] text-zinc-600 truncate",children:[e.actor?(0,l.jsxs)(l.Fragment,{children:[e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-800 hover:text-emerald-600 transition-colors",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-medium text-zinc-800",children:e.actor.handle.split(".")[0]})," "]}):t?(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>t(e.nodeId),className:"font-medium text-zinc-700 hover:text-emerald-600 transition-colors",children:e.nodeId})," "]}):null,l.jsx("span",{className:"text-zinc-500",children:iR(e)})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums opacity-0 group-hover:opacity-100 transition-opacity",children:im(new Date(e.time).toISOString())})]})}function iB({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex gap-3 py-3 px-4 hover:bg-zinc-50/50 transition-colors group",children:[l.jsx("div",{className:`w-0.5 self-stretch rounded-full shrink-0 ${iq(e.type)}`}),l.jsx("div",{className:"mt-0.5 shrink-0",children:e.actor?.avatar?l.jsx("img",{src:e.actor.avatar,alt:e.actor.handle,className:"w-7 h-7 rounded-full ring-1 ring-zinc-100"}):e.actor?l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-100 flex items-center justify-center text-[11px] font-medium text-zinc-500",children:e.actor.handle.charAt(0).toUpperCase()}):l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-50 flex items-center justify-center",children:l.jsx(iF,{type:e.type,className:"w-3.5 h-3.5"})})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-baseline gap-1.5 text-[12px] leading-snug",children:[e.actor&&(e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors truncate max-w-[140px]",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-semibold text-zinc-800 truncate max-w-[140px]",children:e.actor.handle.split(".")[0]})),l.jsx("span",{className:"text-zinc-500",children:iR(e)})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mt-1",children:[t&&l.jsx("button",{onClick:()=>t(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-mono font-medium text-emerald-700 bg-emerald-50 rounded-md hover:bg-emerald-100 transition-colors",children:e.nodeId}),e.nodeTitle&&l.jsx("span",{className:"text-[11px] text-zinc-400 truncate",children:e.nodeTitle})]})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums mt-0.5",children:im(new Date(e.time).toISOString())})]})}function i_({event:e,variant:t="compact",onNodeClick:n}){return"compact"===t?l.jsx(iO,{event:e,onNodeClick:n}):l.jsx(iB,{event:e,onNodeClick:n})}function iU({events:e,collapsed:t,onToggleCollapse:n,onExpandPanel:r,onNodeClick:i}){let o=e.filter(e=>Date.now()-e.time<3e5).length;return t?(0,l.jsxs)("button",{onClick:n,className:"group flex items-center gap-2 px-3 py-2 bg-white/90 backdrop-blur-sm rounded-full border border-zinc-200/80 shadow-sm hover:bg-white hover:shadow-md transition-all",title:"Show activity feed",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5 text-zinc-400 group-hover:text-emerald-500 transition-colors",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"text-xs text-zinc-500 group-hover:text-zinc-700 transition-colors",children:"Activity"}),o>0&&l.jsx("span",{className:"text-[10px] font-medium text-white bg-emerald-500 rounded-full px-1.5 py-0.5 min-w-[18px] text-center leading-tight",children:o})]}):(0,l.jsxs)("div",{className:"w-72 bg-white/95 backdrop-blur-sm rounded-xl border border-zinc-200/80 shadow-lg overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2.5 border-b border-zinc-100/80",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),l.jsx("span",{className:"text-[11px] font-semibold text-zinc-600",children:"Live Activity"})]}),l.jsx("button",{onClick:n,className:"text-zinc-400 hover:text-zinc-600 transition-colors p-1 -mr-0.5 rounded-full hover:bg-zinc-100",title:"Collapse",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"})})})]}),l.jsx("div",{className:"py-0.5 max-h-[260px] overflow-y-auto custom-scrollbar",children:0===e.length?(0,l.jsxs)("div",{className:"py-6 text-center",children:[(0,l.jsxs)("svg",{className:"w-5 h-5 text-zinc-200 mx-auto mb-1.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("p",{className:"text-[11px] text-zinc-400",children:"No activity yet"})]}):e.slice(0,6).map((e,t)=>l.jsx("div",{className:0===t?"bg-emerald-50/30":"",children:l.jsx(i_,{event:e,variant:"compact",onNodeClick:i})},e.id))}),e.length>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2 border-t border-zinc-100/80 bg-zinc-50/30",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400",children:[e.length," event",1!==e.length?"s":""]}),(0,l.jsxs)("button",{onClick:r,className:"text-[11px] text-emerald-600 hover:text-emerald-700 transition-colors font-medium flex items-center gap-1",children:["See all",l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})]})]})}let iH=[{key:"issues",label:"Issues",icon:"circle"},{key:"deps",label:"Deps",icon:"link"},{key:"comments",label:"Comments",icon:"chat"},{key:"claims",label:"Claims",icon:"user"},{key:"likes",label:"Likes",icon:"heart"}];function iV({events:e,isOpen:t,onClose:n,onNodeClick:r}){let[i,s]=(0,o.useState)(""),[a,c]=(0,o.useState)(new Set(iH.map(e=>e.key))),u=e=>{c(t=>{let n=new Set(t);return n.has(e)?n.size>1&&n.delete(e):n.add(e),n})},d=(0,o.useMemo)(()=>{let t=e;if(t=t.filter(e=>a.has(function(e){switch(e){case"node-created":case"node-closed":case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"issues";case"link-added":case"link-removed":return"deps";case"comment-added":case"reply-added":return"comments";case"task-claimed":case"task-unclaimed":return"claims";case"like-added":return"likes"}}(e.type))),i.trim()){let e=i.trim().toLowerCase();t=t.filter(t=>t.nodeId.toLowerCase().includes(e)||t.nodeTitle&&t.nodeTitle.toLowerCase().includes(e)||t.actor?.handle&&t.actor.handle.toLowerCase().includes(e)||t.detail&&t.detail.toLowerCase().includes(e))}return t},[e,a,i]),h=(0,o.useMemo)(()=>(function(e){let t=new Map,n=[];for(let r of e){let e=function(e){let t=Date.now()-e,n=t/36e5,r=t/864e5;return n<1?"Just now":n<24?"Today":r<2?"Yesterday":r<7?"This week":r<30?"This month":"Older"}(r.time);t.has(e)||(t.set(e,[]),n.push(e)),t.get(e).push(r)}return n.map(e=>({label:e,events:t.get(e)}))})(d),[d]),p=a.size===iH.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${t?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"px-4 pt-3 pb-2 shrink-0",children:(0,l.jsxs)("div",{className:"flex items-center bg-zinc-50/80 rounded-full border border-zinc-200/60 overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{type:"text",value:i,onChange:e=>s(e.target.value),placeholder:"Search activity...",className:"flex-1 px-2 py-2 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400"}),i&&l.jsx("button",{onClick:()=>s(""),className:"pr-3 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-4 pb-3 shrink-0",children:iH.map(e=>{let t=a.has(e.key);return l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-all ${t?"bg-emerald-50 text-emerald-700 border-emerald-200 shadow-sm":"bg-white text-zinc-400 border-zinc-200 hover:text-zinc-600 hover:border-zinc-300"}`,children:e.label},e.key)})}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar border-t border-zinc-100",children:0===d.length?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:i.trim()?"No activity matching your search":"No activity yet"}),i.trim()&&l.jsx("button",{onClick:()=>s(""),className:"text-[11px] text-emerald-600 hover:text-emerald-700 mt-1.5",children:"Clear search"})]}):h.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-4 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(i_,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[d.length," event",1!==d.length?"s":"",!p&&" (filtered)",i.trim()&&` matching "${i.trim()}"`]})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transition-transform duration-300 ease-out ${t?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl shadow-xl border-t border-zinc-200 max-h-[60vh] flex flex-col",children:[l.jsx("div",{className:"flex justify-center pt-3 pb-1",children:l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full"})}),(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-5 pb-3",children:iH.map(e=>l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-colors ${a.has(e.key)?"bg-emerald-50 text-emerald-700 border-emerald-200":"bg-white text-zinc-400 border-zinc-200"}`,children:e.label},e.key))}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:0===d.length?l.jsx("div",{className:"py-8 text-center text-xs text-zinc-400",children:"No activity matching filters"}):h.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-5 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(i_,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))})]})})]})}let i$=[{target:"graph",title:"The Dependency Graph",description:"Each circle is a task or issue. The flowing particles between them show the direction of dependencies — what needs to happen before something else can start. Bigger circles mean more connections.",padding:0},{target:"layouts",title:"Layout Modes",description:"Switch how the graph is arranged. Force is organic and physics-based. DAG gives you a clean top-down tree. Radial spreads nodes in rings. Cluster groups by project. Spread spaces everything out for screenshots."},{target:"view-controls",title:"View Controls",description:"Collapse or expand epic groups, toggle cluster label overlays, and control auto-fit. When auto-fit is on (green), the camera re-centers after every update. Turn it off to stay focused on a specific area while data streams in."},{target:"legend",title:"Color Modes & Legend",description:"Color nodes by Status, Priority, Owner, Assignee, or Prefix. The ring around each node always shows which project it belongs to."},{target:"minimap",title:"Minimap",description:"A bird’s-eye view of your entire graph. Click anywhere to jump there. Drag the edges to resize it."},{target:"search",title:"Search",description:"Press Cmd+F (or Ctrl+F) to search by name, ID, owner, assignee, or commenter. Arrow keys to navigate, Enter to focus."},{target:"graph",title:"Interacting with Nodes",description:"Click a node to see details. Hover for a quick tooltip. Right-click for actions like viewing descriptions, commenting, claiming tasks, or collapsing epics.",padding:0},{target:"nav-pills",title:"Navigation Bar",description:"Replay steps through your project’s history. Comments shows conversations. Activity is a real-time feed. And Learn brings you right back here."}];function iW({step:e,onNext:t,onEnd:n}){let[r,i]=(0,o.useState)(null);if((0,o.useCallback)(()=>{if(null===e){i(null);return}let t=i$[e];if(!t){i(null);return}let n=document.querySelector(`[data-tutorial="${t.target}"]`);if(n){let e=n.getBoundingClientRect(),r=t.padding??8;i({left:e.left-r,top:e.top-r,width:e.width+2*r,height:e.height+2*r})}else i(null)},[e]),null===e)return null;let s=e===i$.length-1;return(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-[55] cursor-pointer",onClick:()=>{s?n():t()},children:(0,l.jsxs)("svg",{className:"absolute inset-0 w-full h-full",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("defs",{children:(0,l.jsxs)("mask",{id:"tutorial-mask",children:[l.jsx("rect",{width:"100%",height:"100%",fill:"white"}),r&&l.jsx("rect",{x:r.left,y:r.top,width:r.width,height:r.height,rx:8,ry:8,fill:"black"})]})}),l.jsx("rect",{width:"100%",height:"100%",fill:"rgba(0,0,0,0.45)",mask:"url(#tutorial-mask)"})]})}),r&&l.jsx("div",{className:"fixed rounded-lg ring-2 ring-emerald-400/60 animate-pulse z-[56]",style:{left:r.left,top:r.top,width:r.width,height:r.height,pointerEvents:"none"}})]})}let iG={red:"#d20f39",teal:"#179299",peach:"#fe640b",blue:"#1e66f5",green:"#40a02b",mauve:"#8839ef",surface:"#dce0e8"};function iY({isOpen:e,onClose:t,tutorialStep:n=null,onStartTutorial:r,onNextStep:i,onPrevStep:o,onEndTutorial:s}){let a=null!==n,c=a?"Tutorial":"Welcome to Heartbeads",u=a?l.jsx(iX,{step:n,onNext:i,onPrev:o,onEnd:s}):l.jsx(iZ,{onStartTutorial:r});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl transform transition-transform duration-300 ease-out ${e?"translate-x-0":"translate-x-full"} ${a?"z-[60]":"z-30"}`,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100 shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:c}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:u})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 transform transition-transform duration-300 ease-out ${e?"translate-y-0":"translate-y-full"} ${a?"z-[60]":"z-20"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl shadow-2xl border-t border-zinc-200 max-h-[70vh] flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100 shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:c}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:u})]})})]})}function iX({step:e,onNext:t,onPrev:n,onEnd:r}){let i=i$[e],o=i$.length,s=e===o-1;return(0,l.jsxs)("div",{className:"px-5 py-4 flex flex-col min-h-[300px]",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,l.jsxs)("span",{className:"text-xs font-medium",style:{color:iG.teal},children:[e+1," / ",o]}),l.jsx("div",{className:"flex gap-1",children:Array.from({length:o}).map((t,n)=>l.jsx("div",{className:"w-1.5 h-1.5 rounded-full transition-colors",style:{backgroundColor:n===e?iG.green:n<e?iG.teal:iG.surface}},n))})]}),l.jsx("h3",{className:"text-base font-semibold text-zinc-900 mb-2",children:i.title}),l.jsx("p",{className:"text-[13px] text-zinc-600 leading-relaxed mb-6",children:i.description}),l.jsx("div",{className:"flex-1"}),(0,l.jsxs)("div",{className:"flex items-center gap-2 pt-4 border-t border-zinc-100",children:[0===e?l.jsx("button",{onClick:r,className:"px-4 py-2 text-sm font-medium text-zinc-400 hover:text-zinc-600 rounded-lg hover:bg-zinc-50 transition-colors",children:"Skip"}):l.jsx("button",{onClick:n,className:"px-4 py-2 text-sm font-medium rounded-lg hover:bg-zinc-50 transition-colors",style:{color:iG.blue},children:"Back"}),l.jsx("div",{className:"flex-1"}),s?l.jsx("button",{onClick:r,className:"px-4 py-2 text-sm font-medium text-white rounded-lg bg-emerald-500 hover:bg-emerald-600 transition-colors",children:"Done"}):l.jsx("button",{onClick:t,className:"px-4 py-2 text-sm font-medium text-white rounded-lg bg-emerald-500 hover:bg-emerald-600 transition-colors",children:"Next"})]})]})}function iJ({color:e,children:t}){return(0,l.jsxs)("li",{className:"flex gap-2.5 items-start",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full mt-[6px] shrink-0",style:{backgroundColor:e}}),l.jsx("span",{children:t})]})}function iK({children:e,color:t}){return l.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2 mt-5 first:mt-0",style:{color:t},children:e})}function iZ({onStartTutorial:e}){return(0,l.jsxs)("div",{className:"px-5 py-4 text-[13px] text-zinc-600 leading-relaxed",children:[e&&(0,l.jsxs)("button",{onClick:e,className:"w-full flex items-center justify-center gap-2 px-4 py-2.5 mb-5 text-white text-sm font-medium rounded-lg bg-emerald-500 hover:bg-emerald-600 transition-colors",children:[l.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"})}),"Take the guided tour"]}),l.jsx("p",{className:"text-zinc-900 font-medium mb-1",children:"Your command center for AI coding tasks."}),l.jsx("p",{className:"mb-4 text-zinc-500",children:"Heartbeads shows everything your AI agents are working on as a live, interactive graph — tasks, dependencies, who's doing what, and what's blocking progress."}),l.jsx(iK,{color:iG.red,children:"The graph"}),(0,l.jsxs)("p",{className:"mb-2",children:["Each ",l.jsx("strong",{children:"circle"})," is a task. ",l.jsx("strong",{children:"Flowing particles"})," ","stream between them to show dependency direction."]}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Bigger circles"})," — more connected, more important"]}),(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Solid lines + particles"})," — “blocks” (A must finish before B)"]}),(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Dashed lines"})," — parent-child grouping"]}),(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Colored ring"})," — which project it belongs to"]})]}),l.jsx(iK,{color:iG.blue,children:"Navigation"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Click"})," a node to open its details"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Hover"})," for a quick summary"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Right-click"})," for actions — descriptions, comments, claims, collapse"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Scroll"})," to zoom, ",l.jsx("strong",{children:"drag"})," to pan"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Cmd/Ctrl+F"})," to search by name, ID, owner, or commenter"]})]}),l.jsx(iK,{color:iG.teal,children:"Layouts"}),l.jsx("p",{className:"mb-2",children:"Top-left buttons rearrange the graph:"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Force"})," — organic, physics-based"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"DAG"})," — clean top-down tree"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Radial"})," — rings from center outward"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Cluster"})," — grouped by project"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Spread"})," — spaced out for screenshots"]})]}),l.jsx(iK,{color:iG.peach,children:"Color modes"}),l.jsx("p",{className:"mb-2",children:"Bottom-right panel — paint nodes by:"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Status"})," — open, in progress, blocked, closed"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Priority"})," — P0 critical to P4 backlog"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Owner"})," — who created it"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Assignee"})," — who's working on it"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Prefix"})," — which project"]})]}),l.jsx(iK,{color:iG.mauve,children:"More"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Collapse/Expand"})," — tidy up epics into single nodes"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Clusters"})," — dashed circles grouping projects when zoomed out"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Replay"})," — step through your project's history"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Comments"})," — leave notes on tasks (sign in first)"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Claim tasks"})," — right-click to mark as yours"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Minimap"})," — click to jump, drag edges to resize"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Auto-fit"})," — top-left toggle to lock/unlock automatic camera reframing"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Copy"})," — clipboard icon copies task with project info"]})]}),(0,l.jsxs)("div",{className:"mt-5 pt-4 border-t border-zinc-100 text-xs text-zinc-400",children:["Built with"," ",l.jsx("a",{href:"https://github.com/GainForest/beads",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 transition-colors",style:{color:iG.green},children:"beads"})," ","— open-source issue tracking for AI-native development. Heartbeads is built for the GainForest agentic workflow and open-sourced at"," ",l.jsx("a",{href:"https://github.com/daviddao/heartbeads",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 transition-colors",style:{color:iG.green},children:"github.com/daviddao/heartbeads"}),"."]})]})}let iQ=new Map,i0=new Map;async function i1(e){let t=iQ.get(e);if(t)return t;let n=i0.get(e);if(n)return n;let r=(async()=>{try{let t=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(e)}`);if(!t.ok)throw Error(`Profile fetch failed: ${t.status}`);let n=await t.json(),r={did:e,handle:n.handle||e,displayName:n.displayName||void 0,avatar:n.avatar||void 0};return iQ.set(e,r),r}catch{let t={did:e,handle:e.slice(0,20)+"..."};return iQ.set(e,t),t}finally{i0.delete(e)}})();return i0.set(e,r),r}let i5=`
5
+ `}),(0,l.jsxs)("div",{className:"comment-tooltip-shadow p-[18px_20px]",children:[l.jsx("div",{className:"rounded-sm mb-2.5",style:{width:24,height:2,background:w,opacity:.6}}),(0,l.jsxs)("div",{className:"mb-3",children:[l.jsx("span",{className:"text-xs font-mono text-emerald-600",children:e.id}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-800 leading-tight mt-0.5",children:e.title})]}),j>0&&a&&(0,l.jsxs)("div",{className:"mb-3 pb-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-blue-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),(0,l.jsxs)("span",{className:"text-[10px] font-medium text-zinc-500 uppercase tracking-wider",children:[j," comment",1!==j?"s":""]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[a.slice(0,2).map(e=>(0,l.jsxs)("div",{className:"flex gap-1.5",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden mt-0.5",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[7px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] font-medium text-zinc-500 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle}),l.jsx("p",{className:"text-[11px] text-zinc-500 line-clamp-2 leading-tight",children:e.text})]})]},e.uri)),j>2&&(0,l.jsxs)("p",{className:"text-[10px] text-zinc-400 italic",children:["+",j-2," more — see detail panel"]})]})]}),s?(0,l.jsxs)("div",{children:[l.jsx("textarea",{ref:f,value:c,onChange:e=>u(e.target.value),onKeyDown:k,placeholder:"Leave a comment...",rows:3,className:"w-full px-2.5 py-2 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-300",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","+Enter to send"]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:r,className:"px-2.5 py-1 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"Cancel"}),l.jsx("button",{onClick:v,disabled:!c.trim()||d,className:"px-3 py-1 text-[11px] font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:d?(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsxs)("svg",{className:"w-3 h-3 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending"]}):"Send"})]})]})]}):(0,l.jsxs)("div",{className:"text-center py-3",children:[l.jsx("svg",{className:"w-5 h-5 text-zinc-300 mx-auto mb-1.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"Sign in to comment"})]})]})]})}function iL({node:e,x:t,y:n,onShowDescription:r,onAddComment:i,onClaimTask:s,onUnclaimTask:a,onCollapseEpic:c,onUncollapseEpic:u,onFocusEpic:d,onExitFocusEpic:h,onClose:p}){let f=(0,o.useRef)(null),[m,x]=(0,o.useState)({x:0,y:0}),[g,y]=(0,o.useState)(!1);return l.jsx("div",{ref:f,style:{position:"fixed",left:m.x,top:m.y,zIndex:100,opacity:g?1:0,transform:g?"translateY(0)":"translateY(2px)",transition:"opacity 0.15s ease, transform 0.15s ease"},onContextMenu:e=>e.preventDefault(),children:(0,l.jsxs)("div",{className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",style:{minWidth:180,boxShadow:"0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06)"},children:[e.description&&(0,l.jsxs)("button",{onClick:r,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors border-b border-zinc-100",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Show description"]}),(0,l.jsxs)("button",{onClick:i,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${s||a||c||u||d||h?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),"Add comment"]}),s&&(0,l.jsxs)("button",{onClick:s,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${c||u||d||h?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})}),"Claim task"]}),a&&(0,l.jsxs)("button",{onClick:a,className:`w-full px-3 py-2.5 text-xs text-red-500 hover:bg-red-50 flex items-center gap-2 transition-colors${c||u||d||h?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-red-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10.5h-6m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z"})}),"Unclaim task"]}),c&&(0,l.jsxs)("button",{onClick:c,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${d||h?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})}),"Collapse epic"]}),u&&(0,l.jsxs)("button",{onClick:u,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${d||h?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),"Uncollapse epic"]}),d&&(0,l.jsxs)("button",{onClick:d,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 3.75H6A2.25 2.25 0 003.75 6v1.5M16.5 3.75H18A2.25 2.25 0 0120.25 6v1.5M16.5 20.25H18A2.25 2.25 0 0020.25 18v-1.5M7.5 20.25H6A2.25 2.25 0 013.75 18v-1.5"})}),"Focus on epic"]}),h&&(0,l.jsxs)("button",{onClick:h,className:"w-full px-3 py-2.5 text-xs text-emerald-600 hover:bg-emerald-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-emerald-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),"Show full graph"]})]})})}let iA={bg:"#FFFFFF",border:"#E5E7EB",borderLight:"#F3F4F6",shadow:"rgba(0,0,0,0.08)",text:"#131316",textMuted:"#737680",textDim:"#7F818B"};function iD({node:e,x:t,y:n,prefixColor:r,allNodes:i}){let s=(0,o.useRef)(null),[a,c]=(0,o.useState)({x:0,y:0}),h=e.dependentIds.map(e=>{let t=i.find(t=>t.id===e);return t?{id:e,title:t.title}:{id:e,title:e}}).filter(Boolean),p=u[e.priority]||`P${e.priority}`,m=d[e.priority]||"#a1a1aa";return(0,l.jsxs)("div",{ref:s,className:"bead-tooltip",style:{position:"fixed",left:a.x,top:a.y,width:280,zIndex:100,pointerEvents:"none",background:iA.bg,border:`1px solid ${iA.border}`,boxShadow:`0 8px 32px ${iA.shadow}, 0 2px 8px ${iA.shadow}`,borderRadius:8,padding:"16px 18px",animation:"beadTooltipFade 0.2s ease"},children:[l.jsx("div",{style:{width:24,height:2,background:r,opacity:.5,marginBottom:8,borderRadius:1}}),(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[l.jsx("span",{style:{fontSize:10,fontWeight:600,color:r,letterSpacing:.5,textTransform:"uppercase"},children:f(e.prefix)}),l.jsx("span",{style:{fontSize:10,fontFamily:"monospace",color:iA.textDim},children:e.id})]}),l.jsx("div",{style:{fontSize:14,fontWeight:600,color:iA.text,lineHeight:1.25,marginBottom:12,overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:e.title}),(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,l.jsxs)("div",{children:[l.jsx("div",{style:iT,children:"Created"}),l.jsx("div",{style:iE,children:im(e.createdAt)})]}),e.owner&&(0,l.jsxs)("div",{children:[l.jsx("div",{style:iT,children:"Owner"}),l.jsx("div",{style:iE,children:e.owner})]}),(e.assignee||e.createdBy)&&(0,l.jsxs)("div",{children:[e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:iT,children:"Assignee"}),l.jsx("div",{style:iE,children:e.assignee})]}),e.createdBy&&!e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:iT,children:"Created by"}),l.jsx("div",{style:iE,children:e.createdBy})]}),e.createdBy&&e.assignee&&e.createdBy!==e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:{...iT,marginTop:4},children:"Created by"}),l.jsx("div",{style:iE,children:e.createdBy})]})]}),(0,l.jsxs)("div",{children:[l.jsx("div",{style:iT,children:"Blocked by"}),0===h.length?l.jsx("div",{style:{...iE,color:"#10b981"},children:"None"}):l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:3},children:h.map(e=>(0,l.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[l.jsx("span",{style:{fontSize:10,fontFamily:"monospace",color:iA.textDim,flexShrink:0},children:e.id}),l.jsx("span",{style:{fontSize:12,color:iA.textMuted,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title})]},e.id))})]}),(0,l.jsxs)("div",{style:{borderTop:`1px solid ${iA.borderLight}`,paddingTop:8},children:[l.jsx("div",{style:iT,children:"Priority"}),(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[l.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:m,flexShrink:0}}),l.jsx("span",{style:iE,children:p})]})]})]})]})}let iT={fontSize:10,fontWeight:600,letterSpacing:1.5,textTransform:"uppercase",color:"#7F818B",marginBottom:3},iE={fontSize:12,color:"#737680",lineHeight:1.45};function iP({isOpen:e,onClose:t,allComments:n,onNodeNavigate:r,isAuthenticated:i,currentDid:o,onLikeComment:s,onDeleteComment:a}){return(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${e?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"All Comments"}),n.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:n.length})]}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-3",children:n.length>0?l.jsx("div",{className:"space-y-0",children:n.filter(e=>!e.replyTo).map(e=>l.jsx(iI,{comment:e,currentDid:o,isAuthenticated:i,onNodeNavigate:r,onLike:s,onDelete:a,depth:0},e.uri))}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"No comments yet"}),l.jsx("p",{className:"text-[10px] text-zinc-300 mt-1",children:"Right-click a node to leave a comment"})]})}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[n.length," comment",1!==n.length?"s":""," across all issues"]})})]})}function iI({comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:s,depth:a}){let[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(!1),p=t&&t===e.did,f=!!t&&e.likes.some(e=>e.did===t),m=async()=>{if(i&&!c){u(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{u(!1)}}},x=async()=>{if(s&&!d){h(!0);try{await s(e)}catch(e){console.error("Failed to delete comment:",e)}finally{h(!1)}}};return(0,l.jsxs)("div",{className:`${a>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:`py-3 ${0===a?"border-b border-zinc-50":""}`,children:[0===a&&l.jsx("button",{onClick:()=>r(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 mb-1.5 rounded text-[10px] font-mono bg-emerald-50 text-emerald-600 hover:bg-emerald-100 transition-colors",children:e.nodeId}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:im(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:m,disabled:!n||c,className:`flex items-center gap-0.5 transition-colors ${f?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(iy,{className:"w-3 h-3",filled:f}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),p&&s&&l.jsx("button",{onClick:x,disabled:d,className:"ml-auto text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:d?"...":"delete"})]})]}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(iI,{comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:s,depth:a+1},e.uri))})]})}function iF({type:e,className:t}){let n=t||"w-3.5 h-3.5 shrink-0";switch(e){case"node-created":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("line",{x1:"8",y1:"5",x2:"8",y2:"11"}),l.jsx("line",{x1:"5",y1:"8",x2:"11",y2:"8"})]});case"node-closed":return(0,l.jsxs)("svg",{className:`${n} text-zinc-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"5.5,8 7.5,10 10.5,6"})]});case"node-status-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 8h10M10 5l3 3-3 3"})});case"node-priority-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M8 3v7M5 6l3-3 3 3M4 13h8"})});case"node-title-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 4h10M3 8h6M3 12h8"})});case"node-owner-changed":return(0,l.jsxs)("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"6",cy:"6",r:"2.5"}),l.jsx("path",{d:"M1.5 13c0-2 1.8-3.5 4.5-3.5M10 9l2 2 3-3"})]});case"link-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M6.5 9.5l3-3M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"})});case"link-removed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("path",{d:"M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"}),l.jsx("line",{x1:"3",y1:"3",x2:"13",y2:"13",strokeWidth:"1.5"})]});case"comment-added":case"reply-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M2 4.5a1.5 1.5 0 011.5-1.5h9A1.5 1.5 0 0114 4.5v5a1.5 1.5 0 01-1.5 1.5H5L2 14V4.5z"})});case"task-claimed":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"})]});case"task-unclaimed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"}),l.jsx("line",{x1:"11",y1:"3",x2:"13",y2:"5"})]});case"like-added":return l.jsx("svg",{className:`${n} text-rose-400`,viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 13.7l-.6-.5C4 10.2 2 8.3 2 6a3 3 0 016-1 3 3 0 016 1c0 2.3-2 4.2-5.4 7.2l-.6.5z"})})}}function iq(e){switch(e){case"node-created":case"task-claimed":return"bg-emerald-400";case"node-closed":return"bg-zinc-300";case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"bg-amber-400";case"link-added":case"comment-added":case"reply-added":return"bg-blue-400";case"link-removed":case"task-unclaimed":return"bg-red-300";case"like-added":return"bg-rose-300"}}function iR(e){switch(e.type){case"node-created":{let t=e.meta?.issueType||"task";return`${t} created`}case"node-closed":return`closed${e.detail&&"Closed"!==e.detail?` (${e.detail})`:""}`;case"node-status-changed":return e.detail||"status changed";case"node-priority-changed":return`priority ${e.detail||"changed"}`;case"node-title-changed":return"title updated";case"node-owner-changed":return`owner ${e.detail||"changed"}`;case"link-added":return`dep added: ${e.meta?.target||""}`;case"link-removed":return`dep removed: ${e.meta?.target||""}`;case"comment-added":return e.detail||"commented";case"reply-added":return e.detail||"replied";case"task-claimed":return"claimed this task";case"task-unclaimed":return"unclaimed this task";case"like-added":return e.detail||"liked a comment"}}function iO({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 group hover:bg-zinc-50/60 transition-colors",children:[l.jsx("div",{className:`w-1 h-1 rounded-full shrink-0 ${iq(e.type)}`}),l.jsx(iF,{type:e.type,className:"w-3 h-3 shrink-0"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0 text-[11px] text-zinc-600 truncate",children:[e.actor?(0,l.jsxs)(l.Fragment,{children:[e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-800 hover:text-emerald-600 transition-colors",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-medium text-zinc-800",children:e.actor.handle.split(".")[0]})," "]}):t?(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>t(e.nodeId),className:"font-medium text-zinc-700 hover:text-emerald-600 transition-colors",children:e.nodeId})," "]}):null,l.jsx("span",{className:"text-zinc-500",children:iR(e)})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums opacity-0 group-hover:opacity-100 transition-opacity",children:im(new Date(e.time).toISOString())})]})}function iB({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex gap-3 py-3 px-4 hover:bg-zinc-50/50 transition-colors group",children:[l.jsx("div",{className:`w-0.5 self-stretch rounded-full shrink-0 ${iq(e.type)}`}),l.jsx("div",{className:"mt-0.5 shrink-0",children:e.actor?.avatar?l.jsx("img",{src:e.actor.avatar,alt:e.actor.handle,className:"w-7 h-7 rounded-full ring-1 ring-zinc-100"}):e.actor?l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-100 flex items-center justify-center text-[11px] font-medium text-zinc-500",children:e.actor.handle.charAt(0).toUpperCase()}):l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-50 flex items-center justify-center",children:l.jsx(iF,{type:e.type,className:"w-3.5 h-3.5"})})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-baseline gap-1.5 text-[12px] leading-snug",children:[e.actor&&(e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors truncate max-w-[140px]",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-semibold text-zinc-800 truncate max-w-[140px]",children:e.actor.handle.split(".")[0]})),l.jsx("span",{className:"text-zinc-500",children:iR(e)})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mt-1",children:[t&&l.jsx("button",{onClick:()=>t(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-mono font-medium text-emerald-700 bg-emerald-50 rounded-md hover:bg-emerald-100 transition-colors",children:e.nodeId}),e.nodeTitle&&l.jsx("span",{className:"text-[11px] text-zinc-400 truncate",children:e.nodeTitle})]})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums mt-0.5",children:im(new Date(e.time).toISOString())})]})}function i_({event:e,variant:t="compact",onNodeClick:n}){return"compact"===t?l.jsx(iO,{event:e,onNodeClick:n}):l.jsx(iB,{event:e,onNodeClick:n})}function iU({events:e,collapsed:t,onToggleCollapse:n,onExpandPanel:r,onNodeClick:i}){let o=e.filter(e=>Date.now()-e.time<3e5).length;return t?(0,l.jsxs)("button",{onClick:n,className:"group flex items-center gap-2 px-3 py-2 bg-white/90 backdrop-blur-sm rounded-full border border-zinc-200/80 shadow-sm hover:bg-white hover:shadow-md transition-all",title:"Show activity feed",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5 text-zinc-400 group-hover:text-emerald-500 transition-colors",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"text-xs text-zinc-500 group-hover:text-zinc-700 transition-colors",children:"Activity"}),o>0&&l.jsx("span",{className:"text-[10px] font-medium text-white bg-emerald-500 rounded-full px-1.5 py-0.5 min-w-[18px] text-center leading-tight",children:o})]}):(0,l.jsxs)("div",{className:"w-72 bg-white/95 backdrop-blur-sm rounded-xl border border-zinc-200/80 shadow-lg overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2.5 border-b border-zinc-100/80",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),l.jsx("span",{className:"text-[11px] font-semibold text-zinc-600",children:"Live Activity"})]}),l.jsx("button",{onClick:n,className:"text-zinc-400 hover:text-zinc-600 transition-colors p-1 -mr-0.5 rounded-full hover:bg-zinc-100",title:"Collapse",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"})})})]}),l.jsx("div",{className:"py-0.5 max-h-[260px] overflow-y-auto custom-scrollbar",children:0===e.length?(0,l.jsxs)("div",{className:"py-6 text-center",children:[(0,l.jsxs)("svg",{className:"w-5 h-5 text-zinc-200 mx-auto mb-1.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("p",{className:"text-[11px] text-zinc-400",children:"No activity yet"})]}):e.slice(0,6).map((e,t)=>l.jsx("div",{className:0===t?"bg-emerald-50/30":"",children:l.jsx(i_,{event:e,variant:"compact",onNodeClick:i})},e.id))}),e.length>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2 border-t border-zinc-100/80 bg-zinc-50/30",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400",children:[e.length," event",1!==e.length?"s":""]}),(0,l.jsxs)("button",{onClick:r,className:"text-[11px] text-emerald-600 hover:text-emerald-700 transition-colors font-medium flex items-center gap-1",children:["See all",l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})]})]})}let iH=[{key:"issues",label:"Issues",icon:"circle"},{key:"deps",label:"Deps",icon:"link"},{key:"comments",label:"Comments",icon:"chat"},{key:"claims",label:"Claims",icon:"user"},{key:"likes",label:"Likes",icon:"heart"}];function i$({events:e,isOpen:t,onClose:n,onNodeClick:r}){let[i,s]=(0,o.useState)(""),[a,c]=(0,o.useState)(new Set(iH.map(e=>e.key))),u=e=>{c(t=>{let n=new Set(t);return n.has(e)?n.size>1&&n.delete(e):n.add(e),n})},d=(0,o.useMemo)(()=>{let t=e;if(t=t.filter(e=>a.has(function(e){switch(e){case"node-created":case"node-closed":case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"issues";case"link-added":case"link-removed":return"deps";case"comment-added":case"reply-added":return"comments";case"task-claimed":case"task-unclaimed":return"claims";case"like-added":return"likes"}}(e.type))),i.trim()){let e=i.trim().toLowerCase();t=t.filter(t=>t.nodeId.toLowerCase().includes(e)||t.nodeTitle&&t.nodeTitle.toLowerCase().includes(e)||t.actor?.handle&&t.actor.handle.toLowerCase().includes(e)||t.detail&&t.detail.toLowerCase().includes(e))}return t},[e,a,i]),h=(0,o.useMemo)(()=>(function(e){let t=new Map,n=[];for(let r of e){let e=function(e){let t=Date.now()-e,n=t/36e5,r=t/864e5;return n<1?"Just now":n<24?"Today":r<2?"Yesterday":r<7?"This week":r<30?"This month":"Older"}(r.time);t.has(e)||(t.set(e,[]),n.push(e)),t.get(e).push(r)}return n.map(e=>({label:e,events:t.get(e)}))})(d),[d]),p=a.size===iH.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${t?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"px-4 pt-3 pb-2 shrink-0",children:(0,l.jsxs)("div",{className:"flex items-center bg-zinc-50/80 rounded-full border border-zinc-200/60 overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{type:"text",value:i,onChange:e=>s(e.target.value),placeholder:"Search activity...",className:"flex-1 px-2 py-2 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400"}),i&&l.jsx("button",{onClick:()=>s(""),className:"pr-3 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-4 pb-3 shrink-0",children:iH.map(e=>{let t=a.has(e.key);return l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-all ${t?"bg-emerald-50 text-emerald-700 border-emerald-200 shadow-sm":"bg-white text-zinc-400 border-zinc-200 hover:text-zinc-600 hover:border-zinc-300"}`,children:e.label},e.key)})}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar border-t border-zinc-100",children:0===d.length?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:i.trim()?"No activity matching your search":"No activity yet"}),i.trim()&&l.jsx("button",{onClick:()=>s(""),className:"text-[11px] text-emerald-600 hover:text-emerald-700 mt-1.5",children:"Clear search"})]}):h.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-4 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(i_,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[d.length," event",1!==d.length?"s":"",!p&&" (filtered)",i.trim()&&` matching "${i.trim()}"`]})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transition-transform duration-300 ease-out ${t?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl shadow-xl border-t border-zinc-200 max-h-[60vh] flex flex-col",children:[l.jsx("div",{className:"flex justify-center pt-3 pb-1",children:l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full"})}),(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-5 pb-3",children:iH.map(e=>l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-colors ${a.has(e.key)?"bg-emerald-50 text-emerald-700 border-emerald-200":"bg-white text-zinc-400 border-zinc-200"}`,children:e.label},e.key))}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:0===d.length?l.jsx("div",{className:"py-8 text-center text-xs text-zinc-400",children:"No activity matching filters"}):h.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-5 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(i_,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))})]})})]})}let iV=[{target:"graph",title:"The Dependency Graph",description:"Each circle is a task or issue. The flowing particles between them show the direction of dependencies — what needs to happen before something else can start. Bigger circles mean more connections.",padding:0},{target:"layouts",title:"Layout Modes",description:"Switch how the graph is arranged. Force is organic and physics-based. DAG gives you a clean top-down tree. Radial spreads nodes in rings. Cluster groups by project. Spread spaces everything out for screenshots."},{target:"view-controls",title:"View Controls",description:"Collapse or expand epic groups, toggle cluster label overlays, and control auto-fit. When auto-fit is on (green), the camera re-centers after every update. Turn it off to stay focused on a specific area while data streams in."},{target:"legend",title:"Color Modes & Legend",description:"Color nodes by Status, Priority, Owner, Assignee, or Prefix. The ring around each node always shows which project it belongs to."},{target:"minimap",title:"Minimap",description:"A bird’s-eye view of your entire graph. Click anywhere to jump there. Drag the edges to resize it."},{target:"search",title:"Search",description:"Press Cmd+F (or Ctrl+F) to search by name, ID, owner, assignee, or commenter. Arrow keys to navigate, Enter to focus."},{target:"graph",title:"Interacting with Nodes",description:"Click a node to see details. Hover for a quick tooltip. Right-click for actions like viewing descriptions, commenting, claiming tasks, or collapsing epics.",padding:0},{target:"nav-pills",title:"Navigation Bar",description:"Replay steps through your project’s history. Comments shows conversations. Activity is a real-time feed. And Learn brings you right back here."}];function iW({step:e,onNext:t,onEnd:n}){let[r,i]=(0,o.useState)(null);if((0,o.useCallback)(()=>{if(null===e){i(null);return}let t=iV[e];if(!t){i(null);return}let n=document.querySelector(`[data-tutorial="${t.target}"]`);if(n){let e=n.getBoundingClientRect(),r=t.padding??8;i({left:e.left-r,top:e.top-r,width:e.width+2*r,height:e.height+2*r})}else i(null)},[e]),null===e)return null;let s=e===iV.length-1;return(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-[55] cursor-pointer",onClick:()=>{s?n():t()},children:(0,l.jsxs)("svg",{className:"absolute inset-0 w-full h-full",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("defs",{children:(0,l.jsxs)("mask",{id:"tutorial-mask",children:[l.jsx("rect",{width:"100%",height:"100%",fill:"white"}),r&&l.jsx("rect",{x:r.left,y:r.top,width:r.width,height:r.height,rx:8,ry:8,fill:"black"})]})}),l.jsx("rect",{width:"100%",height:"100%",fill:"rgba(0,0,0,0.45)",mask:"url(#tutorial-mask)"})]})}),r&&l.jsx("div",{className:"fixed rounded-lg ring-2 ring-emerald-400/60 animate-pulse z-[56]",style:{left:r.left,top:r.top,width:r.width,height:r.height,pointerEvents:"none"}})]})}let iG={red:"#d20f39",teal:"#179299",peach:"#fe640b",blue:"#1e66f5",green:"#40a02b",mauve:"#8839ef",surface:"#dce0e8"};function iY({isOpen:e,onClose:t,tutorialStep:n=null,onStartTutorial:r,onNextStep:i,onPrevStep:o,onEndTutorial:s}){let a=null!==n,c=a?"Tutorial":"Welcome to Heartbeads",u=a?l.jsx(iX,{step:n,onNext:i,onPrev:o,onEnd:s}):l.jsx(iZ,{onStartTutorial:r});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl transform transition-transform duration-300 ease-out ${e?"translate-x-0":"translate-x-full"} ${a?"z-[60]":"z-30"}`,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100 shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:c}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:u})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 transform transition-transform duration-300 ease-out ${e?"translate-y-0":"translate-y-full"} ${a?"z-[60]":"z-20"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl shadow-2xl border-t border-zinc-200 max-h-[70vh] flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100 shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:c}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:u})]})})]})}function iX({step:e,onNext:t,onPrev:n,onEnd:r}){let i=iV[e],o=iV.length,s=e===o-1;return(0,l.jsxs)("div",{className:"px-5 py-4 flex flex-col min-h-[300px]",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,l.jsxs)("span",{className:"text-xs font-medium",style:{color:iG.teal},children:[e+1," / ",o]}),l.jsx("div",{className:"flex gap-1",children:Array.from({length:o}).map((t,n)=>l.jsx("div",{className:"w-1.5 h-1.5 rounded-full transition-colors",style:{backgroundColor:n===e?iG.green:n<e?iG.teal:iG.surface}},n))})]}),l.jsx("h3",{className:"text-base font-semibold text-zinc-900 mb-2",children:i.title}),l.jsx("p",{className:"text-[13px] text-zinc-600 leading-relaxed mb-6",children:i.description}),l.jsx("div",{className:"flex-1"}),(0,l.jsxs)("div",{className:"flex items-center gap-2 pt-4 border-t border-zinc-100",children:[0===e?l.jsx("button",{onClick:r,className:"px-4 py-2 text-sm font-medium text-zinc-400 hover:text-zinc-600 rounded-lg hover:bg-zinc-50 transition-colors",children:"Skip"}):l.jsx("button",{onClick:n,className:"px-4 py-2 text-sm font-medium rounded-lg hover:bg-zinc-50 transition-colors",style:{color:iG.blue},children:"Back"}),l.jsx("div",{className:"flex-1"}),s?l.jsx("button",{onClick:r,className:"px-4 py-2 text-sm font-medium text-white rounded-lg bg-emerald-500 hover:bg-emerald-600 transition-colors",children:"Done"}):l.jsx("button",{onClick:t,className:"px-4 py-2 text-sm font-medium text-white rounded-lg bg-emerald-500 hover:bg-emerald-600 transition-colors",children:"Next"})]})]})}function iJ({color:e,children:t}){return(0,l.jsxs)("li",{className:"flex gap-2.5 items-start",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full mt-[6px] shrink-0",style:{backgroundColor:e}}),l.jsx("span",{children:t})]})}function iK({children:e,color:t}){return l.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2 mt-5 first:mt-0",style:{color:t},children:e})}function iZ({onStartTutorial:e}){return(0,l.jsxs)("div",{className:"px-5 py-4 text-[13px] text-zinc-600 leading-relaxed",children:[e&&(0,l.jsxs)("button",{onClick:e,className:"w-full flex items-center justify-center gap-2 px-4 py-2.5 mb-5 text-white text-sm font-medium rounded-lg bg-emerald-500 hover:bg-emerald-600 transition-colors",children:[l.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"})}),"Take the guided tour"]}),l.jsx("p",{className:"text-zinc-900 font-medium mb-1",children:"Your command center for AI coding tasks."}),l.jsx("p",{className:"mb-4 text-zinc-500",children:"Heartbeads shows everything your AI agents are working on as a live, interactive graph — tasks, dependencies, who's doing what, and what's blocking progress."}),l.jsx(iK,{color:iG.red,children:"The graph"}),(0,l.jsxs)("p",{className:"mb-2",children:["Each ",l.jsx("strong",{children:"circle"})," is a task. ",l.jsx("strong",{children:"Flowing particles"})," ","stream between them to show dependency direction."]}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Bigger circles"})," — more connected, more important"]}),(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Solid lines + particles"})," — “blocks” (A must finish before B)"]}),(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Dashed lines"})," — parent-child grouping"]}),(0,l.jsxs)(iJ,{color:iG.red,children:[l.jsx("strong",{children:"Colored ring"})," — which project it belongs to"]})]}),l.jsx(iK,{color:iG.blue,children:"Navigation"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Click"})," a node to open its details"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Hover"})," for a quick summary"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Right-click"})," for actions — descriptions, comments, claims, collapse"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Scroll"})," to zoom, ",l.jsx("strong",{children:"drag"})," to pan"]}),(0,l.jsxs)(iJ,{color:iG.blue,children:[l.jsx("strong",{children:"Cmd/Ctrl+F"})," to search by name, ID, owner, or commenter"]})]}),l.jsx(iK,{color:iG.teal,children:"Layouts"}),l.jsx("p",{className:"mb-2",children:"Top-left buttons rearrange the graph:"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Force"})," — organic, physics-based"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"DAG"})," — clean top-down tree"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Radial"})," — rings from center outward"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Cluster"})," — grouped by project"]}),(0,l.jsxs)(iJ,{color:iG.teal,children:[l.jsx("strong",{children:"Spread"})," — spaced out for screenshots"]})]}),l.jsx(iK,{color:iG.peach,children:"Color modes"}),l.jsx("p",{className:"mb-2",children:"Bottom-right panel — paint nodes by:"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Status"})," — open, in progress, blocked, closed"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Priority"})," — P0 critical to P4 backlog"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Owner"})," — who created it"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Assignee"})," — who's working on it"]}),(0,l.jsxs)(iJ,{color:iG.peach,children:[l.jsx("strong",{children:"Prefix"})," — which project"]})]}),l.jsx(iK,{color:iG.mauve,children:"More"}),(0,l.jsxs)("ul",{className:"space-y-1.5 mb-3",children:[(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Collapse/Expand"})," — tidy up epics into single nodes"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Clusters"})," — dashed circles grouping projects when zoomed out"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Replay"})," — step through your project's history"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Comments"})," — leave notes on tasks (sign in first)"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Claim tasks"})," — right-click to mark as yours"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Minimap"})," — click to jump, drag edges to resize"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Auto-fit"})," — top-left toggle to lock/unlock automatic camera reframing"]}),(0,l.jsxs)(iJ,{color:iG.mauve,children:[l.jsx("strong",{children:"Copy"})," — clipboard icon copies task with project info"]})]}),(0,l.jsxs)("div",{className:"mt-5 pt-4 border-t border-zinc-100 text-xs text-zinc-400",children:["Built with"," ",l.jsx("a",{href:"https://github.com/GainForest/beads",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 transition-colors",style:{color:iG.green},children:"beads"})," ","— open-source issue tracking for AI-native development. Heartbeads is built for the GainForest agentic workflow and open-sourced at"," ",l.jsx("a",{href:"https://github.com/daviddao/heartbeads",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 transition-colors",style:{color:iG.green},children:"github.com/daviddao/heartbeads"}),"."]})]})}let iQ=new Map,i0=new Map;async function i1(e){let t=iQ.get(e);if(t)return t;let n=i0.get(e);if(n)return n;let r=(async()=>{try{let t=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(e)}`);if(!t.ok)throw Error(`Profile fetch failed: ${t.status}`);let n=await t.json(),r={did:e,handle:n.handle||e,displayName:n.displayName||void 0,avatar:n.avatar||void 0};return iQ.set(e,r),r}catch{let t={did:e,handle:e.slice(0,20)+"..."};return iQ.set(e,t),t}finally{i0.delete(e)}})();return i0.set(e,r),r}let i5=`
6
6
  query FetchRecords($collection: String!, $first: Int, $after: String) {
7
7
  records(collection: $collection, first: $first, after: $after) {
8
8
  edges {
@@ -21,4 +21,4 @@
21
21
  }
22
22
  }
23
23
  }
24
- `;async function i2(e){let t;let n=[],r=!0,i=0;for(;r&&i<5;){let l=await fetch("https://hypergoat-app-production.up.railway.app/graphql",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:i5,variables:{collection:e,first:100,after:t}})});if(!l.ok)throw Error(`Indexer fetch failed: ${l.status}`);let o=await l.json();if(o.errors?.length)throw Error(o.errors[0].message);let s=o.data?.records;if(!s)break;for(let e of s.edges)n.push(e.node);r=s.pageInfo.hasNextPage,t=s.pageInfo.endCursor,i++}return n}function i4({totalSteps:e,currentStep:t,currentTime:n,isPlaying:r,speed:i,onStepChange:s,onPlayPause:a,onSpeedChange:c}){let u=(0,o.useCallback)(e=>{s(Number(e.target.value))},[s]),d=(0,o.useCallback)(()=>{c(1===i?2:2===i?4:1)},[i,c]),h=e>1;return l.jsx("div",{className:"bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 min-w-[280px] max-w-[480px]",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:a,disabled:!h,className:`shrink-0 w-6 h-6 flex items-center justify-center rounded transition-colors ${r?"text-emerald-500 hover:text-emerald-600":"text-zinc-500 hover:text-zinc-700"} disabled:opacity-40 disabled:cursor-not-allowed`,children:r?(0,l.jsxs)("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:[l.jsx("rect",{x:"3",y:"2",width:"3.5",height:"12",rx:"1"}),l.jsx("rect",{x:"9.5",y:"2",width:"3.5",height:"12",rx:"1"})]}):l.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M4 2l10 6-10 6V2z"})})}),l.jsx("input",{type:"range",min:0,max:Math.max(e-1,0),value:t,onChange:u,disabled:!h,className:"timeline-slider flex-1 h-4 disabled:opacity-40"}),(0,l.jsxs)("span",{className:"shrink-0 text-xs text-zinc-500 font-medium text-right whitespace-nowrap",children:[(0,l.jsxs)("span",{className:"text-zinc-400",children:[t+1,"/",e]})," ",new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),(0,l.jsxs)("button",{onClick:d,className:`shrink-0 px-1.5 py-0.5 text-[10px] font-semibold rounded transition-colors ${i>1?"bg-emerald-500 text-white":"text-zinc-500 border border-zinc-200 hover:text-zinc-700"}`,children:[i,"x"]})]})})}let i3={open:"bg-emerald-500",in_progress:"bg-amber-500",blocked:"bg-red-500",deferred:"bg-violet-500",closed:"bg-zinc-400"};function i6(){let[e,t]=(0,o.useState)(null),[n,r]=(0,o.useState)(!0),[i,s]=(0,o.useState)(null),[a,c]=(0,o.useState)(null),[u,d]=(0,o.useState)(null),[h,p]=(0,o.useState)(new Set),[f,x]=(0,o.useState)("status"),[g,y]=(0,o.useState)("Beads"),[b,v]=(0,o.useState)(0),[k,w]=(0,o.useState)({}),{isAuthenticated:j,session:N}=(0,iC.a)(),{commentsByNode:C,commentedNodeIds:S,allComments:z,refetch:D}=function(){let[e,t]=(0,o.useState)(new Map),[n,r]=(0,o.useState)(new Map),[i,l]=(0,o.useState)([]),[s,a]=(0,o.useState)(!0),[c,u]=(0,o.useState)(null),d=(0,o.useRef)(!1);return{commentsByNode:e,commentedNodeIds:n,allComments:i,isLoading:s,error:c,refetch:(0,o.useCallback)(async()=>{try{a(!0),u(null);let[e,n]=await Promise.all([i2("org.impactindexer.review.comment"),i2("org.impactindexer.review.like")]),i=e.filter(e=>{let t=e.value.subject;return t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("beads:")}),o=new Map;for(let e of n){let t=e.value.subject;if(t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("at://")){let n=o.get(t.uri)||[];n.push(e),o.set(t.uri,n)}}let s=new Set;for(let e of i)s.add(e.did);for(let e of n)s.add(e.did);let c=await Promise.all([...s].map(e=>i1(e))),h=new Map(c.map(e=>[e.did,e])),p=[];for(let e of i){let t=e.value,n=t.subject.uri.replace(/^beads:/,""),r=t.text||"",i=t.createdAt||"",l=t.replyTo||void 0,s=h.get(e.did),a=(o.get(e.uri)||[]).map(e=>{let t=h.get(e.did),n=e.value;return{did:e.did,handle:t?.handle||e.did.slice(0,20)+"...",displayName:t?.displayName,avatar:t?.avatar,createdAt:n.createdAt||"",uri:e.uri,rkey:e.rkey}}),c={did:e.did,handle:s?.handle||e.did.slice(0,20)+"...",displayName:s?.displayName,avatar:s?.avatar,text:r,createdAt:i,uri:e.uri,rkey:e.rkey,nodeId:n,replyTo:l,likes:a,replies:[]};p.push(c)}let f=new Map;for(let e of p)f.set(e.uri,e);let m=[];for(let e of p){if(e.replyTo){let t=f.get(e.replyTo);if(t){t.replies.push(e);continue}}m.push(e)}m.sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),function e(t){for(let n of t)n.replies.sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()),e(n.replies)}(m);let x=new Map;for(let e of m){let t=x.get(e.nodeId)||[];t.push(e),x.set(e.nodeId,t)}let g=new Map;for(let e of p)g.set(e.nodeId,(g.get(e.nodeId)||0)+1);let y=[...p].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime());d.current||(t(x),r(g),l(y))}catch(e){if(!d.current){let t=e instanceof Error?e.message:"Failed to fetch comments";console.error("Failed to fetch beads comments:",e),u(t)}}finally{d.current||a(!1)}},[])}}(),[L,M]=(0,o.useState)(new Map),[A,T]=(0,o.useState)(new Set),E=(0,o.useMemo)(()=>{let e=new Map;if(z)for(let t of z){if(e.has(t.nodeId)||A.has(t.nodeId))continue;let n=t.text.trim();n.startsWith("@")&&-1===n.indexOf(" ")&&e.set(t.nodeId,{avatar:t.avatar,handle:t.handle,claimedAt:t.createdAt,did:t.did,rkey:t.rkey})}for(let[t,n]of L)e.has(t)||A.has(t)||e.set(t,n);return e},[z,L,A]),[I,F]=(0,o.useState)(!1),[q,R]=(0,o.useState)([]),[O,B]=(0,o.useState)(!1),[_,U]=(0,o.useState)(!1),[H,V]=(0,o.useState)(!1),[$,W]=(0,o.useState)(null),[G,Y]=(0,o.useState)(null),[X,J]=(0,o.useState)(null),[K,Z]=(0,o.useState)(null),[Q,ee]=(0,o.useState)(null),[et,en]=(0,o.useState)(null),[er,ei]=(0,o.useState)(!1),[el,eo]=(0,o.useState)(""),[es,ea]=(0,o.useState)(0),[ec,eu]=(0,o.useState)(!1),[ed,eh]=(0,o.useState)(0),[ep,ef]=(0,o.useState)(!1),[em,ex]=(0,o.useState)(1),[eg,ey]=(0,o.useState)(null),[eb,ev]=(0,o.useState)(!0),[ek,ew]=(0,o.useState)(!0),ej=(0,o.useRef)(null),eN=(0,o.useRef)(null);(0,o.useRef)(null);let eC=(0,o.useMemo)(()=>e?function(e,t){let n=[];for(let t of e){let e=new Date(t.createdAt).getTime();if(isNaN(e)||n.push({time:e,type:"node-created",id:t.id}),t.closedAt){let e=new Date(t.closedAt).getTime();isNaN(e)||n.push({time:e,type:"node-closed",id:t.id})}}n.sort((e,t)=>e.time-t.time);let r=n.length>0?n[0].time:Date.now(),i=n.length>0?n[n.length-1].time:Date.now();return{events:n,minTime:r,maxTime:i}}(e.graphData.nodes,e.graphData.links):null,[e]),eS=(0,o.useCallback)(()=>{eu(e=>{let t=!e;return t&&eh(-1),ef(!1),ey(null),t})},[]),ez=(0,o.useCallback)(e=>{c(t=>t?.id===e.id?null:e),F(!1),B(!1),V(!1),W(null)},[]),eD=(0,o.useCallback)((e,t,n)=>{d(e),en(e?{node:e,x:t,y:n}:null)},[]),eL=(0,o.useCallback)(e=>{p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),eM=(0,o.useMemo)(()=>{if(!e)return new Set;let{nodes:t,links:n}=e.graphData,r=new Set;for(let e of n)if("parent-child"===e.type){let t="object"==typeof e.source?e.source.id:e.source;r.add(t)}let i=new Set(t.map(e=>e.id));for(let e of t)if(e.id.includes(".")){let t=e.id.split(".")[0];i.has(t)&&r.add(t)}return r},[e]),eA=(0,o.useCallback)(()=>{p(new Set(eM))},[eM]),eT=(0,o.useCallback)(()=>{p(new Set)},[]),eE=(0,o.useCallback)(()=>{V(!0),c(null),F(!1),B(!1),W(0)},[]),eP=(0,o.useCallback)(()=>{W(e=>null===e?null:e>=i$.length-1?e:e+1)},[]),eI=(0,o.useCallback)(()=>{W(e=>null===e||e<=0?e:e-1)},[]),eF=(0,o.useCallback)(()=>{W(null)},[]),eq=(0,o.useCallback)(()=>{c(null),Y(null),J(null)},[]),eR=(0,o.useCallback)((e,t)=>{J(null),en(null),e.description||j||"epic"===e.issueType?Y({node:e,x:t.clientX,y:t.clientY}):J({node:e,x:t.clientX,y:t.clientY})},[j]),eO=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{$type:"org.impactindexer.review.comment",subject:{uri:`beads:${e}`,type:"record"},text:t,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post comment");await D()},[D]),eB=(0,o.useCallback)(async e=>{if(!N?.handle)return;let t=N.avatar;if(!t&&N.did)try{let e=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(N.did)}`);e.ok&&(t=(await e.json()).avatar)}catch{}M(n=>{let r=new Map(n);return r.set(e,{avatar:t,claimedAt:new Date().toISOString(),handle:N.handle}),r}),await eO(e,`@${N.handle}`),setTimeout(()=>D(),3e3)},[N?.handle,N?.did,N?.avatar,eO,D]),e_=(0,o.useCallback)(async e=>{let t=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.comment")}&rkey=${encodeURIComponent(e.rkey)}`,{method:"DELETE"});if(!t.ok)throw Error((await t.json()).error||"Failed to delete comment");await D()},[D]),eU=(0,o.useCallback)(async e=>{let t=E.get(e);t&&(T(t=>new Set(t).add(e)),M(t=>{let n=new Map(t);return n.delete(e),n}),t.rkey?(await e_({rkey:t.rkey}),T(t=>{let n=new Set(t);return n.delete(e),n})):setTimeout(async()=>{await D(),T(t=>{let n=new Set(t);return n.delete(e),n})},3e3))},[E,e_,D]),eH=(0,o.useCallback)(async e=>{let t=e.likes.find(e=>e.did===N?.did);if(t){let e=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.like")}&rkey=${encodeURIComponent(t.rkey)}`,{method:"DELETE"});if(!e.ok)throw Error((await e.json()).error||"Failed to unlike")}else{let t=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.like",record:{subject:{uri:e.uri,type:"record"},createdAt:new Date().toISOString()}})});if(!t.ok)throw Error((await t.json()).error||"Failed to like")}await D()},[N?.did,D]),eV=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{subject:{uri:`beads:${e.nodeId}`,type:"record"},text:t,replyTo:e.uri,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post reply");await D()},[D]),e$=(0,o.useCallback)(t=>{if(!e)return;let n=e.graphData.nodes.find(e=>e.id===t);n&&c(n)},[e]),eW=(0,o.useMemo)(()=>{let e=new Map;if(!z)return e;let t=new Map;for(let e of z)t.has(e.nodeId)||t.set(e.nodeId,new Set),t.get(e.nodeId).add(e.handle),e.displayName&&t.get(e.nodeId).add(e.displayName);for(let[n,r]of t)e.set(n,Array.from(r).join(" "));return e},[z]),eG=(0,o.useMemo)(()=>{if(!e||!el.trim())return[];let t=el.toLowerCase();return e.graphData.nodes.filter(e=>{let n=eW.get(e.id)||"";return`${e.id} ${e.title} ${e.prefix} ${e.owner||""} ${e.assignee||""} ${e.createdBy||""} ${n}`.toLowerCase().includes(t)}).slice(0,8)},[el,e,eW]),eY=(0,o.useCallback)(e=>{ej.current?.focusNode(e),ei(!1),eo(""),ea(0)},[]),eX=(0,o.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),ea(e=>Math.min(e+1,eG.length-1))):"ArrowUp"===e.key?(e.preventDefault(),ea(e=>Math.max(e-1,0))):"Enter"===e.key&&eG.length>0&&(e.preventDefault(),eY(eG[es]))},[eG,es,eY]);return n?(0,l.jsxs)("div",{className:"h-screen flex flex-col items-center justify-center bg-white",children:[(0,l.jsxs)("div",{className:"relative mb-6",children:[l.jsx("div",{className:"w-12 h-12 border-2 border-zinc-200 border-t-emerald-500 rounded-full animate-spin"}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"})})]}),l.jsx("p",{className:"text-sm text-zinc-500 animate-pulse-soft",children:"Loading beads graph..."}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Parsing issues and dependencies"})]}):i?l.jsx("div",{className:"h-screen flex items-center justify-center bg-white",children:(0,l.jsxs)("div",{className:"max-w-sm text-center",children:[l.jsx("div",{className:"w-14 h-14 mx-auto mb-4 bg-red-50 rounded-full flex items-center justify-center",children:l.jsx("svg",{className:"w-7 h-7 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Unable to load data"}),l.jsx("p",{className:"text-sm text-zinc-500 mb-4",children:i}),(0,l.jsxs)("button",{onClick:()=>window.location.reload(),className:"inline-flex items-center gap-2 px-4 py-2 bg-emerald-600 text-white text-sm rounded-lg hover:bg-emerald-700 transition-colors",children:[l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Try Again"]})]})}):e?(0,l.jsxs)("div",{className:"h-screen flex flex-col overflow-hidden bg-white",children:[l.jsx("header",{className:"sticky top-0 z-50 shrink-0 bg-white/95 backdrop-blur-sm border-b border-zinc-200/80",children:(0,l.jsxs)("div",{className:"px-6 h-14 flex items-center",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 shrink-0 group",children:[l.jsx(iz,{className:"w-8 h-8 text-emerald-500 transition-transform group-hover:scale-105"}),(0,l.jsxs)("div",{className:"flex items-baseline gap-2",children:[l.jsx("h1",{className:"text-[15px] font-semibold text-zinc-900 tracking-tight",children:g}),l.jsx("span",{className:"font-normal text-zinc-400 text-[15px] hidden sm:inline",children:"heartbeads"}),b>1&&(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400 bg-zinc-100 rounded-full px-1.5 py-0.5 font-medium hidden sm:inline",children:[b," repos"]})]})]}),l.jsx("div",{className:"flex-1 flex justify-center px-4",children:l.jsx("div",{className:"relative w-full max-w-md","data-tutorial":"search",children:er?(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center bg-white rounded-full border border-zinc-200 shadow-sm overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{ref:eN,type:"text",value:el,onChange:e=>eo(e.target.value),onKeyDown:eX,placeholder:"Search issues...",className:"flex-1 px-2 py-1.5 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400",autoFocus:!0}),l.jsx("button",{onClick:()=>{ei(!1),eo(""),ea(0)},className:"px-2 py-1.5 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),el.trim()&&(0,l.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white rounded-xl border border-zinc-100 shadow-xl overflow-hidden max-h-72 overflow-y-auto z-50",children:[0===eG.length?l.jsx("div",{className:"px-3 py-3 text-xs text-zinc-400 text-center",children:"No matching issues"}):eG.map((e,t)=>(0,l.jsxs)("button",{onClick:()=>eY(e),onMouseEnter:()=>ea(t),className:`w-full text-left px-3 py-2 text-xs transition-colors flex items-start gap-2.5 ${t===es?"bg-emerald-50":"hover:bg-zinc-50"}`,children:[l.jsx("div",{className:"shrink-0 mt-1",children:l.jsx("div",{className:`w-2 h-2 rounded-full ${i3[e.status]||"bg-zinc-400"}`})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"font-medium text-zinc-600 shrink-0",children:e.id}),e.priority<=1&&l.jsx("span",{className:"text-[10px]",children:0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25"})]}),l.jsx("div",{className:"text-zinc-400 truncate mt-0.5",children:e.title})]}),l.jsx("span",{className:"shrink-0 text-[10px] text-zinc-400 bg-zinc-100 rounded px-1 py-0.5 mt-0.5",children:e.prefix})]},e.id)),eG.length>0&&(0,l.jsxs)("div",{className:"px-3 py-1.5 text-[10px] text-zinc-400 border-t border-zinc-100 bg-zinc-50/50 flex items-center justify-between",children:[(0,l.jsxs)("span",{children:[eG.length," result",1!==eG.length?"s":""]}),(0,l.jsxs)("span",{children:[l.jsx("kbd",{className:"px-1 py-0.5 bg-white rounded border border-zinc-200 text-[9px] font-mono",children:"Enter"})," ","to focus"]})]})]})]}):(0,l.jsxs)("button",{onClick:()=>{ei(!0),setTimeout(()=>eN.current?.focus(),50)},className:"w-full flex items-center gap-2 px-3.5 py-1.5 text-sm text-zinc-400 rounded-full bg-zinc-50/80 border border-zinc-200/60 hover:text-zinc-500 hover:border-zinc-300 hover:bg-zinc-100/50 transition-all",title:"Search issues (Ctrl+F)",children:[l.jsx("svg",{className:"w-3.5 h-3.5 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),l.jsx("span",{className:"flex-1 text-left",children:"Search issues..."}),(0,l.jsxs)("kbd",{className:"hidden sm:inline-block px-1 py-0.5 bg-zinc-100 rounded border border-zinc-200 text-[9px] font-mono text-zinc-400",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","F"]})]})})}),(0,l.jsxs)("div",{className:"hidden md:flex items-center gap-1 shrink-0","data-tutorial":"nav-pills",children:[(0,l.jsxs)("button",{onClick:eS,className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${ec?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Replay"})]}),(0,l.jsxs)("button",{onClick:()=>{F(e=>!e),I||(c(null),B(!1),V(!1),W(null))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${I?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("span",{className:"hidden sm:inline",children:"Comments"})]}),(0,l.jsxs)("button",{onClick:()=>{B(e=>!e),O||(c(null),F(!1),V(!1),W(null))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${O?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Activity"})]}),(0,l.jsxs)("button",{onClick:()=>{V(e=>!e),H||(c(null),F(!1),B(!1))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${H?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"})}),l.jsx("span",{className:"hidden sm:inline",children:"Learn"})]}),l.jsx("div",{className:"w-px h-5 bg-zinc-200 mx-2"}),l.jsx(iS,{})]})]})}),(0,l.jsxs)("div",{className:"flex-1 flex overflow-hidden relative",children:[(0,l.jsxs)("div",{className:"flex-1 relative bg-zinc-50/50",children:[l.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"radial-gradient(circle, #000 1px, transparent 1px)",backgroundSize:"24px 24px"}}),l.jsx(P,{ref:ej,nodes:ec&&eg?eg.graphData.nodes:e.graphData.nodes,links:ec&&eg?eg.graphData.links:e.graphData.links,selectedNode:a,hoveredNode:u,onNodeClick:ez,onNodeHover:eD,onBackgroundClick:eq,onNodeRightClick:eR,commentedNodeIds:S,claimedNodeAvatars:E,onAvatarHover:ee,timelineActive:ec,stats:e.stats,sidebarOpen:!!a||I||O||H,collapsedEpicIds:h,onCollapseAll:eA,onExpandAll:eT,colorMode:f,onColorModeChange:x,autoFit:eb,onAutoFitToggle:()=>ev(e=>!e),pulseNodeId:q.length>0?q[0].nodeId:null,showPulse:ek,onShowPulseToggle:()=>ew(e=>!e)}),ec&&eC&&eC.events.length>0&&l.jsx("div",{className:"absolute bottom-4 z-10 transition-[right] duration-300 ease-out",style:{right:a||I||O?"calc(360px + 1rem)":"1rem"},children:l.jsx(i4,{totalSteps:eC.events.length,currentStep:Math.max(ed,0),currentTime:ed>=0?eC.events[ed]?.time??eC.minTime:eC.minTime,isPlaying:ep,speed:em,onStepChange:eh,onPlayPause:()=>ef(e=>!e),onSpeedChange:ex})}),!a&&!I&&!O&&!H&&!ec&&l.jsx("div",{className:"absolute top-3 right-3 sm:top-4 sm:right-4 z-10",children:l.jsx(iU,{events:q,collapsed:_,onToggleCollapse:()=>U(e=>!e),onExpandPanel:()=>{B(!0),c(null),F(!1),V(!1)},onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&eY(n)}})}),G&&l.jsx(iL,{node:G.node,x:G.x,y:G.y,onShowDescription:()=>{Z(G.node),Y(null)},onAddComment:()=>{J({node:G.node,x:G.x,y:G.y}),Y(null)},onClaimTask:j&&!E.has(G.node.id)?()=>{eB(G.node.id),Y(null)}:void 0,onUnclaimTask:(()=>{if(!j)return;let e=E.get(G.node.id);if(e&&(e.did===N?.did||!e.did))return()=>{eU(G.node.id),Y(null)}})(),onCollapseEpic:"epic"!==G.node.issueType||h.has(G.node.id)?void 0:()=>{eL(G.node.id),Y(null)},onUncollapseEpic:"epic"===G.node.issueType&&h.has(G.node.id)?()=>{eL(G.node.id),Y(null)}:void 0,onClose:()=>Y(null)}),X&&l.jsx(iD,{node:X.node,x:X.x,y:X.y,onClose:()=>J(null),onSubmit:async e=>{await eO(X.node.id,e),J(null)},isAuthenticated:j,existingComments:C.get(X.node.id)}),K&&l.jsx(ig,{node:K,onClose:()=>Z(null),repoUrl:k[K.prefix]}),et&&!Q&&l.jsx(iA,{node:et.node,x:et.x,y:et.y,prefixColor:m(et.node.prefix),allNodes:ec&&eg?eg.graphData.nodes:e.graphData.nodes}),Q&&l.jsx("div",{style:{position:"fixed",left:Q.x+12,top:Q.y-8,zIndex:90,pointerEvents:"none"},children:(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-white border border-zinc-200 rounded-lg shadow-lg px-2.5 py-2",children:[Q.avatar?l.jsx("img",{src:Q.avatar,alt:"",className:"w-6 h-6 rounded-full shrink-0"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-zinc-200 flex items-center justify-center text-[10px] font-medium text-zinc-500 shrink-0",children:Q.handle.charAt(0).toUpperCase()}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("span",{className:"text-xs text-zinc-700 whitespace-nowrap",children:[Q.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${Q.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors",style:{pointerEvents:"auto"},children:Q.handle}):l.jsx("span",{className:"font-semibold text-zinc-800",children:Q.handle})," claimed this task"]}),l.jsx("span",{className:"text-[10px] text-zinc-400",children:im(Q.claimedAt)})]})]})})]}),(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${a?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Node Detail"}),l.jsx("button",{onClick:()=>{c(null)},className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-4 space-y-5",children:l.jsx(ib,{node:a,allNodes:e.graphData.nodes,onNodeNavigate:e$,comments:a?C.get(a.id):void 0,onPostComment:a?e=>eO(a.id,e):void 0,onDeleteComment:e_,onLikeComment:eH,onReplyComment:eV,isAuthenticated:j,currentDid:N?.did,repoUrls:k})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transform transition-transform duration-300 ease-out ${a?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl border-t border-zinc-200 shadow-lg max-h-[60vh] flex flex-col",children:[(0,l.jsxs)("div",{className:"shrink-0 flex items-center justify-between px-4 pt-3 pb-2",children:[l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full mx-auto"}),l.jsx("button",{onClick:()=>c(null),className:"absolute right-3 top-3 p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-4 pb-6 space-y-4",children:l.jsx(ib,{node:a,allNodes:e.graphData.nodes,onNodeNavigate:e$,comments:a?C.get(a.id):void 0,onPostComment:a?e=>eO(a.id,e):void 0,onDeleteComment:e_,onLikeComment:eH,onReplyComment:eV,isAuthenticated:j,currentDid:N?.did,repoUrls:k})})]})}),l.jsx(iP,{isOpen:I,onClose:()=>F(!1),allComments:z,onNodeNavigate:e=>{e$(e),F(!1)},isAuthenticated:j,currentDid:N?.did,onLikeComment:eH,onDeleteComment:e_}),l.jsx(iV,{events:q,isOpen:O,onClose:()=>B(!1),onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&(eY(n),B(!1))}}),l.jsx(iY,{isOpen:H,onClose:()=>{V(!1),W(null)},tutorialStep:$,onStartTutorial:eE,onNextStep:eP,onPrevStep:eI,onEndTutorial:eF})]}),l.jsx(iW,{step:$,onNext:eP,onPrev:eI,onEnd:eF})]}):null}},67960:(e,t,n)=>{"use strict";n.d(t,{AuthProvider:()=>o,a:()=>s});var r=n(98924),i=n(63911);let l=(0,i.createContext)(null);function o({children:e}){let[t,n]=(0,i.useState)({status:"idle",session:null,error:null,isLoading:!0}),o=(0,i.useCallback)(async e=>{n(e=>({...e,status:"authorizing",isLoading:!0,error:null}));try{let t=e.includes(".")?e:`${e}.bsky.social`,n=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:t,returnTo:window.location.pathname+window.location.search})});if(!n.ok){let e=await n.json();throw Error(e.error||"Login failed")}let r=await n.json();window.location.href=r.redirectUrl}catch(t){let e=t instanceof Error?t:Error("Login failed");throw n({status:"error",session:null,error:e,isLoading:!1}),e}},[]),s=(0,i.useCallback)(async()=>{try{await fetch("/api/logout",{method:"POST"})}catch(e){console.error("Logout request failed:",e)}n({status:"idle",session:null,error:null,isLoading:!1})},[]);return r.jsx(l.Provider,{value:{state:t,login:o,logout:s},children:e})}function s(){let e=(0,i.useContext)(l);if(!e)throw Error("useAuth must be used within an AuthProvider");let{state:t,login:n,logout:r}=e;return{status:t.status,session:t.session,error:t.error,isLoading:t.isLoading,isAuthenticated:"authenticated"===t.status,login:n,logout:r}}},75609:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(t=arguments[h],null!=t)for(n in t)r=a(d,n),d!==(i=a(t,n))&&(f&&i&&(o(i)||(c=l(i)))?(c?(c=!1,u=r&&l(r)?r:[]):u=r&&o(r)?r:{},s(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},79661:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g;function c(e){return e?e.replace(a,""):""}e.exports=function(e,a){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];a=a||{};var u=1,d=1;function h(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new f(e),x(r),t}}function f(e){this.start=e,this.end={line:u,column:d},this.source=a.source}function m(t){var n=Error(a.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=a.source,n.line=u,n.column=d,n.source=e,a.silent);else throw n}function x(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function g(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return f.prototype.content=e,x(r),function(){var e,n=[];for(g(n);e=function(){var e=p(),n=x(i);if(n){if(y(),!x(l))return m("property missing ':'");var r=x(o),a=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return x(s),a}}();)!1!==e&&(n.push(e),g(n));return n}()}},63767:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7130)),i=n(95655);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},95655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,a):e.replace(l,a)).replace(r,s))}},7130:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(79661))},19709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,metadata:()=>o,viewport:()=>s});var r=n(55886),i=n(36691);let l=(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#AuthProvider`);(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#useAuth`),n(29944);let o={title:"Beads Map",description:"Interactive dependency graph viewer for beads issues"},s={width:"device-width",initialScale:1,maximumScale:1,userScalable:!1};function a({children:e}){return r.jsx("html",{lang:"en",children:r.jsx("body",{children:r.jsx(l,{children:e})})})}},71363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});let r=(0,n(36691).createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/app/page.tsx#default`)},29944:()=>{},26669:(e,t,n)=>{"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,l,o,s,a,c,u,d,h,p=e._root,f={data:r},m=e._x0,x=e._y0,g=e._x1,y=e._y1;if(!p)return e._root=f,e;for(;p.length;)if((c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o,i=p,!(p=p[d=u<<1|c]))return i[d]=f,e;if(s=+e._x.call(null,p.data),a=+e._y.call(null,p.data),t===s&&n===a)return f.next=p,i?i[d]=f:e._root=f,e;do i=i?i[d]=[,,,,]:e._root=[,,,,],(c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o;while((d=u<<1|c)==(h=(a>=o)<<1|s>=l));return i[h]=p,i[d]=f,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function l(e){return e[0]}function o(e){return e[1]}function s(e,t,n){var r=new a(null==t?l:t,null==n?o:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function a(e,t,n,r,i,l){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=l,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:()=>s});var u=s.prototype=a.prototype;u.copy=function(){var e,t,n=new a(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=[,,,,]}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=[,,,,]}):r.target[i]=c(t));return n},u.add=function(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},u.addAll=function(e){var t,n,i,l,o=e.length,s=Array(o),a=Array(o),c=1/0,u=1/0,d=-1/0,h=-1/0;for(n=0;n<o;++n)!(isNaN(i=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t)))&&(s[n]=i,a[n]=l,i<c&&(c=i),i>d&&(d=i),l<u&&(u=l),l>h&&(h=l));if(c>d||u>h)return this;for(this.cover(c,u).cover(d,h),n=0;n<o;++n)r(this,s[n],a[n],e[n]);return this},u.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,l=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,l=(r=Math.floor(t))+1;else{for(var o,s,a=i-n||1,c=this._root;n>e||e>=i||r>t||t>=l;)switch(s=(t<r)<<1|e<n,(o=[,,,,])[s]=c,c=o,a*=2,s){case 0:i=n+a,l=r+a;break;case 1:n=i-a,l=r+a;break;case 2:i=n+a,r=l-a;break;case 3:n=i-a,r=l-a}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=l,this},u.data=function(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e},u.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},u.find=function(e,t,n){var r,l,o,s,a,c,u,d=this._x0,h=this._y0,p=this._x1,f=this._y1,m=[],x=this._root;for(x&&m.push(new i(x,d,h,p,f)),null==n?n=1/0:(d=e-n,h=t-n,p=e+n,f=t+n,n*=n);c=m.pop();)if((x=c.node)&&!((l=c.x0)>p)&&!((o=c.y0)>f)&&!((s=c.x1)<d)&&!((a=c.y1)<h)){if(x.length){var g=(l+s)/2,y=(o+a)/2;m.push(new i(x[3],g,y,s,a),new i(x[2],l,y,g,a),new i(x[1],g,o,s,y),new i(x[0],l,o,g,y)),(u=(t>=y)<<1|e>=g)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=c)}else{var b=e-+this._x.call(null,x.data),v=t-+this._y.call(null,x.data),k=b*b+v*v;if(k<n){var w=Math.sqrt(n=k);d=e-w,h=t-w,p=e+w,f=t+w,r=x.data}}}return r},u.remove=function(e){if(isNaN(l=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,r,i,l,o,s,a,c,u,d,h,p=this._root,f=this._x0,m=this._y0,x=this._x1,g=this._y1;if(!p)return this;if(p.length)for(;;){if((c=l>=(s=(f+x)/2))?f=s:x=s,(u=o>=(a=(m+g)/2))?m=a:g=a,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return((i=p.next)&&delete p.next,r)?i?r.next=i:delete r.next:t?(i?t[d]=i:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p)):this._root=i,this},u.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},u.root=function(){return this._root},u.size=function(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e},u.visit=function(e){var t,n,r,l,o,s,a=[],c=this._root;for(c&&a.push(new i(c,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!e(c=t.node,r=t.x0,l=t.y0,o=t.x1,s=t.y1)&&c.length){var u=(r+o)/2,d=(l+s)/2;(n=c[3])&&a.push(new i(n,u,d,o,s)),(n=c[2])&&a.push(new i(n,r,d,u,s)),(n=c[1])&&a.push(new i(n,u,l,o,d)),(n=c[0])&&a.push(new i(n,r,l,u,d))}return this},u.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var l=t.node;if(l.length){var o,s=t.x0,a=t.y0,c=t.x1,u=t.y1,d=(s+c)/2,h=(a+u)/2;(o=l[0])&&n.push(new i(o,s,a,d,h)),(o=l[1])&&n.push(new i(o,d,a,c,h)),(o=l[2])&&n.push(new i(o,s,h,d,u)),(o=l[3])&&n.push(new i(o,d,h,c,u))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},u.x=function(e){return arguments.length?(this._x=e,this):this._x},u.y=function(e){return arguments.length?(this._y=e,this):this._y}}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[719,251],()=>n(32143));module.exports=r})();
24
+ `;async function i2(e){let t;let n=[],r=!0,i=0;for(;r&&i<5;){let l=await fetch("https://hypergoat-app-production.up.railway.app/graphql",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:i5,variables:{collection:e,first:100,after:t}})});if(!l.ok)throw Error(`Indexer fetch failed: ${l.status}`);let o=await l.json();if(o.errors?.length)throw Error(o.errors[0].message);let s=o.data?.records;if(!s)break;for(let e of s.edges)n.push(e.node);r=s.pageInfo.hasNextPage,t=s.pageInfo.endCursor,i++}return n}function i4({totalSteps:e,currentStep:t,currentTime:n,isPlaying:r,speed:i,onStepChange:s,onPlayPause:a,onSpeedChange:c}){let u=(0,o.useCallback)(e=>{s(Number(e.target.value))},[s]),d=(0,o.useCallback)(()=>{c(1===i?2:2===i?4:1)},[i,c]),h=e>1;return l.jsx("div",{className:"bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 min-w-[280px] max-w-[480px]",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:a,disabled:!h,className:`shrink-0 w-6 h-6 flex items-center justify-center rounded transition-colors ${r?"text-emerald-500 hover:text-emerald-600":"text-zinc-500 hover:text-zinc-700"} disabled:opacity-40 disabled:cursor-not-allowed`,children:r?(0,l.jsxs)("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:[l.jsx("rect",{x:"3",y:"2",width:"3.5",height:"12",rx:"1"}),l.jsx("rect",{x:"9.5",y:"2",width:"3.5",height:"12",rx:"1"})]}):l.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M4 2l10 6-10 6V2z"})})}),l.jsx("input",{type:"range",min:0,max:Math.max(e-1,0),value:t,onChange:u,disabled:!h,className:"timeline-slider flex-1 h-4 disabled:opacity-40"}),(0,l.jsxs)("span",{className:"shrink-0 text-xs text-zinc-500 font-medium text-right whitespace-nowrap",children:[(0,l.jsxs)("span",{className:"text-zinc-400",children:[t+1,"/",e]})," ",new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),(0,l.jsxs)("button",{onClick:d,className:`shrink-0 px-1.5 py-0.5 text-[10px] font-semibold rounded transition-colors ${i>1?"bg-emerald-500 text-white":"text-zinc-500 border border-zinc-200 hover:text-zinc-700"}`,children:[i,"x"]})]})})}let i3={open:"bg-emerald-500",in_progress:"bg-amber-500",blocked:"bg-red-500",deferred:"bg-violet-500",closed:"bg-zinc-400"};function i6(){let[e,t]=(0,o.useState)(null),[n,r]=(0,o.useState)(!0),[i,s]=(0,o.useState)(null),[a,c]=(0,o.useState)(null),[u,d]=(0,o.useState)(null),[h,p]=(0,o.useState)(new Set),[f,x]=(0,o.useState)(null),[g,y]=(0,o.useState)("status"),[b,v]=(0,o.useState)("Beads"),[k,w]=(0,o.useState)(0),[j,N]=(0,o.useState)({}),{isAuthenticated:C,session:S}=(0,iC.a)(),{commentsByNode:z,commentedNodeIds:M,allComments:L,refetch:A}=function(){let[e,t]=(0,o.useState)(new Map),[n,r]=(0,o.useState)(new Map),[i,l]=(0,o.useState)([]),[s,a]=(0,o.useState)(!0),[c,u]=(0,o.useState)(null),d=(0,o.useRef)(!1);return{commentsByNode:e,commentedNodeIds:n,allComments:i,isLoading:s,error:c,refetch:(0,o.useCallback)(async()=>{try{a(!0),u(null);let[e,n]=await Promise.all([i2("org.impactindexer.review.comment"),i2("org.impactindexer.review.like")]),i=e.filter(e=>{let t=e.value.subject;return t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("beads:")}),o=new Map;for(let e of n){let t=e.value.subject;if(t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("at://")){let n=o.get(t.uri)||[];n.push(e),o.set(t.uri,n)}}let s=new Set;for(let e of i)s.add(e.did);for(let e of n)s.add(e.did);let c=await Promise.all([...s].map(e=>i1(e))),h=new Map(c.map(e=>[e.did,e])),p=[];for(let e of i){let t=e.value,n=t.subject.uri.replace(/^beads:/,""),r=t.text||"",i=t.createdAt||"",l=t.replyTo||void 0,s=h.get(e.did),a=(o.get(e.uri)||[]).map(e=>{let t=h.get(e.did),n=e.value;return{did:e.did,handle:t?.handle||e.did.slice(0,20)+"...",displayName:t?.displayName,avatar:t?.avatar,createdAt:n.createdAt||"",uri:e.uri,rkey:e.rkey}}),c={did:e.did,handle:s?.handle||e.did.slice(0,20)+"...",displayName:s?.displayName,avatar:s?.avatar,text:r,createdAt:i,uri:e.uri,rkey:e.rkey,nodeId:n,replyTo:l,likes:a,replies:[]};p.push(c)}let f=new Map;for(let e of p)f.set(e.uri,e);let m=[];for(let e of p){if(e.replyTo){let t=f.get(e.replyTo);if(t){t.replies.push(e);continue}}m.push(e)}m.sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),function e(t){for(let n of t)n.replies.sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()),e(n.replies)}(m);let x=new Map;for(let e of m){let t=x.get(e.nodeId)||[];t.push(e),x.set(e.nodeId,t)}let g=new Map;for(let e of p)g.set(e.nodeId,(g.get(e.nodeId)||0)+1);let y=[...p].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime());d.current||(t(x),r(g),l(y))}catch(e){if(!d.current){let t=e instanceof Error?e.message:"Failed to fetch comments";console.error("Failed to fetch beads comments:",e),u(t)}}finally{d.current||a(!1)}},[])}}(),[D,T]=(0,o.useState)(new Map),[E,I]=(0,o.useState)(new Set),F=(0,o.useMemo)(()=>{let e=new Map;if(L)for(let t of L){if(e.has(t.nodeId)||E.has(t.nodeId))continue;let n=t.text.trim();n.startsWith("@")&&-1===n.indexOf(" ")&&e.set(t.nodeId,{avatar:t.avatar,handle:t.handle,claimedAt:t.createdAt,did:t.did,rkey:t.rkey})}for(let[t,n]of D)e.has(t)||E.has(t)||e.set(t,n);return e},[L,D,E]),[q,R]=(0,o.useState)(!1),[O,B]=(0,o.useState)([]),[_,U]=(0,o.useState)(!1),[H,$]=(0,o.useState)(!1),[V,W]=(0,o.useState)(!1),[G,Y]=(0,o.useState)(null),X=(0,o.useMemo)(()=>e?new Set(e.graphData.nodes.map(e=>e.id)):new Set,[e]),[J,K]=(0,o.useState)(null),[Z,Q]=(0,o.useState)(null),[ee,et]=(0,o.useState)(null),[en,er]=(0,o.useState)(null),[ei,el]=(0,o.useState)(null),[eo,es]=(0,o.useState)(!1),[ea,ec]=(0,o.useState)(""),[eu,ed]=(0,o.useState)(0),[eh,ep]=(0,o.useState)(!1),[ef,em]=(0,o.useState)(0),[ex,eg]=(0,o.useState)(!1),[ey,eb]=(0,o.useState)(1),[ev,ek]=(0,o.useState)(null),[ew,ej]=(0,o.useState)(!0),[eN,eC]=(0,o.useState)(!0),eS=(0,o.useRef)(null),ez=(0,o.useRef)(null);(0,o.useRef)(null);let eM=(0,o.useMemo)(()=>e?function(e,t){let n=[];for(let t of e){let e=new Date(t.createdAt).getTime();if(isNaN(e)||n.push({time:e,type:"node-created",id:t.id}),t.closedAt){let e=new Date(t.closedAt).getTime();isNaN(e)||n.push({time:e,type:"node-closed",id:t.id})}}n.sort((e,t)=>e.time-t.time);let r=n.length>0?n[0].time:Date.now(),i=n.length>0?n[n.length-1].time:Date.now();return{events:n,minTime:r,maxTime:i}}(e.graphData.nodes,e.graphData.links):null,[e]),eL=(0,o.useCallback)(()=>{ep(e=>{let t=!e;return t&&em(-1),eg(!1),ek(null),t})},[]),eA=(0,o.useCallback)(e=>{c(t=>t?.id===e.id?null:e),R(!1),U(!1),W(!1),Y(null)},[]),eD=(0,o.useCallback)((e,t,n)=>{d(e),el(e?{node:e,x:t,y:n}:null)},[]),eT=(0,o.useCallback)(e=>{p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),eE=(0,o.useMemo)(()=>{if(!e)return new Set;let{nodes:t,links:n}=e.graphData,r=new Set;for(let e of n)if("parent-child"===e.type){let t="object"==typeof e.source?e.source.id:e.source;r.add(t)}let i=new Set(t.map(e=>e.id));for(let e of t)if(e.id.includes(".")){let t=e.id.split(".")[0];i.has(t)&&r.add(t)}return r},[e]),eP=(0,o.useCallback)(()=>{p(new Set(eE))},[eE]),eI=(0,o.useCallback)(()=>{p(new Set)},[]),eF=(0,o.useCallback)(e=>{x(e)},[]),eq=(0,o.useCallback)(()=>{x(null)},[]),eR=(0,o.useCallback)(()=>{W(!0),c(null),R(!1),U(!1),Y(0)},[]),eO=(0,o.useCallback)(()=>{Y(e=>null===e?null:e>=iV.length-1?e:e+1)},[]),eB=(0,o.useCallback)(()=>{Y(e=>null===e||e<=0?e:e-1)},[]),e_=(0,o.useCallback)(()=>{Y(null)},[]),eU=(0,o.useCallback)(()=>{c(null),K(null),Q(null)},[]),eH=(0,o.useCallback)((e,t)=>{Q(null),el(null),e.description||C||"epic"===e.issueType?K({node:e,x:t.clientX,y:t.clientY}):Q({node:e,x:t.clientX,y:t.clientY})},[C]),e$=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{$type:"org.impactindexer.review.comment",subject:{uri:`beads:${e}`,type:"record"},text:t,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post comment");await A()},[A]),eV=(0,o.useCallback)(async e=>{if(!S?.handle)return;let t=S.avatar;if(!t&&S.did)try{let e=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(S.did)}`);e.ok&&(t=(await e.json()).avatar)}catch{}T(n=>{let r=new Map(n);return r.set(e,{avatar:t,claimedAt:new Date().toISOString(),handle:S.handle}),r}),await e$(e,`@${S.handle}`),setTimeout(()=>A(),3e3)},[S?.handle,S?.did,S?.avatar,e$,A]),eW=(0,o.useCallback)(async e=>{let t=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.comment")}&rkey=${encodeURIComponent(e.rkey)}`,{method:"DELETE"});if(!t.ok)throw Error((await t.json()).error||"Failed to delete comment");await A()},[A]),eG=(0,o.useCallback)(async e=>{let t=F.get(e);t&&(I(t=>new Set(t).add(e)),T(t=>{let n=new Map(t);return n.delete(e),n}),t.rkey?(await eW({rkey:t.rkey}),I(t=>{let n=new Set(t);return n.delete(e),n})):setTimeout(async()=>{await A(),I(t=>{let n=new Set(t);return n.delete(e),n})},3e3))},[F,eW,A]),eY=(0,o.useCallback)(async e=>{let t=e.likes.find(e=>e.did===S?.did);if(t){let e=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.like")}&rkey=${encodeURIComponent(t.rkey)}`,{method:"DELETE"});if(!e.ok)throw Error((await e.json()).error||"Failed to unlike")}else{let t=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.like",record:{subject:{uri:e.uri,type:"record"},createdAt:new Date().toISOString()}})});if(!t.ok)throw Error((await t.json()).error||"Failed to like")}await A()},[S?.did,A]),eX=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{subject:{uri:`beads:${e.nodeId}`,type:"record"},text:t,replyTo:e.uri,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post reply");await A()},[A]),eJ=(0,o.useCallback)(t=>{if(!e)return;let n=e.graphData.nodes.find(e=>e.id===t);n&&c(n)},[e]),eK=(0,o.useMemo)(()=>{let e=new Map;if(!L)return e;let t=new Map;for(let e of L)t.has(e.nodeId)||t.set(e.nodeId,new Set),t.get(e.nodeId).add(e.handle),e.displayName&&t.get(e.nodeId).add(e.displayName);for(let[n,r]of t)e.set(n,Array.from(r).join(" "));return e},[L]),eZ=(0,o.useMemo)(()=>{if(!e||!ea.trim())return[];let t=ea.toLowerCase();return e.graphData.nodes.filter(e=>{let n=eK.get(e.id)||"";return`${e.id} ${e.title} ${e.prefix} ${e.owner||""} ${e.assignee||""} ${e.createdBy||""} ${n}`.toLowerCase().includes(t)}).slice(0,8)},[ea,e,eK]),eQ=(0,o.useCallback)(e=>{eS.current?.focusNode(e),es(!1),ec(""),ed(0)},[]),e0=(0,o.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),ed(e=>Math.min(e+1,eZ.length-1))):"ArrowUp"===e.key?(e.preventDefault(),ed(e=>Math.max(e-1,0))):"Enter"===e.key&&eZ.length>0&&(e.preventDefault(),eQ(eZ[eu]))},[eZ,eu,eQ]);return n?(0,l.jsxs)("div",{className:"h-screen flex flex-col items-center justify-center bg-white",children:[(0,l.jsxs)("div",{className:"relative mb-6",children:[l.jsx("div",{className:"w-12 h-12 border-2 border-zinc-200 border-t-emerald-500 rounded-full animate-spin"}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"})})]}),l.jsx("p",{className:"text-sm text-zinc-500 animate-pulse-soft",children:"Loading beads graph..."}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Parsing issues and dependencies"})]}):i?l.jsx("div",{className:"h-screen flex items-center justify-center bg-white",children:(0,l.jsxs)("div",{className:"max-w-sm text-center",children:[l.jsx("div",{className:"w-14 h-14 mx-auto mb-4 bg-red-50 rounded-full flex items-center justify-center",children:l.jsx("svg",{className:"w-7 h-7 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Unable to load data"}),l.jsx("p",{className:"text-sm text-zinc-500 mb-4",children:i}),(0,l.jsxs)("button",{onClick:()=>window.location.reload(),className:"inline-flex items-center gap-2 px-4 py-2 bg-emerald-600 text-white text-sm rounded-lg hover:bg-emerald-700 transition-colors",children:[l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Try Again"]})]})}):e?(0,l.jsxs)("div",{className:"h-screen flex flex-col overflow-hidden bg-white",children:[l.jsx("header",{className:"sticky top-0 z-50 shrink-0 bg-white/95 backdrop-blur-sm border-b border-zinc-200/80",children:(0,l.jsxs)("div",{className:"px-6 h-14 flex items-center",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 shrink-0 group",children:[l.jsx(iz,{className:"w-8 h-8 text-emerald-500 transition-transform group-hover:scale-105"}),(0,l.jsxs)("div",{className:"flex items-baseline gap-2",children:[l.jsx("h1",{className:"text-[15px] font-semibold text-zinc-900 tracking-tight",children:b}),l.jsx("span",{className:"font-normal text-zinc-400 text-[15px] hidden sm:inline",children:"heartbeads"}),k>1&&(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400 bg-zinc-100 rounded-full px-1.5 py-0.5 font-medium hidden sm:inline",children:[k," repos"]})]})]}),l.jsx("div",{className:"flex-1 flex justify-center px-4",children:l.jsx("div",{className:"relative w-full max-w-md","data-tutorial":"search",children:eo?(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center bg-white rounded-full border border-zinc-200 shadow-sm overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{ref:ez,type:"text",value:ea,onChange:e=>ec(e.target.value),onKeyDown:e0,placeholder:"Search issues...",className:"flex-1 px-2 py-1.5 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400",autoFocus:!0}),l.jsx("button",{onClick:()=>{es(!1),ec(""),ed(0)},className:"px-2 py-1.5 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),ea.trim()&&(0,l.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white rounded-xl border border-zinc-100 shadow-xl overflow-hidden max-h-72 overflow-y-auto z-50",children:[0===eZ.length?l.jsx("div",{className:"px-3 py-3 text-xs text-zinc-400 text-center",children:"No matching issues"}):eZ.map((e,t)=>(0,l.jsxs)("button",{onClick:()=>eQ(e),onMouseEnter:()=>ed(t),className:`w-full text-left px-3 py-2 text-xs transition-colors flex items-start gap-2.5 ${t===eu?"bg-emerald-50":"hover:bg-zinc-50"}`,children:[l.jsx("div",{className:"shrink-0 mt-1",children:l.jsx("div",{className:`w-2 h-2 rounded-full ${i3[e.status]||"bg-zinc-400"}`})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"font-medium text-zinc-600 shrink-0",children:e.id}),e.priority<=1&&l.jsx("span",{className:"text-[10px]",children:0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25"})]}),l.jsx("div",{className:"text-zinc-400 truncate mt-0.5",children:e.title})]}),l.jsx("span",{className:"shrink-0 text-[10px] text-zinc-400 bg-zinc-100 rounded px-1 py-0.5 mt-0.5",children:e.prefix})]},e.id)),eZ.length>0&&(0,l.jsxs)("div",{className:"px-3 py-1.5 text-[10px] text-zinc-400 border-t border-zinc-100 bg-zinc-50/50 flex items-center justify-between",children:[(0,l.jsxs)("span",{children:[eZ.length," result",1!==eZ.length?"s":""]}),(0,l.jsxs)("span",{children:[l.jsx("kbd",{className:"px-1 py-0.5 bg-white rounded border border-zinc-200 text-[9px] font-mono",children:"Enter"})," ","to focus"]})]})]})]}):(0,l.jsxs)("button",{onClick:()=>{es(!0),setTimeout(()=>ez.current?.focus(),50)},className:"w-full flex items-center gap-2 px-3.5 py-1.5 text-sm text-zinc-400 rounded-full bg-zinc-50/80 border border-zinc-200/60 hover:text-zinc-500 hover:border-zinc-300 hover:bg-zinc-100/50 transition-all",title:"Search issues (Ctrl+F)",children:[l.jsx("svg",{className:"w-3.5 h-3.5 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),l.jsx("span",{className:"flex-1 text-left",children:"Search issues..."}),(0,l.jsxs)("kbd",{className:"hidden sm:inline-block px-1 py-0.5 bg-zinc-100 rounded border border-zinc-200 text-[9px] font-mono text-zinc-400",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","F"]})]})})}),(0,l.jsxs)("div",{className:"hidden md:flex items-center gap-1 shrink-0","data-tutorial":"nav-pills",children:[(0,l.jsxs)("button",{onClick:eL,className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${eh?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Replay"})]}),(0,l.jsxs)("button",{onClick:()=>{R(e=>!e),q||(c(null),U(!1),W(!1),Y(null))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${q?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("span",{className:"hidden sm:inline",children:"Comments"})]}),(0,l.jsxs)("button",{onClick:()=>{U(e=>!e),_||(c(null),R(!1),W(!1),Y(null))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${_?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Activity"})]}),(0,l.jsxs)("button",{onClick:()=>{W(e=>!e),V||(c(null),R(!1),U(!1))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${V?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"})}),l.jsx("span",{className:"hidden sm:inline",children:"Learn"})]}),l.jsx("div",{className:"w-px h-5 bg-zinc-200 mx-2"}),l.jsx(iS,{})]})]})}),(0,l.jsxs)("div",{className:"flex-1 flex overflow-hidden relative",children:[(0,l.jsxs)("div",{className:"flex-1 relative bg-zinc-50/50",children:[l.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"radial-gradient(circle, #000 1px, transparent 1px)",backgroundSize:"24px 24px"}}),l.jsx(P,{ref:eS,nodes:eh&&ev?ev.graphData.nodes:e.graphData.nodes,links:eh&&ev?ev.graphData.links:e.graphData.links,selectedNode:a,hoveredNode:u,onNodeClick:eA,onNodeHover:eD,onBackgroundClick:eU,onNodeRightClick:eH,commentedNodeIds:M,claimedNodeAvatars:F,onAvatarHover:er,timelineActive:eh,stats:e.stats,sidebarOpen:!!a||q||_||V,collapsedEpicIds:h,onCollapseAll:eP,onExpandAll:eI,focusedEpicId:f,onExitFocusedEpic:eq,colorMode:g,onColorModeChange:y,autoFit:ew,onAutoFitToggle:()=>ej(e=>!e),pulseNodeId:O.length>0?O[0].nodeId:null,showPulse:eN,onShowPulseToggle:()=>eC(e=>!e)}),eh&&eM&&eM.events.length>0&&l.jsx("div",{className:"absolute bottom-4 z-10 transition-[right] duration-300 ease-out",style:{right:a||q||_?"calc(360px + 1rem)":"1rem"},children:l.jsx(i4,{totalSteps:eM.events.length,currentStep:Math.max(ef,0),currentTime:ef>=0?eM.events[ef]?.time??eM.minTime:eM.minTime,isPlaying:ex,speed:ey,onStepChange:em,onPlayPause:()=>eg(e=>!e),onSpeedChange:eb})}),!a&&!q&&!_&&!V&&!eh&&l.jsx("div",{className:"absolute top-3 right-3 sm:top-4 sm:right-4 z-10",children:l.jsx(iU,{events:O,collapsed:H,onToggleCollapse:()=>$(e=>!e),onExpandPanel:()=>{U(!0),c(null),R(!1),W(!1)},onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&eQ(n)}})}),J&&l.jsx(iL,{node:J.node,x:J.x,y:J.y,onShowDescription:()=>{et(J.node),K(null)},onAddComment:()=>{Q({node:J.node,x:J.x,y:J.y}),K(null)},onClaimTask:C&&!F.has(J.node.id)?()=>{eV(J.node.id),K(null)}:void 0,onUnclaimTask:(()=>{if(!C)return;let e=F.get(J.node.id);if(e&&(e.did===S?.did||!e.did))return()=>{eG(J.node.id),K(null)}})(),onCollapseEpic:"epic"!==J.node.issueType||h.has(J.node.id)?void 0:()=>{eT(J.node.id),K(null)},onUncollapseEpic:"epic"===J.node.issueType&&h.has(J.node.id)?()=>{eT(J.node.id),K(null)}:void 0,onFocusEpic:"epic"!==J.node.issueType||f?void 0:()=>{eF(J.node.id),K(null)},onExitFocusEpic:"epic"===J.node.issueType&&f===J.node.id?()=>{eq(),K(null)}:void 0,onClose:()=>K(null)}),Z&&l.jsx(iM,{node:Z.node,x:Z.x,y:Z.y,onClose:()=>Q(null),onSubmit:async e=>{await e$(Z.node.id,e),Q(null)},isAuthenticated:C,existingComments:z.get(Z.node.id)}),ee&&l.jsx(ig,{node:ee,onClose:()=>et(null),repoUrl:j[ee.prefix]}),ei&&!en&&l.jsx(iD,{node:ei.node,x:ei.x,y:ei.y,prefixColor:m(ei.node.prefix),allNodes:eh&&ev?ev.graphData.nodes:e.graphData.nodes}),en&&l.jsx("div",{style:{position:"fixed",left:en.x+12,top:en.y-8,zIndex:90,pointerEvents:"none"},children:(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-white border border-zinc-200 rounded-lg shadow-lg px-2.5 py-2",children:[en.avatar?l.jsx("img",{src:en.avatar,alt:"",className:"w-6 h-6 rounded-full shrink-0"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-zinc-200 flex items-center justify-center text-[10px] font-medium text-zinc-500 shrink-0",children:en.handle.charAt(0).toUpperCase()}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("span",{className:"text-xs text-zinc-700 whitespace-nowrap",children:[en.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${en.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors",style:{pointerEvents:"auto"},children:en.handle}):l.jsx("span",{className:"font-semibold text-zinc-800",children:en.handle})," claimed this task"]}),l.jsx("span",{className:"text-[10px] text-zinc-400",children:im(en.claimedAt)})]})]})})]}),(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${a?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Node Detail"}),l.jsx("button",{onClick:()=>{c(null)},className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-4 space-y-5",children:l.jsx(ib,{node:a,allNodes:e.graphData.nodes,onNodeNavigate:eJ,comments:a?z.get(a.id):void 0,onPostComment:a?e=>e$(a.id,e):void 0,onDeleteComment:eW,onLikeComment:eY,onReplyComment:eX,isAuthenticated:C,currentDid:S?.did,repoUrls:j})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transform transition-transform duration-300 ease-out ${a?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl border-t border-zinc-200 shadow-lg max-h-[60vh] flex flex-col",children:[(0,l.jsxs)("div",{className:"shrink-0 flex items-center justify-between px-4 pt-3 pb-2",children:[l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full mx-auto"}),l.jsx("button",{onClick:()=>c(null),className:"absolute right-3 top-3 p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-4 pb-6 space-y-4",children:l.jsx(ib,{node:a,allNodes:e.graphData.nodes,onNodeNavigate:eJ,comments:a?z.get(a.id):void 0,onPostComment:a?e=>e$(a.id,e):void 0,onDeleteComment:eW,onLikeComment:eY,onReplyComment:eX,isAuthenticated:C,currentDid:S?.did,repoUrls:j})})]})}),l.jsx(iP,{isOpen:q,onClose:()=>R(!1),allComments:L.filter(e=>X.has(e.nodeId)),onNodeNavigate:e=>{eJ(e),R(!1)},isAuthenticated:C,currentDid:S?.did,onLikeComment:eY,onDeleteComment:eW}),l.jsx(i$,{events:O,isOpen:_,onClose:()=>U(!1),onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&(eQ(n),U(!1))}}),l.jsx(iY,{isOpen:V,onClose:()=>{W(!1),Y(null)},tutorialStep:G,onStartTutorial:eR,onNextStep:eO,onPrevStep:eB,onEndTutorial:e_})]}),l.jsx(iW,{step:G,onNext:eO,onPrev:eB,onEnd:e_})]}):null}},67960:(e,t,n)=>{"use strict";n.d(t,{AuthProvider:()=>o,a:()=>s});var r=n(98924),i=n(63911);let l=(0,i.createContext)(null);function o({children:e}){let[t,n]=(0,i.useState)({status:"idle",session:null,error:null,isLoading:!0}),o=(0,i.useCallback)(async e=>{n(e=>({...e,status:"authorizing",isLoading:!0,error:null}));try{let t=e.includes(".")?e:`${e}.bsky.social`,n=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:t,returnTo:window.location.pathname+window.location.search})});if(!n.ok){let e=await n.json();throw Error(e.error||"Login failed")}let r=await n.json();window.location.href=r.redirectUrl}catch(t){let e=t instanceof Error?t:Error("Login failed");throw n({status:"error",session:null,error:e,isLoading:!1}),e}},[]),s=(0,i.useCallback)(async()=>{try{await fetch("/api/logout",{method:"POST"})}catch(e){console.error("Logout request failed:",e)}n({status:"idle",session:null,error:null,isLoading:!1})},[]);return r.jsx(l.Provider,{value:{state:t,login:o,logout:s},children:e})}function s(){let e=(0,i.useContext)(l);if(!e)throw Error("useAuth must be used within an AuthProvider");let{state:t,login:n,logout:r}=e;return{status:t.status,session:t.session,error:t.error,isLoading:t.isLoading,isAuthenticated:"authenticated"===t.status,login:n,logout:r}}},75609:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(t=arguments[h],null!=t)for(n in t)r=a(d,n),d!==(i=a(t,n))&&(f&&i&&(o(i)||(c=l(i)))?(c?(c=!1,u=r&&l(r)?r:[]):u=r&&o(r)?r:{},s(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},79661:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g;function c(e){return e?e.replace(a,""):""}e.exports=function(e,a){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];a=a||{};var u=1,d=1;function h(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new f(e),x(r),t}}function f(e){this.start=e,this.end={line:u,column:d},this.source=a.source}function m(t){var n=Error(a.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=a.source,n.line=u,n.column=d,n.source=e,a.silent);else throw n}function x(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function g(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return f.prototype.content=e,x(r),function(){var e,n=[];for(g(n);e=function(){var e=p(),n=x(i);if(n){if(y(),!x(l))return m("property missing ':'");var r=x(o),a=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return x(s),a}}();)!1!==e&&(n.push(e),g(n));return n}()}},63767:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7130)),i=n(95655);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},95655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,a):e.replace(l,a)).replace(r,s))}},7130:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(79661))},19709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,metadata:()=>o,viewport:()=>s});var r=n(55886),i=n(36691);let l=(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#AuthProvider`);(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#useAuth`),n(29944);let o={title:"Beads Map",description:"Interactive dependency graph viewer for beads issues"},s={width:"device-width",initialScale:1,maximumScale:1,userScalable:!1};function a({children:e}){return r.jsx("html",{lang:"en",children:r.jsx("body",{children:r.jsx(l,{children:e})})})}},71363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});let r=(0,n(36691).createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/app/page.tsx#default`)},29944:()=>{},26669:(e,t,n)=>{"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,l,o,s,a,c,u,d,h,p=e._root,f={data:r},m=e._x0,x=e._y0,g=e._x1,y=e._y1;if(!p)return e._root=f,e;for(;p.length;)if((c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o,i=p,!(p=p[d=u<<1|c]))return i[d]=f,e;if(s=+e._x.call(null,p.data),a=+e._y.call(null,p.data),t===s&&n===a)return f.next=p,i?i[d]=f:e._root=f,e;do i=i?i[d]=[,,,,]:e._root=[,,,,],(c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o;while((d=u<<1|c)==(h=(a>=o)<<1|s>=l));return i[h]=p,i[d]=f,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function l(e){return e[0]}function o(e){return e[1]}function s(e,t,n){var r=new a(null==t?l:t,null==n?o:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function a(e,t,n,r,i,l){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=l,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:()=>s});var u=s.prototype=a.prototype;u.copy=function(){var e,t,n=new a(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=[,,,,]}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=[,,,,]}):r.target[i]=c(t));return n},u.add=function(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},u.addAll=function(e){var t,n,i,l,o=e.length,s=Array(o),a=Array(o),c=1/0,u=1/0,d=-1/0,h=-1/0;for(n=0;n<o;++n)!(isNaN(i=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t)))&&(s[n]=i,a[n]=l,i<c&&(c=i),i>d&&(d=i),l<u&&(u=l),l>h&&(h=l));if(c>d||u>h)return this;for(this.cover(c,u).cover(d,h),n=0;n<o;++n)r(this,s[n],a[n],e[n]);return this},u.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,l=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,l=(r=Math.floor(t))+1;else{for(var o,s,a=i-n||1,c=this._root;n>e||e>=i||r>t||t>=l;)switch(s=(t<r)<<1|e<n,(o=[,,,,])[s]=c,c=o,a*=2,s){case 0:i=n+a,l=r+a;break;case 1:n=i-a,l=r+a;break;case 2:i=n+a,r=l-a;break;case 3:n=i-a,r=l-a}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=l,this},u.data=function(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e},u.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},u.find=function(e,t,n){var r,l,o,s,a,c,u,d=this._x0,h=this._y0,p=this._x1,f=this._y1,m=[],x=this._root;for(x&&m.push(new i(x,d,h,p,f)),null==n?n=1/0:(d=e-n,h=t-n,p=e+n,f=t+n,n*=n);c=m.pop();)if((x=c.node)&&!((l=c.x0)>p)&&!((o=c.y0)>f)&&!((s=c.x1)<d)&&!((a=c.y1)<h)){if(x.length){var g=(l+s)/2,y=(o+a)/2;m.push(new i(x[3],g,y,s,a),new i(x[2],l,y,g,a),new i(x[1],g,o,s,y),new i(x[0],l,o,g,y)),(u=(t>=y)<<1|e>=g)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=c)}else{var b=e-+this._x.call(null,x.data),v=t-+this._y.call(null,x.data),k=b*b+v*v;if(k<n){var w=Math.sqrt(n=k);d=e-w,h=t-w,p=e+w,f=t+w,r=x.data}}}return r},u.remove=function(e){if(isNaN(l=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,r,i,l,o,s,a,c,u,d,h,p=this._root,f=this._x0,m=this._y0,x=this._x1,g=this._y1;if(!p)return this;if(p.length)for(;;){if((c=l>=(s=(f+x)/2))?f=s:x=s,(u=o>=(a=(m+g)/2))?m=a:g=a,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return((i=p.next)&&delete p.next,r)?i?r.next=i:delete r.next:t?(i?t[d]=i:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p)):this._root=i,this},u.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},u.root=function(){return this._root},u.size=function(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e},u.visit=function(e){var t,n,r,l,o,s,a=[],c=this._root;for(c&&a.push(new i(c,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!e(c=t.node,r=t.x0,l=t.y0,o=t.x1,s=t.y1)&&c.length){var u=(r+o)/2,d=(l+s)/2;(n=c[3])&&a.push(new i(n,u,d,o,s)),(n=c[2])&&a.push(new i(n,r,d,u,s)),(n=c[1])&&a.push(new i(n,u,l,o,d)),(n=c[0])&&a.push(new i(n,r,l,u,d))}return this},u.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var l=t.node;if(l.length){var o,s=t.x0,a=t.y0,c=t.x1,u=t.y1,d=(s+c)/2,h=(a+u)/2;(o=l[0])&&n.push(new i(o,s,a,d,h)),(o=l[1])&&n.push(new i(o,d,a,c,h)),(o=l[2])&&n.push(new i(o,s,h,d,u)),(o=l[3])&&n.push(new i(o,d,h,c,u))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},u.x=function(e){return arguments.length?(this._x=e,this):this._x},u.y=function(e){return arguments.length?(this._y=e,this):this._y}}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[719,251],()=>n(32143));module.exports=r})();