@intent-hq/web 2.357.1 → 2.357.3

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 (143) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{xermZvR1.js → -s7FI3Ur.js} +1 -1
  3. package/web/app/immutable/chunks/{BQ23qfTF.js → 0-a6QNX5.js} +1 -1
  4. package/web/app/immutable/chunks/{DbPDpNcg.js → 5eQGAVoR.js} +1 -1
  5. package/web/app/immutable/chunks/{DUq_tiZf.js → 7Q1TI3ob.js} +1 -1
  6. package/web/app/immutable/chunks/{DGaw_Pt8.js → 7RDmM56K.js} +1 -1
  7. package/web/app/immutable/chunks/{wf2_U67h.js → B1FaBhwe.js} +1 -1
  8. package/web/app/immutable/chunks/{DOs89s1W.js → BCVkwATM.js} +1 -1
  9. package/web/app/immutable/chunks/{B2LPQxIt.js → BJPl3JdS.js} +1 -1
  10. package/web/app/immutable/chunks/{scctxWgb.js → BKaNGJFl.js} +1 -1
  11. package/web/app/immutable/chunks/{DnJtXsWm.js → BM1SUsjB.js} +1 -1
  12. package/web/app/immutable/chunks/{Cb3IR_gP.js → BMaEkfLt.js} +2 -2
  13. package/web/app/immutable/chunks/{OBaERIRu.js → BQZSSU2n.js} +1 -1
  14. package/web/app/immutable/chunks/{Cx0yZw2_.js → BQhjuilH.js} +1 -1
  15. package/web/app/immutable/chunks/{BxRqO5xf.js → BRLli4f_.js} +1 -1
  16. package/web/app/immutable/chunks/{DLmwZnzr.js → BTS_Pk4y.js} +5 -5
  17. package/web/app/immutable/chunks/{B_3_o4NM.js → BUKBcxz-.js} +1 -1
  18. package/web/app/immutable/chunks/{BMvS7SgR.js → BUWvzhIi.js} +3 -3
  19. package/web/app/immutable/chunks/{CyBdhy5_.js → BVKX1BGD.js} +1 -1
  20. package/web/app/immutable/chunks/{BZQo8LNo.js → BYxZqyUK.js} +1 -1
  21. package/web/app/immutable/chunks/{DKOCXDff.js → BZwxoq-T.js} +1 -1
  22. package/web/app/immutable/chunks/{DvjZKcqd.js → Bd6hCB_F.js} +1 -1
  23. package/web/app/immutable/chunks/{Dto5_TqF.js → BdCIKNME.js} +1 -1
  24. package/web/app/immutable/chunks/{DvMvrFFa.js → BeBeuvSc.js} +1 -1
  25. package/web/app/immutable/chunks/{BZCD0L1_.js → Bh5sMBMA.js} +1 -1
  26. package/web/app/immutable/chunks/{Ba0vVpgz.js → BiW7TYXm.js} +1 -1
  27. package/web/app/immutable/chunks/{BGJfXAWv.js → Bj3xJd4J.js} +1 -1
  28. package/web/app/immutable/chunks/{CzeIL_6z.js → BkTrhn3s.js} +1 -1
  29. package/web/app/immutable/chunks/{iarSknrC.js → BlDZ5Ew8.js} +1 -1
  30. package/web/app/immutable/chunks/{DbSMHaNK.js → BrrlnrEz.js} +1 -1
  31. package/web/app/immutable/chunks/{PRunkvIA.js → BtlSYgVo.js} +1 -1
  32. package/web/app/immutable/chunks/{u4HT3usu.js → Budx4nUV.js} +3 -3
  33. package/web/app/immutable/chunks/{DffSA-Qz.js → BxWucDAP.js} +1 -1
  34. package/web/app/immutable/chunks/{D_HBCPjs.js → BxzAtAmw.js} +1 -1
  35. package/web/app/immutable/chunks/{Cb2A7MN0.js → ByYiVEbX.js} +1 -1
  36. package/web/app/immutable/chunks/{DPirTM_u.js → BzvnBtj7.js} +1 -1
  37. package/web/app/immutable/chunks/{EPCnwBto.js → C1JrwCZc.js} +1 -1
  38. package/web/app/immutable/chunks/{CjYdM0YD.js → C54-fVJP.js} +1 -1
  39. package/web/app/immutable/chunks/{9P6ZvzvD.js → CBDifbVm.js} +1 -1
  40. package/web/app/immutable/chunks/{CKpm8C6c.js → CBLidLon.js} +1 -1
  41. package/web/app/immutable/chunks/{BVeQxmcO.js → CC70jpYk.js} +1 -1
  42. package/web/app/immutable/chunks/{ChoJBBfE.js → CCtfGpTe.js} +1 -1
  43. package/web/app/immutable/chunks/{BG6kMtPP.js → CFrm2n7H.js} +1 -1
  44. package/web/app/immutable/chunks/{BmkId4Xs.js → CHUM1C12.js} +1 -1
  45. package/web/app/immutable/chunks/{v4Y0eqyL.js → CJxu_HWo.js} +1 -1
  46. package/web/app/immutable/chunks/{Ci9WXQ89.js → CQHtILYK.js} +1 -1
  47. package/web/app/immutable/chunks/{HJvhI2th.js → CSvhAGpG.js} +2 -2
  48. package/web/app/immutable/chunks/{BCoXAz1U.js → CV5JXA9Q.js} +1 -1
  49. package/web/app/immutable/chunks/{CV16Bucz.js → CW11fgES.js} +4 -4
  50. package/web/app/immutable/chunks/{DLG3MCT8.js → C_m6SOkL.js} +1 -1
  51. package/web/app/immutable/chunks/{DUGMxl18.js → CaSJ0sQG.js} +1 -1
  52. package/web/app/immutable/chunks/{DLIvmKAR.js → Cc2v7DSO.js} +1 -1
  53. package/web/app/immutable/chunks/{D8aSK4oD.js → Cc327AX0.js} +1 -1
  54. package/web/app/immutable/chunks/{Bqt9Orfw.js → Cd22N1Uk.js} +1 -1
  55. package/web/app/immutable/chunks/{Bd1ZbfsE.js → CfILip1R.js} +1 -1
  56. package/web/app/immutable/chunks/{C3G5lO0X.js → Cfc-xYdO.js} +1 -1
  57. package/web/app/immutable/chunks/{CS9ie09_.js → CgHcztjY.js} +1 -1
  58. package/web/app/immutable/chunks/{DvhhQYfO.js → CgsNRqOg.js} +1 -1
  59. package/web/app/immutable/chunks/{Dcvn1tie.js → CigpXs75.js} +2 -2
  60. package/web/app/immutable/chunks/{DJbKSkhu.js → CnOllerM.js} +1 -1
  61. package/web/app/immutable/chunks/{DIC5rFND.js → Cpdvmnok.js} +1 -1
  62. package/web/app/immutable/chunks/{wegJMlUp.js → CqdqO9FQ.js} +1 -1
  63. package/web/app/immutable/chunks/{DQMWee-l.js → CscJA1St.js} +3 -3
  64. package/web/app/immutable/chunks/{BYHbCXEy.js → CslncITQ.js} +1 -1
  65. package/web/app/immutable/chunks/{DcGNquRL.js → CucOO3Ax.js} +1 -1
  66. package/web/app/immutable/chunks/{CFf_TK-h.js → D0ZJIQ_W.js} +1 -1
  67. package/web/app/immutable/chunks/{C-ExwGaf.js → D1ru1X8d.js} +1 -1
  68. package/web/app/immutable/chunks/{CTGUTBCN.js → D2ELUbjV.js} +1 -1
  69. package/web/app/immutable/chunks/{Q_7q1g1V.js → D74233_Q.js} +1 -1
  70. package/web/app/immutable/chunks/{r5eyOwTV.js → D9M1r-CB.js} +1 -1
  71. package/web/app/immutable/chunks/{CBPCiMxB.js → D9SEQmH7.js} +1 -1
  72. package/web/app/immutable/chunks/{D-EgBFka.js → DEe2b0Kj.js} +1 -1
  73. package/web/app/immutable/chunks/{BpTd99tA.js → DFi7yP72.js} +1 -1
  74. package/web/app/immutable/chunks/{q66ttt22.js → DFjeE4d9.js} +3 -3
  75. package/web/app/immutable/chunks/{7y7832WT.js → DJ0W5XqP.js} +1 -1
  76. package/web/app/immutable/chunks/{CrxXInxf.js → DKdXdHR6.js} +1 -1
  77. package/web/app/immutable/chunks/{WSJurcVg.js → DQ5ZQkVO.js} +1 -1
  78. package/web/app/immutable/chunks/{66_rhosy.js → DRFbJ0fE.js} +1 -1
  79. package/web/app/immutable/chunks/{DeYzpxan.js → DTxEcsgY.js} +1 -1
  80. package/web/app/immutable/chunks/{aB88tX8Q.js → DV_rESKJ.js} +1 -1
  81. package/web/app/immutable/chunks/{D0orvEYB.js → DWE1f5g-.js} +1 -1
  82. package/web/app/immutable/chunks/{Ct7QNzzh.js → DWwg6ky8.js} +29 -29
  83. package/web/app/immutable/chunks/{C5zadSpA.js → DYY_u4Nd.js} +3 -3
  84. package/web/app/immutable/chunks/{BnnkDYnu.js → DZsu37Wu.js} +1 -1
  85. package/web/app/immutable/chunks/{BDjg6KKO.js → DarAEOzd.js} +1 -1
  86. package/web/app/immutable/chunks/{AQD9ZwKP.js → Dbzd7fdj.js} +1 -1
  87. package/web/app/immutable/chunks/{OtZHxuvr.js → DcFVygFY.js} +1 -1
  88. package/web/app/immutable/chunks/{CLmt7ktX.js → Df9CG01x.js} +4 -4
  89. package/web/app/immutable/chunks/{sVbFdYPp.js → DhamU0oR.js} +1 -1
  90. package/web/app/immutable/chunks/{D024cEiO.js → DiAV_2eF.js} +2 -2
  91. package/web/app/immutable/chunks/{DIKVXlyt.js → Dk0iNh1p.js} +2 -2
  92. package/web/app/immutable/chunks/{CSE73PBJ.js → DkDNeNoK.js} +1 -1
  93. package/web/app/immutable/chunks/{DQIS1MQd.js → Dn_OrzDs.js} +1 -1
  94. package/web/app/immutable/chunks/{CKmIcPAK.js → Do_j6-re.js} +1 -1
  95. package/web/app/immutable/chunks/{BTGEGvnD.js → Dp56157B.js} +1 -1
  96. package/web/app/immutable/chunks/{B3SPWmt-.js → DrtJjqz2.js} +1 -1
  97. package/web/app/immutable/chunks/{Cs6WGZex.js → DtDPAvdn.js} +1 -1
  98. package/web/app/immutable/chunks/{Bjw3ENRr.js → Dtg5hKuu.js} +1 -1
  99. package/web/app/immutable/chunks/{CHK4FXDC.js → DvQuppuR.js} +1 -1
  100. package/web/app/immutable/chunks/{WHFDPTSN.js → DwEzJUxs.js} +1 -1
  101. package/web/app/immutable/chunks/{Cy-rVXS3.js → DyZEdzhT.js} +1 -1
  102. package/web/app/immutable/chunks/{hWXfsV3F.js → ETKLgZcV.js} +2 -2
  103. package/web/app/immutable/chunks/{CCdcqA0c.js → Fo1RRGE4.js} +1 -1
  104. package/web/app/immutable/chunks/{s3cC8o8y.js → G4S-HFzv.js} +1 -1
  105. package/web/app/immutable/chunks/{IRSIweMK.js → HZ-IVNhM.js} +2 -2
  106. package/web/app/immutable/chunks/{D6j3Zn1d.js → MlN_FXHo.js} +1 -1
  107. package/web/app/immutable/chunks/{DnD4hxy7.js → NHMqp5_V.js} +1 -1
  108. package/web/app/immutable/chunks/{Cx9nP__t.js → OaCDBRav.js} +1 -1
  109. package/web/app/immutable/chunks/{Bd3Jv-O1.js → Om2iTitv.js} +1 -1
  110. package/web/app/immutable/chunks/{CwJEu8cK.js → SRjDh2x8.js} +1 -1
  111. package/web/app/immutable/chunks/{_QB9q3ka.js → SuLb2IuM.js} +2 -2
  112. package/web/app/immutable/chunks/{IDaGSd8y.js → ThRyrCzJ.js} +1 -1
  113. package/web/app/immutable/chunks/{CdvOr8yA.js → TwSJptto.js} +1 -1
  114. package/web/app/immutable/chunks/{Cha39o9r.js → cGE9a4fB.js} +1 -1
  115. package/web/app/immutable/chunks/{Djfmc_ao.js → e9gOjV1J.js} +1 -1
  116. package/web/app/immutable/chunks/{Bsx9tus4.js → hcF7JX5B.js} +1 -1
  117. package/web/app/immutable/chunks/{C_wivZis.js → iJc67NkM.js} +1 -1
  118. package/web/app/immutable/chunks/{BMyQIDAo.js → j5WxhH_R.js} +4 -4
  119. package/web/app/immutable/chunks/{P93gVaLu.js → kG3im293.js} +1 -1
  120. package/web/app/immutable/chunks/{D2P0fD42.js → kQedEgnI.js} +4 -4
  121. package/web/app/immutable/chunks/{DUQ8HfFA.js → njpaVHVA.js} +1 -1
  122. package/web/app/immutable/chunks/{BVoA79wA.js → uJ6cUlsf.js} +1 -1
  123. package/web/app/immutable/chunks/{DdIYz1zo.js → yQxKGmRJ.js} +1 -1
  124. package/web/app/immutable/chunks/{CYAcOUio.js → z7OoXTLq.js} +1 -1
  125. package/web/app/immutable/chunks/{BLxae2bF.js → zCkM2MuU.js} +1 -1
  126. package/web/app/immutable/entry/{app.B9pbttZz.js → app.g3MnFOth.js} +2 -2
  127. package/web/app/immutable/entry/start.BTWMh34v.js +1 -0
  128. package/web/app/immutable/nodes/{0.BuaXl3Zn.js → 0.6cH5u6I3.js} +1 -1
  129. package/web/app/immutable/nodes/{1.C0hTLxrG.js → 1.DUV-GFdq.js} +1 -1
  130. package/web/app/immutable/nodes/{10.BYoBAwS8.js → 10.DRAVLUkT.js} +1 -1
  131. package/web/app/immutable/nodes/{14.qZIH60wN.js → 14.DHS_Dg-e.js} +1 -1
  132. package/web/app/immutable/nodes/{18.Cz3sqM0n.js → 18.C8u3MdMG.js} +2 -2
  133. package/web/app/immutable/nodes/{2._25AU1Pu.js → 2.1_eczerq.js} +4 -4
  134. package/web/app/immutable/nodes/{3.RDPPYmES.js → 3.BCsVRG_L.js} +1 -1
  135. package/web/app/immutable/nodes/{4.Demyxi_h.js → 4.B16CsZ13.js} +1 -1
  136. package/web/app/immutable/nodes/{5.ylO_Qjm7.js → 5.DjbPD6LE.js} +1 -1
  137. package/web/app/immutable/nodes/{6.CJQj_6nS.js → 6.FJHwQgdr.js} +1 -1
  138. package/web/app/immutable/nodes/{7.BP9EIVoN.js → 7.BcYoROj2.js} +1 -1
  139. package/web/app/immutable/nodes/{8.qL2AO5Vz.js → 8.BDbQhDAX.js} +4 -4
  140. package/web/app/immutable/nodes/{9.CH8_E86R.js → 9.CZD4_T0A.js} +4 -4
  141. package/web/app/version.json +1 -1
  142. package/web/index.html +9 -9
  143. package/web/app/immutable/entry/start.LGV8aa5W.js +0 -1
