cli-jaw 2.17.65 → 2.17.66
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.
- package/dist/scripts/check-deps-audit.js +2 -25
- package/dist/scripts/check-deps-audit.js.map +1 -1
- package/dist/scripts/deps-audit-classify.js +79 -0
- package/dist/scripts/deps-audit-classify.js.map +1 -0
- package/package.json +2 -1
- package/public/dist/.vite/manifest.json +494 -494
- package/public/dist/assets/{CodeCanvas-c_omHvtV.js → CodeCanvas-DKFuJurF.js} +1 -1
- package/public/dist/assets/{DocPanel-DvtFw8AP.js → DocPanel-CMDbvBGX.js} +1 -1
- package/public/dist/assets/MarkdownRenderer-5xz8Wyte.js +1 -0
- package/public/dist/assets/{MarkdownRenderer-DzN66XVb.js → MarkdownRenderer-C77VMHhX.js} +2 -2
- package/public/dist/assets/{MilkdownWysiwygEditor-xObhviw7.js → MilkdownWysiwygEditor-AL9Y5CIv.js} +1 -1
- package/public/dist/assets/{abnfDiagram-VCTEODGH-Bh3YzulT.js → abnfDiagram-VCTEODGH-CKwWysIF.js} +1 -1
- package/public/dist/assets/{app-CZwx0V6K.js → app-Iu76iEiU.js} +4 -4
- package/public/dist/assets/{architectureDiagram-5GKGNRK7-COhidFYz.js → architectureDiagram-5GKGNRK7-B9qqrT3E.js} +1 -1
- package/public/dist/assets/bgtask-badge-DHo2mkMI.js +1 -0
- package/public/dist/assets/{bgtask-badge-Cp26S8Uq.js → bgtask-badge-oPvZyylH.js} +1 -1
- package/public/dist/assets/{blockDiagram-OSKFZWR5--OxgY2yr.js → blockDiagram-OSKFZWR5-BjdWo_0R.js} +1 -1
- package/public/dist/assets/{c4Diagram-7LVT6UL2-C0DocmNb.js → c4Diagram-7LVT6UL2-LEkz5bLc.js} +1 -1
- package/public/dist/assets/channel-J_3cbKDK.js +1 -0
- package/public/dist/assets/{chunk-3NF5O7KM-FbOqoUnr.js → chunk-3NF5O7KM-D30d98yD.js} +1 -1
- package/public/dist/assets/{chunk-4HAMMTFA-UBUVs5kk.js → chunk-4HAMMTFA-47nees_K.js} +1 -1
- package/public/dist/assets/{chunk-75Z2AOVW-B1-fK2mN.js → chunk-75Z2AOVW-BbE6Kwgh.js} +1 -1
- package/public/dist/assets/{chunk-CLGD4ZFX-CotBINqH.js → chunk-CLGD4ZFX-CuX1dWxe.js} +1 -1
- package/public/dist/assets/{chunk-DU6HZSFF-vsD_dO7e.js → chunk-DU6HZSFF-zk1cX9hK.js} +2 -2
- package/public/dist/assets/{chunk-F27PBJKO-C3O21Si2.js → chunk-F27PBJKO-B30QZPgt.js} +1 -1
- package/public/dist/assets/{chunk-GMAD6QVW-BSVfzVP1.js → chunk-GMAD6QVW-1bgL6bkT.js} +1 -1
- package/public/dist/assets/{chunk-GVQU2GXP-CsYaquup.js → chunk-GVQU2GXP-DPd6VgIg.js} +1 -1
- package/public/dist/assets/{chunk-H2I77ZZE-ytBKuGMS.js → chunk-H2I77ZZE-BS90ONOa.js} +1 -1
- package/public/dist/assets/{chunk-HLEWEB6X-bHrMh27k.js → chunk-HLEWEB6X-CrFaTtiN.js} +1 -1
- package/public/dist/assets/{chunk-L3NEJ4N5-DxbPaCWe.js → chunk-L3NEJ4N5-BU_TE1Gv.js} +1 -1
- package/public/dist/assets/{chunk-LQGUR6SS-C7emO-i3.js → chunk-LQGUR6SS-xn-VsXhF.js} +1 -1
- package/public/dist/assets/{chunk-OSK3NFVY-D_HWIC0H.js → chunk-OSK3NFVY-hIzY7BE2.js} +1 -1
- package/public/dist/assets/{chunk-P2QGCYS3-D9LpOEME.js → chunk-P2QGCYS3-8ni2cD3V.js} +1 -1
- package/public/dist/assets/{chunk-POPQ4Y6H-BzSgf7pO.js → chunk-POPQ4Y6H-XK7yYMir.js} +1 -1
- package/public/dist/assets/{chunk-PWAF6VOD-CqSJPGBE.js → chunk-PWAF6VOD-bnJEdC3p.js} +1 -1
- package/public/dist/assets/{chunk-SVP7TREG-NOSK04BT.js → chunk-SVP7TREG-Chm-3YCY.js} +1 -1
- package/public/dist/assets/{chunk-ZLD2IHE6-CWSP7frq.js → chunk-ZLD2IHE6-IhoyCIEM.js} +1 -1
- package/public/dist/assets/classDiagram-CYGNFDIV-j1lFRpNs.js +1 -0
- package/public/dist/assets/classDiagram-v2-TLXNO2FR-j1lFRpNs.js +1 -0
- package/public/dist/assets/{cynefinDiagram-5FMLGOSQ-UAM-DZmU.js → cynefinDiagram-5FMLGOSQ-jN-7O_sZ.js} +1 -1
- package/public/dist/assets/{dagre-OS7QT2EB-CflcJHKB.js → dagre-OS7QT2EB-CFjTsoYe.js} +1 -1
- package/public/dist/assets/{diagram-S7CK7UJ4-Dzl9sLZD.js → diagram-S7CK7UJ4-J-pfE07X.js} +1 -1
- package/public/dist/assets/{diagram-UQ7AKVKN-BhpfQUAt.js → diagram-UQ7AKVKN-Cxj9eMt1.js} +1 -1
- package/public/dist/assets/{diagram-VSXAHHWV-CnuHIxOm.js → diagram-VSXAHHWV-CEieVcAW.js} +1 -1
- package/public/dist/assets/{diagram-VX7I27RA-CQzbjtqd.js → diagram-VX7I27RA-D4x2ePaD.js} +1 -1
- package/public/dist/assets/{diagram-Z3DM3KII-DR3Ie5C2.js → diagram-Z3DM3KII-HOm2nOM1.js} +1 -1
- package/public/dist/assets/{ebnfDiagram-PWID7BFC-D_FcQuZg.js → ebnfDiagram-PWID7BFC-UEkYjpJn.js} +1 -1
- package/public/dist/assets/{employees-CsvI0_5V.js → employees-BchFBkDz.js} +1 -1
- package/public/dist/assets/{erDiagram-2YWLMYGG-CLpGDU8-.js → erDiagram-2YWLMYGG-BWn9ynBx.js} +1 -1
- package/public/dist/assets/flowDiagram-T62WH6J4-DolY8JK4.js +1 -0
- package/public/dist/assets/{ganttDiagram-EL5Y4UJY-B9_NJDV6.js → ganttDiagram-EL5Y4UJY-CVIT3S7m.js} +1 -1
- package/public/dist/assets/{gitGraphDiagram-WWUBYQGX-BO0vc7Qh.js → gitGraphDiagram-WWUBYQGX-Y8ZCUmfW.js} +1 -1
- package/public/dist/assets/{iframe-renderer-DmHYOI1A.js → iframe-renderer-CcGzEi0v.js} +2 -2
- package/public/dist/assets/iframe-renderer-DSLsfZq8.js +1 -0
- package/public/dist/assets/{infoDiagram-FKFFQAWI-BM2g31_p.js → infoDiagram-FKFFQAWI-DT2EWjxa.js} +1 -1
- package/public/dist/assets/{ishikawaDiagram-5VMMS53U-BZvjesKs.js → ishikawaDiagram-5VMMS53U-clFsYLNd.js} +1 -1
- package/public/dist/assets/{journeyDiagram-EYS64GPL-CqtePaqZ.js → journeyDiagram-EYS64GPL-DMxKSsKZ.js} +1 -1
- package/public/dist/assets/{kanban-definition-UXKFOSKX-ChZA_T7a.js → kanban-definition-UXKFOSKX-CbCpLSup.js} +1 -1
- package/public/dist/assets/katex-1VKIni13.js +1 -0
- package/public/dist/assets/{manager-Bq8-tr-M.js → manager-QLVeIiKu.js} +2 -2
- package/public/dist/assets/memory-BgUF3M9l.js +1 -0
- package/public/dist/assets/{memory-C6qtAMdJ.js → memory-DTpD4see.js} +1 -1
- package/public/dist/assets/mermaid-loader-CCSp7XfV.js +1 -0
- package/public/dist/assets/{mermaid-preprocess-D8xe5R2A.js → mermaid-preprocess-BtbPvSni.js} +1 -1
- package/public/dist/assets/mermaid.core--NXRyXtf.js +1 -0
- package/public/dist/assets/{mermaid.core-D1YZrgc_.js → mermaid.core-C6YN2KGZ.js} +2 -2
- package/public/dist/assets/{message-history-DcjBuubA.js → message-history-DSvflaZ9.js} +1 -1
- package/public/dist/assets/message-history-DkB768L3.js +1 -0
- package/public/dist/assets/{mindmap-definition-THT77NOG-C4c47DPO.js → mindmap-definition-THT77NOG-BoWJfXfW.js} +1 -1
- package/public/dist/assets/{pegDiagram-XKGWAZYB-BHiELbRn.js → pegDiagram-XKGWAZYB-C6MTHw9U.js} +1 -1
- package/public/dist/assets/{pieDiagram-E7YTZNPT-BEKTktaH.js → pieDiagram-E7YTZNPT-CiTFZJAT.js} +1 -1
- package/public/dist/assets/{quadrantDiagram-AXDQQJYC-CeJGAkDA.js → quadrantDiagram-AXDQQJYC-T6Sv85w7.js} +1 -1
- package/public/dist/assets/{railroadDiagram-O6MQD6OU-CsT34rgN.js → railroadDiagram-O6MQD6OU-5wGap_iU.js} +1 -1
- package/public/dist/assets/{render-DfYro-fG.js → render-D8dVQ_bm.js} +2 -2
- package/public/dist/assets/{requirementDiagram-IS5BZ75X-4PwTKQWK.js → requirementDiagram-IS5BZ75X-Bwa18E8d.js} +1 -1
- package/public/dist/assets/{sankeyDiagram-P5KCCOFB-BykRKMDj.js → sankeyDiagram-P5KCCOFB-io3P7h-z.js} +1 -1
- package/public/dist/assets/{sequenceDiagram-WJ2MYXX4-Dyj787ok.js → sequenceDiagram-WJ2MYXX4-BXE7_NFT.js} +1 -1
- package/public/dist/assets/{settings-CvsLWlJn.js → settings-Bp0sgQ2a.js} +1 -1
- package/public/dist/assets/settings-DxjoyiIM.js +1 -0
- package/public/dist/assets/settings-core-CXWmPKUE.js +1 -0
- package/public/dist/assets/{settings-core-pnpw-eZv.js → settings-core-D4zGy72z.js} +1 -1
- package/public/dist/assets/{sidebar-C_80w4iY.js → sidebar-CrpBbYFg.js} +3 -3
- package/public/dist/assets/skills-BY-hQnqM.js +1 -0
- package/public/dist/assets/{skills-D_2adqge.js → skills-Bx8U-gJa.js} +1 -1
- package/public/dist/assets/slash-commands-C53T9J3g.js +1 -0
- package/public/dist/assets/{slash-commands-B_Hq5RkC.js → slash-commands-DkrGUOnC.js} +1 -1
- package/public/dist/assets/{stateDiagram-XQSTLZYL-6p5Yrm8S.js → stateDiagram-XQSTLZYL-D4fdsjJT.js} +1 -1
- package/public/dist/assets/stateDiagram-v2-IH3M54BS-C0qjVfYw.js +1 -0
- package/public/dist/assets/{swimlanes-V6O3JKXN-Pyw_hrrE.js → swimlanes-V6O3JKXN-BGnQAfcf.js} +1 -1
- package/public/dist/assets/swimlanesDiagram-JKAHXJPX-CO8ucSKU.js +8 -0
- package/public/dist/assets/{timeline-definition-24CTP7MA-V_LwIXs0.js → timeline-definition-24CTP7MA-DokSBeMC.js} +1 -1
- package/public/dist/assets/{trace-drawer-B6XuPodh.js → trace-drawer-Dbe5pTbf.js} +1 -1
- package/public/dist/assets/ui-C0o427q6.js +1 -0
- package/public/dist/assets/{ui-D8xzm7DN.js → ui-rnVAM91F.js} +1 -1
- package/public/dist/assets/{vendor-render-Cmfl_oW8.js → vendor-render-BsyPjvQm.js} +45 -45
- package/public/dist/assets/{vennDiagram-4TSXK5OY-ZagiHlwi.js → vennDiagram-4TSXK5OY-Zw3mI5Km.js} +1 -1
- package/public/dist/assets/{wardleyDiagram-VM6X3IG4-BBAHdIq-.js → wardleyDiagram-VM6X3IG4-CKWgGmAD.js} +1 -1
- package/public/dist/assets/{wiki-link-resolver-CbJATnBn.js → wiki-link-resolver-5Pkm1Mtc.js} +1 -1
- package/public/dist/assets/{xychartDiagram-S5SC5T6Z-C43SenTd.js → xychartDiagram-S5SC5T6Z-B1_1yNTd.js} +1 -1
- package/public/dist/index.html +1 -1
- package/public/dist/manager/index.html +1 -1
- package/scripts/audit-allowlist.json +6 -69
- package/scripts/check-deps-audit.ts +2 -27
- package/scripts/ci/windows-unit-manifest.txt +1 -0
- package/scripts/deps-audit-classify.ts +107 -0
- package/scripts/electron-blockmap.mjs +27 -0
- package/scripts/notarize-mac-dmg.mjs +22 -11
- package/scripts/verify-electron-update-metadata.mjs +44 -23
- package/public/dist/assets/MarkdownRenderer-Cc3DeHvm.js +0 -1
- package/public/dist/assets/bgtask-badge-CnVkcp3c.js +0 -1
- package/public/dist/assets/channel-DO94Q0oH.js +0 -1
- package/public/dist/assets/classDiagram-CYGNFDIV-C1ssjdiH.js +0 -1
- package/public/dist/assets/classDiagram-v2-TLXNO2FR-C1ssjdiH.js +0 -1
- package/public/dist/assets/flowDiagram-T62WH6J4-jooH4x9e.js +0 -1
- package/public/dist/assets/iframe-renderer-DWx9v2Iz.js +0 -1
- package/public/dist/assets/katex-DL-Py6bk.js +0 -1
- package/public/dist/assets/memory-PPofQPeB.js +0 -1
- package/public/dist/assets/mermaid-loader-Beqble_i.js +0 -1
- package/public/dist/assets/mermaid.core-DSXunyto.js +0 -1
- package/public/dist/assets/message-history-bw4qF01Z.js +0 -1
- package/public/dist/assets/settings-DgAlohx9.js +0 -1
- package/public/dist/assets/settings-core-BH7J_Rbm.js +0 -1
- package/public/dist/assets/skills-DeNVAVgt.js +0 -1
- package/public/dist/assets/slash-commands-Cj5qoRWc.js +0 -1
- package/public/dist/assets/stateDiagram-v2-IH3M54BS-DfXrMbZg.js +0 -1
- package/public/dist/assets/swimlanesDiagram-JKAHXJPX-R-OHp34K.js +0 -8
- package/public/dist/assets/ui-BbR_fFiK.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-render-DSSkXCir.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e,t}from"./api-CUtiCd2-.js";import{n}from"./bounded-api-DdpT93LB.js";import{t as r}from"./preload-helper-CfbQpVni.js";import{O as i,T as a,g as o}from"./render-
|
|
2
|
+
import{a as e,t}from"./api-CUtiCd2-.js";import{n}from"./bounded-api-DdpT93LB.js";import{t as r}from"./preload-helper-CfbQpVni.js";import{O as i,T as a,g as o}from"./render-D8dVQ_bm.js";import{t as s}from"./icons-CVkqyECl.js";import{t as c}from"./copy-text-DjgetgoZ.js";import{a as l,i as u,n as ee,t as d}from"./esm-Q6VOkDbn.js";import{n as f}from"./presentation-DWHWElFr.js";function p(){let e=globalThis.crypto;if(typeof e?.randomUUID==`function`)return e.randomUUID();if(typeof e?.getRandomValues!=`function`)return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)});let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``);return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}var te=/^(?:(?:\/[^\s]+\/)?(?:bash|zsh|sh))\s+-lc\s+([\s\S]+)$/;function ne(e){let t=e.trim();if(t.length<2)return t;let n=t[0];if(n!==`'`&&n!==`"`)return t;let r=t[t.length-1]===n?t.slice(1,-1):t.slice(1);return n===`'`?r.replace(/'\\''/g,`'`):r.replace(/\\"/g,`"`).replace(/\\`/g,"`").replace(/\\\$/g,`$`).replace(/\\\\/g,`\\`)}function re(e){let t=String(e||``).trim();if(!t)return``;let n=t.match(te);return n&&ne(n[1]||``)||t}function m(e){return re(e)}function h(e){let t=String(e||``);if(!t.trim())return``;let n=t.split(/\r?\n/),r=n[0]||``,i=r.match(/^(\s*\$\s*)([\s\S]+)$/);if(i){let e=m(i[2]||``);return n[0]=`${i[1]}${e}`,n.join(`
|
|
3
3
|
`)}let a=m(r);return a===r.trim()?t:(n[0]=a,n.join(`
|
|
4
4
|
`))}var g=null,_=null,v=new WeakMap,y=160,ie=3e3,ae=1e3,oe=80,se=24,ce=24,le=0,ue=null,b=new Map,x=new Map,de=0,fe=0,pe=0,me=0;function he(e){return e.startedAt??e.steps[0]?.startTime??null}function ge(){let e=_;if(!e||e.collapsed||e.steps.length===0){S();return}let t=e._durationEl??=e.element.querySelector(`.process-duration`);if(!t)return;let n=he(e);if(n===null)return;let r=Math.round((Date.now()-n)/1e3);t.textContent=r>0?`${r}s`:``}function _e(e){g&&_===e||(S(),_=e,g=setInterval(ge,3e3))}function S(){g&&=(clearInterval(g),null),_=null}function ve(e){let t={};for(let n of e){let e=n.type===`thinking`?`${s.thinking} Thinking`:n.type===`search`?`${s.search} Search`:n.type===`subagent`?`${s.robot} Subagent`:`${s.tool} Tool`;t[e]=(t[e]||0)+1}return Object.entries(t).map(([e,t])=>t>1?`${e}×${t}`:e).join(` + `)}function C(e,t=120){let n=e.replace(/\s+/g,` `).trim();return n?n.length>t?`${n.slice(0,t-1)}…`:n:``}function ye(e){if(e.length<=ie)return{detail:e,truncated:!1};let t=`\n[detail truncated: kept ${ie} of ${e.length} chars]`;return{detail:`${e.slice(0,Math.max(0,ie-t.length))}${t}`,truncated:!0}}function w(e){return b.get(e)?.detail||``}function be(e){return e.type===`tool`?{...e,label:m(e.label||``),detail:h(e.detail||``),detailPreview:e.detailPreview?h(e.detailPreview):e.detailPreview}:e}function T(e){let t=be(e),n=h(w(t.id))||t.detail||``,r=ye(n),i=t.detailPreview||C(n,y);return n&&b.set(t.id,{detail:r.detail,originalLength:n.length,truncated:r.truncated}),x.set(t.id,{id:t.id,type:t.type,icon:t.icon,rawIcon:t.rawIcon,label:t.label,isEmployee:t.isEmployee,stepRef:t.stepRef,traceRunId:t.traceRunId,traceSeq:t.traceSeq,detailAvailable:t.detailAvailable,detailBytes:t.detailBytes,rawRetentionStatus:t.rawRetentionStatus,status:t.status,startTime:t.startTime,preview:i,detailLength:n.length,detailTruncated:r.truncated}),{...t,detail:i,detailPreview:i,detailLength:n.length,detailTruncated:r.truncated}}function xe(e,t){let n=t||``,r=w(e),i=r&&n?`${r}\n${n}`:n||r,a=ye(i);i&&b.set(e,{detail:a.detail,originalLength:i.length,truncated:a.truncated});let o=x.get(e);return o&&(o.preview=C(i,y),o.detailLength=i.length,o.detailTruncated=a.truncated),o?.preview||C(i,y)}function Se(e,t){let n=t||w(e),r=ye(n);n&&b.set(e,{detail:r.detail,originalLength:n.length,truncated:r.truncated});let i=C(n,y),a=x.get(e);return a&&(a.preview=i,a.detailLength=n.length,a.detailTruncated=r.truncated),i}function Ce(e){let t=T(e);x.set(e.id,{id:t.id,type:t.type,icon:t.icon,rawIcon:t.rawIcon,label:t.label,isEmployee:t.isEmployee,stepRef:t.stepRef,traceRunId:t.traceRunId,traceSeq:t.traceSeq,detailAvailable:t.detailAvailable,detailBytes:t.detailBytes,rawRetentionStatus:t.rawRetentionStatus,status:t.status,startTime:t.startTime,preview:t.detailPreview||t.detail||``,detailLength:t.detailLength||0,detailTruncated:!!t.detailTruncated})}function we(e){e.element.dataset.processStepIds=e.steps.map(e=>e.id).join(` `)}function Te(e,t=!1){let n=new Set;return t||e.length<=oe?(e.forEach((e,t)=>n.add(t)),n):(e.forEach((t,r)=>{(r<se||r>=e.length-ce||t.status===`running`||t.status===`error`)&&n.add(r)}),n)}function Ee(e){let t=e||s.tool;return t.trim().startsWith(`<svg`)?t:i(t)}function E(e){let t=`process-step-dot ${e.status}`,n=`process-step-badge ${e.type}`,r=e.type.toUpperCase(),a=i(e.label||e.icon||``),o=e.isEmployee?`<span class="process-step-origin" aria-label="Employee tool">(E)</span>`:``,c=Ee(e.icon),l=e.detailPreview||e.detail||``,u=`process-detail-${e.id}`,ee=e.detailAvailable&&e.traceRunId&&e.traceSeq?`<span class="process-step-trace" role="button" tabindex="0" title="Open full trace" aria-label="Open full trace" data-trace-run-id="${i(e.traceRunId)}" data-trace-seq="${String(e.traceSeq)}">Trace</span>`:``,d=C(l,e.type===`thinking`?120:80),f=d?`<span class="process-step-snippet">${i(d)}</span>`:``;return`<div class="process-step process-step-expandable"
|
|
5
5
|
data-step-id="${e.id}"
|
|
@@ -37,7 +37,7 @@ import{a as e,t}from"./api-CUtiCd2-.js";import{n}from"./bounded-api-DdpT93LB.js"
|
|
|
37
37
|
<div class="process-details">
|
|
38
38
|
<div class="process-steps-inner"></div>
|
|
39
39
|
</div>
|
|
40
|
-
</div>`}function ke(e){let t=e.closest(`.process-step`),n=t?.querySelector(`.process-step-details`),r=n?.querySelector(`.process-step-full`),i=e.querySelector(`.process-step-chevron`);if(!t||!n)return;let a=n.classList.contains(`collapsed`);a&&r?.dataset.detailLazy===`true`?(r.textContent=w(t.dataset.stepId||``)||x.get(t.dataset.stepId||``)?.preview||(r.dataset.hadDetail===`true`?`(detail released to save memory — scroll this message back into view to reload)`:``),delete r.dataset.detailLazy):!a&&r&&r.textContent&&r.textContent.length>ae&&(r.textContent=``,r.dataset.detailLazy=`true`),n.classList.toggle(`collapsed`,!a),t.classList.toggle(`expanded`,a),e.setAttribute(`aria-expanded`,a?`true`:`false`),i&&(i.innerHTML=a?s.chevronDown:s.chevronRight)}function Ae(e,t){let n=window.__jawProcessBlockLayoutMutation;if(typeof n==`function`){n(e,t);return}t()}function O(e){return e.getAttribute(`aria-disabled`)!==`true`&&!e.matches(`:disabled`)}function je(e){e.dataset.processBlockBound!==`1`&&(e.addEventListener(`click`,e=>{let t=e.target;if(!t)return;let i=t.closest(`.process-step-trace`);if(i){if(e.preventDefault(),e.stopPropagation(),!O(i))return;let t=i.dataset.traceRunId||``,a=Number(i.dataset.traceSeq||0),s=++le,c=o(`/api/orchestrate/snapshot`);ue?.abort();let l=new AbortController;ue=l;let u=n(c,{},l.signal,16777216);Promise.all([r(()=>import(`./trace-drawer-B6XuPodh.js`),__vite__mapDeps([0])),u]).then(([e,n])=>{if(s!==le||!i.isConnected||!O(i)||c!==o(`/api/orchestrate/snapshot`))return;let r=f(n&&typeof n==`object`&&!Array.isArray(n)?n.activityIdentity:null);return e.openTraceDrawer(t,a,r?.sessionId??null)}).catch(e=>console.warn(`[trace-drawer] open failed:`,e));return}let a=t.closest(`[data-expand-steps]`);if(a){e.preventDefault();let t=a.closest(`.process-block`);if(!t)return;let n=v.get(t);if(!n){let e=He(t);if(e.length===0)return;n={element:t,steps:e,collapsed:t.classList.contains(`collapsed`)},v.set(t,n)}let r=n;Ae(t,()=>{r.expandedSteps=!0;let e=r.element.querySelector(`.process-steps-inner`);e&&(e.innerHTML=D(r.steps,!0))});return}let c=t.closest(`.process-step-toggle`);if(c){Ae(c.closest(`.process-step, .process-block`),()=>{ke(c)});return}let l=t.closest(`.process-summary`);if(l){let e=l.closest(`.process-block`);if(!e)return;Ae(e,()=>{let t=e.classList.contains(`collapsed`);e.classList.toggle(`collapsed`,!t),l.setAttribute(`aria-expanded`,t?`true`:`false`);let n=l.querySelector(`.process-chevron`);n&&(n.innerHTML=t?s.chevronDown:s.chevronRight);let r=v.get(e);r&&(r.collapsed=!t,k(r))})}}),e.addEventListener(`keydown`,e=>{if(e.key!==`Enter`&&e.key!==` `)return;let t=e.target?.closest(`.process-step-trace`);t&&(t.tagName!==`BUTTON`||!O(t)||e.repeat)&&(e.preventDefault(),e.stopPropagation(),!e.repeat&&O(t)&&t.click())}),e.dataset.processBlockBound=`1`)}function Me(e,t=!0){let n=e.map(T),r=Oe(ve(n),t),i=document.createElement(`div`);i.innerHTML=r;let a=i.querySelector(`.process-block`);a&&(a.dataset.processStepIds=n.map(e=>e.id).join(` `));let o=i.querySelector(`.process-steps-inner`);o&&(o.innerHTML=D(n));let s=i.querySelector(`.process-dot`);if(s){let e=n.some(e=>e.status===`running`);s.classList.toggle(`running`,e&&!t),s.classList.toggle(`done`,!e||t)}return i.innerHTML}function k(e){let t=e.element.querySelector(`.process-summary-text`);t&&(t.innerHTML=ve(e.steps));let n=e.steps.some(e=>e.status===`running`),r=e.element.querySelector(`.process-dot`);r&&(r.classList.toggle(`running`,n&&!e.collapsed),r.classList.toggle(`done`,!n||e.collapsed));let i=he(e),a=i===null?0:Math.round((Date.now()-i)/1e3),o=e._durationEl??=e.element.querySelector(`.process-duration`);o&&(o.textContent=a>0?`${a}s`:``),n&&!e.collapsed?_e(e):_===e&&S()}function Ne(e){v.set(e.element,e)}function Pe(e){let t=document.createElement(`div`);t.innerHTML=Oe(``,!0);let n=t.firstElementChild,r=e.querySelector(`.msg-content`);r?r.before(n):e.appendChild(n);let i={element:n,steps:[],collapsed:!0};return v.set(n,i),i}function Fe(e,t){e.setAttribute(`data-omitted-count`,String(t));let n=e.querySelector(`.process-step-snippet`);n&&(n.textContent=`Show ${t} hidden tool step${t===1?``:`s`}`)}function Ie(e,t){let n=e.steps.length-1-ce;if(n<se)return;let r=e.steps[n];if(!r||r.status===`running`||r.status===`error`)return;let i=t.querySelector(`[data-step-id="${r.id}"]`);if(!i)return;let a=i.previousElementSibling;if(a&&a.hasAttribute(`data-expand-steps`))Fe(a,Number(a.getAttribute(`data-omitted-count`)||`0`)+1),i.remove();else{let e=document.createElement(`div`);e.innerHTML=De(1);let t=e.firstElementChild;t&&i.replaceWith(t)}}function Le(e,t){let n=T(t);e.steps.push(n);let r=e.element.querySelector(`.process-steps-inner`);r&&(e.steps.length===81&&!e.expandedSteps?r.innerHTML=D(e.steps,e.expandedSteps):e.steps.length>oe&&!e.expandedSteps?(r.insertAdjacentHTML(`beforeend`,E(n)),Ie(e,r)):r.insertAdjacentHTML(`beforeend`,E(n))),we(e),k(e)}function Re(e,t,n){let r=e.steps.findIndex(e=>e.id===t);if(r===-1)return;t!==n.id&&(b.delete(t),x.delete(t));let i=T(n);e.steps[r]=i;let a=e.element.querySelector(`[data-step-id="${t}"]`);if(a){let e=document.createElement(`div`);e.innerHTML=E(i);let t=e.firstElementChild;t&&a.replaceWith(t)}else if(e.steps.length>oe){let t=e.element.querySelector(`.process-steps-inner`);t&&(t.innerHTML=D(e.steps,e.expandedSteps))}we(e),k(e)}function ze(e){_===e&&S(),e.collapsed=!0,e.element.classList.add(`collapsed`);let t=e.element.querySelector(`.process-summary`);t&&t.setAttribute(`aria-expanded`,`false`);let n=e.element.querySelector(`.process-chevron`);n&&(n.innerHTML=s.chevronRight);for(let t of e.steps)t.status===`running`&&(t.status=`done`,Ce(t));e.element.querySelectorAll(`.process-step-dot.running`).forEach(e=>{e.classList.remove(`running`),e.classList.add(`done`);let t=e.closest(`.process-step`);t&&(t.dataset.status=`done`)}),k(e)}function Be(e){if(!e)return;de++;let t=new Set;if(`steps`in e)e.steps.forEach(e=>t.add(e.id));else{if(e.classList.contains(`process-block`)&&(e.dataset.processStepIds||``).split(/\s+/).filter(Boolean).forEach(e=>t.add(e)),e.querySelectorAll(`.process-block[data-process-step-ids]`).forEach(e=>{(e.dataset.processStepIds||``).split(/\s+/).filter(Boolean).forEach(e=>t.add(e))}),e.classList.contains(`process-step`)){let n=e.dataset.stepId;n&&t.add(n)}e.querySelectorAll(`.process-step[data-step-id]`).forEach(e=>{let n=e.dataset.stepId;n&&t.add(n)})}t.forEach(e=>{b.delete(e),x.delete(e)}),fe+=t.size}function Ve(e){return x.get(e)||null}function He(e){pe++;let t=(e.dataset.processStepIds||``).split(/\s+/).filter(Boolean),n=[];for(let e of t){let t=x.get(e);t&&n.push({id:t.id,type:t.type,icon:t.icon,rawIcon:t.rawIcon,label:t.label,isEmployee:t.isEmployee,detail:w(e)||t.preview||``,detailPreview:t.preview,detailLength:t.detailLength,detailTruncated:t.detailTruncated,stepRef:t.stepRef,traceRunId:t.traceRunId,traceSeq:t.traceSeq,detailAvailable:t.detailAvailable,detailBytes:t.detailBytes,rawRetentionStatus:t.rawRetentionStatus,status:t.status,startTime:t.startTime})}return me+=n.length,n}var Ue=80,We=5,Ge=80,Ke=160;function qe(e){let t=Math.ceil(e.getBoundingClientRect().height);return Number.isFinite(t)&&t>0?t:0}function A(e,t,n){if(!e[t])return;let r=qe(n);r>0&&(e[t].height=r)}function Je(e,t,n){if(n)for(let[r,i]of t)A(e,r,i),n.measureElement(i)}var Ye=class{items=[];container;innerEl;_active=!1;virtualizer=null;cleanupFn=null;mounted=new Map;itemGap=0;restorePassTimers=new Set;shouldFollowAfterRestore=()=>!0;resizePin=null;onLazyRender=null;onPostRender=null;onRecycle=null;lifecycleHooks=new Set;addLifecycleHooks(e){this.lifecycleHooks.add(e)}postRender(e){this.onPostRender?.(e);for(let t of this.lifecycleHooks)t.postRender(e)}recycle(e){this.onRecycle?.(e);for(let t of this.lifecycleHooks)t.recycle(e)}constructor(e){this.container=document.getElementById(e),this.innerEl=document.createElement(`div`),this.innerEl.className=`vs-inner`,this.attachMediaLoadRemeasure()}attachMediaLoadRemeasure(){let e=e=>{let t=e.target;if(!(t instanceof HTMLImageElement)&&!(t instanceof HTMLVideoElement)||!this._active||!this.virtualizer)return;let n=t.closest(`[data-vs-idx]`);n&&n.isConnected&&(A(this.items,Number(n.dataset.vsIdx||`-1`),n),this.virtualizer.measureElement(n))};this.innerEl.addEventListener(`load`,e,!0),this.innerEl.addEventListener(`loadedmetadata`,e,!0)}get active(){return this._active}get count(){return this.items.length}metrics(){let e=[...this.mounted.keys()].sort((e,t)=>e-t),t=e[0],n=e[e.length-1];return{virtualItemCount:this.items.length,mountedRowCount:this.mounted.size,firstVisibleIdx:t??null,lastVisibleIdx:n??null,firstVisibleId:t===void 0?null:this.items[t]?.id??null,lastVisibleId:n===void 0?null:this.items[n]?.id??null}}measureGap(){if(this.itemGap>0)return this.itemGap;let e=document.createElement(`div`);return e.className=`msg`,e.style.position=`absolute`,e.style.visibility=`hidden`,e.textContent=` `,this.innerEl.appendChild(e),this.itemGap=parseFloat(getComputedStyle(e).marginBottom)||0,e.remove(),this.itemGap}invalidateLayout(){if(!this.virtualizer)return;this.itemGap=0;let e=this.measureGap();this.virtualizer.setOptions({...this.virtualizer.options,gap:e}),this.virtualizer.measure(),Je(this.items,this.mounted,this.virtualizer),this.renderItems()}invalidateLayoutPinned(){if(!this.virtualizer)return;let e=this.resizePin;if(!e){let t=this.shouldFollowAfterRestore();e={follow:t,anchor:t?null:this.captureIndexAnchor(),settleTimer:0},this.resizePin=e}window.clearTimeout(e.settleTimer),this.invalidateLayout(),this.applyResizePin(e);let t=e;t.settleTimer=window.setTimeout(()=>{requestAnimationFrame(()=>{this.resizePin===t&&(this.resizePin=null,this.virtualizer&&this.applyResizePin(t))})},Ke)}applyResizePin(e){if(e.follow){this.scrollToBottom();return}if(!e.anchor)return;let t=this.mounted.get(e.anchor.index);if(!t?.isConnected)return;let n=t.getBoundingClientRect().top-e.anchor.top;Number.isFinite(n)&&n!==0&&(this.container.scrollTop+=n)}captureIndexAnchor(){let e=this.firstVisibleMountedItem();if(!e)return null;let t=Number(e.dataset.vsIdx??`-1`);return t>=0?{index:t,top:e.getBoundingClientRect().top}:null}clearResizePin(){this.resizePin&&window.clearTimeout(this.resizePin.settleTimer),this.resizePin=null}setItems(e,t){this.items=e,t?.autoActivate!==!1&&!this._active&&this.items.length>=1&&this.activate(t?.toBottom??!0)}seedMeasuredHeights(e,t){for(let n=0;n<t.length;n++){let r=e+n;this.items[r]&&(this.items[r].height=t[n])}}activateIfNeeded(e=!1){!this._active&&this.items.length>=1&&this.activate(e)}addItem(e,t){this.appendItem({id:e,html:t,height:Ue})}appendItem(e){if(this.items.push(e),!this._active&&this.items.length>=1){this.activate(!0);return}this._active&&this.virtualizer&&this.virtualizer.setOptions({...this.virtualizer.options,count:this.items.length})}appendLiveItem(e){if(!this._active)return;a(e);let t=e.outerHTML,n=p(),r=e.dataset.messageId;this.items.push({id:n,...r?{messageId:r}:{},html:t,height:Ue}),this.virtualizer&&(this.virtualizer.setOptions({...this.virtualizer.options,count:this.items.length}),this.renderItems())}reconcileMessage(e,t){let n=this.items.findIndex(t=>t.messageId===e);if(n<0||this.items.some((t,r)=>r!==n&&t.messageId===e))return!1;let r=this.items[n],i=this.mounted.get(n),a=this.container.ownerDocument.createElement(`div`);i||(a.innerHTML=r.html);let o=i??a.firstElementChild;return!o||o.dataset.messageId!==e?!1:(t(o),r.html=o.outerHTML,i&&this.virtualizer&&(A(this.items,n,i),this.virtualizer.measureElement(i)),!0)}updateItemHtml(e,t){this.items[e]&&(this.items[e].html=t)}scrollToBottom(){this._active&&this.virtualizer&&this.items.length>0&&this.virtualizer.scrollToIndex(this.items.length-1,{align:`end`}),this.container.scrollTop=this.container.scrollHeight}firstVisibleIndex(){if(!this._active||!this.virtualizer)return null;let e=this.virtualizer.getVirtualItems();if(e.length===0)return null;let t=this.container.scrollTop;for(let n of e)if(n.end>t)return n.index;return e[0].index}scrollToIndex(e,t=`start`){this._active&&this.virtualizer&&e>=0&&e<this.items.length&&this.virtualizer.scrollToIndex(e,{align:t})}isNearBottom(e=Ge){return this.container.scrollHeight-this.container.scrollTop-this.container.clientHeight<e}setRestoreFollowPredicate(e){this.shouldFollowAfterRestore=e??(()=>!0)}reconcileBottomAfterLayout(e,t=this.isNearBottom()){t&&requestAnimationFrame(()=>{this.invalidateLayout(),requestAnimationFrame(()=>{this.scrollToBottom()})})}reconcileAfterRestore(e,t=this.shouldFollowAfterRestore){if(!t()){this.invalidateLayout();return}this.scheduleRestoreReconcile(e,t)}forceBottomAfterRestore(e){this.scheduleRestoreReconcile(e)}cancelRestoreReconcile(e){this.clearRestoreTimers()}preserveScrollDuringMutation(e,t){let n=this.isNearBottom(),r=this.captureScrollAnchor(e),i=t();return this.invalidateLayout(),n?(this.reconcileBottomAfterLayout(`manual`,!0),i):(this.restoreScrollAnchor(r),i)}scheduleRestoreReconcile(e,t){this.runRestoreReconcilePass(e,t),requestAnimationFrame(()=>this.runRestoreReconcilePass(e,t)),requestAnimationFrame(()=>{requestAnimationFrame(()=>this.runRestoreReconcilePass(e,t))}),this.scheduleRestoreTimer(e,250,t),this.scheduleRestoreTimer(e,1e3,t),document.fonts?.ready.then(()=>this.runRestoreReconcilePass(e,t))}scheduleRestoreTimer(e,t,n){let r=window.setTimeout(()=>{this.restorePassTimers.delete(r),this.runRestoreReconcilePass(e,n)},t);this.restorePassTimers.add(r)}runRestoreReconcilePass(e,t){if(this.virtualizer){if(t&&!t()){this.cancelRestoreReconcile(e),this.invalidateLayout();return}this.invalidateLayout(),Je(this.items,this.mounted,this.virtualizer),this.scrollToBottom()}}captureScrollAnchor(e){let t=e instanceof HTMLElement?e:null,n=t&&this.isVisibleInContainer(t)?t:this.firstVisibleMountedItem();return n?{el:n,top:n.getBoundingClientRect().top}:null}restoreScrollAnchor(e){if(!e||!e.el.isConnected)return;let t=e.el.getBoundingClientRect().top-e.top;Number.isFinite(t)&&t!==0&&(this.container.scrollTop+=t)}firstVisibleMountedItem(){let e=Array.from(this.mounted.entries()).sort(([e],[t])=>e-t);for(let[,t]of e)if(this.isVisibleInContainer(t))return t;return null}isVisibleInContainer(e){let t=e.getBoundingClientRect(),n=this.container.getBoundingClientRect();return t.bottom>n.top&&t.top<n.bottom}clearRestoreTimers(){for(let e of this.restorePassTimers)window.clearTimeout(e);this.restorePassTimers.clear()}flushToDOM(){this._active&&(this.deactivate(),this.container.innerHTML=this.items.map(e=>e.html).join(``),this.postRender(this.container),this.items=[])}clear(){this.deactivate(),this.items=[],this.itemGap=0,this.onLazyRender=null,this.onPostRender=null,this.onRecycle=null,this.lifecycleHooks.clear()}activate(e=!1){this._active=!0,this.container.querySelectorAll(`.msg`).forEach((e,t)=>{if(!this.items[t])return;let n=e.getBoundingClientRect().height;n>0&&(this.items[t].height=n)}),this.container.classList.add(`vs-active`),this.container.replaceChildren(this.innerEl),this.measureGap(),this.virtualizer=new d({count:this.items.length,getScrollElement:()=>this.container,estimateSize:e=>this.items[e]?.height??Ue,overscan:We,gap:this.itemGap,useAnimationFrameWithResizeObserver:!0,onChange:()=>this.renderItems(),observeElementRect:l,observeElementOffset:u,scrollToFn:ee,getItemKey:e=>this.items[e]?.id??e,indexAttribute:`data-vs-idx`});let t=[],n=this.virtualizer._didMount();n&&t.push(n);let r=0,i=()=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{this.invalidateLayoutPinned()})},a=()=>i();if(window.addEventListener(`resize`,a),t.push(()=>{window.removeEventListener(`resize`,a),cancelAnimationFrame(r),this.clearResizePin()}),typeof ResizeObserver<`u`){let e=this.container.clientWidth,n=this.container.clientHeight,r=new ResizeObserver(t=>{let r=t[0]?.contentRect;if(!r)return;let a=Math.round(r.width),o=Math.round(r.height);(a!==e||o!==n)&&(e=a,n=o,i())});r.observe(this.container),t.push(()=>r.disconnect());let a=this.virtualizer?.getTotalSize()??0,o=new ResizeObserver(()=>{let e=this.virtualizer?.getTotalSize()??0;if(e<=a){a=e;return}a=e,this.shouldFollowAfterRestore()&&this.reconcileBottomAfterLayout(`manual`,!0)});o.observe(this.innerEl),t.push(()=>o.disconnect())}let o=e=>{this.virtualizer&&this.reconcileAfterRestore(e,this.shouldFollowAfterRestore)},s=e=>{e.persisted&&o(`pageshow`)};window.addEventListener(`pageshow`,s);let c=()=>{document.visibilityState===`visible`&&o(`visibility`)};document.addEventListener(`visibilitychange`,c);let f=()=>o(`focus`);window.addEventListener(`focus`,f);let p=()=>o(`resume`);document.addEventListener(`resume`,p);let te=()=>{};window.addEventListener(`pagehide`,te);let ne=()=>{};document.addEventListener(`freeze`,ne),this.cleanupFn=()=>{window.removeEventListener(`pageshow`,s),document.removeEventListener(`visibilitychange`,c),window.removeEventListener(`focus`,f),document.removeEventListener(`resume`,p),window.removeEventListener(`pagehide`,te),document.removeEventListener(`freeze`,ne);for(let e of t.reverse())e();this.clearRestoreTimers()},this.virtualizer._willUpdate(),e&&this.items.length>0?(this.container.style.opacity=`0`,this.renderItems(),this.virtualizer.scrollToIndex(this.items.length-1,{align:`end`}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.container.style.opacity=``})})):this.renderItems(),`wasDiscarded`in document&&document.wasDiscarded&&o(`discard`)}deactivate(){this.clearRestoreTimers(),this.cleanupFn&&=(this.cleanupFn(),null),this.virtualizer=null,this._active=!1;for(let e of this.mounted.values())this.recycle(e),a(e),Be(e);this.mounted.clear(),this.innerEl.replaceChildren(),this.container.classList.remove(`vs-active`),this.container.innerHTML=``}renderItems(){if(!this.virtualizer)return;this.virtualizer._willUpdate();let e=this.virtualizer.getVirtualItems(),t=this.virtualizer.getTotalSize();this.innerEl.style.height=`${t}px`;let n=new Set(e.map(e=>e.index));for(let[e,t]of this.mounted)n.has(e)||(this.recycle(t),a(t),this.items[e]?.rehydratesProcessDetails&&Be(t),t.remove(),this.mounted.delete(e));let r=[];for(let t of e){let e=this.mounted.get(t.index);if(!e){let n=this.items[t.index];if(!n)continue;let i=document.createElement(`div`);if(i.innerHTML=n.html,e=i.firstElementChild,!e)continue;e.dataset.vsIdx=String(t.index),this.innerEl.appendChild(e),this.mounted.set(t.index,e),r.push(e)}e.style.transform=`translateY(${t.start}px)`}let i=this.innerEl.contains(document.activeElement)?document.activeElement:null,o=this.innerEl.firstElementChild;for(let t of e){let e=this.mounted.get(t.index);e&&(e!==o&&this.innerEl.insertBefore(e,o),o=e.nextElementSibling)}if(i?.isConnected&&document.activeElement!==i&&i.focus({preventScroll:!0}),this.onLazyRender){let e=this.innerEl.querySelectorAll(`.lazy-pending`);e.length>0&&this.onLazyRender(Array.from(e))}this.postRender(this.innerEl);for(let e of r){let t=Number(e.dataset.vsIdx||`-1`);A(this.items,t,e),this.virtualizer.measureElement(e)}}},Xe=null;function j(){return Xe||=new Ye(`chatMessages`),Xe}var Ze=[`cdnjs.cloudflare.com`,`cdn.jsdelivr.net`,`unpkg.com`,`esm.sh`,`fonts.googleapis.com`,`fonts.gstatic.com`],Qe=[/\beval\s*\(/,/\bnew\s+Function\s*\(/,/\bdocument\.cookie\b/,/\bwindow\.opener\b/,/\bwindow\.top\b/,/\bparent\.postMessage\b(?!.*jaw-)/,/\blocation\.href\s*=/,/\bwindow\.location\b/,/\bsetTimeout\s*\(\s*["'`]/,/\bsetInterval\s*\(\s*["'`]/,/\.constructor\s*\.\s*constructor/,/\bdocument\.write\s*\(/,/\binsertAdjacentHTML\s*\(/],$e=[],et=524288;function tt(e){return new TextEncoder().encode(e).length}function nt(e){return e===et?`512KB`:e%1048576==0?`${e/1048576}MB`:e%1024==0?`${e/1024}KB`:`${e} bytes`}function rt(e,t={}){let n=[],r=t.maxBytes??et;if(tt(e)>r)return{valid:!1,reason:`Payload too large (>${nt(r)})`,warnings:n};let i=/(?:src|href)\s*=\s*["']https?:\/\/([^/"']+)/gi,a;for(;(a=i.exec(e))!==null;){let e=a[1];if(!Ze.some(t=>e===t||e.endsWith(`.`+t)))return{valid:!1,reason:`Blocked domain: ${e}`,warnings:n}}let o=/url\s*\(\s*['"]?https?:\/\/([^)'"]+)/gi;for(;(a=o.exec(e))!==null;){let e=a[1].split(`/`)[0];Ze.some(t=>e===t||e.endsWith(`.`+t))||n.push(`CSS url() references external domain: ${e}`)}for(let t of Qe)if(t.test(e))return{valid:!1,reason:`Dangerous pattern: ${t.source}`,warnings:n};let s=/\bimport\s*\(\s*['"`](.*?)['"`]\s*\)/g,c;for(;(c=s.exec(e))!==null;)try{let e=new URL(c[1]).hostname;if(!Ze.some(t=>e===t||e.endsWith(`.`+t)))return{valid:!1,reason:`Blocked import() domain: ${e}`,warnings:n}}catch{return{valid:!1,reason:`Dynamic import() with non-URL argument`,warnings:n}}if(/\bimport\s*\(\s*(?!['"`])/g.test(e))return{valid:!1,reason:`Dynamic import() with non-literal argument`,warnings:n};for(let t of $e)t.test(e)&&n.push(`DOM sink detected: ${t.source}`);return{valid:!0,warnings:n}}var M=null,N=!0,P=`unknown`,it=!1,at=80,ot=1100,F=null,I=new Set,L=new Set;function R(){return P!==`pinnedAway`}function z(){N=!0,P=`following`,bt()}function st(e){N=e<at,P=N?`following`:`pinnedAway`,P===`pinnedAway`&&B(),bt()}function B(){for(let e of I)window.clearTimeout(e);I.clear();for(let e of L)cancelAnimationFrame(e);L.clear()}function V(e){let t=requestAnimationFrame(()=>{L.delete(t),e()});L.add(t)}function ct(e){I.add(e)}function H(e,t){let n=window.setTimeout(()=>{I.delete(n),e()},t);ct(n)}function U(){if(j().setRestoreFollowPredicate(R),window.__jawProcessBlockLayoutMutation=(e,t)=>{let n=j();if(n.active){n.preserveScrollDuringMutation(e,t);return}t()},it)return;let e=document.getElementById(`chatMessages`);e&&(it=!0,e.addEventListener(`scroll`,()=>{st(e.scrollHeight-e.scrollTop-e.clientHeight)},{passive:!0}),yt())}function lt(){U();let e=document.getElementById(`chatMessages`);if(!e)return N;let t=j();return t.active?t.isNearBottom(at):e.scrollHeight-e.scrollTop-e.clientHeight<at}function ut(e=lt()){if(U(),!e)return;z();let t=j();if(t.active){t.reconcileBottomAfterLayout(`reconnect`,!0);return}requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=document.getElementById(`chatMessages`);e&&(e.scrollTop=e.scrollHeight)})})}function dt(e){F!==null&&(window.clearTimeout(F),F=null);let t=document.querySelector(`.chat-area`);if(!t)return;let n=t.querySelector(`[data-restore-indicator="true"]`);n||(n=document.createElement(`div`),n.className=`chat-restore-indicator`,n.setAttribute(`data-restore-indicator`,`true`),n.setAttribute(`role`,`status`),n.setAttribute(`aria-live`,`polite`),n.innerHTML=`<span class="chat-restore-dot"></span><span class="chat-restore-text">Restoring</span>`,t.appendChild(n)),n.dataset.restoreReason=e}function ft(){F!==null&&(window.clearTimeout(F),F=null),document.querySelectorAll(`[data-restore-indicator="true"]`).forEach(e=>e.remove())}function pt(e=ot){F!==null&&window.clearTimeout(F),F=window.setTimeout(()=>{F=null,ft()},e)}function mt(e){dt(e),pt(),U();let t=j();if(t.active){t.reconcileAfterRestore(e,R);return}if(!R())return;let n=()=>{if(!R()){B();return}let e=document.getElementById(`chatMessages`);e&&(e.scrollTop=e.scrollHeight,z())},r=()=>{if(!R()){B();return}V(n)};r(),V(r),V(()=>V(r)),H(r,250),H(r,1e3),document.fonts?.ready.then(r)}function ht(){U(),z();let e=j();if(e.active){e.reconcileAfterRestore(`manual`,R);return}let t=()=>{if(!R()){B();return}let e=document.getElementById(`chatMessages`);e&&(e.scrollTop=e.scrollHeight,z())},n=()=>{if(!R()){B();return}V(t)};n(),V(n),V(()=>V(n)),H(n,250),H(n,1e3),document.fonts?.ready.then(n)}function gt(e=!1){U(),(e||N)&&(e&&z(),!M&&(M=requestAnimationFrame(()=>{M=null;let e=j();if(e.active){e.scrollToBottom();return}let t=document.getElementById(`chatMessages`);t&&(t.scrollTop=t.scrollHeight)})))}var W=null,_t=!1;function vt(){let e=document.createElement(`button`);return e.className=`scroll-to-bottom-fab`,e.setAttribute(`aria-label`,`Scroll to bottom`),e.innerHTML=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 3v10M4 9l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,e.addEventListener(`click`,()=>gt(!0)),e}function yt(){let e=document.querySelector(`.chat-area`);e&&!W&&(W=vt(),e.appendChild(W))}function bt(){if(!W)return;let e=P===`pinnedAway`;e!==_t&&(_t=e,W.classList.toggle(`visible`,e))}function xt(){let e=document.createElement(`button`);return e.className=`diagram-copy-btn`,e.type=`button`,e.ariaLabel=`Copy source`,e.title=`Copy`,e.innerHTML=s.copy,e}function St(){let e=document.createElement(`button`);return e.className=`diagram-save-btn`,e.type=`button`,e.ariaLabel=`Save as image`,e.title=`Save`,e.innerHTML=s.download,e}function Ct(){let e=document.createElement(`button`);return e.className=`diagram-zoom-btn`,e.type=`button`,e.ariaLabel=`Expand diagram`,e.title=`Expand`,e.textContent=`⤢`,e}function wt(){let e=document.createElement(`button`);return e.className=`diagram-size-toggle-btn`,e.type=`button`,e.ariaLabel=`Expand diagram`,e.title=`Expand`,e.textContent=`⤢`,e}var Tt=[`cdnjs.cloudflare.com`,`cdn.jsdelivr.net`,`unpkg.com`,`esm.sh`,`fonts.googleapis.com`,`fonts.gstatic.com`],G=new Set,K=new Map,Et=new WeakMap,q=524288,J=2097152,Dt=3e4,Y=null;window.addEventListener(`session_switched`,()=>{Y=null});async function X(n,r={}){let i=await e(),a=new Headers(r.headers||{});return i&&a.set(`Authorization`,`Bearer ${i}`),fetch(`${t}${n}`,{...r,headers:a})}async function Z(e=!1){let t=Date.now();if(!e&&Y&&Y.expiresAt>t)return Y.id;try{let e=await X(`/api/chat-sessions`);if(!e.ok)return null;let n=await e.json(),r=n.data?.active??n.active;return typeof r!=`string`||!r?null:(Y={id:r,expiresAt:t+Dt},r)}catch(e){return console.warn(`[jaw-diagram] Failed to resolve active chat session:`,e.message),null}}function Ot(e){let t=Et.get(e);t&&(t(),Et.delete(e))}function kt(e){e.contentWindow&&(G.delete(e.contentWindow),K.delete(e.contentWindow))}function At(e){Ot(e.owner);let t=!1,n=!1,r=Number(e.owner.dataset.gen||`0`);e.owner.dataset.gen=String(r);let i=()=>{e.iframe.contentWindow?.postMessage({type:`jaw-request-resize`},`*`),setTimeout(()=>e.iframe.contentWindow?.postMessage({type:`jaw-request-resize`},`*`),300),setTimeout(()=>e.iframe.contentWindow?.postMessage({type:`jaw-request-resize`},`*`),1e3)},a=()=>{if(!t){t=!0,e.iframe.contentWindow&&(G.add(e.iframe.contentWindow),K.set(e.iframe.contentWindow,e.nonce),i());return}kt(e.iframe),console.warn(`[jaw-diagram] iframe navigated — postMessage channel revoked`)},o=t=>{t.source===e.iframe.contentWindow&&t.data?.type===`jaw-widget-ready`&&t.data.nonce===e.nonce&&(n=!0,window.removeEventListener(`message`,o))},s=window.setTimeout(()=>{window.removeEventListener(`message`,o),Number(e.owner.dataset.gen||`0`)===r&&!n&&e.owner.isConnected&&(kt(e.iframe),e.onTimeout?.())},1e4);e.iframe.addEventListener(`load`,a),window.addEventListener(`message`,o),Et.set(e.owner,()=>{window.clearTimeout(s),window.removeEventListener(`message`,o),e.iframe.removeEventListener(`load`,a),kt(e.iframe)})}var jt=null;function Mt(){if(jt)return;let e=document.getElementById(`chatMessages`);e&&(jt=new MutationObserver(e=>{if(G.size)for(let t of e)for(let e of t.removedNodes)e instanceof HTMLIFrameElement&&e.contentWindow&&(G.delete(e.contentWindow),K.delete(e.contentWindow)),e instanceof HTMLElement&&e.querySelectorAll(`iframe`).forEach(e=>{e.contentWindow&&(G.delete(e.contentWindow),K.delete(e.contentWindow))})}),jt.observe(e,{childList:!0,subtree:!0}))}function Nt(e){if(e.includes(`"importmap"`)||e.includes(`'importmap'`))return``;let t={},n=e.match(/(?:cdn\.jsdelivr\.net\/npm|unpkg\.com)\/three@([\d.]+)/);if(n){let r=n[1],i=e.includes(`unpkg.com/three@`)?`unpkg.com`:`cdn.jsdelivr.net/npm`;t.three=`https://${i}/three@${r}/${i===`unpkg.com`?`build/three.module.js`:`build/three.module.min.js`}`,t[`three/addons/`]=`https://${i}/three@${r}/examples/jsm/`}return Object.keys(t).length===0?``:`<script type="importmap">${JSON.stringify({imports:t})}<\/script>`}function Pt(e){let t=`'none'`;(e.includes(`cdn.jsdelivr.net/npm/us-atlas`)||e.includes(`cdn.jsdelivr.net/npm/world-atlas`)||e.includes(`cdn.jsdelivr.net/npm/datamaps`))&&(t=`https://cdn.jsdelivr.net`);let n=/Tone(\.min)?\.js|tone@/.test(e)?`worker-src blob:;`:``,r=Tt.map(e=>`https://${e}`),i=r.join(` `),a=[`data:`,`blob:`,...r],o=[`'unsafe-inline'`,`https://fonts.googleapis.com`];/L\.(map|tileLayer|marker|geoJSON|polyline|polygon|circle)\(|leaflet[\w.@/-]*\.(js|css)|tile\.openstreetmap\.org/.test(e)&&(a.push(`https://a.tile.openstreetmap.org`,`https://b.tile.openstreetmap.org`,`https://c.tile.openstreetmap.org`),o.push(`https://cdnjs.cloudflare.com`,`https://cdn.jsdelivr.net`));let s=a.join(` `);return`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline' ${i}; style-src ${o.join(` `)}; img-src ${s}; font-src https://fonts.gstatic.com; connect-src ${t}; ${n} base-uri 'none';">`}function Ft(){let e=!document.documentElement.hasAttribute(`data-theme`)||document.documentElement.getAttribute(`data-theme`)===`dark`,t=getComputedStyle(document.documentElement);return{isDark:e,tokens:{"--bg":t.getPropertyValue(`--bg`).trim(),"--surface":t.getPropertyValue(`--surface`).trim(),"--border":t.getPropertyValue(`--border`).trim(),"--text":t.getPropertyValue(`--text`).trim(),"--text-dim":t.getPropertyValue(`--text-dim`).trim(),"--accent":t.getPropertyValue(`--accent`).trim(),"--font-ui":t.getPropertyValue(`--font-ui`).trim(),"--font-mono":t.getPropertyValue(`--font-mono`).trim(),"--radius-sm":t.getPropertyValue(`--radius-sm`).trim(),"--radius-md":t.getPropertyValue(`--radius-md`).trim()}}}function It(e){return`
|
|
40
|
+
</div>`}function ke(e){let t=e.closest(`.process-step`),n=t?.querySelector(`.process-step-details`),r=n?.querySelector(`.process-step-full`),i=e.querySelector(`.process-step-chevron`);if(!t||!n)return;let a=n.classList.contains(`collapsed`);a&&r?.dataset.detailLazy===`true`?(r.textContent=w(t.dataset.stepId||``)||x.get(t.dataset.stepId||``)?.preview||(r.dataset.hadDetail===`true`?`(detail released to save memory — scroll this message back into view to reload)`:``),delete r.dataset.detailLazy):!a&&r&&r.textContent&&r.textContent.length>ae&&(r.textContent=``,r.dataset.detailLazy=`true`),n.classList.toggle(`collapsed`,!a),t.classList.toggle(`expanded`,a),e.setAttribute(`aria-expanded`,a?`true`:`false`),i&&(i.innerHTML=a?s.chevronDown:s.chevronRight)}function Ae(e,t){let n=window.__jawProcessBlockLayoutMutation;if(typeof n==`function`){n(e,t);return}t()}function O(e){return e.getAttribute(`aria-disabled`)!==`true`&&!e.matches(`:disabled`)}function je(e){e.dataset.processBlockBound!==`1`&&(e.addEventListener(`click`,e=>{let t=e.target;if(!t)return;let i=t.closest(`.process-step-trace`);if(i){if(e.preventDefault(),e.stopPropagation(),!O(i))return;let t=i.dataset.traceRunId||``,a=Number(i.dataset.traceSeq||0),s=++le,c=o(`/api/orchestrate/snapshot`);ue?.abort();let l=new AbortController;ue=l;let u=n(c,{},l.signal,16777216);Promise.all([r(()=>import(`./trace-drawer-Dbe5pTbf.js`),__vite__mapDeps([0])),u]).then(([e,n])=>{if(s!==le||!i.isConnected||!O(i)||c!==o(`/api/orchestrate/snapshot`))return;let r=f(n&&typeof n==`object`&&!Array.isArray(n)?n.activityIdentity:null);return e.openTraceDrawer(t,a,r?.sessionId??null)}).catch(e=>console.warn(`[trace-drawer] open failed:`,e));return}let a=t.closest(`[data-expand-steps]`);if(a){e.preventDefault();let t=a.closest(`.process-block`);if(!t)return;let n=v.get(t);if(!n){let e=He(t);if(e.length===0)return;n={element:t,steps:e,collapsed:t.classList.contains(`collapsed`)},v.set(t,n)}let r=n;Ae(t,()=>{r.expandedSteps=!0;let e=r.element.querySelector(`.process-steps-inner`);e&&(e.innerHTML=D(r.steps,!0))});return}let c=t.closest(`.process-step-toggle`);if(c){Ae(c.closest(`.process-step, .process-block`),()=>{ke(c)});return}let l=t.closest(`.process-summary`);if(l){let e=l.closest(`.process-block`);if(!e)return;Ae(e,()=>{let t=e.classList.contains(`collapsed`);e.classList.toggle(`collapsed`,!t),l.setAttribute(`aria-expanded`,t?`true`:`false`);let n=l.querySelector(`.process-chevron`);n&&(n.innerHTML=t?s.chevronDown:s.chevronRight);let r=v.get(e);r&&(r.collapsed=!t,k(r))})}}),e.addEventListener(`keydown`,e=>{if(e.key!==`Enter`&&e.key!==` `)return;let t=e.target?.closest(`.process-step-trace`);t&&(t.tagName!==`BUTTON`||!O(t)||e.repeat)&&(e.preventDefault(),e.stopPropagation(),!e.repeat&&O(t)&&t.click())}),e.dataset.processBlockBound=`1`)}function Me(e,t=!0){let n=e.map(T),r=Oe(ve(n),t),i=document.createElement(`div`);i.innerHTML=r;let a=i.querySelector(`.process-block`);a&&(a.dataset.processStepIds=n.map(e=>e.id).join(` `));let o=i.querySelector(`.process-steps-inner`);o&&(o.innerHTML=D(n));let s=i.querySelector(`.process-dot`);if(s){let e=n.some(e=>e.status===`running`);s.classList.toggle(`running`,e&&!t),s.classList.toggle(`done`,!e||t)}return i.innerHTML}function k(e){let t=e.element.querySelector(`.process-summary-text`);t&&(t.innerHTML=ve(e.steps));let n=e.steps.some(e=>e.status===`running`),r=e.element.querySelector(`.process-dot`);r&&(r.classList.toggle(`running`,n&&!e.collapsed),r.classList.toggle(`done`,!n||e.collapsed));let i=he(e),a=i===null?0:Math.round((Date.now()-i)/1e3),o=e._durationEl??=e.element.querySelector(`.process-duration`);o&&(o.textContent=a>0?`${a}s`:``),n&&!e.collapsed?_e(e):_===e&&S()}function Ne(e){v.set(e.element,e)}function Pe(e){let t=document.createElement(`div`);t.innerHTML=Oe(``,!0);let n=t.firstElementChild,r=e.querySelector(`.msg-content`);r?r.before(n):e.appendChild(n);let i={element:n,steps:[],collapsed:!0};return v.set(n,i),i}function Fe(e,t){e.setAttribute(`data-omitted-count`,String(t));let n=e.querySelector(`.process-step-snippet`);n&&(n.textContent=`Show ${t} hidden tool step${t===1?``:`s`}`)}function Ie(e,t){let n=e.steps.length-1-ce;if(n<se)return;let r=e.steps[n];if(!r||r.status===`running`||r.status===`error`)return;let i=t.querySelector(`[data-step-id="${r.id}"]`);if(!i)return;let a=i.previousElementSibling;if(a&&a.hasAttribute(`data-expand-steps`))Fe(a,Number(a.getAttribute(`data-omitted-count`)||`0`)+1),i.remove();else{let e=document.createElement(`div`);e.innerHTML=De(1);let t=e.firstElementChild;t&&i.replaceWith(t)}}function Le(e,t){let n=T(t);e.steps.push(n);let r=e.element.querySelector(`.process-steps-inner`);r&&(e.steps.length===81&&!e.expandedSteps?r.innerHTML=D(e.steps,e.expandedSteps):e.steps.length>oe&&!e.expandedSteps?(r.insertAdjacentHTML(`beforeend`,E(n)),Ie(e,r)):r.insertAdjacentHTML(`beforeend`,E(n))),we(e),k(e)}function Re(e,t,n){let r=e.steps.findIndex(e=>e.id===t);if(r===-1)return;t!==n.id&&(b.delete(t),x.delete(t));let i=T(n);e.steps[r]=i;let a=e.element.querySelector(`[data-step-id="${t}"]`);if(a){let e=document.createElement(`div`);e.innerHTML=E(i);let t=e.firstElementChild;t&&a.replaceWith(t)}else if(e.steps.length>oe){let t=e.element.querySelector(`.process-steps-inner`);t&&(t.innerHTML=D(e.steps,e.expandedSteps))}we(e),k(e)}function ze(e){_===e&&S(),e.collapsed=!0,e.element.classList.add(`collapsed`);let t=e.element.querySelector(`.process-summary`);t&&t.setAttribute(`aria-expanded`,`false`);let n=e.element.querySelector(`.process-chevron`);n&&(n.innerHTML=s.chevronRight);for(let t of e.steps)t.status===`running`&&(t.status=`done`,Ce(t));e.element.querySelectorAll(`.process-step-dot.running`).forEach(e=>{e.classList.remove(`running`),e.classList.add(`done`);let t=e.closest(`.process-step`);t&&(t.dataset.status=`done`)}),k(e)}function Be(e){if(!e)return;de++;let t=new Set;if(`steps`in e)e.steps.forEach(e=>t.add(e.id));else{if(e.classList.contains(`process-block`)&&(e.dataset.processStepIds||``).split(/\s+/).filter(Boolean).forEach(e=>t.add(e)),e.querySelectorAll(`.process-block[data-process-step-ids]`).forEach(e=>{(e.dataset.processStepIds||``).split(/\s+/).filter(Boolean).forEach(e=>t.add(e))}),e.classList.contains(`process-step`)){let n=e.dataset.stepId;n&&t.add(n)}e.querySelectorAll(`.process-step[data-step-id]`).forEach(e=>{let n=e.dataset.stepId;n&&t.add(n)})}t.forEach(e=>{b.delete(e),x.delete(e)}),fe+=t.size}function Ve(e){return x.get(e)||null}function He(e){pe++;let t=(e.dataset.processStepIds||``).split(/\s+/).filter(Boolean),n=[];for(let e of t){let t=x.get(e);t&&n.push({id:t.id,type:t.type,icon:t.icon,rawIcon:t.rawIcon,label:t.label,isEmployee:t.isEmployee,detail:w(e)||t.preview||``,detailPreview:t.preview,detailLength:t.detailLength,detailTruncated:t.detailTruncated,stepRef:t.stepRef,traceRunId:t.traceRunId,traceSeq:t.traceSeq,detailAvailable:t.detailAvailable,detailBytes:t.detailBytes,rawRetentionStatus:t.rawRetentionStatus,status:t.status,startTime:t.startTime})}return me+=n.length,n}var Ue=80,We=5,Ge=80,Ke=160;function qe(e){let t=Math.ceil(e.getBoundingClientRect().height);return Number.isFinite(t)&&t>0?t:0}function A(e,t,n){if(!e[t])return;let r=qe(n);r>0&&(e[t].height=r)}function Je(e,t,n){if(n)for(let[r,i]of t)A(e,r,i),n.measureElement(i)}var Ye=class{items=[];container;innerEl;_active=!1;virtualizer=null;cleanupFn=null;mounted=new Map;itemGap=0;restorePassTimers=new Set;shouldFollowAfterRestore=()=>!0;resizePin=null;onLazyRender=null;onPostRender=null;onRecycle=null;lifecycleHooks=new Set;addLifecycleHooks(e){this.lifecycleHooks.add(e)}postRender(e){this.onPostRender?.(e);for(let t of this.lifecycleHooks)t.postRender(e)}recycle(e){this.onRecycle?.(e);for(let t of this.lifecycleHooks)t.recycle(e)}constructor(e){this.container=document.getElementById(e),this.innerEl=document.createElement(`div`),this.innerEl.className=`vs-inner`,this.attachMediaLoadRemeasure()}attachMediaLoadRemeasure(){let e=e=>{let t=e.target;if(!(t instanceof HTMLImageElement)&&!(t instanceof HTMLVideoElement)||!this._active||!this.virtualizer)return;let n=t.closest(`[data-vs-idx]`);n&&n.isConnected&&(A(this.items,Number(n.dataset.vsIdx||`-1`),n),this.virtualizer.measureElement(n))};this.innerEl.addEventListener(`load`,e,!0),this.innerEl.addEventListener(`loadedmetadata`,e,!0)}get active(){return this._active}get count(){return this.items.length}metrics(){let e=[...this.mounted.keys()].sort((e,t)=>e-t),t=e[0],n=e[e.length-1];return{virtualItemCount:this.items.length,mountedRowCount:this.mounted.size,firstVisibleIdx:t??null,lastVisibleIdx:n??null,firstVisibleId:t===void 0?null:this.items[t]?.id??null,lastVisibleId:n===void 0?null:this.items[n]?.id??null}}measureGap(){if(this.itemGap>0)return this.itemGap;let e=document.createElement(`div`);return e.className=`msg`,e.style.position=`absolute`,e.style.visibility=`hidden`,e.textContent=` `,this.innerEl.appendChild(e),this.itemGap=parseFloat(getComputedStyle(e).marginBottom)||0,e.remove(),this.itemGap}invalidateLayout(){if(!this.virtualizer)return;this.itemGap=0;let e=this.measureGap();this.virtualizer.setOptions({...this.virtualizer.options,gap:e}),this.virtualizer.measure(),Je(this.items,this.mounted,this.virtualizer),this.renderItems()}invalidateLayoutPinned(){if(!this.virtualizer)return;let e=this.resizePin;if(!e){let t=this.shouldFollowAfterRestore();e={follow:t,anchor:t?null:this.captureIndexAnchor(),settleTimer:0},this.resizePin=e}window.clearTimeout(e.settleTimer),this.invalidateLayout(),this.applyResizePin(e);let t=e;t.settleTimer=window.setTimeout(()=>{requestAnimationFrame(()=>{this.resizePin===t&&(this.resizePin=null,this.virtualizer&&this.applyResizePin(t))})},Ke)}applyResizePin(e){if(e.follow){this.scrollToBottom();return}if(!e.anchor)return;let t=this.mounted.get(e.anchor.index);if(!t?.isConnected)return;let n=t.getBoundingClientRect().top-e.anchor.top;Number.isFinite(n)&&n!==0&&(this.container.scrollTop+=n)}captureIndexAnchor(){let e=this.firstVisibleMountedItem();if(!e)return null;let t=Number(e.dataset.vsIdx??`-1`);return t>=0?{index:t,top:e.getBoundingClientRect().top}:null}clearResizePin(){this.resizePin&&window.clearTimeout(this.resizePin.settleTimer),this.resizePin=null}setItems(e,t){this.items=e,t?.autoActivate!==!1&&!this._active&&this.items.length>=1&&this.activate(t?.toBottom??!0)}seedMeasuredHeights(e,t){for(let n=0;n<t.length;n++){let r=e+n;this.items[r]&&(this.items[r].height=t[n])}}activateIfNeeded(e=!1){!this._active&&this.items.length>=1&&this.activate(e)}addItem(e,t){this.appendItem({id:e,html:t,height:Ue})}appendItem(e){if(this.items.push(e),!this._active&&this.items.length>=1){this.activate(!0);return}this._active&&this.virtualizer&&this.virtualizer.setOptions({...this.virtualizer.options,count:this.items.length})}appendLiveItem(e){if(!this._active)return;a(e);let t=e.outerHTML,n=p(),r=e.dataset.messageId;this.items.push({id:n,...r?{messageId:r}:{},html:t,height:Ue}),this.virtualizer&&(this.virtualizer.setOptions({...this.virtualizer.options,count:this.items.length}),this.renderItems())}reconcileMessage(e,t){let n=this.items.findIndex(t=>t.messageId===e);if(n<0||this.items.some((t,r)=>r!==n&&t.messageId===e))return!1;let r=this.items[n],i=this.mounted.get(n),a=this.container.ownerDocument.createElement(`div`);i||(a.innerHTML=r.html);let o=i??a.firstElementChild;return!o||o.dataset.messageId!==e?!1:(t(o),r.html=o.outerHTML,i&&this.virtualizer&&(A(this.items,n,i),this.virtualizer.measureElement(i)),!0)}updateItemHtml(e,t){this.items[e]&&(this.items[e].html=t)}scrollToBottom(){this._active&&this.virtualizer&&this.items.length>0&&this.virtualizer.scrollToIndex(this.items.length-1,{align:`end`}),this.container.scrollTop=this.container.scrollHeight}firstVisibleIndex(){if(!this._active||!this.virtualizer)return null;let e=this.virtualizer.getVirtualItems();if(e.length===0)return null;let t=this.container.scrollTop;for(let n of e)if(n.end>t)return n.index;return e[0].index}scrollToIndex(e,t=`start`){this._active&&this.virtualizer&&e>=0&&e<this.items.length&&this.virtualizer.scrollToIndex(e,{align:t})}isNearBottom(e=Ge){return this.container.scrollHeight-this.container.scrollTop-this.container.clientHeight<e}setRestoreFollowPredicate(e){this.shouldFollowAfterRestore=e??(()=>!0)}reconcileBottomAfterLayout(e,t=this.isNearBottom()){t&&requestAnimationFrame(()=>{this.invalidateLayout(),requestAnimationFrame(()=>{this.scrollToBottom()})})}reconcileAfterRestore(e,t=this.shouldFollowAfterRestore){if(!t()){this.invalidateLayout();return}this.scheduleRestoreReconcile(e,t)}forceBottomAfterRestore(e){this.scheduleRestoreReconcile(e)}cancelRestoreReconcile(e){this.clearRestoreTimers()}preserveScrollDuringMutation(e,t){let n=this.isNearBottom(),r=this.captureScrollAnchor(e),i=t();return this.invalidateLayout(),n?(this.reconcileBottomAfterLayout(`manual`,!0),i):(this.restoreScrollAnchor(r),i)}scheduleRestoreReconcile(e,t){this.runRestoreReconcilePass(e,t),requestAnimationFrame(()=>this.runRestoreReconcilePass(e,t)),requestAnimationFrame(()=>{requestAnimationFrame(()=>this.runRestoreReconcilePass(e,t))}),this.scheduleRestoreTimer(e,250,t),this.scheduleRestoreTimer(e,1e3,t),document.fonts?.ready.then(()=>this.runRestoreReconcilePass(e,t))}scheduleRestoreTimer(e,t,n){let r=window.setTimeout(()=>{this.restorePassTimers.delete(r),this.runRestoreReconcilePass(e,n)},t);this.restorePassTimers.add(r)}runRestoreReconcilePass(e,t){if(this.virtualizer){if(t&&!t()){this.cancelRestoreReconcile(e),this.invalidateLayout();return}this.invalidateLayout(),Je(this.items,this.mounted,this.virtualizer),this.scrollToBottom()}}captureScrollAnchor(e){let t=e instanceof HTMLElement?e:null,n=t&&this.isVisibleInContainer(t)?t:this.firstVisibleMountedItem();return n?{el:n,top:n.getBoundingClientRect().top}:null}restoreScrollAnchor(e){if(!e||!e.el.isConnected)return;let t=e.el.getBoundingClientRect().top-e.top;Number.isFinite(t)&&t!==0&&(this.container.scrollTop+=t)}firstVisibleMountedItem(){let e=Array.from(this.mounted.entries()).sort(([e],[t])=>e-t);for(let[,t]of e)if(this.isVisibleInContainer(t))return t;return null}isVisibleInContainer(e){let t=e.getBoundingClientRect(),n=this.container.getBoundingClientRect();return t.bottom>n.top&&t.top<n.bottom}clearRestoreTimers(){for(let e of this.restorePassTimers)window.clearTimeout(e);this.restorePassTimers.clear()}flushToDOM(){this._active&&(this.deactivate(),this.container.innerHTML=this.items.map(e=>e.html).join(``),this.postRender(this.container),this.items=[])}clear(){this.deactivate(),this.items=[],this.itemGap=0,this.onLazyRender=null,this.onPostRender=null,this.onRecycle=null,this.lifecycleHooks.clear()}activate(e=!1){this._active=!0,this.container.querySelectorAll(`.msg`).forEach((e,t)=>{if(!this.items[t])return;let n=e.getBoundingClientRect().height;n>0&&(this.items[t].height=n)}),this.container.classList.add(`vs-active`),this.container.replaceChildren(this.innerEl),this.measureGap(),this.virtualizer=new d({count:this.items.length,getScrollElement:()=>this.container,estimateSize:e=>this.items[e]?.height??Ue,overscan:We,gap:this.itemGap,useAnimationFrameWithResizeObserver:!0,onChange:()=>this.renderItems(),observeElementRect:l,observeElementOffset:u,scrollToFn:ee,getItemKey:e=>this.items[e]?.id??e,indexAttribute:`data-vs-idx`});let t=[],n=this.virtualizer._didMount();n&&t.push(n);let r=0,i=()=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{this.invalidateLayoutPinned()})},a=()=>i();if(window.addEventListener(`resize`,a),t.push(()=>{window.removeEventListener(`resize`,a),cancelAnimationFrame(r),this.clearResizePin()}),typeof ResizeObserver<`u`){let e=this.container.clientWidth,n=this.container.clientHeight,r=new ResizeObserver(t=>{let r=t[0]?.contentRect;if(!r)return;let a=Math.round(r.width),o=Math.round(r.height);(a!==e||o!==n)&&(e=a,n=o,i())});r.observe(this.container),t.push(()=>r.disconnect());let a=this.virtualizer?.getTotalSize()??0,o=new ResizeObserver(()=>{let e=this.virtualizer?.getTotalSize()??0;if(e<=a){a=e;return}a=e,this.shouldFollowAfterRestore()&&this.reconcileBottomAfterLayout(`manual`,!0)});o.observe(this.innerEl),t.push(()=>o.disconnect())}let o=e=>{this.virtualizer&&this.reconcileAfterRestore(e,this.shouldFollowAfterRestore)},s=e=>{e.persisted&&o(`pageshow`)};window.addEventListener(`pageshow`,s);let c=()=>{document.visibilityState===`visible`&&o(`visibility`)};document.addEventListener(`visibilitychange`,c);let f=()=>o(`focus`);window.addEventListener(`focus`,f);let p=()=>o(`resume`);document.addEventListener(`resume`,p);let te=()=>{};window.addEventListener(`pagehide`,te);let ne=()=>{};document.addEventListener(`freeze`,ne),this.cleanupFn=()=>{window.removeEventListener(`pageshow`,s),document.removeEventListener(`visibilitychange`,c),window.removeEventListener(`focus`,f),document.removeEventListener(`resume`,p),window.removeEventListener(`pagehide`,te),document.removeEventListener(`freeze`,ne);for(let e of t.reverse())e();this.clearRestoreTimers()},this.virtualizer._willUpdate(),e&&this.items.length>0?(this.container.style.opacity=`0`,this.renderItems(),this.virtualizer.scrollToIndex(this.items.length-1,{align:`end`}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.container.style.opacity=``})})):this.renderItems(),`wasDiscarded`in document&&document.wasDiscarded&&o(`discard`)}deactivate(){this.clearRestoreTimers(),this.cleanupFn&&=(this.cleanupFn(),null),this.virtualizer=null,this._active=!1;for(let e of this.mounted.values())this.recycle(e),a(e),Be(e);this.mounted.clear(),this.innerEl.replaceChildren(),this.container.classList.remove(`vs-active`),this.container.innerHTML=``}renderItems(){if(!this.virtualizer)return;this.virtualizer._willUpdate();let e=this.virtualizer.getVirtualItems(),t=this.virtualizer.getTotalSize();this.innerEl.style.height=`${t}px`;let n=new Set(e.map(e=>e.index));for(let[e,t]of this.mounted)n.has(e)||(this.recycle(t),a(t),this.items[e]?.rehydratesProcessDetails&&Be(t),t.remove(),this.mounted.delete(e));let r=[];for(let t of e){let e=this.mounted.get(t.index);if(!e){let n=this.items[t.index];if(!n)continue;let i=document.createElement(`div`);if(i.innerHTML=n.html,e=i.firstElementChild,!e)continue;e.dataset.vsIdx=String(t.index),this.innerEl.appendChild(e),this.mounted.set(t.index,e),r.push(e)}e.style.transform=`translateY(${t.start}px)`}let i=this.innerEl.contains(document.activeElement)?document.activeElement:null,o=this.innerEl.firstElementChild;for(let t of e){let e=this.mounted.get(t.index);e&&(e!==o&&this.innerEl.insertBefore(e,o),o=e.nextElementSibling)}if(i?.isConnected&&document.activeElement!==i&&i.focus({preventScroll:!0}),this.onLazyRender){let e=this.innerEl.querySelectorAll(`.lazy-pending`);e.length>0&&this.onLazyRender(Array.from(e))}this.postRender(this.innerEl);for(let e of r){let t=Number(e.dataset.vsIdx||`-1`);A(this.items,t,e),this.virtualizer.measureElement(e)}}},Xe=null;function j(){return Xe||=new Ye(`chatMessages`),Xe}var Ze=[`cdnjs.cloudflare.com`,`cdn.jsdelivr.net`,`unpkg.com`,`esm.sh`,`fonts.googleapis.com`,`fonts.gstatic.com`],Qe=[/\beval\s*\(/,/\bnew\s+Function\s*\(/,/\bdocument\.cookie\b/,/\bwindow\.opener\b/,/\bwindow\.top\b/,/\bparent\.postMessage\b(?!.*jaw-)/,/\blocation\.href\s*=/,/\bwindow\.location\b/,/\bsetTimeout\s*\(\s*["'`]/,/\bsetInterval\s*\(\s*["'`]/,/\.constructor\s*\.\s*constructor/,/\bdocument\.write\s*\(/,/\binsertAdjacentHTML\s*\(/],$e=[],et=524288;function tt(e){return new TextEncoder().encode(e).length}function nt(e){return e===et?`512KB`:e%1048576==0?`${e/1048576}MB`:e%1024==0?`${e/1024}KB`:`${e} bytes`}function rt(e,t={}){let n=[],r=t.maxBytes??et;if(tt(e)>r)return{valid:!1,reason:`Payload too large (>${nt(r)})`,warnings:n};let i=/(?:src|href)\s*=\s*["']https?:\/\/([^/"']+)/gi,a;for(;(a=i.exec(e))!==null;){let e=a[1];if(!Ze.some(t=>e===t||e.endsWith(`.`+t)))return{valid:!1,reason:`Blocked domain: ${e}`,warnings:n}}let o=/url\s*\(\s*['"]?https?:\/\/([^)'"]+)/gi;for(;(a=o.exec(e))!==null;){let e=a[1].split(`/`)[0];Ze.some(t=>e===t||e.endsWith(`.`+t))||n.push(`CSS url() references external domain: ${e}`)}for(let t of Qe)if(t.test(e))return{valid:!1,reason:`Dangerous pattern: ${t.source}`,warnings:n};let s=/\bimport\s*\(\s*['"`](.*?)['"`]\s*\)/g,c;for(;(c=s.exec(e))!==null;)try{let e=new URL(c[1]).hostname;if(!Ze.some(t=>e===t||e.endsWith(`.`+t)))return{valid:!1,reason:`Blocked import() domain: ${e}`,warnings:n}}catch{return{valid:!1,reason:`Dynamic import() with non-URL argument`,warnings:n}}if(/\bimport\s*\(\s*(?!['"`])/g.test(e))return{valid:!1,reason:`Dynamic import() with non-literal argument`,warnings:n};for(let t of $e)t.test(e)&&n.push(`DOM sink detected: ${t.source}`);return{valid:!0,warnings:n}}var M=null,N=!0,P=`unknown`,it=!1,at=80,ot=1100,F=null,I=new Set,L=new Set;function R(){return P!==`pinnedAway`}function z(){N=!0,P=`following`,bt()}function st(e){N=e<at,P=N?`following`:`pinnedAway`,P===`pinnedAway`&&B(),bt()}function B(){for(let e of I)window.clearTimeout(e);I.clear();for(let e of L)cancelAnimationFrame(e);L.clear()}function V(e){let t=requestAnimationFrame(()=>{L.delete(t),e()});L.add(t)}function ct(e){I.add(e)}function H(e,t){let n=window.setTimeout(()=>{I.delete(n),e()},t);ct(n)}function U(){if(j().setRestoreFollowPredicate(R),window.__jawProcessBlockLayoutMutation=(e,t)=>{let n=j();if(n.active){n.preserveScrollDuringMutation(e,t);return}t()},it)return;let e=document.getElementById(`chatMessages`);e&&(it=!0,e.addEventListener(`scroll`,()=>{st(e.scrollHeight-e.scrollTop-e.clientHeight)},{passive:!0}),yt())}function lt(){U();let e=document.getElementById(`chatMessages`);if(!e)return N;let t=j();return t.active?t.isNearBottom(at):e.scrollHeight-e.scrollTop-e.clientHeight<at}function ut(e=lt()){if(U(),!e)return;z();let t=j();if(t.active){t.reconcileBottomAfterLayout(`reconnect`,!0);return}requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=document.getElementById(`chatMessages`);e&&(e.scrollTop=e.scrollHeight)})})}function dt(e){F!==null&&(window.clearTimeout(F),F=null);let t=document.querySelector(`.chat-area`);if(!t)return;let n=t.querySelector(`[data-restore-indicator="true"]`);n||(n=document.createElement(`div`),n.className=`chat-restore-indicator`,n.setAttribute(`data-restore-indicator`,`true`),n.setAttribute(`role`,`status`),n.setAttribute(`aria-live`,`polite`),n.innerHTML=`<span class="chat-restore-dot"></span><span class="chat-restore-text">Restoring</span>`,t.appendChild(n)),n.dataset.restoreReason=e}function ft(){F!==null&&(window.clearTimeout(F),F=null),document.querySelectorAll(`[data-restore-indicator="true"]`).forEach(e=>e.remove())}function pt(e=ot){F!==null&&window.clearTimeout(F),F=window.setTimeout(()=>{F=null,ft()},e)}function mt(e){dt(e),pt(),U();let t=j();if(t.active){t.reconcileAfterRestore(e,R);return}if(!R())return;let n=()=>{if(!R()){B();return}let e=document.getElementById(`chatMessages`);e&&(e.scrollTop=e.scrollHeight,z())},r=()=>{if(!R()){B();return}V(n)};r(),V(r),V(()=>V(r)),H(r,250),H(r,1e3),document.fonts?.ready.then(r)}function ht(){U(),z();let e=j();if(e.active){e.reconcileAfterRestore(`manual`,R);return}let t=()=>{if(!R()){B();return}let e=document.getElementById(`chatMessages`);e&&(e.scrollTop=e.scrollHeight,z())},n=()=>{if(!R()){B();return}V(t)};n(),V(n),V(()=>V(n)),H(n,250),H(n,1e3),document.fonts?.ready.then(n)}function gt(e=!1){U(),(e||N)&&(e&&z(),!M&&(M=requestAnimationFrame(()=>{M=null;let e=j();if(e.active){e.scrollToBottom();return}let t=document.getElementById(`chatMessages`);t&&(t.scrollTop=t.scrollHeight)})))}var W=null,_t=!1;function vt(){let e=document.createElement(`button`);return e.className=`scroll-to-bottom-fab`,e.setAttribute(`aria-label`,`Scroll to bottom`),e.innerHTML=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 3v10M4 9l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,e.addEventListener(`click`,()=>gt(!0)),e}function yt(){let e=document.querySelector(`.chat-area`);e&&!W&&(W=vt(),e.appendChild(W))}function bt(){if(!W)return;let e=P===`pinnedAway`;e!==_t&&(_t=e,W.classList.toggle(`visible`,e))}function xt(){let e=document.createElement(`button`);return e.className=`diagram-copy-btn`,e.type=`button`,e.ariaLabel=`Copy source`,e.title=`Copy`,e.innerHTML=s.copy,e}function St(){let e=document.createElement(`button`);return e.className=`diagram-save-btn`,e.type=`button`,e.ariaLabel=`Save as image`,e.title=`Save`,e.innerHTML=s.download,e}function Ct(){let e=document.createElement(`button`);return e.className=`diagram-zoom-btn`,e.type=`button`,e.ariaLabel=`Expand diagram`,e.title=`Expand`,e.textContent=`⤢`,e}function wt(){let e=document.createElement(`button`);return e.className=`diagram-size-toggle-btn`,e.type=`button`,e.ariaLabel=`Expand diagram`,e.title=`Expand`,e.textContent=`⤢`,e}var Tt=[`cdnjs.cloudflare.com`,`cdn.jsdelivr.net`,`unpkg.com`,`esm.sh`,`fonts.googleapis.com`,`fonts.gstatic.com`],G=new Set,K=new Map,Et=new WeakMap,q=524288,J=2097152,Dt=3e4,Y=null;window.addEventListener(`session_switched`,()=>{Y=null});async function X(n,r={}){let i=await e(),a=new Headers(r.headers||{});return i&&a.set(`Authorization`,`Bearer ${i}`),fetch(`${t}${n}`,{...r,headers:a})}async function Z(e=!1){let t=Date.now();if(!e&&Y&&Y.expiresAt>t)return Y.id;try{let e=await X(`/api/chat-sessions`);if(!e.ok)return null;let n=await e.json(),r=n.data?.active??n.active;return typeof r!=`string`||!r?null:(Y={id:r,expiresAt:t+Dt},r)}catch(e){return console.warn(`[jaw-diagram] Failed to resolve active chat session:`,e.message),null}}function Ot(e){let t=Et.get(e);t&&(t(),Et.delete(e))}function kt(e){e.contentWindow&&(G.delete(e.contentWindow),K.delete(e.contentWindow))}function At(e){Ot(e.owner);let t=!1,n=!1,r=Number(e.owner.dataset.gen||`0`);e.owner.dataset.gen=String(r);let i=()=>{e.iframe.contentWindow?.postMessage({type:`jaw-request-resize`},`*`),setTimeout(()=>e.iframe.contentWindow?.postMessage({type:`jaw-request-resize`},`*`),300),setTimeout(()=>e.iframe.contentWindow?.postMessage({type:`jaw-request-resize`},`*`),1e3)},a=()=>{if(!t){t=!0,e.iframe.contentWindow&&(G.add(e.iframe.contentWindow),K.set(e.iframe.contentWindow,e.nonce),i());return}kt(e.iframe),console.warn(`[jaw-diagram] iframe navigated — postMessage channel revoked`)},o=t=>{t.source===e.iframe.contentWindow&&t.data?.type===`jaw-widget-ready`&&t.data.nonce===e.nonce&&(n=!0,window.removeEventListener(`message`,o))},s=window.setTimeout(()=>{window.removeEventListener(`message`,o),Number(e.owner.dataset.gen||`0`)===r&&!n&&e.owner.isConnected&&(kt(e.iframe),e.onTimeout?.())},1e4);e.iframe.addEventListener(`load`,a),window.addEventListener(`message`,o),Et.set(e.owner,()=>{window.clearTimeout(s),window.removeEventListener(`message`,o),e.iframe.removeEventListener(`load`,a),kt(e.iframe)})}var jt=null;function Mt(){if(jt)return;let e=document.getElementById(`chatMessages`);e&&(jt=new MutationObserver(e=>{if(G.size)for(let t of e)for(let e of t.removedNodes)e instanceof HTMLIFrameElement&&e.contentWindow&&(G.delete(e.contentWindow),K.delete(e.contentWindow)),e instanceof HTMLElement&&e.querySelectorAll(`iframe`).forEach(e=>{e.contentWindow&&(G.delete(e.contentWindow),K.delete(e.contentWindow))})}),jt.observe(e,{childList:!0,subtree:!0}))}function Nt(e){if(e.includes(`"importmap"`)||e.includes(`'importmap'`))return``;let t={},n=e.match(/(?:cdn\.jsdelivr\.net\/npm|unpkg\.com)\/three@([\d.]+)/);if(n){let r=n[1],i=e.includes(`unpkg.com/three@`)?`unpkg.com`:`cdn.jsdelivr.net/npm`;t.three=`https://${i}/three@${r}/${i===`unpkg.com`?`build/three.module.js`:`build/three.module.min.js`}`,t[`three/addons/`]=`https://${i}/three@${r}/examples/jsm/`}return Object.keys(t).length===0?``:`<script type="importmap">${JSON.stringify({imports:t})}<\/script>`}function Pt(e){let t=`'none'`;(e.includes(`cdn.jsdelivr.net/npm/us-atlas`)||e.includes(`cdn.jsdelivr.net/npm/world-atlas`)||e.includes(`cdn.jsdelivr.net/npm/datamaps`))&&(t=`https://cdn.jsdelivr.net`);let n=/Tone(\.min)?\.js|tone@/.test(e)?`worker-src blob:;`:``,r=Tt.map(e=>`https://${e}`),i=r.join(` `),a=[`data:`,`blob:`,...r],o=[`'unsafe-inline'`,`https://fonts.googleapis.com`];/L\.(map|tileLayer|marker|geoJSON|polyline|polygon|circle)\(|leaflet[\w.@/-]*\.(js|css)|tile\.openstreetmap\.org/.test(e)&&(a.push(`https://a.tile.openstreetmap.org`,`https://b.tile.openstreetmap.org`,`https://c.tile.openstreetmap.org`),o.push(`https://cdnjs.cloudflare.com`,`https://cdn.jsdelivr.net`));let s=a.join(` `);return`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline' ${i}; style-src ${o.join(` `)}; img-src ${s}; font-src https://fonts.gstatic.com; connect-src ${t}; ${n} base-uri 'none';">`}function Ft(){let e=!document.documentElement.hasAttribute(`data-theme`)||document.documentElement.getAttribute(`data-theme`)===`dark`,t=getComputedStyle(document.documentElement);return{isDark:e,tokens:{"--bg":t.getPropertyValue(`--bg`).trim(),"--surface":t.getPropertyValue(`--surface`).trim(),"--border":t.getPropertyValue(`--border`).trim(),"--text":t.getPropertyValue(`--text`).trim(),"--text-dim":t.getPropertyValue(`--text-dim`).trim(),"--accent":t.getPropertyValue(`--accent`).trim(),"--font-ui":t.getPropertyValue(`--font-ui`).trim(),"--font-mono":t.getPropertyValue(`--font-mono`).trim(),"--radius-sm":t.getPropertyValue(`--radius-sm`).trim(),"--radius-md":t.getPropertyValue(`--radius-md`).trim()}}}function It(e){return`
|
|
41
41
|
<script>
|
|
42
42
|
(function() {
|
|
43
43
|
var __nonce = '${e}';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./iframe-renderer-CcGzEi0v.js";export{e as refreshFileWidget};
|
package/public/dist/assets/{infoDiagram-FKFFQAWI-BM2g31_p.js → infoDiagram-FKFFQAWI-DT2EWjxa.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./chunk-X3CZISLH-ChyOdCnY.js";import{c as n}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./chunk-X3CZISLH-ChyOdCnY.js";import{c as n}from"./chunk-DU6HZSFF-zk1cX9hK.js";import{t as r}from"./chunk-CLGD4ZFX-CuX1dWxe.js";import{n as i}from"./mermaid-parser.core-J035_CYr.js";var a={parse:e(async e=>{let n=await i(`info`,e);t.debug(n)},`parse`)},o={version:`11.17.1`},s={parser:a,db:{getVersion:e(()=>o.version,`getVersion`)},renderer:{draw:e((e,i,a)=>{t.debug(`rendering info diagram
|
|
2
2
|
`+e);let o=r(i);n(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./chunk-X3CZISLH-ChyOdCnY.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./chunk-X3CZISLH-ChyOdCnY.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-zk1cX9hK.js";import{t as d}from"./chunk-CLGD4ZFX-CuX1dWxe.js";import{p as f}from"./chunk-75Z2AOVW-BbE6Kwgh.js";import{t as p}from"./rough.esm-Dy-Kn_BL.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./chunk-X3CZISLH-ChyOdCnY.js";import{H as t,K as n,U as r,a as i,c as a,v as o,w as s,x as c,y as l}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./chunk-X3CZISLH-ChyOdCnY.js";import{H as t,K as n,U as r,a as i,c as a,v as o,w as s,x as c,y as l}from"./chunk-DU6HZSFF-zk1cX9hK.js";import{Bt as u,ut as d}from"./vendor-utils-C1xaEGmb.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-F27PBJKO-B30QZPgt.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,5]),t(n,[2,6]),t(n,[2,8]),{13:[1,16]},{15:[1,17]},t(n,[2,11]),t(n,[2,12]),{19:[1,18]},t(n,[2,4]),t(n,[2,9]),t(n,[2,10]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./chunk-X3CZISLH-ChyOdCnY.js";import{$ as n,J as r,et as i,f as a,nt as o,x as s,z as c}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./chunk-X3CZISLH-ChyOdCnY.js";import{$ as n,J as r,et as i,f as a,nt as o,x as s,z as c}from"./chunk-DU6HZSFF-zk1cX9hK.js";import{t as l}from"./chunk-CLGD4ZFX-CuX1dWxe.js";import"./chunk-PWAF6VOD-bnJEdC3p.js";import"./chunk-75Z2AOVW-BbE6Kwgh.js";import"./chunk-GMAD6QVW-1bgL6bkT.js";import{t as u}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-P2QGCYS3-8ni2cD3V.js";import"./chunk-4HAMMTFA-47nees_K.js";import{i as d,r as f}from"./chunk-GVQU2GXP-DPd6VgIg.js";import{n as p}from"./chunk-L3NEJ4N5-BU_TE1Gv.js";import{n as m,t as h}from"./chunk-LNGE3PJU-5-SxdO55.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(h,[2,25]),t(h,[2,26]),t(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(g,[2,14],{7:_,11:v}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(h,[2,31]),{21:[1,39]},{22:[1,40]},t(g,[2,13],{7:_,11:v}),t(y,[2,11]),t(y,[2,12]),t(p,[2,15],{24:b}),t(h,[2,30]),{22:[1,41]},t(h,[2,27]),t(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e}from"./vendor-render-BsyPjvQm.js";export{e as default};
|