@@ -1,4 +1,4 @@
1
- import{I as le}from"./C-ExwGaf.js";import{p as he}from"./C3G5lO0X.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./D2P0fD42.js";import{p as Ee}from"./BGC1OvbZ.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),We=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=P(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{I as le}from"./D1ru1X8d.js";import{p as he}from"./Cfc-xYdO.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./kQedEgnI.js";import{p as Ee}from"./BGC1OvbZ.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),We=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=P(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+R}
3
3
  ${s-i/2-L/2},${x-R}
4
4
  ${t.posWithOffset-i/2-L},${x-c-R}
@@ -1 +1 @@
1
- import{t as F,bo as L,bm as H,bw as G,bq as dt,b as J,bs as nt}from"./BkULGdgB.js";import{bs as K,cd as lt,ca as z,c5 as ct,a5 as T,be as D,b$ as M,b_ as h,bO as _,W as l,bH as U,aD as e,bS as B,bA as q,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./DYhIMPy1.js";import{i as C}from"./CVqc5kFv.js";import{C as ut}from"./BLxae2bF.js";import{f as V}from"./DbyXkQ-A.js";import"./CjRRnXFa.js";import{k as bt}from"./BLkmPr-r.js";import{IH as W,ds as vt,dq as kt,dt as _t}from"./DZwGQbE8.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return F({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=L(c,"workspaceId",7),I=L(c,"hookId",7);const d=lt(s());z(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));z(()=>{if(!s())return;const t=s();return ct(()=>{W.dispatch(vt(t)),W.dispatch(kt(t))}),()=>W.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:G,$on:(t,r)=>J(c,t,r)},A=It(),O=T(A),j=T(O);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(j,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=B(j,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}q(O);var Z=B(O,2);{var tt=t=>{var r=mt(),p=T(r);{var y=a=>{var m=gt(),o=S(m,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};C(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}q(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=ft(),f=pt(n),P=S(f,!0),at=B(f,2),ot=S(at,!0);h(st=>{_(P,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};C(p,o=>{e(v)?.lastError&&o(y)})}var i=B(p,2);{var a=o=>{var n=ht(),f=S(n,!0);h(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=xt(),f=S(n,!0);h(P=>_(f,P),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};C(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}q(r),l(t,r)};C(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}q(A),l(x,A);var rt=N(X);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return F({component:yt,...x});K(c,!0);let g=L(c,"tab",7),w=L(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:G,$on:(d,$)=>J(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return q(s),l(x,s),N(E)}export{yt as default};
1
+ import{t as F,bo as L,bm as H,bw as G,bq as dt,b as J,bs as nt}from"./BkULGdgB.js";import{bs as K,cd as lt,ca as z,c5 as ct,a5 as T,be as D,b$ as M,b_ as h,bO as _,W as l,bH as U,aD as e,bS as B,bA as q,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./DYhIMPy1.js";import{i as C}from"./CVqc5kFv.js";import{C as ut}from"./zCkM2MuU.js";import{f as V}from"./DbyXkQ-A.js";import"./CjRRnXFa.js";import{k as bt}from"./BLkmPr-r.js";import{IH as W,ds as vt,dq as kt,dt as _t}from"./DZwGQbE8.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return F({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=L(c,"workspaceId",7),I=L(c,"hookId",7);const d=lt(s());z(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));z(()=>{if(!s())return;const t=s();return ct(()=>{W.dispatch(vt(t)),W.dispatch(kt(t))}),()=>W.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:G,$on:(t,r)=>J(c,t,r)},A=It(),O=T(A),j=T(O);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(j,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=B(j,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}q(O);var Z=B(O,2);{var tt=t=>{var r=mt(),p=T(r);{var y=a=>{var m=gt(),o=S(m,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};C(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}q(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=ft(),f=pt(n),P=S(f,!0),at=B(f,2),ot=S(at,!0);h(st=>{_(P,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};C(p,o=>{e(v)?.lastError&&o(y)})}var i=B(p,2);{var a=o=>{var n=ht(),f=S(n,!0);h(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=xt(),f=S(n,!0);h(P=>_(f,P),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};C(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}q(r),l(t,r)};C(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}q(A),l(x,A);var rt=N(X);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return F({component:yt,...x});K(c,!0);let g=L(c,"tab",7),w=L(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:G,$on:(d,$)=>J(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return q(s),l(x,s),N(E)}export{yt as default};
@@ -1 +1 @@
1
- import{t as a3,bo as p,bw as t3,b as s3}from"./BkULGdgB.js";import{bs as r3,a5 as o3,aD as t,bA as I,b_ as m,W as f,bn as l3,c9 as l,bV as L,aA as u,ay as i3,bS as n3,aw as S,bz as c3,bl as Z,bO as N,aB as v,bH as A}from"./DYhIMPy1.js";import{i as B}from"./CVqc5kFv.js";import{E as m3}from"./Dcvn1tie.js";import{f as _,g as x,s as F}from"./BkQ2g3_N.js";import{F as f3,aQ as v3,aI as g3,aZ as p3,cr as u3,am as d3}from"./DcwBt__E.js";var h3=v("<div></div>"),b3=v('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=v("<img/> <!>",1),C3=v('<span class="type-caption text-subtle font-medium"> </span>'),_3=v("<div><!></div>");function x3(y,i){if(new.target)return a3({component:x3,...y});r3(i,!0);let r=p(i,"iconName",7),n=p(i,"label",7),o=p(i,"size",7,20),d=p(i,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:v3},z=l(()=>j[r().toLowerCase()]),W=l(()=>h[r().toLowerCase()]||h.default),H=l(()=>E[r().toLowerCase()]||null),M=l(()=>U.has(r().toLowerCase()));let b=L(!1),V=L(!1);const k=l(()=>D[r().toLowerCase()]||(t(z)?`https://cdn.simpleicons.org/${t(z)}`:null));function O(){A(b,!0)}function Q(){A(V,!0)}var q={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return n()},set label(e){n(e),u()},get size(){return o()},set size(e=20){o(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(i,e,a)},c=_3(),G=o3(c);{var J=e=>{var a=h3();m3(a,()=>t(H),!0),I(a),m(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),f(e,a)},K=e=>{var a=w3(),s=i3(a);let g;var X=n3(s,2);{var Y=w=>{var C=b3(),$=Z(C,!0);m(e3=>{x(C,`font-size: ${o()*.45}px;`),N($,e3)},[()=>n().charAt(0)]),f(w,C)};B(X,w=>{t(b)||w(Y)})}m(()=>{F(s,"src",t(k)),F(s,"alt",n()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),S("load",s,O),S("error",s,Q),c3(s),f(e,a)},P=e=>{{let a=l(()=>o()*.7);f3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},R=l(()=>h[r().toLowerCase()]),T=e=>{var a=C3(),s=Z(a,!0);m(g=>{x(a,`font-size: ${o()*.45}px;`),N(s,g)},[()=>n().charAt(0)]),f(e,a)};B(G,e=>{t(H)?e(J):t(k)&&!t(V)?e(K,1):t(R)?e(P,2):e(T,-1)})}return I(c),m(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(y,c),l3(q)}export{x3 as M};
1
+ import{t as a3,bo as p,bw as t3,b as s3}from"./BkULGdgB.js";import{bs as r3,a5 as o3,aD as t,bA as I,b_ as m,W as f,bn as l3,c9 as l,bV as L,aA as u,ay as i3,bS as n3,aw as S,bz as c3,bl as Z,bO as N,aB as v,bH as A}from"./DYhIMPy1.js";import{i as B}from"./CVqc5kFv.js";import{E as m3}from"./CigpXs75.js";import{f as _,g as x,s as F}from"./BkQ2g3_N.js";import{F as f3,aQ as v3,aI as g3,aZ as p3,cr as u3,am as d3}from"./DcwBt__E.js";var h3=v("<div></div>"),b3=v('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=v("<img/> <!>",1),C3=v('<span class="type-caption text-subtle font-medium"> </span>'),_3=v("<div><!></div>");function x3(y,i){if(new.target)return a3({component:x3,...y});r3(i,!0);let r=p(i,"iconName",7),n=p(i,"label",7),o=p(i,"size",7,20),d=p(i,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:v3},z=l(()=>j[r().toLowerCase()]),W=l(()=>h[r().toLowerCase()]||h.default),H=l(()=>E[r().toLowerCase()]||null),M=l(()=>U.has(r().toLowerCase()));let b=L(!1),V=L(!1);const k=l(()=>D[r().toLowerCase()]||(t(z)?`https://cdn.simpleicons.org/${t(z)}`:null));function O(){A(b,!0)}function Q(){A(V,!0)}var q={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return n()},set label(e){n(e),u()},get size(){return o()},set size(e=20){o(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(i,e,a)},c=_3(),G=o3(c);{var J=e=>{var a=h3();m3(a,()=>t(H),!0),I(a),m(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),f(e,a)},K=e=>{var a=w3(),s=i3(a);let g;var X=n3(s,2);{var Y=w=>{var C=b3(),$=Z(C,!0);m(e3=>{x(C,`font-size: ${o()*.45}px;`),N($,e3)},[()=>n().charAt(0)]),f(w,C)};B(X,w=>{t(b)||w(Y)})}m(()=>{F(s,"src",t(k)),F(s,"alt",n()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),S("load",s,O),S("error",s,Q),c3(s),f(e,a)},P=e=>{{let a=l(()=>o()*.7);f3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},R=l(()=>h[r().toLowerCase()]),T=e=>{var a=C3(),s=Z(a,!0);m(g=>{x(a,`font-size: ${o()*.45}px;`),N(s,g)},[()=>n().charAt(0)]),f(e,a)};B(G,e=>{t(H)?e(J):t(k)&&!t(V)?e(K,1):t(R)?e(P,2):e(T,-1)})}return I(c),m(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(y,c),l3(q)}export{x3 as M};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Dcvn1tie.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BkULGdgB.js","/app/immutable/chunks/CVqc5kFv.js","/app/immutable/chunks/DdvXzOsp.js","/app/immutable/chunks/i56WxPLH.js","/app/immutable/chunks/B7H9m8-p.js","/app/immutable/chunks/jKsiRjTE.js","/app/immutable/chunks/BkQ2g3_N.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DZwGQbE8.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DcE_bjeG.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BGikh8Vc.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/DbyXkQ-A.js","/app/immutable/chunks/CjRRnXFa.js","/app/immutable/chunks/DIC1j-O7.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/dqNuna_B.js","/app/immutable/chunks/Cx2QERlx.js","/app/immutable/chunks/ClwnVDeP.js","/app/immutable/chunks/BhaFA6n_.js","/app/immutable/chunks/ByONXdFP.js","/app/immutable/chunks/DqP39woS.js","/app/immutable/chunks/DcwBt__E.js","/app/immutable/chunks/B491IXH3.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Dewa-xFN.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/jHHKOkW4.js","/app/immutable/chunks/D_gAF2kq.js","/app/immutable/chunks/BTOuGvfD.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/zqSn-6Mx.js","/app/immutable/chunks/DEAMVhLT.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/fEO_JjJs.js","/app/immutable/chunks/DyRs4I5x.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/8KpVpm2n.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DnD4hxy7.js","/app/immutable/chunks/D4U_w4GT.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BN5JMxvy.js","/app/immutable/chunks/BqrO7ljl.js","/app/immutable/chunks/qUWUBPqP.js","/app/immutable/chunks/CI-PxDr-.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CJ5wd9GV.js","/app/immutable/chunks/DhnPdhLH.js","/app/immutable/chunks/_QB9q3ka.js","/app/immutable/chunks/DPirTM_u.js","/app/immutable/chunks/DLmwZnzr.js","/app/immutable/chunks/DKOCXDff.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Ci9WXQ89.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bm as v,t as Bt,bo as y,bw as Ft,b as zt,bp as rp,bs as yt,bq as ga,br as Bo,b6 as Ll,bj as np,b9 as ap,bi as sp,ba as op,bf as ip,a$ as lp,b3 as cp,bh as dp,bk as up,a_ as fp,b8 as pp,b7 as gp,b1 as vp,be as mp,bl as hp,bu as Ol,bd as bp,b5 as yp,b4 as _p,b2 as xp,bc as wp,bb as kp,bg as Ip,b0 as Sp,_ as Cp}from"./BkULGdgB.js";import{bI as Ep,bj as eo,aG as Pp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as Ct,ay as Ue,be as cr,b$ as Ut,aC as Ha,bl as M,b_ as I,bO as x,aB as k,bo as Ms,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ap,aj as Rr,c7 as Tp,c6 as Dl,c5 as Mn,bf as So,bz as Cd}from"./DYhIMPy1.js";import{i as D}from"./CVqc5kFv.js";import{k as Es}from"./Cx2QERlx.js";import{h as Rp,e as Un,I as ro,g as Nt,i as Tr,o as Mp,p as Np,f as Lp,s as Op}from"./jKsiRjTE.js";import{s as un}from"./DdvXzOsp.js";import{c as Qr}from"./dqNuna_B.js";import{I as Ci,t as nr,n as Dp,i as Bl,u as Fl}from"./B7H9m8-p.js";import{b as Bp,s as ee,g as Nn,e as In,c as ir,f as pt}from"./BkQ2g3_N.js";import{b as pr}from"./BaIAhI85.js";import{i as Ed,bv as Pd,cM as Ad,dG as Fp,ds as zp,ax as Hp,cv as jp,a2 as Wp,cS as Up,dr as Vs,aC as Fo,c3 as qp,I as Vp,a as Kp,a0 as zl,cY as Gp,bT as Jp,M as Yp,dm as Xp,W as Zp,dx as Qp,af as $p,cP as eg,at as tg,g as rg,u as ng}from"./D4U_w4GT.js";import{c as ag}from"./D-62MVd3.js";import{k as da,w as sg,C as Td,c as og,R as ig}from"./8KpVpm2n.js";import{f as kt,ah as ws,aa as lg,ae as Ei}from"./DbyXkQ-A.js";import{F as cg}from"./CjRRnXFa.js";import{ap as dg,ac as Hl,$ as ug,aG as fg,ad as pg,h as gg,ae as vg,aZ as mg,I as hg,R as bg,av as yg,ai as _g,a0 as xg,a as jl,ax as wg,s as kg,n as Ig,b3 as Sg,m as Cg,b5 as Pi,A as Wl,ah as Eg,b4 as Pg,ar as Rd,Q as Md,a7 as Ag,a5 as Ul,V as Tg,U as Rg,ab as Mg,a6 as Ng,K as ql,aw as Lg}from"./BMyQIDAo.js";import{F as Pt,bg as Ai,bL as Og,an as Dg,aP as Bg,cM as Fg,bk as rl,bB as zg,aF as Nd,aK as nl,c$ as Co,aa as Ti,co as Hg,cd as jg,cj as al,cG as Ld,bs as Wg,e as Ug,b$ as Vl,c9 as qg,cm as Vg,cX as Od,bV as Kl,b7 as si,bd as js,aE as Kg,ay as Ri,at as Dd,bb as Bd,bC as Gg,B as Jg,bv as Yg,$ as Fd,b2 as Xg,a5 as zd,ch as Zg,ak as Hd,cO as jd,cK as Gl,ar as Wd,aJ as Jl,cw as Qg,cV as $g,cP as ev,aI as tv,a_ as rv,bO as Ud,bm as nv,am as sl,c5 as Yl,ax as av,a8 as sv,a6 as ov}from"./DcwBt__E.js";import{c as qd}from"./ChTqQfQN.js";import{g as iv}from"./DEAMVhLT.js";import{IH as Ot,bP as lv,s0 as Xl,sB as cv,Jv as dv,JB as uv,i as Vd,Ik as Kd,ny as Gd,nO as Jd,nN as Yd,nr as zo,q9 as ol,y7 as fv,v9 as yo,us as Mi,vb as pv,ng as Xd,IM as gv,th as vv,oC as Zd,rm as il,lZ as Zl,a4 as Ql,qS as mv,qO as hv,qT as bv,qK as yv,qQ as _v,u$ as xv,AK as Qd,AO as $d,nP as $l,bh as Ni,H3 as wv,Ig as kv,hc as ec,hb as Iv,nJ as Sv,wa as Cv,wb as Ev,w9 as tc,BJ as ia,cu as Pv,ci as Av,d3 as Tv,da as Rv,AU as Mv}from"./DZwGQbE8.js";import{bU as Nv,c1 as Lv,p as Ov,L as Dv,c4 as Bv,au as Fv,aw as zv,ay as Hv,ai as jv,ah as Wv,aA as Uv,a6 as qv,bx as Vv,bZ as Kv,bz as Gv}from"./BqrO7ljl.js";import{n as Jv,m as Yv,v as Li,co as Xv,O as Zv,cm as Qv,cf as $v,aG as rc,ch as em,bQ as Oi,aQ as tm,s as rm,c as Ks,d as Di,cj as eu,ck as Bi,bF as nm,b9 as am,bU as sm,bS as om,H as im,ci as nc,by as lm,z as ac,cl as cm,N as dm,a4 as sc}from"./DnD4hxy7.js";import{ci as um,ck as fm,cj as pm,b1 as gm,a$ as vm,b0 as mm,a4 as hm,al as go,ak as bm,aA as oc,aI as ym,aj as _m,C as xm,i as wm,E as _o,cT as km,aW as ic,cY as Im,ag as Sm,a8 as Cm,r as Em,p as Pm,aF as Am,c$ as Tm,cK as Rm,cD as Mm,R as Nm,cu as Lm,bS as Om}from"./aB88tX8Q.js";import{i as Dm,I as Ss,c as lc}from"./ClwnVDeP.js";import"./BhaFA6n_.js";import{f as cc,z as dc,M as tu,m as Bm,l as Fm,E as ru,y as Fi,e as Gs,H as zi,X as us,h as zm}from"./Dcvn1tie.js";import"./BTOuGvfD.js";import{b as nu}from"./DyRs4I5x.js";import"./Dewa-xFN.js";import{z as ll,P as Hm,p as jm,h as Wm,G as Um,l as qm,i as Vm,M as Km,H as Gm,a as au,x as Jm,t as _s,K as Ym,k as Xm,R as Zm}from"./ByONXdFP.js";import{t as Js,O as Qm,M as $m,S as za}from"./DqP39woS.js";import{a as eh}from"./B491IXH3.js";import{C as Hi}from"./DroTaCBM.js";import{aQ as th,aY as rh,aB as nh,b0 as ah,aO as sh,aU as oh,a7 as Ps,b3 as uc,aK as ih,aR as lh,aX as cl,aS as dl,W as oi,aq as ch,X as dh,a_ as uh,aJ as fh,aT as ph,aW as gh,b6 as vh,b4 as mh,ay as su,p as hh,n as bh,aV as yh,_ as _h,ao as xh,aD as wh,z as kh,aC as Ih,a8 as Sh}from"./C5zadSpA.js";import{s as ji}from"./Cx9nP__t.js";import{M as Ch}from"./C9gg-9EN.js";import{s as Eh,a as Ph}from"./BsieX9dN.js";import{u as ul,w as Ah,v as Ho,I as Th,A as fc,e as As,d as Ta,J as pc,c as Rh,f as Mh,g as gc,i as Nh,b as Lh,o as ou,j as Oh,q as Wi,r as Dh,O as Bh,x as Fh,k as iu,S as zh,N as Hh,p as jh,n as vc,z as Wh,s as Uh}from"./DQIS1MQd.js";import{o as mc,a as hc,T as ii,b as qh}from"./IRSIweMK.js";import{O as Vh,x as Kh,i as Gh,g as Jh,T as Yh}from"./ExyHKvnG.js";import{D as Ys}from"./DvhhQYfO.js";import"./BwEOa7Qj.js";import{C as ua}from"./BLxae2bF.js";import{M as Xh}from"./D2P0fD42.js";import{g as fl}from"./i56WxPLH.js";import{f as bc,d as Zh}from"./DPirTM_u.js";import{c as xo}from"./BRRNup5V.js";import{handleIntentLink as Qh}from"./Cb3IR_gP.js";import{s as $h,a as eb,f as tb,d as rb,r as nb,h as ab,w as Ws,g as sb,W as ob,H as ib,c as lb,M as lu}from"./CLmt7ktX.js";import{e as cb,q as db}from"./qUWUBPqP.js";import{m as ub}from"./WFvSJ9zU.js";import{showAssistantContent as fb}from"./DIKVXlyt.js";import{o as Eo,c as pb,n as gb}from"./Ci9WXQ89.js";import{p as vb}from"./CBPCiMxB.js";import{m as mb}from"./-DqWFMjY.js";import{h as vo}from"./BZu-azEo.js";import{i as cu}from"./CJ5wd9GV.js";import{I as hb,z as bb}from"./BGikh8Vc.js";import{g as yb,e as _b,f as xb,h as wb}from"./BvFAWM27.js";import{T as li}from"./DjzRT3Ue.js";import"./D_gAF2kq.js";import{a as kb}from"./fEO_JjJs.js";import{a as Ib}from"./BdWqymET.js";import{p as Sb}from"./66_rhosy.js";const Cb="intent:inline-visual-draft";function zC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CigpXs75.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BkULGdgB.js","/app/immutable/chunks/CVqc5kFv.js","/app/immutable/chunks/DdvXzOsp.js","/app/immutable/chunks/i56WxPLH.js","/app/immutable/chunks/B7H9m8-p.js","/app/immutable/chunks/jKsiRjTE.js","/app/immutable/chunks/BkQ2g3_N.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DZwGQbE8.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DcE_bjeG.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BGikh8Vc.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/DbyXkQ-A.js","/app/immutable/chunks/CjRRnXFa.js","/app/immutable/chunks/DIC1j-O7.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/dqNuna_B.js","/app/immutable/chunks/Cx2QERlx.js","/app/immutable/chunks/ClwnVDeP.js","/app/immutable/chunks/BhaFA6n_.js","/app/immutable/chunks/ByONXdFP.js","/app/immutable/chunks/DqP39woS.js","/app/immutable/chunks/DcwBt__E.js","/app/immutable/chunks/B491IXH3.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Dewa-xFN.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/jHHKOkW4.js","/app/immutable/chunks/D_gAF2kq.js","/app/immutable/chunks/BTOuGvfD.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/zqSn-6Mx.js","/app/immutable/chunks/DEAMVhLT.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/fEO_JjJs.js","/app/immutable/chunks/DyRs4I5x.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/8KpVpm2n.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/NHMqp5_V.js","/app/immutable/chunks/D4U_w4GT.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BN5JMxvy.js","/app/immutable/chunks/BqrO7ljl.js","/app/immutable/chunks/qUWUBPqP.js","/app/immutable/chunks/CI-PxDr-.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CJ5wd9GV.js","/app/immutable/chunks/DhnPdhLH.js","/app/immutable/chunks/SuLb2IuM.js","/app/immutable/chunks/BzvnBtj7.js","/app/immutable/chunks/BTS_Pk4y.js","/app/immutable/chunks/BZwxoq-T.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CQHtILYK.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bm as v,t as Bt,bo as y,bw as Ft,b as zt,bp as rp,bs as yt,bq as ga,br as Bo,b6 as Ll,bj as np,b9 as ap,bi as sp,ba as op,bf as ip,a$ as lp,b3 as cp,bh as dp,bk as up,a_ as fp,b8 as pp,b7 as gp,b1 as vp,be as mp,bl as hp,bu as Ol,bd as bp,b5 as yp,b4 as _p,b2 as xp,bc as wp,bb as kp,bg as Ip,b0 as Sp,_ as Cp}from"./BkULGdgB.js";import{bI as Ep,bj as eo,aG as Pp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as Ct,ay as Ue,be as cr,b$ as Ut,aC as Ha,bl as M,b_ as I,bO as x,aB as k,bo as Ms,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ap,aj as Rr,c7 as Tp,c6 as Dl,c5 as Mn,bf as So,bz as Cd}from"./DYhIMPy1.js";import{i as D}from"./CVqc5kFv.js";import{k as Es}from"./Cx2QERlx.js";import{h as Rp,e as Un,I as ro,g as Nt,i as Tr,o as Mp,p as Np,f as Lp,s as Op}from"./jKsiRjTE.js";import{s as un}from"./DdvXzOsp.js";import{c as Qr}from"./dqNuna_B.js";import{I as Ci,t as nr,n as Dp,i as Bl,u as Fl}from"./B7H9m8-p.js";import{b as Bp,s as ee,g as Nn,e as In,c as ir,f as pt}from"./BkQ2g3_N.js";import{b as pr}from"./BaIAhI85.js";import{i as Ed,bv as Pd,cM as Ad,dG as Fp,ds as zp,ax as Hp,cv as jp,a2 as Wp,cS as Up,dr as Vs,aC as Fo,c3 as qp,I as Vp,a as Kp,a0 as zl,cY as Gp,bT as Jp,M as Yp,dm as Xp,W as Zp,dx as Qp,af as $p,cP as eg,at as tg,g as rg,u as ng}from"./D4U_w4GT.js";import{c as ag}from"./D-62MVd3.js";import{k as da,w as sg,C as Td,c as og,R as ig}from"./8KpVpm2n.js";import{f as kt,ah as ws,aa as lg,ae as Ei}from"./DbyXkQ-A.js";import{F as cg}from"./CjRRnXFa.js";import{ap as dg,ac as Hl,$ as ug,aG as fg,ad as pg,h as gg,ae as vg,aZ as mg,I as hg,R as bg,av as yg,ai as _g,a0 as xg,a as jl,ax as wg,s as kg,n as Ig,b3 as Sg,m as Cg,b5 as Pi,A as Wl,ah as Eg,b4 as Pg,ar as Rd,Q as Md,a7 as Ag,a5 as Ul,V as Tg,U as Rg,ab as Mg,a6 as Ng,K as ql,aw as Lg}from"./j5WxhH_R.js";import{F as Pt,bg as Ai,bL as Og,an as Dg,aP as Bg,cM as Fg,bk as rl,bB as zg,aF as Nd,aK as nl,c$ as Co,aa as Ti,co as Hg,cd as jg,cj as al,cG as Ld,bs as Wg,e as Ug,b$ as Vl,c9 as qg,cm as Vg,cX as Od,bV as Kl,b7 as si,bd as js,aE as Kg,ay as Ri,at as Dd,bb as Bd,bC as Gg,B as Jg,bv as Yg,$ as Fd,b2 as Xg,a5 as zd,ch as Zg,ak as Hd,cO as jd,cK as Gl,ar as Wd,aJ as Jl,cw as Qg,cV as $g,cP as ev,aI as tv,a_ as rv,bO as Ud,bm as nv,am as sl,c5 as Yl,ax as av,a8 as sv,a6 as ov}from"./DcwBt__E.js";import{c as qd}from"./ChTqQfQN.js";import{g as iv}from"./DEAMVhLT.js";import{IH as Ot,bP as lv,s0 as Xl,sB as cv,Jv as dv,JB as uv,i as Vd,Ik as Kd,ny as Gd,nO as Jd,nN as Yd,nr as zo,q9 as ol,y7 as fv,v9 as yo,us as Mi,vb as pv,ng as Xd,IM as gv,th as vv,oC as Zd,rm as il,lZ as Zl,a4 as Ql,qS as mv,qO as hv,qT as bv,qK as yv,qQ as _v,u$ as xv,AK as Qd,AO as $d,nP as $l,bh as Ni,H3 as wv,Ig as kv,hc as ec,hb as Iv,nJ as Sv,wa as Cv,wb as Ev,w9 as tc,BJ as ia,cu as Pv,ci as Av,d3 as Tv,da as Rv,AU as Mv}from"./DZwGQbE8.js";import{bU as Nv,c1 as Lv,p as Ov,L as Dv,c4 as Bv,au as Fv,aw as zv,ay as Hv,ai as jv,ah as Wv,aA as Uv,a6 as qv,bx as Vv,bZ as Kv,bz as Gv}from"./BqrO7ljl.js";import{n as Jv,m as Yv,v as Li,co as Xv,O as Zv,cm as Qv,cf as $v,aG as rc,ch as em,bQ as Oi,aQ as tm,s as rm,c as Ks,d as Di,cj as eu,ck as Bi,bF as nm,b9 as am,bU as sm,bS as om,H as im,ci as nc,by as lm,z as ac,cl as cm,N as dm,a4 as sc}from"./NHMqp5_V.js";import{ci as um,ck as fm,cj as pm,b1 as gm,a$ as vm,b0 as mm,a4 as hm,al as go,ak as bm,aA as oc,aI as ym,aj as _m,C as xm,i as wm,E as _o,cT as km,aW as ic,cY as Im,ag as Sm,a8 as Cm,r as Em,p as Pm,aF as Am,c$ as Tm,cK as Rm,cD as Mm,R as Nm,cu as Lm,bS as Om}from"./DV_rESKJ.js";import{i as Dm,I as Ss,c as lc}from"./ClwnVDeP.js";import"./BhaFA6n_.js";import{f as cc,z as dc,M as tu,m as Bm,l as Fm,E as ru,y as Fi,e as Gs,H as zi,X as us,h as zm}from"./CigpXs75.js";import"./BTOuGvfD.js";import{b as nu}from"./DyRs4I5x.js";import"./Dewa-xFN.js";import{z as ll,P as Hm,p as jm,h as Wm,G as Um,l as qm,i as Vm,M as Km,H as Gm,a as au,x as Jm,t as _s,K as Ym,k as Xm,R as Zm}from"./ByONXdFP.js";import{t as Js,O as Qm,M as $m,S as za}from"./DqP39woS.js";import{a as eh}from"./B491IXH3.js";import{C as Hi}from"./DroTaCBM.js";import{aQ as th,aY as rh,aB as nh,b0 as ah,aO as sh,aU as oh,a7 as Ps,b3 as uc,aK as ih,aR as lh,aX as cl,aS as dl,W as oi,aq as ch,X as dh,a_ as uh,aJ as fh,aT as ph,aW as gh,b6 as vh,b4 as mh,ay as su,p as hh,n as bh,aV as yh,_ as _h,ao as xh,aD as wh,z as kh,aC as Ih,a8 as Sh}from"./DYY_u4Nd.js";import{s as ji}from"./OaCDBRav.js";import{M as Ch}from"./C9gg-9EN.js";import{s as Eh,a as Ph}from"./BsieX9dN.js";import{u as ul,w as Ah,v as Ho,I as Th,A as fc,e as As,d as Ta,J as pc,c as Rh,f as Mh,g as gc,i as Nh,b as Lh,o as ou,j as Oh,q as Wi,r as Dh,O as Bh,x as Fh,k as iu,S as zh,N as Hh,p as jh,n as vc,z as Wh,s as Uh}from"./Dn_OrzDs.js";import{o as mc,a as hc,T as ii,b as qh}from"./HZ-IVNhM.js";import{O as Vh,x as Kh,i as Gh,g as Jh,T as Yh}from"./ExyHKvnG.js";import{D as Ys}from"./CgsNRqOg.js";import"./BwEOa7Qj.js";import{C as ua}from"./zCkM2MuU.js";import{M as Xh}from"./kQedEgnI.js";import{g as fl}from"./i56WxPLH.js";import{f as bc,d as Zh}from"./BzvnBtj7.js";import{c as xo}from"./BRRNup5V.js";import{handleIntentLink as Qh}from"./BMaEkfLt.js";import{s as $h,a as eb,f as tb,d as rb,r as nb,h as ab,w as Ws,g as sb,W as ob,H as ib,c as lb,M as lu}from"./Df9CG01x.js";import{e as cb,q as db}from"./qUWUBPqP.js";import{m as ub}from"./WFvSJ9zU.js";import{showAssistantContent as fb}from"./Dk0iNh1p.js";import{o as Eo,c as pb,n as gb}from"./CQHtILYK.js";import{p as vb}from"./D9SEQmH7.js";import{m as mb}from"./-DqWFMjY.js";import{h as vo}from"./BZu-azEo.js";import{i as cu}from"./CJ5wd9GV.js";import{I as hb,z as bb}from"./BGikh8Vc.js";import{g as yb,e as _b,f as xb,h as wb}from"./BvFAWM27.js";import{T as li}from"./DjzRT3Ue.js";import"./D_gAF2kq.js";import{a as kb}from"./fEO_JjJs.js";import{a as Ib}from"./BdWqymET.js";import{p as Sb}from"./DRFbJ0fE.js";const Cb="intent:inline-visual-draft";function zC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -294,7 +294,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
294
294
  `,B0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],xi=96,id=2e4,F0=480,hf=512,z0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function H0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let L=!1,b=-1,h=innerHeight,P=Number.NaN,R=0,B=0;const F=()=>{if(L=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,G=E-z;if(z>h+1&&G>1&&Math.abs(G-P)<=1?R+=1:(z!==h||G<=1)&&(R=0),h=z,P=G,!B&&R>=3){B=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},T=()=>{L||(L=!0,requestAnimationFrame(F))},O=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const G=E.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof G=="string"&&G.length<512&&z.style.setProperty("--inline-html-root-font-size",G);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const Q=E.variables[Y];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Y,Q)}T()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&O(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const we=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(we.overflowY)||/^(hidden|clip)$/.test(we.overflowY))return!1;const le=Q.scrollHeight-Q.clientHeight;return le>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<le-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const G=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,E.deltaY*G));Number.isFinite(Y)&&(E.preventDefault(),l({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.preventDefault(),!0),O(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(T).observe(document.body),new MutationObserver(T).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",T),document.addEventListener("load",T,!0),document.fonts.ready.then(T),f("ready"),T()},{once:!0})}function j0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function W0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Y.querySelectorAll("template").forEach(Q=>p(Q.content)),Y.querySelectorAll("a, area").forEach(Q=>{for(const we of["href","xlink:href"])Q.getAttribute(we)?.startsWith("#")||Q.removeAttribute(we);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),L=f.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
295
295
  font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const R=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);R.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(L,b,h,R);const F=`<!doctype html>${f.documentElement.outerHTML}`,T=document.implementation.createHTMLDocument(""),O=T.createElement("meta");O.httpEquiv="Content-Security-Policy",O.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=T.createElement("meta");U.setAttribute("charset","utf-8");const E=T.createElement("style");E.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=T.createElement("script"),G=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${G}, (${r.validate}));`,T.head.prepend(O,U,E,z),`<!doctype html>${T.documentElement.outerHTML}`}const U0=()=>({csp:z0,styles:D0,maxScrollDelta:hf,lockHeight:F0,bridge:H0.toString(),shell:j0.toString(),validate:il.toString()});function q0(r,t,n,a,s=null,o=""){return W0(U0(),il,r,t,n,a,s,o)}function ld(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(B0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function V0(r,t,n,a,s=null){return q0(r,t,n,a,s,O0)}var K0=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),G0=k('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),J0=k('<p class="sr-only" role="status"> </p>'),Y0=k('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),X0=k('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),Z0=k('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),Q0=k('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),$0=k('<span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 whitespace-normal text-pretty"> </span>',1),ek=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),tk=k('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),rk=k('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),nk=k('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),ak=k('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),sk=k("<!> <!>",1),ok=k('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><!> <!> <div class="relative min-w-0"><!> <!></div> <div class="flex min-w-0 items-center justify-between gap-2 px-4 pt-1 pb-3" data-inline-visual-actions=""><!> <!></div> <!></div>');function bf(r,t){if(new.target)return Bt({component:bf,...r});Ht(t,!0);const n=720,a=1e4;let s=y(t,"source",7),o=y(t,"isStreaming",7,!1),c=y(t,"isComplete",7,!0),l=y(t,"record",7),f=y(t,"storageStatus",7,"ready"),i=y(t,"onRecordChange",7),p=y(t,"onUseConfiguration",7),g=y(t,"onExport",7),L=y(t,"onRetry",7),b=y(t,"storageError",7),h=y(t,"exportStatus",7),P=y(t,"exportPath",7),R=y(t,"exportError",7),B,F=ye(void 0),T=ye(!1),O=ye(!1),U=ye(0),E=ye(""),z=ye(""),G=ye(!1),Y=ye(""),Q=ye(Gr(xi)),we=ye(n),le=ye(""),de=ye(Zl()),oe=ye(void 0),Re=ye(void 0),J,ke=ye(void 0),ne=ye(!1);const Ie=d(()=>l()??e(de)),De=d(()=>e(Re)!==void 0&&e(oe)!==void 0&&!ub(e(Re),e(oe).inputs)),Se=d(()=>f()!=="loading"&&(f()!=="error"||!!e(Ie).current)),me=d(()=>!o()&&c()&&!!s().trim()&&e(Se)),He=d(()=>Math.min(id,Math.max(xi,e(Q)))),Xe=d(()=>o()||f()==="loading"?"loading":c()?s().trim()?e(Y)?"error":e(G)?"ready":"loading":"empty":"incomplete"),ae=d(()=>o()||f()==="loading"||e(me)&&!e(G)&&!e(Y)),Z=d(()=>Jm([{id:"source",label:e(O)?ap():sp()},{id:"reload",label:op(),disabled:!e(me)},{id:"save",label:ip(),when:!!(e(oe)&&e(me)),disabled:!e(G)||!!e(Y)||e(Ie).scenarios.length>=Ql,group:"configuration"},{id:"compare",label:lp(),when:!!(e(oe)&&e(me)&&e(Ie).scenarios.length),group:"configuration"},{id:"export",label:cp(),when:!!(e(oe)&&e(me)&&g()),disabled:!e(G)||h()==="saving",group:"configuration"}]));function Ke(fe){fe==="source"?A(O,!e(O)):fe==="reload"?A(U,e(U)+1):fe==="save"?K():fe==="compare"?A(ne,!e(ne)):fe==="export"&&g()?.({...e(Ie),current:e(oe)??null})}function V(fe){const Me={...fe,current:e(oe)??fe.current};A(de,Me),i()?.(Me)}function K(){const fe=e(oe);!fe||e(Ie).scenarios.length>=Ql||(V({...e(Ie),scenarios:[...e(Ie).scenarios,{id:crypto.randomUUID(),name:dp({number:Fl(e(Ie).scenarios.length+1)}),snapshot:structuredClone(fe)}]}),A(ne,!0))}function W(fe,Me){const rt=Me.trim().slice(0,120);rt&&V({...e(Ie),scenarios:e(Ie).scenarios.map(st=>st.id===fe?{...st,name:rt}:st)})}function se(fe){const Me=structuredClone(fe);A(oe,Me),A(ke,Me),V({...e(Ie),current:Me}),A(U,e(U)+1)}function _e(fe){return typeof fe=="number"?Fl(fe):typeof fe=="string"?fe:JSON.stringify(fe)}function X(){!e(F)?.contentWindow||!e(z)||e(F).contentWindow.postMessage({channel:e(z),type:"theme",theme:ld(B)},"*")}function ce(fe){let Me=B.parentElement;for(;Me;){const rt=getComputedStyle(Me),st=Me.scrollHeight-Me.clientHeight;if(/^(auto|scroll|overlay)$/.test(rt.overflowY)&&st>1){if(fe<0?Me.scrollTop>0:Me.scrollTop<st){Me.dispatchEvent(new WheelEvent("wheel",{deltaY:fe,bubbles:!0})),Me.scrollTop+=fe;return}if(/^(contain|none)$/.test(rt.overscrollBehaviorY))return}Me=Me.parentElement}window.scrollBy({top:fe,behavior:"instant"})}wt(()=>{if(!e(T))return;const fe=s(),Me=e(me);e(U),Mn(()=>{J!==fe&&(A(de,Zl()),A(oe,void 0),A(Re,void 0),A(ne,!1),A(ke,void 0),J=fe),A(G,!1),A(Y,""),A(le,""),A(Q,xi,!0),A(z,crypto.randomUUID(),!0),A(E,Me?V0(fe,e(z),ld(B),Ll(),e(ke)??e(oe)??e(Ie).current):"",!0),A(ke,void 0)})}),wt(()=>{if(!e(E)||e(G)||e(Y))return;const fe=setTimeout(()=>{A(Y,np(),!0)},a);return()=>clearTimeout(fe)}),to(()=>{A(T,!0);const fe=St=>{if(St.source!==e(F)?.contentWindow||St.origin!=="null")return;const at=St.data;if(!(!at||typeof at!="object"||at.channel!==e(z))){if(at.type==="bootstrap"){e(F)?.contentWindow?.postMessage({channel:e(z),type:"initialize",documentHtml:e(E)},"*");return}if(at.type==="resize"&&typeof at.height=="number"&&Number.isFinite(at.height)&&at.height>=0)A(Q,Math.min(id,Math.ceil(at.height)),!0);else if(at.type==="ready")A(G,!0),X();else if(at.type==="error"&&typeof at.message=="string")A(Y,at.message.slice(0,300),!0);else if(at.type==="layout"&&typeof at.message=="string")A(le,at.message.slice(0,300),!0);else if(at.type==="snapshot"&&e(me)&&il(at.snapshot)){const xt=at.snapshot;A(Re,e(Re)??structuredClone(xt.inputs)),A(oe,xt),V({...e(Ie),current:xt})}else at.type==="wheel"&&e(G)&&e(me)&&!e(O)&&!e(ae)&&typeof at.deltaY=="number"&&Number.isFinite(at.deltaY)&&at.deltaY!==0&&Math.abs(at.deltaY)<=hf&&ce(at.deltaY)}},Me=()=>{A(we,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},rt=new MutationObserver(X);rt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const st=window.matchMedia("(prefers-color-scheme: dark)");return st.addEventListener("change",X),window.addEventListener("message",fe),window.addEventListener("resize",Me),Me(),()=>{rt.disconnect(),st.removeEventListener("change",X),window.removeEventListener("message",fe),window.removeEventListener("resize",Me)}});var Le={get source(){return s()},set source(fe){s(fe),_()},get isStreaming(){return o()},set isStreaming(fe=!1){o(fe),_()},get isComplete(){return c()},set isComplete(fe=!0){c(fe),_()},get record(){return l()},set record(fe){l(fe),_()},get storageStatus(){return f()},set storageStatus(fe="ready"){f(fe),_()},get onRecordChange(){return i()},set onRecordChange(fe){i(fe),_()},get onUseConfiguration(){return p()},set onUseConfiguration(fe){p(fe),_()},get onExport(){return g()},set onExport(fe){g(fe),_()},get onRetry(){return L()},set onRetry(fe){L(fe),_()},get storageError(){return b()},set storageError(fe){b(fe),_()},get exportStatus(){return h()},set exportStatus(fe){h(fe),_()},get exportPath(){return P()},set exportPath(fe){P(fe),_()},get exportError(){return R()},set exportError(fe){R(fe),_()},$set:Ft,$on:(fe,Me)=>zt(t,fe,Me)},xe=ok(),tt=S(xe);{var ve=fe=>{var Me=G0(),rt=Ue(Me),st=S(rt),St=M(st,!0),at=m(st,2);{var xt=Tt=>{kt(Tt,{variant:"ghost",size:"sm",get onclick(){return L()},children:(Zt,tr)=>{cr();var qt=Ut();I(Pe=>x(qt,Pe),[()=>bp()]),u(Zt,qt)},$$slots:{default:!0}})};D(at,Tt=>{L()&&Tt(xt)})}w(rt);var vt=m(rt,2);{var At=Tt=>{var Zt=K0(),tr=M(Zt,!0);I(()=>x(tr,b())),u(Tt,Zt)};D(vt,Tt=>{b()&&Tt(At)})}I(Tt=>x(St,Tt),[()=>up()]),u(fe,Me)};D(tt,fe=>{f()==="error"&&fe(ve)})}var Ae=m(tt,2);{var q=fe=>{var Me=J0(),rt=M(Me,!0);I(st=>x(rt,st),[()=>o()?fp():pp()]),u(fe,Me)},Ce=fe=>{var Me=Y0(),rt=M(Me,!0);I(st=>x(rt,st),[()=>c()?vp():gp()]),u(fe,Me)},ge=fe=>{var Me=X0(),rt=S(Me),st=M(rt,!0),St=m(rt,2),at=M(St,!0);w(Me),I(xt=>{x(st,xt),x(at,e(Y))},[()=>mp()]),u(fe,Me)};D(Ae,fe=>{e(ae)?fe(q):e(me)?e(Y)&&fe(ge,2):fe(Ce,1)})}var N=m(Ae,2),H=S(N);{var ue=fe=>{var Me=Ct(),rt=Ue(Me);Es(rt,()=>e(z),st=>{var St=Z0();let at,xt;pr(St,vt=>A(F,vt),()=>e(F)),I(vt=>{ee(St,"title",vt),ee(St,"src",`/inline-html-sandbox.html#${e(z)}`),at=pt(St,1,"block w-full border-0 svelte-1kkow1d",null,at,{"preview-hidden":e(O)||!e(G)}),ee(St,"aria-hidden",e(O)||!e(G)),xt=Nn(St,"",xt,{height:`${e(He)}px`})},[()=>Ll()]),u(st,St)}),u(fe,Me)};D(H,fe=>{e(me)&&e(E)&&fe(ue)})}var Ye=m(H,2);{var Te=fe=>{ua(fe,{get code(){return s()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(we)}})},je=fe=>{var Me=Q0(),rt=S(Me),st=S(rt);_s(st,{class:"h-4 w-32 max-w-1/2"});var St=m(st,2);_s(St,{class:"h-3 w-2/3"}),w(rt);var at=m(rt,2);_s(at,{class:"aspect-video max-h-60 w-full rounded-lg"});var xt=m(at,2),vt=S(xt);_s(vt,{class:"h-3 w-16"});var At=m(vt,2);_s(At,{class:"h-2 min-w-0 flex-1"});var Tt=m(At,2);_s(Tt,{class:"h-3 w-10"}),w(xt),w(Me),u(fe,Me)};D(Ye,fe=>{e(O)?fe(Te):e(ae)&&fe(je,1)})}w(N);var $e=m(N,2),ut=S($e);{var mt=fe=>{{let Me=d(()=>!e(G)||!!e(Y));kt(fe,{variant:"plain",size:"sm",wrapContent:!1,get class(){return`${Wi} ${Dh} h-auto min-w-0 shrink justify-start rounded-sm border border-transparent px-1.5 py-0.5 text-left hover:text-foreground`},style:"gap: var(--operational-leading-gap)","data-typography-role":"body",get disabled(){return e(Me)},onclick:()=>e(oe)&&p()(e(oe)),children:(rt,st)=>{var St=$0(),at=Ue(St),xt=S(at);Pt(xt,{get icon(){return Fd},size:16,get class(){return Ta}}),w(at);var vt=m(at,2),At=M(vt,!0);I(Tt=>{pt(at,1,`${As??""} mt-px self-start`,"svelte-1kkow1d"),x(At,Tt)},[()=>hp()]),u(rt,St)},$$slots:{default:!0}})}};D(ut,fe=>{e(oe)&&e(De)&&e(me)&&p()&&!e(O)&&fe(mt)})}var It=m(ut,2);{const fe=(rt,st)=>{let St=()=>(st?.()).props;{let at=d(()=>Ol());kt(rt,Bo(St,{variant:"ghost",size:"icon-sm",class:"ml-auto text-muted-foreground",get"aria-label"(){return e(at)},children:(xt,vt)=>{Pt(xt,{get icon(){return Xg},size:16})},$$slots:{default:!0}}))}};let Me=d(()=>Ol());au(It,{get actions(){return e(Z)},get ariaLabel(){return e(Me)},align:"end",side:"top",onAction:Ke,trigger:fe,$$slots:{trigger:!0}})}w($e);var Lt=m($e,2);{var nt=fe=>{var Me=sk(),rt=Ue(Me);{var st=xt=>{var vt=ek(),At=S(vt),Tt=m(At);{var Zt=tr=>{var qt=Ut();I(()=>x(qt,R())),u(tr,qt)};D(Tt,tr=>{h()==="error"&&R()&&tr(Zt)})}w(vt),I(tr=>x(At,`${tr??""} `),[()=>h()==="saving"?yp():h()==="saved"?_p({path:P()??""}):xp()]),u(xt,vt)};D(rt,xt=>{h()&&xt(st)})}var St=m(rt,2);{var at=xt=>{var vt=ak(),At=S(vt),Tt=S(At),Zt=S(Tt),tr=S(Zt),qt=M(tr,!0),Pe=m(tr),ie=M(Pe,!0),Ge=m(Pe);Nt(Ge,17,()=>e(Ie).scenarios,et=>et.id,(et,Ne)=>{var te=tk(),pe=S(te);{let ze=d(()=>Ip());Ss(pe,{get value(){return e(Ne).name},get"aria-label"(){return e(ze)},maxlength:120,onblur:Fe=>{Fe.currentTarget.value.trim()||(Fe.currentTarget.value=e(Ne).name),W(e(Ne).id,Fe.currentTarget.value)},onkeydown:Fe=>{Fe.key==="Enter"&&Fe.currentTarget.blur(),Fe.key==="Escape"&&(Fe.currentTarget.value=e(Ne).name,Fe.currentTarget.blur())}})}var re=m(pe,2),Oe=S(re);kt(Oe,{variant:"ghost",size:"sm",onclick:()=>se(e(Ne).snapshot),children:(ze,Fe)=>{cr();var qe=Ut();I(Je=>x(qe,Je),[()=>wp()]),u(ze,qe)},$$slots:{default:!0}});var he=m(Oe,2);kt(he,{variant:"ghost",size:"sm",onclick:()=>V({...e(Ie),scenarios:e(Ie).scenarios.filter(ze=>ze.id!==e(Ne).id)}),children:(ze,Fe)=>{cr();var qe=Ut();I(Je=>x(qe,Je),[()=>kp()]),u(ze,qe)},$$slots:{default:!0}}),w(re),w(te),u(et,te)}),w(Zt),w(Tt);var lt=m(Tt);Nt(lt,20,()=>["inputs","results"],Tr,(et,Ne)=>{const te=d(()=>Ne),pe=d(()=>Array.from(new Set([...Object.keys(e(oe)[e(te)]),...e(Ie).scenarios.flatMap(he=>Object.keys(he.snapshot[e(te)]))])));var re=Ct(),Oe=Ue(re);Nt(Oe,16,()=>e(pe),he=>he,(he,ze)=>{var Fe=nk(),qe=S(Fe),Je=M(qe,!0),We=m(qe);Nt(We,17,()=>[e(oe),...e(Ie).scenarios.map(Qe=>Qe.snapshot)],Tr,(Qe,Be)=>{var Ze=rk(),ft=M(Ze,!0);I(it=>x(ft,it),[()=>Object.hasOwn(e(Be)[e(te)],ze)?_e(e(Be)[e(te)][ze]):"—"]),u(Qe,Ze)}),w(Fe),I(()=>x(Je,ze)),u(he,Fe)}),u(et,re)}),w(lt),w(At),w(vt),I(et=>{x(qt,e(oe).title),x(ie,et)},[()=>Sp()]),u(xt,vt)};D(St,xt=>{e(ne)&&e(Ie).scenarios.length&&xt(at)})}u(fe,Me)};D(Lt,fe=>{e(oe)&&e(me)&&fe(nt)})}return w(xe),pr(xe,fe=>B=fe,()=>B),I(()=>{ee(xe,"data-inline-html-status",e(Xe)),ee(xe,"data-inline-html-layout",e(le)?"viewport-locked":void 0),ee(xe,"aria-busy",e(ae))}),u(r,xe),jt(Le)}var ik=k('<div class="w-full min-w-0"><!></div>');function lk(r,t){if(new.target)return Bt({component:lk,...r});Ht(t,!0);const n=()=>yt(e(b),"$agent$",s),a=()=>yt(e(B),"$entry$",s),[s,o]=ga();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),L=ye(void 0);const b=d(()=>Fo(i()??"")),h=d(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Zd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=d(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),R=d(()=>e(h)?_v(e(h)):""),B=d(()=>sh(e(R)));wt(()=>{e(h)&&Ot.dispatch(mv(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(L)?.dispatchEvent(new CustomEvent(Cb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var T={get block(){return c()},set block(Y){c(Y),_()},get role(){return l()},set role(Y){l(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Ft,$on:(Y,Q)=>zt(t,Y,Q)},O=Ct(),U=Ue(O);{var E=Y=>{var Q=ik(),we=S(Q);{let le=d(()=>c().metadata?.isStreaming??!1),de=d(()=>c().metadata?.fenceClosed??!1),oe=d(()=>a()?.record),Re=d(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),J=d(()=>a()?.error),ke=d(()=>e(h)?Xe=>Ot.dispatch(yv(e(R),Xe)):void 0),ne=d(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Ie=d(()=>e(h)?()=>Ot.dispatch(bv(e(R))):void 0),De=d(()=>e(h)?Xe=>Ot.dispatch(hv(e(R),crypto.randomUUID(),Xe)):void 0),Se=d(()=>a()?.export?.status),me=d(()=>a()?.export?.path),He=d(()=>a()?.export?.error);bf(we,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(de)},get record(){return e(oe)},get storageStatus(){return e(Re)},get storageError(){return e(J)},get onRecordChange(){return e(ke)},get onUseConfiguration(){return e(ne)},get onRetry(){return e(Ie)},get onExport(){return e(De)},get exportStatus(){return e(Se)},get exportPath(){return e(me)},get exportError(){return e(He)}})}w(Q),pr(Q,le=>A(L,le),()=>e(L)),u(Y,Q)},z=Y=>{ua(Y,{get code(){return c().content},language:"html"})};D(U,Y=>{l()==="assistant"?Y(E):Y(z,-1)})}u(r,O);var G=jt(T);return o(),G}var ck=k('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function dk(r,t){if(new.target)return Bt({component:dk,...r});Ht(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:Ft,$on:(c,l)=>zt(t,c,l)},s=ck(),o=M(s,!0);return I(()=>x(o,n())),u(r,s),jt(a)}var uk=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),fk=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),pk=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),gk=k('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),vk=k('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function mk(r,t){if(new.target)return Bt({component:mk,...r});Ht(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Ft,$on:(b,h)=>zt(t,b,h)},s=vk(),o=S(s),c=S(o);Pt(c,{get icon(){return Od},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=M(l,!0);w(o);var i=m(o,2);Nt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=gk(),R=S(P),B=S(R),F=S(B),T=M(F,!0),O=m(F,2);{var U=we=>{var le=uk(),de=M(le,!0);I(oe=>x(de,oe),[()=>v.chat_detectedScripts_service_badge()]),u(we,le)},E=we=>{var le=fk(),de=M(le,!0);I(oe=>x(de,oe),[()=>v.chat_detectedScripts_command_badge()]),u(we,le)};D(O,we=>{e(h).mode==="service"?we(U):we(E,-1)})}var z=m(O,2);{var G=we=>{var le=pk(),de=M(le,!0);I(()=>x(de,e(h).category)),u(we,le)};D(z,we=>{e(h).category&&e(h).category!=="other"&&we(G)})}w(B);var Y=m(B,2),Q=M(Y,!0);w(R),w(P),I(()=>{x(T,e(h).name),x(Q,e(h).command)}),u(b,P)}),w(i);var p=m(i,2),g=S(p),L=M(g,!0);return w(p),w(s),I((b,h)=>{x(f,b),x(L,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:nr(n().length)}):v.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,s),jt(a)}function hk(r,t){if(new.target)return Bt({component:hk,...r});Ht(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),da.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),da.info(v.chat_diffViewer_rejected_toast())}const i=d(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:Ft,$on:(g,L)=>zt(t,g,L)};{let g=d(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());Ys(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return jt(p)}var bk=Ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),cd=Ha("<circle></circle>"),yk=Ha('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),_k=k('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Io(r,t){if(new.target)return Bt({component:Io,...r});Ht(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=d(()=>s()/2),l=d(()=>e(c)),f=d(()=>e(c)),i=d(()=>s()*.12),p=d(()=>e(c)-e(i)/2),g=d(()=>e(c)*.35),L=d(()=>2*Math.PI*e(g)),b=d(()=>Math.max(0,Math.min(1,a()))*e(L));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=d(()=>h[n()]||"currentColor");var R={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:Ft,$on:(le,de)=>zt(t,le,de)},B=_k(),F=S(B),T=S(F),O=m(T);{var U=le=>{},E=le=>{var de=bk();I(()=>{ee(de,"cx",e(l)),ee(de,"cy",e(f)),ee(de,"r",e(g)*.8),ee(de,"stroke",e(P)),ee(de,"stroke-width",e(g)*1.5),ee(de,"stroke-dasharray",`${e(b)??""} ${e(L)??""}`),ee(de,"stroke-dashoffset",e(L)*.25),ee(de,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),u(le,de)},z=le=>{var de=cd();I(()=>{ee(de,"cx",e(l)),ee(de,"cy",e(f)),ee(de,"r",e(p)*.6),ee(de,"fill",e(P))}),u(le,de)},G=le=>{var de=cd();I(()=>{ee(de,"cx",e(l)),ee(de,"cy",e(f)),ee(de,"r",e(p)),ee(de,"fill",e(P))}),u(le,de)};D(O,le=>{n()==="planning"?le(U):n()==="building"?le(E,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(G,3)})}w(F);var Y=m(F,2);{var Q=le=>{},we=le=>{var de=yk();I(()=>ee(de,"width",s()*.5)),u(le,de)};D(Y,le=>{n()==="reviewing"?le(Q):n()==="shipped"&&le(we,1)})}return w(B),I(()=>{ee(F,"width",s()),ee(F,"height",s()),ee(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),pt(F,0,ir(o())),ee(T,"cx",e(l)),ee(T,"cy",e(f)),ee(T,"r",e(p)),ee(T,"stroke",e(P)),ee(T,"stroke-width",e(i))}),u(r,B),jt(R)}var dd=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),xk=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),ud=k('<span class="text-ui text-subtle truncate"> </span>'),fd=k('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),pd=k('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),wk=k('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),kk=k('<span class="text-ui text-subtle pl-4"> </span>'),Ik=k('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),Sk=k('<div class="text-ui text-subtle"> </div>'),Ck=k("<!> <!> <!> <!>",1),Ek=k('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),Pk=k('<div class="rounded-[0.5px]"></div>');function yf(r,t){if(new.target)return Bt({component:yf,...r});Ht(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=d(()=>{const{completed:O,inProgress:U,notStarted:E,total:z}=n();if(z===0)return[];const G=[...Array(O).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).fill("notStarted")];return G.length<=s()?G:G.slice(G.length-s())}),g=d(()=>a().filter(O=>O.status==="complete")),L=d(()=>a().filter(O=>O.status==="in_progress"||O.status==="review_required")),b=d(()=>a().filter(O=>O.status!=="complete"&&O.status!=="in_progress"&&O.status!=="review_required"&&O.status!=="cancelled")),h=d(()=>a().filter(O=>O.status==="cancelled")),P=d(()=>a().length>0);var R={get stats(){return n()},set stats(O){n(O),_()},get tasks(){return a()},set tasks(O=[]){a(O),_()},get maxBars(){return s()},set maxBars(O=20){s(O),_()},get barWidth(){return o()},set barWidth(O="1px"){o(O),_()},get barHeight(){return c()},set barHeight(O="16px"){c(O),_()},get gap(){return l()},set gap(O="1px"){l(O),_()},get class(){return f()},set class(O){f(O),_()},$set:Ft,$on:(O,U)=>zt(t,O,U)},B=Ct(),F=Ue(B);{var T=O=>{Ei(O,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=Ek(),G=S(z),Y=S(G),Q=M(Y,!0),we=m(Y,2),le=S(we);{var de=De=>{var Se=dd(),me=S(Se);Nn(me,"",{},{"background-color":"#22c55e"});var He=m(me);w(Se),I(()=>x(He,` ${n().completed??""}`)),u(De,Se)};D(le,De=>{n().completed>0&&De(de)})}var oe=m(le,2);{var Re=De=>{var Se=dd(),me=S(Se);Nn(me,"",{},{"background-color":"#4F7BF7"});var He=m(me);w(Se),I(()=>x(He,` ${n().inProgress??""}`)),u(De,Se)};D(oe,De=>{n().inProgress>0&&De(Re)})}var J=m(oe,2);{var ke=De=>{var Se=xk(),me=m(S(Se));w(Se),I(()=>x(me,` ${n().notStarted??""}`)),u(De,Se)};D(J,De=>{n().notStarted>0&&De(ke)})}w(we),w(G);var ne=m(G,2);{var Ie=De=>{var Se=Ck(),me=Ue(Se);Nt(me,17,()=>e(L),Tr,(V,K)=>{var W=pd(),se=S(W),_e=S(se);ii(_e,{get status(){return e(K).status},size:14}),w(se);var X=m(se,2),ce=S(X),Le=M(ce,!0),xe=m(ce,2);{var tt=ve=>{var Ae=fd(),q=S(Ae);{let N=d(()=>e(K).agentState||"idle");Wl(q,{get agentId(){return e(K).agentId},get state(){return e(N)},size:12,get specialist(){return e(K).agentSpecialist}})}var Ce=m(q,2);{var ge=N=>{var H=ud(),ue=M(H,!0);I(()=>x(ue,e(K).agentName)),u(N,H)};D(Ce,N=>{e(K).agentName&&N(ge)})}w(Ae),u(ve,Ae)};D(xe,ve=>{e(K).agentId&&ve(tt)})}w(X),w(W),I(()=>x(Le,e(K).title)),u(V,W)});var He=m(me,2);Nt(He,17,()=>e(b),Tr,(V,K)=>{var W=pd(),se=S(W),_e=S(se);ii(_e,{get status(){return e(K).status},size:14}),w(se);var X=m(se,2),ce=S(X),Le=M(ce,!0),xe=m(ce,2);{var tt=ve=>{var Ae=fd(),q=S(Ae);{let N=d(()=>e(K).agentState||"idle");Wl(q,{get agentId(){return e(K).agentId},get state(){return e(N)},size:12,get specialist(){return e(K).agentSpecialist}})}var Ce=m(q,2);{var ge=N=>{var H=ud(),ue=M(H,!0);I(()=>x(ue,e(K).agentName)),u(N,H)};D(Ce,N=>{e(K).agentName&&N(ge)})}w(Ae),u(ve,Ae)};D(xe,ve=>{e(K).agentId&&ve(tt)})}w(X),w(W),I(()=>x(Le,e(K).title)),u(V,W)});var Xe=m(He,2);{var ae=V=>{var K=Ik(),W=S(K);Nt(W,17,()=>e(g).slice(0,3),Tr,(X,ce)=>{var Le=wk(),xe=S(Le),tt=S(xe);ii(tt,{status:"complete",size:12}),w(xe);var ve=m(xe,2),Ae=M(ve,!0);w(Le),I(()=>x(Ae,e(ce).title)),u(X,Le)});var se=m(W,2);{var _e=X=>{var ce=kk(),Le=M(ce,!0);I(xe=>x(Le,xe),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:nr(e(g).length-3)})]),u(X,ce)};D(se,X=>{e(g).length>3&&X(_e)})}w(K),u(V,K)};D(Xe,V=>{e(g).length>0&&V(ae)})}var Z=m(Xe,2);{var Ke=V=>{var K=Sk(),W=M(K,!0);I(se=>x(W,se),[()=>v.workspace_taskProgressBar_cancelled_label({count:nr(e(h).length)})]),u(V,K)};D(Z,V=>{e(h).length>0&&V(Ke)})}u(De,Se)};D(ne,De=>{e(P)&&De(Ie)})}w(z),I(De=>x(Q,De),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(E,z)},children:(E,z)=>{{let G=d(()=>In("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=d(()=>`gap: ${l()}`),Q=d(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));kt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(G)},get style(){return e(Y)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(we,le)=>{var de=Ct(),oe=Ue(de);Nt(oe,17,()=>e(p),Tr,(Re,J)=>{var ke=Pk();let ne;I(()=>ne=Nn(ke,"",ne,{width:o(),height:c(),"background-color":i[e(J)]})),u(Re,ke)}),u(we,de)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,O=>{n().total>0&&O(T)})}return u(r,B),jt(R)}function Sl(r,t){if(new.target)return Bt({component:Sl,...r});Ht(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=d(()=>Pg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:Ft,$on:(p,g)=>zt(t,p,g)};return au(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Eg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,L)=>{let b=()=>(L?.()).props;kt(g,Bo(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Ym(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),jt(i)}var Ak=k('<span class="contents"><!></span>'),Tk=k("<!> <!>",1);function _f(r,t){if(new.target)return Bt({component:_f,...r});Ht(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=d(()=>iv(a()));let o=ye(null);wt(()=>{e(o)&&e(o).workspaceId!==n()&&A(o,null)});function c(h){const P=Rd(h);P&&A(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();A(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){A(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Ft,$on:(h,P)=>zt(t,h,P)},p=Tk(),g=Ue(p);{let h=d(()=>v.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),P=d(()=>v.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),R=d(()=>e(o)!==null);kt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(R)},children:(B,F)=>{var T=Ak(),O=S(T);og(O,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(T),u(B,T)},$$slots:{default:!0}})}var L=m(g,2);{var b=h=>{{let P=d(()=>e(o)?.x??0),R=d(()=>e(o)?.y??0),B=d(()=>e(o)?.returnFocus),F=d(()=>v.workspace_card_assignMicroKey_label()),T=d(()=>tb(n(),f));Md(h,{get x(){return e(P)},get y(){return e(R)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(T)},onClickOutside:f})}};D(L,h=>{e(o)&&h(b)})}return u(r,p),jt(i)}var Rk=k('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),Mk=k('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),Nk=k('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),Lk=k('<span data-workspace-card-pr-item=""><!></span>'),Ok=k('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),Dk=k('<span data-workspace-card-time=""><!></span>'),Bk=k('<span aria-hidden="true"><!></span>'),Fk=k("<div><!> <!> <!> <!></div>"),zk=k('<div data-workspace-card-hover-surface=""><!></div>'),Hk=k('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),jk=k('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),Wk=k('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),Uk=k('<div class="text-sm font-semibold truncate"> </div>'),gd=k('<span class="truncate"> </span>'),qk=k('<span class="text-muted-foreground">·</span>'),Vk=k('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Kk=k('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Gk=k('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Jk=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Yk=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Xk=k('<div class="flex items-center text-ui"><span> </span></div>'),Zk=k('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Qk=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),$k=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),e2=k('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function xf(r,t){if(new.target)return Bt({component:xf,...r});Ht(t,!0);const n=()=>yt(He,"$prMonitors$",c),a=()=>yt(Xe,"$microConnected$",c),s=()=>yt(Z,"$hidesOwnerActions$",c),o=()=>yt(ae,"$workspaceKeySlot$",c),[c,l]=ga();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),L=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),R=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),T=y(t,"isAgentRunning",7,!1),O=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),E=y(t,"title",7),z=y(t,"repoName",7),G=y(t,"branch",7),Y=y(t,"onClick",7),Q=y(t,"onAction",7),we=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),de=y(t,"onOpenInNewWindow",7),oe=y(t,"onHover",7),Re=y(t,"highlighted",7,!1),J=y(t,"selected",7,!1),ke=y(t,"highlightId",7),ne=y(t,"suppressHover",7,!1),Ie=y(t,"isolateHoverReveal",7,!1),De=y(t,"class",7),Se=y(t,"actions",7);const me=Is("");wt(()=>{me.set(f()?.id??"")});const He=Gp(me),Xe=mb(),ae=Bv(me),Z=Jp(me),Ke=d(()=>nb(f()??{})),V=d(()=>ab(e(Ke)));let K=d(()=>f()?vb.url.pathname===`/workspace/${f().id}`:!1),W=d(()=>f()?`workspace-hover-card-${f().id}`:void 0),se=ye(!1),_e=ye(null),X=ye(null);wt(()=>{if(!e(X))return;const $=vo(e(X),{id:ke()});return()=>$.destroy()});let ce=ye(null),Le=ye(null),xe=ye(null),tt=ye(0),ve=ye(0),Ae=d(()=>e(tt)+(e(ve)>0?e(ve)+4:0));function q(){const $=e(ce),gt=e(xe);A(tt,$?Math.max(0,$.scrollWidth-$.clientWidth):0,!0),A(ve,$&&gt&&gt.getClientRects().length>0?Math.max(0,$.getBoundingClientRect().right-gt.getBoundingClientRect().left):0,!0)}wt(()=>{const $=e(ce),gt=e(Le),Vt=e(xe);if(!$||!gt||(q(),typeof ResizeObserver>"u"))return;const Jt=new ResizeObserver(q);return Jt.observe($),Jt.observe(gt),Vt&&Jt.observe(Vt),()=>Jt.disconnect()});let Ce=null,ge=null,N=!1,H=!1,ue=!1,Ye=!1,Te=!1,je=!1,$e=ye(!1),ut=!1,mt=null,It=ye(null),Lt=null,nt;function fe(){Ce!==null&&(clearTimeout(Ce),Ce=null)}function Me(){ge!==null&&(clearTimeout(ge),ge=null),Lt?.(),Lt=null}function rt(){Me(),A($e,!0),A(se,!0),!Te&&(Te=!0,Ws.notifyOpened())}function st(){Me(),clearTimeout(nt),A($e,!1),A(se,!1),H=!1,Ye=!1,Te&&(Te=!1,Ws.notifyClosed())}function St(){return N||H||ue||Ye}function at(){if(!e(se)){st();return}Me(),ge=setTimeout(()=>{ge=null,St()||st()},ob),Lt=Ws.deferClose(st)}function xt(){H=!0,Me()}function vt(){H=!1,!ue&&!Ye&&at()}function At(){Ye=!0,clearTimeout(nt),Me()}function Tt($){const gt=$.relatedTarget instanceof Node?$.relatedTarget:null;if(gt&&pe()?.contains(gt)||(Ye=!1,gt&&e(_e)?.contains(gt)))return;if(gt){!N&&!H&&st();return}const Vt=$.target;clearTimeout(nt),nt=setTimeout(()=>{const Jt=document.activeElement,_r=pe()?.contains(Jt)||e(_e)?.contains(Jt);Jt&&Jt!==Vt&&_r||!N&&!H&&st()},0)}function Zt(){mt!==null&&clearTimeout(mt),ut=!0,mt=setTimeout(()=>{ut=!1,mt=null},0)}function tr($){const gt=$.target,Vt=pe();gt instanceof Node&&Vt?.contains(gt)||$.type==="scroll"&&e(_e)&&gt instanceof Node&&!gt.contains(e(_e))||($.type==="pointerdown"&&Zt(),fe(),st())}wt(()=>{if(e($e))return window.addEventListener("pointerdown",tr,!0),window.addEventListener("scroll",tr,!0),()=>{window.removeEventListener("pointerdown",tr,!0),window.removeEventListener("scroll",tr,!0)}});function qt($){if($.key!=="Escape")return;const gt=$.target;gt instanceof Node&&pe()?.contains(gt)||($.preventDefault(),$.stopPropagation(),je=ue,fe(),st())}wt(()=>{if(e(se))return window.addEventListener("keydown",qt,!0),()=>window.removeEventListener("keydown",qt,!0)});const Pe=d(()=>f()?Xp.select(Ot.state,f().id):null),ie=d(()=>e(Pe)?e(Pe):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ge=d(()=>Yp(f())),lt=d(()=>{if(!f()||e(Ge))return[];const $=f(),gt=$.repositoryOwner&&$.repositoryName?`${$.repositoryOwner}/${$.repositoryName}`:void 0;return Ag({workspacePRs:$.pullRequests,activePR:e(ie),monitors:n(),workspaceRepo:gt,buildPrUrl:(Vt,Jt)=>Pm(Vt,$.repositoryOwner,$.repositoryName,Jt),getDisplayTitle:Vt=>Vt.title})}),et=d(()=>e(lt)[0]);function Ne($){const gt=$.resource?.repository.provider==="gitlab"?`${$.repo} !${$.number}`:$.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:$.repo,number:$.number}):v.workspace_card_prBadge_label({number:` #${$.number}`});return[Zp(gt,$),$.title,$.details].filter(Boolean).join(`
296
296
  `)}function te($){$.key==="Enter"&&Y()?.($)}function pe(){return e(W)?document.getElementById(e(W)):null}function re(){return Array.from(pe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Oe(){const $=e(_e)?.querySelector("[data-workspace-card-trigger]"),gt=pe();if(!$||!gt)return null;const Vt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!gt.contains(_r)),Jt=Vt.indexOf($);return Jt>=0?Vt[Jt+1]:null}function he($){je=!!e(_e)?.contains($),st(),$.focus({preventScroll:!0})}function ze(){const $=e(_e)?.querySelector("[data-workspace-card-trigger]");$&&he($)}async function Fe($){if($.key==="Escape"&&e(se)){$.preventDefault(),$.stopPropagation(),st();return}$.key!=="ArrowDown"||ne()||!f()||($.preventDefault(),$.stopPropagation(),A($e,!0),A(se,!0),await ca(),re()[0]?.focus({preventScroll:!0}))}function qe($){const gt=re(),Vt=$.key==="Tab"&&$.shiftKey&&$.currentTarget===gt[0],_r=$.key==="Tab"&&!$.shiftKey&&$.currentTarget===gt.at(-1)?Oe():null;$.key!=="Escape"&&!Vt&&!_r||($.preventDefault(),$.stopPropagation(),_r?he(_r):ze())}function Je(){N=!0,Me(),Ws.settleDeferredCloses(),q(),oe()?.(),f()&&!ne()&&!ue&&(fe(),A($e,!0),Ce=setTimeout(()=>{Ce=null,rt()},Ws.currentOpenDelay))}function We(){N=!1,fe(),!ue&&!Ye&&at()}function Qe(){ue=!0,fe(),Me(),!je&&(ut||f()&&!ne()&&(A($e,!0),A(se,!0)))}function Be($){const gt=$.relatedTarget instanceof Node?$.relatedTarget:null;gt&&e(_e)?.contains(gt)||(je=!1,ue=!1,!(gt&&pe()?.contains(gt))&&!N&&!H&&st())}wt(()=>{ne()&&(fe(),Me(),st())});let Ze=ye(null),ft=ye(!1),it;wt(()=>{const $=f()?.id;it!==$&&(it=$,A(ft,!1)),e(Ze)&&e(Ze).workspaceId!==f()?.id&&Mt()});function ct($){if(!f())return;const gt=Rd($);if(gt){if(A(ft,!1),ht().length===0){A(Ze,null);return}A(Ze,{...gt,returnFocus:$.target instanceof HTMLElement?$.target.closest("button")??e(_e)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function Mt(){A(Ze,null),A(ft,!1)}wt(()=>{e(ft)&&A(Ze,null)}),eo(()=>{fe(),Me(),mt!==null&&(clearTimeout(mt),mt=null),st()});function ht(){if(!f())return[];const $=[];return de()&&$.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:zd,onClick:()=>{de()?.(),Mt()}}),$.push(...sb(f().id,{connected:a(),onClose:Mt})),s()||(e(Ge)||$.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Zg,onClick:()=>{Ot.dispatch(xv({workspaceId:f().id,workspaceTitle:f().title})),Mt()}}),$.push({id:"archive",label:v.workspace_card_archive_label(),icon:Hd,onClick:()=>{Ot.dispatch(Qd(f().id)),Mt()}}),$.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:jd,destructive:!0,onClick:()=>{Ot.dispatch($d(f().id)),Mt()}})),$}let Dt=d(()=>T()&&O()?O():i()?.subtitle??""),Yt=d(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),Qt=d(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),lr=d(()=>e(Ge)?void 0:G()),Hr=d(()=>!p()||e(Ge)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),ln=d(()=>i()?.phase==="planning"?T()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const $r={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var mr={get workspace(){return f()},set workspace($){f($),_()},get phase(){return i()},set phase($){i($),_()},get stats(){return p()},set stats($){p($),_()},get variant(){return g()},set variant($="compact"){g($),_()},get showTime(){return L()},set showTime($=!0){L($),_()},get isRunning(){return b()},set isRunning($=!1){b($),_()},get isUnread(){return h()},set isUnread($=!1){h($),_()},get isWaiting(){return P()},set isWaiting($){P($),_()},get isPinned(){return R()},set isPinned($=!1){R($),_()},get streamingAgentIds(){return B()},set streamingAgentIds($=[]){B($),_()},get hasSpec(){return F()},set hasSpec($=!1){F($),_()},get isAgentRunning(){return T()},set isAgentRunning($=!1){T($),_()},get agentDigest(){return O()},set agentDigest($){O($),_()},get trailingLabel(){return U()},set trailingLabel($){U($),_()},get title(){return E()},set title($){E($),_()},get repoName(){return z()},set repoName($){z($),_()},get branch(){return G()},set branch($){G($),_()},get onClick(){return Y()},set onClick($){Y($),_()},get onAction(){return Q()},set onAction($){Q($),_()},get onTogglePin(){return we()},set onTogglePin($){we($),_()},get onMarkAsRead(){return le()},set onMarkAsRead($){le($),_()},get onOpenInNewWindow(){return de()},set onOpenInNewWindow($){de($),_()},get onHover(){return oe()},set onHover($){oe($),_()},get highlighted(){return Re()},set highlighted($=!1){Re($),_()},get selected(){return J()},set selected($=!1){J($),_()},get highlightId(){return ke()},set highlightId($){ke($),_()},get suppressHover(){return ne()},set suppressHover($=!1){ne($),_()},get isolateHoverReveal(){return Ie()},set isolateHoverReveal($=!1){Ie($),_()},get class(){return De()},set class($){De($),_()},get actions(){return Se()},set actions($){Se($),_()},$set:Ft,$on:($,gt)=>zt(t,$,gt)},qn=Ct(),ea=Ue(qn);{var Vn=$=>{var gt=Hk(),Vt=Ue(gt);let Jt;var _r=S(Vt);{let bt=d(()=>f().title||v.workspace_links_untitled_label()),Rt=d(()=>`workspace-status-state-${f().id}${R()?` workspace-pinned-state-${f().id}`:""}${e(se)?` ${e(W)}`:""}`),ar=d(()=>e(K)?"page":void 0);kt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(bt)},get"aria-describedby"(){return e(Rt)},get"aria-current"(){return e(ar)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:hr=>{hr.stopPropagation(),Y()?.(hr)}})}var Kn=m(_r,2),Jr=S(Kn);{var Gn=bt=>{var Rt=Rk(),ar=S(Rt);{var hr=wr=>{_f(wr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ar,wr=>{o()!==null&&wr(hr)})}w(Rt),u(bt,Rt)};D(Jr,bt=>{a()&&bt(Gn)})}var fn=m(Jr,2);Ei(fn,{get content(){return e(V).tooltip},side:"bottom",sideOffset:4,children:(bt,Rt)=>{rb(bt,{get status(){return e(Ke)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Jn=m(fn,2),ta=M(Jn,!0);w(Kn);var jr=m(Kn,2),en=S(jr),rr=S(en),Wr=S(rr),pn=M(Wr,!0);pr(Wr,bt=>A(Le,bt),()=>e(Le)),w(rr),pr(rr,bt=>A(ce,bt),()=>e(ce));var xr=m(rr,2);{var Or=bt=>{var Rt=Mk(),ar=Ue(Rt),hr=S(ar);Pt(hr,{get icon(){return Gl},size:"xs"}),w(ar);var wr=m(ar,2),Dr=M(wr,!0);I(yn=>{pt(ar,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
297
- ${we()?Re()?"opacity-0":ne()?"":Ie()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ee(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(bt,Rt)};D(xr,bt=>{R()&&bt(Or)})}w(en);var gn=m(en,2);{var va=bt=>{var Rt=Nk(),ar=M(Rt,!0);I(()=>x(ar,U())),u(bt,Rt)};D(gn,bt=>{U()&&bt(va)})}var tn=m(gn,2);{var Yr=bt=>{const Rt=d(()=>e(et));var ar=Ok(),hr=S(ar);{let wr=d(()=>Ne(e(Rt)));Ei(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=Ct(),Dn=Ue(ra);{var Cr=cn=>{{let Er=d(()=>Ne(e(Rt)));kt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Rt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Rt).identity},get"data-pr-status"(){return e(Rt).status},onclick:nn=>{nn.stopPropagation();const Ra=f().id;Cp(async()=>{const{handleLink:Yn}=await import("./Dcvn1tie.js").then(vn=>vn.I);return{handleLink:Yn}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Rt).url,{workspaceId:Ra,event:nn}))},children:(nn,Ra)=>{Pt(nn,{get icon(){return e(Rt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Lk(),nn=S(Er);Pt(nn,{get icon(){return e(Rt).statusIcon},size:14}),w(Er),I(Ra=>{pt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Rt).foregroundClass??""}`,"svelte-1ct56pd"),ee(Er,"aria-label",Ra),ee(Er,"data-pr-identity",e(Rt).identity),ee(Er,"data-pr-status",e(Rt).status)},[()=>Ne(e(Rt))]),u(cn,Er)};D(Dn,cn=>{e(Rt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),I(wr=>ee(ar,"aria-label",wr),[()=>e(Rt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(bt,ar)};D(tn,bt=>{e(et)&&bt(Yr)})}var Mr=m(tn,2);{var xa=bt=>{var Rt=Dk(),ar=S(Rt);{var hr=Dr=>{{let yn=d(()=>$l(f()));ig(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>$l(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Rt),I(()=>pt(Rt,1,`wc-secondary shrink-0 ${Se()||we()||h()&&le()?Re()?"opacity-0":ne()?"":Ie()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(bt,Rt)};D(Mr,bt=>{L()&&bt(xa)})}w(jr);var rs=m(jr,2);{var ns=bt=>{var Rt=Fk(),ar=S(Rt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());kt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
297
+ ${we()?Re()?"opacity-0":ne()?"":Ie()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ee(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(bt,Rt)};D(xr,bt=>{R()&&bt(Or)})}w(en);var gn=m(en,2);{var va=bt=>{var Rt=Nk(),ar=M(Rt,!0);I(()=>x(ar,U())),u(bt,Rt)};D(gn,bt=>{U()&&bt(va)})}var tn=m(gn,2);{var Yr=bt=>{const Rt=d(()=>e(et));var ar=Ok(),hr=S(ar);{let wr=d(()=>Ne(e(Rt)));Ei(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=Ct(),Dn=Ue(ra);{var Cr=cn=>{{let Er=d(()=>Ne(e(Rt)));kt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Rt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Rt).identity},get"data-pr-status"(){return e(Rt).status},onclick:nn=>{nn.stopPropagation();const Ra=f().id;Cp(async()=>{const{handleLink:Yn}=await import("./CigpXs75.js").then(vn=>vn.I);return{handleLink:Yn}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Rt).url,{workspaceId:Ra,event:nn}))},children:(nn,Ra)=>{Pt(nn,{get icon(){return e(Rt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Lk(),nn=S(Er);Pt(nn,{get icon(){return e(Rt).statusIcon},size:14}),w(Er),I(Ra=>{pt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Rt).foregroundClass??""}`,"svelte-1ct56pd"),ee(Er,"aria-label",Ra),ee(Er,"data-pr-identity",e(Rt).identity),ee(Er,"data-pr-status",e(Rt).status)},[()=>Ne(e(Rt))]),u(cn,Er)};D(Dn,cn=>{e(Rt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),I(wr=>ee(ar,"aria-label",wr),[()=>e(Rt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(bt,ar)};D(tn,bt=>{e(et)&&bt(Yr)})}var Mr=m(tn,2);{var xa=bt=>{var Rt=Dk(),ar=S(Rt);{var hr=Dr=>{{let yn=d(()=>$l(f()));ig(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>$l(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Rt),I(()=>pt(Rt,1,`wc-secondary shrink-0 ${Se()||we()||h()&&le()?Re()?"opacity-0":ne()?"":Ie()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(bt,Rt)};D(Mr,bt=>{L()&&bt(xa)})}w(jr);var rs=m(jr,2);{var ns=bt=>{var Rt=Fk(),ar=S(Rt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());kt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
298
298
  ${e(Cn)??""}`},onclick:nn=>{nn.stopPropagation(),we()?.(nn)},get"aria-label"(){return e(cn)},get title(){return e(Er)},children:(nn,Ra)=>{var Yn=Bk(),vn=S(Yn);Pt(vn,{get icon(){return Gl},size:"xs"}),w(Yn),u(nn,Yn)},$$slots:{default:!0}})}};D(ar,Cr=>{we()&&Cr(hr)})}var wr=m(ar,2);{var Dr=Cr=>{{let Cn=d(()=>v.workspace_card_markAsRead_label()),cn=d(()=>v.workspace_card_markAsRead_label());kt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Er=>{Er.stopPropagation(),le()?.(Er)},get"aria-label"(){return e(Cn)},get title(){return e(cn)},children:(Er,nn)=>{Pt(Er,{get icon(){return Wd},size:"xs"})},$$slots:{default:!0}})}};D(wr,Cr=>{h()&&le()&&Cr(Dr)})}var yn=m(wr,2);un(yn,()=>Se()??So);var ra=m(yn,2);{var Dn=Cr=>{{let Cn=d(ht),cn=d(()=>v.workspace_progressCard_actions_ariaLabel());Sl(Cr,{get items(){return e(Cn)},get ariaLabel(){return e(cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ft)},set open(Er){A(ft,Er,!0)}})}};D(ra,Cr=>{de()&&Cr(Dn)})}w(Rt),pr(Rt,Cr=>A(xe,Cr),()=>e(xe)),I(()=>pt(Rt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
299
299
  ${Ie()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
300
300
  ${Re()?"opacity-100":ne()?"opacity-0":Ie()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(bt,Rt)};D(rs,bt=>{(Se()||de()||we()||h()&&le())&&bt(ns)})}w(Vt),pr(Vt,bt=>A(_e,bt),()=>e(_e)),Un(Vt,(bt,Rt)=>vo?.(bt,Rt),()=>({id:ke()}));var Xr=m(Vt,2);{var rn=bt=>{ib(bt,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(_e)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:xt,onmouseleave:vt,onfocusin:At,onfocusout:Tt,children:(Rt,ar)=>{var hr=zk(),wr=S(hr);lb(wr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:qe}),w(hr),pr(hr,Dr=>A(It,Dr),()=>e(It)),Rn("pointerenter",hr,xt),Rn("pointerleave",hr,vt),Rr("focusin",hr,At),Rr("focusout",hr,Tt),u(Rt,hr)},$$slots:{default:!0}})};D(Xr,bt=>{e(se)&&!ne()&&bt(rn)})}var On=m(Xr,2);{var kr=bt=>{const Rt=d(ht);var ar=Ct(),hr=Ue(ar);{var wr=Dr=>{{let yn=d(()=>e(Ze)?.x??0),ra=d(()=>e(Ze)?.y??0),Dn=d(()=>e(Ze)?.returnFocus),Cr=d(()=>v.workspace_progressCard_actions_ariaLabel());Md(Dr,{get x(){return e(yn)},get y(){return e(ra)},get returnFocus(){return e(Dn)},get ariaLabel(){return e(Cr)},get items(){return e(Rt)},onClickOutside:Mt})}};D(hr,Dr=>{e(Rt).length>0&&Dr(wr)})}u(bt,ar)};D(On,bt=>{e(Ze)&&bt(kr)})}I((bt,Rt,ar)=>{pt(Vt,1,bt,"svelte-1ct56pd"),ee(Vt,"data-pinned",R()),ee(Vt,"data-highlight-id",ke()),Jt=Nn(Vt,"",Jt,{"anchor-name":`--workspace-list-${f().id??""}`}),ee(Jn,"id",`workspace-status-state-${f().id??""}`),x(ta,e(V).accessibleName),pt(rr,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{g as Ut}from"./DnJtXsWm.js";import{s as Kt}from"./D0orvEYB.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./D2P0fD42.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
1
+ import{g as Ut}from"./BM1SUsjB.js";import{s as Kt}from"./DWE1f5g-.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./kQedEgnI.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./D2P0fD42.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./DIC5rFND.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
1
+ import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./kQedEgnI.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./Cpdvmnok.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
2
2
  `+F.showPosition()+`
3
3
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":$t="Parse error on line "+(G+1)+": Unexpected "+(X==A?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError($t,{text:F.match,token:this.terminals_[X]||X,line:F.yylineno,loc:nt,expected:pt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+X);switch(Z[0]){case 1:m.push(X),C.push(F.yytext),n.push(F.yylloc),m.push(Z[1]),X=null,c=F.yyleng,o=F.yytext,G=F.yylineno,nt=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=C[C.length-tt],J._$={first_line:n[n.length-(tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(tt||1)].first_column,last_column:n[n.length-1].last_column},at&&(J._$.range=[n[n.length-(tt||1)].range[0],n[n.length-1].range[1]]),ot=this.performAction.apply(J,[o,c,G,q.yy,Z[1],C,n].concat(R)),typeof ot<"u")return ot;tt&&(m=m.slice(0,-1*tt*2),C=C.slice(0,-1*tt),n=n.slice(0,-1*tt)),m.push(this.productions_[Z[1]][0]),C.push(J.$),n.push(J._$),Ut=$[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,m=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`