@intent-hq/web 2.383.1 → 2.383.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{CxFOqPFP.js → -2V-BAm8.js} +3 -3
- package/web/app/immutable/chunks/{nbomrtth.js → -NFtmIGG.js} +1 -1
- package/web/app/immutable/chunks/{CKXQrY3X.js → 0l7ZqDIV.js} +1 -1
- package/web/app/immutable/chunks/{WVvubfLN.js → 38Vg2YF4.js} +2 -2
- package/web/app/immutable/chunks/{CrFyLBfi.js → AqAgOqAP.js} +2 -2
- package/web/app/immutable/chunks/{Dm7KqEFT.js → Ax0sJJJl.js} +13 -13
- package/web/app/immutable/chunks/{BI0hvS48.js → B1Gvj9xq.js} +3 -3
- package/web/app/immutable/chunks/{6GlvsI2m.js → B2EqH2B9.js} +1 -1
- package/web/app/immutable/chunks/{CjpxPpfy.js → B4mnoVZK.js} +1 -1
- package/web/app/immutable/chunks/{CI9sv_EP.js → B4rcpoVl.js} +1 -1
- package/web/app/immutable/chunks/{W7maz5hp.js → B7AnydIV.js} +1 -1
- package/web/app/immutable/chunks/{DwImHc9s.js → BB5q5DsO.js} +1 -1
- package/web/app/immutable/chunks/{DEI5RmgA.js → BB7BFhCP.js} +1 -1
- package/web/app/immutable/chunks/{BFgeFHTs.js → BCo0L43p.js} +1 -1
- package/web/app/immutable/chunks/{Djg1-55Y.js → BD1NjrB7.js} +1 -1
- package/web/app/immutable/chunks/{TiuNiN7j.js → BDUjjuc4.js} +1 -1
- package/web/app/immutable/chunks/{zHu1d_6X.js → BDgY7Zd8.js} +2 -2
- package/web/app/immutable/chunks/{CJO6KBmw.js → BFU4GSWL.js} +1 -1
- package/web/app/immutable/chunks/{BYP8ebQS.js → BGxmHLUr.js} +1 -1
- package/web/app/immutable/chunks/{H9IjxeQk.js → BJA4-3TS.js} +1 -1
- package/web/app/immutable/chunks/{CEOBX1Pf.js → BMiKKOoz.js} +1 -1
- package/web/app/immutable/chunks/{CeHXXIxE.js → BOYBHPRf.js} +1 -1
- package/web/app/immutable/chunks/{oOhxfFIU.js → BQ9VbGlu.js} +1 -1
- package/web/app/immutable/chunks/{T8d_aLDP.js → BT9OtIDj.js} +1 -1
- package/web/app/immutable/chunks/{MQBseMlG.js → BTTEE7GF.js} +1 -1
- package/web/app/immutable/chunks/{DPZcepbV.js → BZ1qE3sd.js} +1 -1
- package/web/app/immutable/chunks/{BwtFad5m.js → BZskJqHK.js} +2 -2
- package/web/app/immutable/chunks/{D4FXvK9L.js → BammBnda.js} +3 -3
- package/web/app/immutable/chunks/{CkmRZ_MC.js → BdgSVihu.js} +1 -1
- package/web/app/immutable/chunks/{C9h2rwKF.js → BhHscwNa.js} +1 -1
- package/web/app/immutable/chunks/{C-O59F9J.js → BkfSBkLs.js} +2 -2
- package/web/app/immutable/chunks/{x63yRqVE.js → BktdbaP2.js} +1 -1
- package/web/app/immutable/chunks/{BbvEB4jz.js → Bok48R2D.js} +1 -1
- package/web/app/immutable/chunks/{Dsf8OM9-.js → Bp3ZrlmO.js} +1 -1
- package/web/app/immutable/chunks/{7GuT70Sz.js → BthP56U0.js} +1 -1
- package/web/app/immutable/chunks/{BLyGObAP.js → BvWOwOTx.js} +3 -3
- package/web/app/immutable/chunks/{BlRYe00B.js → BwOKiDn9.js} +1 -1
- package/web/app/immutable/chunks/{Du_rNq8q.js → BwyO9iAx.js} +1 -1
- package/web/app/immutable/chunks/{DJs4vEjF.js → Byun8_as.js} +1 -1
- package/web/app/immutable/chunks/{CBkpyV7r.js → BzVtDZxE.js} +1 -1
- package/web/app/immutable/chunks/{KH7BHXXb.js → C-n5-Nyi.js} +1 -1
- package/web/app/immutable/chunks/{C6Qw0raF.js → C19Fl1wo.js} +1 -1
- package/web/app/immutable/chunks/{DjHhZWUX.js → C7cQ3lDB.js} +1 -1
- package/web/app/immutable/chunks/{CDAoSo12.js → C89qw-SN.js} +1 -1
- package/web/app/immutable/chunks/{Su2XS_Ru.js → CDXv1PW9.js} +1 -1
- package/web/app/immutable/chunks/{D3C3nNLs.js → CEAKAkFK.js} +1 -1
- package/web/app/immutable/chunks/{Di8eJPr0.js → CGslv4Qq.js} +2 -2
- package/web/app/immutable/chunks/{DaaqgDka.js → CImg9Ht4.js} +1 -1
- package/web/app/immutable/chunks/{DMlkDPxV.js → CKG0fjh3.js} +1 -1
- package/web/app/immutable/chunks/{B6qvxAO7.js → CKOijLzA.js} +1 -1
- package/web/app/immutable/chunks/{CaNxJFJ1.js → CKaMWgJQ.js} +1 -1
- package/web/app/immutable/chunks/{DUhA4bgN.js → CLeH6OyR.js} +1 -1
- package/web/app/immutable/chunks/{h06E2ICA.js → CMiAv123.js} +1 -1
- package/web/app/immutable/chunks/{BCS2G1TZ.js → CUHgqEKH.js} +1 -1
- package/web/app/immutable/chunks/{Zx9hB63s.js → CW2OkXuF.js} +1 -1
- package/web/app/immutable/chunks/{C8JlOzbF.js → CWmACcmS.js} +1 -1
- package/web/app/immutable/chunks/{DSAj_NCN.js → CXR8jfrb.js} +1 -1
- package/web/app/immutable/chunks/{Dzk9iuw9.js → C_-1gUwp.js} +3 -3
- package/web/app/immutable/chunks/{CnAbYuPp.js → C_1Oardw.js} +1 -1
- package/web/app/immutable/chunks/{Rx5mQeGT.js → CfdQaRg7.js} +4 -4
- package/web/app/immutable/chunks/{Bq_wOSEp.js → CgLuwxkV.js} +1 -1
- package/web/app/immutable/chunks/{M-TVgx-R.js → ChUo5Z7l.js} +1 -1
- package/web/app/immutable/chunks/{BlVYr5cA.js → CiNhMqq1.js} +1 -1
- package/web/app/immutable/chunks/{B8VxRkn_.js → CiieGSUV.js} +1 -1
- package/web/app/immutable/chunks/{CL-lzPGU.js → CnljYLZs.js} +1 -1
- package/web/app/immutable/chunks/{DmXAUF0G.js → CpdAeaX0.js} +1 -1
- package/web/app/immutable/chunks/{DduCxuVq.js → CpxEaO9r.js} +1 -1
- package/web/app/immutable/chunks/{DsT1iX_Q.js → CrJMkG_1.js} +2 -2
- package/web/app/immutable/chunks/{BAP-Km9w.js → CslzdKY2.js} +1 -1
- package/web/app/immutable/chunks/{CDNvYbvS.js → CtIGR2R7.js} +1 -1
- package/web/app/immutable/chunks/{yaHL2zPw.js → Cuvcpuwl.js} +1 -1
- package/web/app/immutable/chunks/{BtHTHBJp.js → CzXkTVR8.js} +1 -1
- package/web/app/immutable/chunks/{CiSIqqOJ.js → D1QHqX16.js} +1 -1
- package/web/app/immutable/chunks/{0PdeE_M-.js → D23uZeQI.js} +1 -1
- package/web/app/immutable/chunks/D3a_DhRG.js +10 -0
- package/web/app/immutable/chunks/{q6F-1__g.js → D4QkxipA.js} +1 -1
- package/web/app/immutable/chunks/{BBws4Cyt.js → D59f5vu3.js} +1 -1
- package/web/app/immutable/chunks/{CDCEiDxP.js → D6J72aTz.js} +3 -3
- package/web/app/immutable/chunks/{DPzOIlu9.js → D83rapov.js} +1 -1
- package/web/app/immutable/chunks/{DrHfN5GT.js → DCQ9cJhS.js} +1 -1
- package/web/app/immutable/chunks/{Dr0V5Z_Q.js → DCq92KiG.js} +1 -1
- package/web/app/immutable/chunks/{Ddq8SBEz.js → DD98YGoG.js} +1 -1
- package/web/app/immutable/chunks/{CHXhxB4Q.js → DEIwQ6hO.js} +1 -1
- package/web/app/immutable/chunks/{BY9RbRJy.js → DGXU2Eur.js} +1 -1
- package/web/app/immutable/chunks/{CbO3oDHw.js → DKYFDagY.js} +1 -1
- package/web/app/immutable/chunks/{BK6a0pzX.js → DLZnxjXG.js} +1 -1
- package/web/app/immutable/chunks/{469banqV.js → DLbnXb7P.js} +3 -3
- package/web/app/immutable/chunks/{CJVoHxzN.js → DPPrfCEc.js} +1 -1
- package/web/app/immutable/chunks/{KSLBBJRy.js → DQ0P5vIc.js} +1 -1
- package/web/app/immutable/chunks/{DME_6OFx.js → DR9rgOUR.js} +1 -1
- package/web/app/immutable/chunks/{D-YGlaxj.js → DUdBCfQ2.js} +1 -1
- package/web/app/immutable/chunks/{BxVnbYG1.js → DUxx6wT8.js} +1 -1
- package/web/app/immutable/chunks/{DPyomP91.js → DVnAuhkJ.js} +1 -1
- package/web/app/immutable/chunks/{azpKokvz.js → DWG0la6r.js} +1 -1
- package/web/app/immutable/chunks/{BTw9kxtg.js → DcTV3q3a.js} +1 -1
- package/web/app/immutable/chunks/{D-dukRlA.js → Dcuzm8gD.js} +1 -1
- package/web/app/immutable/chunks/{DDJ_XVek.js → Df5fc__K.js} +2 -2
- package/web/app/immutable/chunks/{BjRQQ_jq.js → DhN_Bb70.js} +4 -4
- package/web/app/immutable/chunks/{DmaEU7hb.js → Dipy9ZkR.js} +1 -1
- package/web/app/immutable/chunks/{BvPbguyx.js → Dj5oY4MN.js} +1 -1
- package/web/app/immutable/chunks/{P-T74LCo.js → Dkwg3iDV.js} +3 -3
- package/web/app/immutable/chunks/{XHPDEELd.js → DlrDVrrH.js} +1 -1
- package/web/app/immutable/chunks/{MI7EtNv0.js → DpCuuI0h.js} +1 -1
- package/web/app/immutable/chunks/{BwhjiNjC.js → DqRH8mOo.js} +1 -1
- package/web/app/immutable/chunks/{bF6PpsOD.js → JhwNDffI.js} +1 -1
- package/web/app/immutable/chunks/{BPzekfWN.js → Jmsfhy4p.js} +1 -1
- package/web/app/immutable/chunks/{DOhJfAZG.js → LFBaWgJg.js} +1 -1
- package/web/app/immutable/chunks/{Ck2X3Rvg.js → QXKw7ybW.js} +1 -1
- package/web/app/immutable/chunks/{nImP7yvb.js → SDWlqEse.js} +1 -1
- package/web/app/immutable/chunks/{BXhT5rHA.js → WAmymGEm.js} +1 -1
- package/web/app/immutable/chunks/{Cxf6ur9F.js → a6nBCKTJ.js} +1 -1
- package/web/app/immutable/chunks/{Cofxvpdb.js → bB4pIooo.js} +1 -1
- package/web/app/immutable/chunks/{Ckb6le-m.js → eBfEHUcb.js} +4 -4
- package/web/app/immutable/chunks/{BvbTU4IL.js → gRz70TuX.js} +1 -1
- package/web/app/immutable/chunks/{BkITif4J.js → hrbt6TUA.js} +1 -1
- package/web/app/immutable/chunks/{Fdd73CJo.js → m6g2qs4v.js} +1 -1
- package/web/app/immutable/chunks/{DqMqjmmT.js → mlIdQnJX.js} +2 -2
- package/web/app/immutable/chunks/{BNkpVy97.js → p-4Usjf1.js} +1 -1
- package/web/app/immutable/chunks/{BI3a2AWW.js → pf1qexdH.js} +1 -1
- package/web/app/immutable/chunks/{Dhzl8ugO.js → sjYi8iFk.js} +1 -1
- package/web/app/immutable/chunks/{CnqJXAKo.js → uA-KbK5l.js} +1 -1
- package/web/app/immutable/chunks/{Div5PXT-.js → ufC4F9mx.js} +2 -2
- package/web/app/immutable/chunks/{DOUbieNj.js → v1V9O0KC.js} +1 -1
- package/web/app/immutable/chunks/{DlEmrQXN.js → wh8BTzW1.js} +2 -2
- package/web/app/immutable/chunks/{CGIQkN5K.js → yC4xveeV.js} +1 -1
- package/web/app/immutable/chunks/{ByfS7UIX.js → yYvyTKgb.js} +1 -1
- package/web/app/immutable/chunks/{BAzzHP-D.js → zw9aQKYl.js} +1 -1
- package/web/app/immutable/entry/{app.CgYQGiwi.js → app.CeAiZV-v.js} +2 -2
- package/web/app/immutable/entry/start.DrVPJx5Z.js +1 -0
- package/web/app/immutable/nodes/{0.DOOOI3Bo.js → 0.D2I9SFzE.js} +1 -1
- package/web/app/immutable/nodes/{1.DCbWOuyY.js → 1.CHeML-3-.js} +1 -1
- package/web/app/immutable/nodes/{10.DkhUAhty.js → 10.CPMi8QX9.js} +4 -4
- package/web/app/immutable/nodes/{11.DDwWhO0Z.js → 11.DOD-sh-z.js} +1 -1
- package/web/app/immutable/nodes/{15.Dw1bH9Zl.js → 15.BXDyjjHm.js} +1 -1
- package/web/app/immutable/nodes/{19.BDZr-fpl.js → 19.BEUhM4Xw.js} +2 -2
- package/web/app/immutable/nodes/{2.BXcXLNQd.js → 2.CeC42N_5.js} +4 -4
- package/web/app/immutable/nodes/{3.DSd1hRZn.js → 3.-_yjscmj.js} +1 -1
- package/web/app/immutable/nodes/{4.BkWwx_VF.js → 4.CdQdgUhv.js} +1 -1
- package/web/app/immutable/nodes/{5.y9tMc2yb.js → 5.jUP9W-D7.js} +1 -1
- package/web/app/immutable/nodes/{6.BosoYTZK.js → 6.B0WnMraI.js} +1 -1
- package/web/app/immutable/nodes/{7.BX-dUHAQ.js → 7.DAEOmrZS.js} +1 -1
- package/web/app/immutable/nodes/{8.DUR07SoM.js → 8.D1Q1AivC.js} +1 -1
- package/web/app/immutable/nodes/{9.Cw56XQ1G.js → 9.C5Qv23W5.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/i_QPvq4q.js +0 -10
- package/web/app/immutable/entry/start.C_kFKw1E.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as v,_ as h}from"./C0QTy0Sy.js";import{a as S}from"./BdWqymET.js";import{bq as A,Jv as k,m as T,H_ as C,G_ as D,vt as j,vr as B,vI as V,nE as z}from"./tr-2J8Mf.js";import{bL as $}from"./BFgeFHTs.js";import{m as R}from"./BmTMWrby.js";import"./3SdAC2_C.js";import"./7UPrdiE9.js";import"./CrD0jtXE.js";import{R as N,F as g,E as G,Q as O}from"./DCRuihKm.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import{o as q}from"./L_tYoUCb.js";import{i as F}from"./BBWuirRW.js";const y=new WeakMap;function ye(e,t){const a=n=>{n&&n!=="new"?y.set(e,n):y.delete(e)};return a(t),{update:a,destroy(){y.delete(e)}}}function K(e){for(let t=e;t;t=t.parentElement){const a=y.get(t);if(a)return a}}function J(e,t){const a=e?.closest("[data-workspace-link-target]")?.dataset.workspaceLinkTarget;return{openInWorkspace:!!t&&a===t,panelId:e?.closest("[data-panel-id]")?.dataset.panelId,assistantLayoutId:e?.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId,surfaceWorkspaceId:K(e)}}const s=new S("LinkHandler");async function Q(e,t){try{const a=t.event?.target,n=J(a instanceof Element?a:null,t.workspaceId),o=t.openInWorkspace??n.openInWorkspace,r=o?void 0:t.sourcePanelId||n.panelId,{assistantLayoutId:l}=n,u=t.workspaceId??(n.surfaceWorkspaceId?A(n.surfaceWorkspaceId):void 0);if(t={...t,workspaceId:u,openInWorkspace:o,sourcePanelId:r},t.customHandler&&await t.customHandler(e))return s.debug("Link handled by custom handler",{url:e}),!0;if(/^workspace-asset:/i.test(e.trim()))return R.error(v.ui_linkHandler_assetUnavailable_error()),!1;const i=N(e),{event:d}=t,f=i&&d&&!g(t)?t.githubLinkDefaultAction??q.select(k.state):void 0,c=!f||f==="open-in-app";if(t.workspaceId===T&&!t.forceExternal&&c){const{showAssistantContent:m}=await h(async()=>{const{showAssistantContent:_}=await import("./Div5PXT-.js");return{showAssistantContent:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),I=t.rawHref?.startsWith("/workspace/")?t.rawHref:e;if(await m(I,{layoutId:l}))return!0}if(e.startsWith("intent://"))return await X(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await Y(e,{...t,sourcePanelId:r});const p=ne(e,t.rawHref);if(p)return await re(p.path,{...t,sourcePanelId:r},p.fromResolvedUrl);if(e.startsWith("http://")||e.startsWith("https://")){if(G(e))return s.debug("Auth URL detected, opening in external browser",{url:e}),await w(e);if(t.forceExternal)return await w(e);if(o&&c||g(t))return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):(s.debug("No workspaceId available, opening in external browser",{url:e}),await w(e));if(i&&d&&f)switch(f){case"open-in-browser":return await w(e);case"open-in-app":return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):await w(e);case"copy-link":return await $(e),!0;case"start-workspace":return k.dispatch(C({...i,url:e})),k.dispatch(D(!0)),!0;case"show-choices":return await oe(e,i,d,t,l)}return await w(e)}return e.startsWith("file://")?t.canOpenFile?.()===!1?!1:await H(e):(s.warn("Unknown link type, falling back to external browser",{url:e}),await w(e))}catch(a){return s.error("Failed to handle link",{url:e,error:a}),!1}}async function X(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./WVvubfLN.js");return{parseIntentLink:l,handleIntentLink:u}},__vite__mapDeps([24,1,2,25,11,7,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39,40,22,41,42,23]),import.meta.url),o=a(e);if(t.canOpenFile&&o.type==="file"&&!t.canOpenFile())return!1;const r=o.workspaceId?A(o.workspaceId):t.workspaceId;return o.valid&&o.type!=="workspace"&&await L(r,t),P(t),await n(e,{workspaceId:t.openInWorkspace?r:t.workspaceId,sourcePanelId:t.sourcePanelId,openInAdjacentPanel:t.openInAdjacentPanel??g(t),openInNewAdjacentPanel:t.openInNewAdjacentPanel??!1})}catch(a){return s.error("Failed to handle intent link",{url:e,error:a}),!1}}async function Y(e,t){try{const a=e.match(/^devspace:\/\/terminal\/(.+)$/);if(a){if(!t.workspaceId)return s.warn("Cannot open terminal without workspaceId",{url:e}),!1;const n=decodeURIComponent(a[1]);s.debug("Opening terminal from devspace link",{terminalId:n,workspaceId:t.workspaceId}),await L(t.workspaceId,t),P(t);const o={type:"terminal",title:v.layout_tabTypes_terminal_title(),terminalId:n,closable:!0};return g(t)?k.dispatch(j(t.workspaceId,o,t.sourcePanelId)):k.dispatch(B(t.workspaceId,o)),!0}return s.warn("Unhandled devspace:// link type",{url:e}),!1}catch(a){return s.error("Failed to handle devspace link",{url:e,error:a}),!1}}const Z=/^[a-z][a-z0-9+.-]*:/i,x=/^[a-z]:\/(?!\/)/i;function W(e){return e.replace(/\\/g,"/")}function ee(e){try{return W(decodeURIComponent(e))}catch{return null}}function te(e){return e.split("/").some(t=>t==="..")}function ae(e){const t=e.split("/").filter(a=>a&&a!==".");return t.length===0||t.some(a=>a==="..")?null:t.join("/")}async function L(e,t){if(!t.openInWorkspace||!e)return;const{openAndShowWorkspace:a}=await h(async()=>{const{openAndShowWorkspace:n}=await import("./Cxf6ur9F.js").then(o=>o.s);return{openAndShowWorkspace:n}},__vite__mapDeps([45,4,2,3,5,6,7,8,1,9,10,11,46,47]),import.meta.url);try{await a(e)}catch(n){throw R.error(v.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:v.ui_linkHandler_unknownError_label()}),n}}function P(e){!e.workspaceId||!e.sourcePanelId||k.dispatch(z(e.workspaceId,e.sourcePanelId))}function ne(e,t){const a=t??e;if(a){if(a.startsWith("#"))return null;const n=O(a).path;if(!a.startsWith("//")&&(x.test(W(n))||!Z.test(n)))return{path:a,fromResolvedUrl:!1}}if((e.startsWith("http://")||e.startsWith("https://"))&&typeof window<"u")try{const n=new URL(e);if(n.origin===window.location.origin)return{path:n.pathname+n.hash,fromResolvedUrl:!0}}catch{}return null}async function re(e,t,a){try{if(t.canOpenFile?.()===!1)return!1;const n=O(e),o=ee(n.path);if(!o||o.includes("\0"))return!1;let r=o;const{line:l,column:u}=n,{workspaceId:i}=t;if(!i)return s.warn("Cannot open file link without workspaceId",{path:r}),!1;if(te(r))return s.warn("Rejected file link with path traversal",{path:r}),!1;if(r.startsWith("/")||x.test(r)){const{selectWorkspaceById:c}=await h(async()=>{const{selectWorkspaceById:b}=await import("./BaujsV9k.js").then(M=>M.ee);return{selectWorkspaceById:b}},__vite__mapDeps([40,10,7,1,2,3,4,5,6,8,9,11,35,30,26,16,17,29,22,14,15,18,41,32]),import.meta.url),p=c.select(k.state,i),m=p?.worktreePath??p?.path,I=m?W(m):void 0,_=I?.endsWith("/")?I.slice(0,-1):I;if(_&&r.startsWith(`${_}/`))r=r.slice(_.length+1);else if(a)r=r.replace(/^\/+/,"");else{s.debug("Absolute path outside workspace root, opening in external editor",{path:r});const b=l===void 0?"":`:${l}${u===void 0?"":`:${u}`}`;return await H(`file://${r}${b}`)}}const d=ae(r);if(!d)return s.warn("Rejected invalid workspace file link",{path:r}),!1;r=d;const f=g(t);return await L(i,t),P(t),k.dispatch(V(i,r,{filePathIsLiteral:!0,line:l,openInAdjacentPanel:f,...t.sourcePanelId?{sourcePanelId:t.sourcePanelId}:{}})),s.debug("Opened file link in workspace file viewer",{path:r,workspaceId:i,line:l}),!0}catch(n){return s.error("Failed to open file link",{target:e,error:n}),!1}}async function oe(e,t,a,{workspaceId:n,openInWorkspace:o,sourcePanelId:r},l){try{const{showLinkActionMenu:u}=await h(async()=>{const{showLinkActionMenu:p}=await import("./CGcJ5lqH.js");return{showLinkActionMenu:p}},__vite__mapDeps([48,2]),import.meta.url),i=a.target instanceof HTMLElement?a.target:null;let d=a instanceof MouseEvent?a.clientX:0,f=a instanceof MouseEvent?a.clientY:0;if(d===0&&f===0&&i){const p=i.getBoundingClientRect();d=p.left,f=p.bottom}const c=u({url:e,gitHubRef:t,x:d,y:f,workspaceId:n,anchorElement:i,openInWorkspace:o??!1,sourcePanelId:r,assistantLayoutId:l});return t.kind==="pr"&&se(c,e),s.debug("Opened link action menu",{url:e,workspaceId:n}),!0}catch(u){return s.warn("Failed to open link action menu, falling back to external browser",{url:e,error:u}),await w(e)}}function se(e,t){h(async()=>{const{loadLinkActionMenuLinkedWorkspaces:a}=await import("./BxJ6X-Sl.js");return{loadLinkActionMenuLinkedWorkspaces:a}},__vite__mapDeps([49,12,13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,40,35,30,26,29,41,32,48]),import.meta.url).then(({loadLinkActionMenuLinkedWorkspaces:a})=>a(e,t)).catch(a=>{s.debug("PR workspace lookup unavailable",{url:t,error:a})})}async function ie(e){try{return await L(e,{openInWorkspace:!0}),!0}catch(t){return s.warn("Failed to open linked workspace",{workspaceId:e,error:t}),!1}}async function E(e,t,a={}){if(t===T){try{const{showAssistantContent:o}=await h(async()=>{const{showAssistantContent:r}=await import("./Div5PXT-.js");return{showAssistantContent:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await o(e,{layoutId:a.assistantLayoutId}))return!0}catch(o){s.warn("Assistant panel unavailable, opening in external browser",{url:e,error:o})}return await w(e)}try{await L(t,a)}catch(o){return s.warn("Failed to enter workspace for in-app link",{url:e,workspaceId:t,error:o}),!1}const n=a.openInWorkspace?void 0:a.sourcePanelId;return await U(e,t,n)}async function U(e,t,a){let n=e,o;try{const{resolveBrowserLinkForOpen:r}=await h(async()=>{const{resolveBrowserLinkForOpen:u}=await import("./ozVAo4aX.js").then(i=>i.b);return{resolveBrowserLinkForOpen:u}},__vite__mapDeps([50,25,11,7,1,2,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39]),import.meta.url),l=await r(e);n=l.url,o=l.requestedUrl}catch(r){s.warn("URL resolution failed, opening the URL unresolved",{url:e,error:r})}try{P({workspaceId:t,sourcePanelId:a});const{getPanelLayoutManager:r}=await h(async()=>{const{getPanelLayoutManager:u}=await import("./DA5opfEp.js").then(i=>i.p);return{getPanelLayoutManager:u}},__vite__mapDeps([51,3,4,2,5,6,7,8,1,9,10,11,43]),import.meta.url);return r(t).openBrowserPanel(n,void 0,a,o),s.debug("Opened URL in browser panel",{url:e,targetUrl:n,workspaceId:t}),!0}catch(r){return s.warn("Failed to open URL in browser panel, falling back to external browser",{url:e,error:r}),await w(n)}}async function w(e){try{return await F("shell:openExternal",{url:e}),s.debug("Opened URL in external browser",{url:e}),!0}catch(t){return s.error("Failed to open URL in external browser",{url:e,error:t}),!1}}async function H(e){try{const t=e.replace("file://","");return typeof window<"u"&&window.electronAPI?(await F("shell:openExternal",{url:`vscode://file/${t}`}),s.debug("Opened file in external editor",{filePath:t}),!0):!1}catch(t){return s.error("Failed to open file in external editor",{url:e,error:t}),!1}}function ce(e,t={}){let a=null,n=null,o=null;async function r(){if(!n||!o){const d=await h(()=>import("./DCRuihKm.js").then(f=>f.K),__vite__mapDeps([14,1,2,11,7,15,10,16,8,17,18]),import.meta.url);n=d.showLinkTooltip,o=d.hideLinkTooltip}}function l(d){const c=d.target.closest("a");if(c?.href&&!c.href.startsWith("intent://")&&!c.href.startsWith("devspace://")){if(c===a)return;a=c;const p=t.workspaceId??c.closest("[data-workspace-id]")?.dataset.workspaceId??c.closest("[data-workspace-surface]")?.dataset.workspaceSurface;r().then(()=>{a===c&&n&&n(c,c.href,p)})}else a&&(a=null,o?.())}function u(d){const c=d.target.closest("a");if(c&&c===a){const p=d.relatedTarget;if(p&&c.contains(p))return;a=null,o?.()}}function i(){a&&(a=null,o?.())}return e.addEventListener("mouseover",l),e.addEventListener("mouseout",u),e.addEventListener("click",i),()=>{e.removeEventListener("mouseover",l),e.removeEventListener("mouseout",u),e.removeEventListener("click",i),o?.()}}const ve=Object.freeze(Object.defineProperty({__proto__:null,createLinkTooltipHandler:ce,handleLink:Q,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,Q as h,ve as l,w as o,J as r,ye as w};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/ufC4F9mx.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/C6mS8uZB.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/38Vg2YF4.js","/app/immutable/chunks/BmTMWrby.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/FzlZUztb.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/-K3ARgq0.js","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/B4SiDSWP.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/DLwWVKiF.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/S845NCb3.js","/app/immutable/chunks/EK6zOAHM.js","/app/immutable/chunks/B2nCyo89.js","/app/immutable/chunks/a6nBCKTJ.js","/app/immutable/chunks/CGslv4Qq.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/BxJ6X-Sl.js","/app/immutable/chunks/ozVAo4aX.js","/app/immutable/chunks/DA5opfEp.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as v,_ as h}from"./C0QTy0Sy.js";import{a as S}from"./BdWqymET.js";import{bq as A,Jv as k,m as T,H_ as C,G_ as D,vt as j,vr as B,vI as V,nE as z}from"./tr-2J8Mf.js";import{bL as $}from"./BCo0L43p.js";import{m as R}from"./BmTMWrby.js";import"./3SdAC2_C.js";import"./7UPrdiE9.js";import"./CrD0jtXE.js";import{R as N,F as g,E as G,Q as O}from"./DCRuihKm.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import{o as q}from"./L_tYoUCb.js";import{i as F}from"./BBWuirRW.js";const y=new WeakMap;function ye(e,t){const a=n=>{n&&n!=="new"?y.set(e,n):y.delete(e)};return a(t),{update:a,destroy(){y.delete(e)}}}function K(e){for(let t=e;t;t=t.parentElement){const a=y.get(t);if(a)return a}}function J(e,t){const a=e?.closest("[data-workspace-link-target]")?.dataset.workspaceLinkTarget;return{openInWorkspace:!!t&&a===t,panelId:e?.closest("[data-panel-id]")?.dataset.panelId,assistantLayoutId:e?.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId,surfaceWorkspaceId:K(e)}}const s=new S("LinkHandler");async function Q(e,t){try{const a=t.event?.target,n=J(a instanceof Element?a:null,t.workspaceId),o=t.openInWorkspace??n.openInWorkspace,r=o?void 0:t.sourcePanelId||n.panelId,{assistantLayoutId:l}=n,u=t.workspaceId??(n.surfaceWorkspaceId?A(n.surfaceWorkspaceId):void 0);if(t={...t,workspaceId:u,openInWorkspace:o,sourcePanelId:r},t.customHandler&&await t.customHandler(e))return s.debug("Link handled by custom handler",{url:e}),!0;if(/^workspace-asset:/i.test(e.trim()))return R.error(v.ui_linkHandler_assetUnavailable_error()),!1;const i=N(e),{event:d}=t,f=i&&d&&!g(t)?t.githubLinkDefaultAction??q.select(k.state):void 0,c=!f||f==="open-in-app";if(t.workspaceId===T&&!t.forceExternal&&c){const{showAssistantContent:m}=await h(async()=>{const{showAssistantContent:_}=await import("./ufC4F9mx.js");return{showAssistantContent:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),I=t.rawHref?.startsWith("/workspace/")?t.rawHref:e;if(await m(I,{layoutId:l}))return!0}if(e.startsWith("intent://"))return await X(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await Y(e,{...t,sourcePanelId:r});const p=ne(e,t.rawHref);if(p)return await re(p.path,{...t,sourcePanelId:r},p.fromResolvedUrl);if(e.startsWith("http://")||e.startsWith("https://")){if(G(e))return s.debug("Auth URL detected, opening in external browser",{url:e}),await w(e);if(t.forceExternal)return await w(e);if(o&&c||g(t))return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):(s.debug("No workspaceId available, opening in external browser",{url:e}),await w(e));if(i&&d&&f)switch(f){case"open-in-browser":return await w(e);case"open-in-app":return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):await w(e);case"copy-link":return await $(e),!0;case"start-workspace":return k.dispatch(C({...i,url:e})),k.dispatch(D(!0)),!0;case"show-choices":return await oe(e,i,d,t,l)}return await w(e)}return e.startsWith("file://")?t.canOpenFile?.()===!1?!1:await H(e):(s.warn("Unknown link type, falling back to external browser",{url:e}),await w(e))}catch(a){return s.error("Failed to handle link",{url:e,error:a}),!1}}async function X(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./38Vg2YF4.js");return{parseIntentLink:l,handleIntentLink:u}},__vite__mapDeps([24,1,2,25,11,7,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39,40,22,41,42,23]),import.meta.url),o=a(e);if(t.canOpenFile&&o.type==="file"&&!t.canOpenFile())return!1;const r=o.workspaceId?A(o.workspaceId):t.workspaceId;return o.valid&&o.type!=="workspace"&&await L(r,t),P(t),await n(e,{workspaceId:t.openInWorkspace?r:t.workspaceId,sourcePanelId:t.sourcePanelId,openInAdjacentPanel:t.openInAdjacentPanel??g(t),openInNewAdjacentPanel:t.openInNewAdjacentPanel??!1})}catch(a){return s.error("Failed to handle intent link",{url:e,error:a}),!1}}async function Y(e,t){try{const a=e.match(/^devspace:\/\/terminal\/(.+)$/);if(a){if(!t.workspaceId)return s.warn("Cannot open terminal without workspaceId",{url:e}),!1;const n=decodeURIComponent(a[1]);s.debug("Opening terminal from devspace link",{terminalId:n,workspaceId:t.workspaceId}),await L(t.workspaceId,t),P(t);const o={type:"terminal",title:v.layout_tabTypes_terminal_title(),terminalId:n,closable:!0};return g(t)?k.dispatch(j(t.workspaceId,o,t.sourcePanelId)):k.dispatch(B(t.workspaceId,o)),!0}return s.warn("Unhandled devspace:// link type",{url:e}),!1}catch(a){return s.error("Failed to handle devspace link",{url:e,error:a}),!1}}const Z=/^[a-z][a-z0-9+.-]*:/i,x=/^[a-z]:\/(?!\/)/i;function W(e){return e.replace(/\\/g,"/")}function ee(e){try{return W(decodeURIComponent(e))}catch{return null}}function te(e){return e.split("/").some(t=>t==="..")}function ae(e){const t=e.split("/").filter(a=>a&&a!==".");return t.length===0||t.some(a=>a==="..")?null:t.join("/")}async function L(e,t){if(!t.openInWorkspace||!e)return;const{openAndShowWorkspace:a}=await h(async()=>{const{openAndShowWorkspace:n}=await import("./a6nBCKTJ.js").then(o=>o.s);return{openAndShowWorkspace:n}},__vite__mapDeps([45,4,2,3,5,6,7,8,1,9,10,11,46,47]),import.meta.url);try{await a(e)}catch(n){throw R.error(v.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:v.ui_linkHandler_unknownError_label()}),n}}function P(e){!e.workspaceId||!e.sourcePanelId||k.dispatch(z(e.workspaceId,e.sourcePanelId))}function ne(e,t){const a=t??e;if(a){if(a.startsWith("#"))return null;const n=O(a).path;if(!a.startsWith("//")&&(x.test(W(n))||!Z.test(n)))return{path:a,fromResolvedUrl:!1}}if((e.startsWith("http://")||e.startsWith("https://"))&&typeof window<"u")try{const n=new URL(e);if(n.origin===window.location.origin)return{path:n.pathname+n.hash,fromResolvedUrl:!0}}catch{}return null}async function re(e,t,a){try{if(t.canOpenFile?.()===!1)return!1;const n=O(e),o=ee(n.path);if(!o||o.includes("\0"))return!1;let r=o;const{line:l,column:u}=n,{workspaceId:i}=t;if(!i)return s.warn("Cannot open file link without workspaceId",{path:r}),!1;if(te(r))return s.warn("Rejected file link with path traversal",{path:r}),!1;if(r.startsWith("/")||x.test(r)){const{selectWorkspaceById:c}=await h(async()=>{const{selectWorkspaceById:b}=await import("./BaujsV9k.js").then(M=>M.ee);return{selectWorkspaceById:b}},__vite__mapDeps([40,10,7,1,2,3,4,5,6,8,9,11,35,30,26,16,17,29,22,14,15,18,41,32]),import.meta.url),p=c.select(k.state,i),m=p?.worktreePath??p?.path,I=m?W(m):void 0,_=I?.endsWith("/")?I.slice(0,-1):I;if(_&&r.startsWith(`${_}/`))r=r.slice(_.length+1);else if(a)r=r.replace(/^\/+/,"");else{s.debug("Absolute path outside workspace root, opening in external editor",{path:r});const b=l===void 0?"":`:${l}${u===void 0?"":`:${u}`}`;return await H(`file://${r}${b}`)}}const d=ae(r);if(!d)return s.warn("Rejected invalid workspace file link",{path:r}),!1;r=d;const f=g(t);return await L(i,t),P(t),k.dispatch(V(i,r,{filePathIsLiteral:!0,line:l,openInAdjacentPanel:f,...t.sourcePanelId?{sourcePanelId:t.sourcePanelId}:{}})),s.debug("Opened file link in workspace file viewer",{path:r,workspaceId:i,line:l}),!0}catch(n){return s.error("Failed to open file link",{target:e,error:n}),!1}}async function oe(e,t,a,{workspaceId:n,openInWorkspace:o,sourcePanelId:r},l){try{const{showLinkActionMenu:u}=await h(async()=>{const{showLinkActionMenu:p}=await import("./CGcJ5lqH.js");return{showLinkActionMenu:p}},__vite__mapDeps([48,2]),import.meta.url),i=a.target instanceof HTMLElement?a.target:null;let d=a instanceof MouseEvent?a.clientX:0,f=a instanceof MouseEvent?a.clientY:0;if(d===0&&f===0&&i){const p=i.getBoundingClientRect();d=p.left,f=p.bottom}const c=u({url:e,gitHubRef:t,x:d,y:f,workspaceId:n,anchorElement:i,openInWorkspace:o??!1,sourcePanelId:r,assistantLayoutId:l});return t.kind==="pr"&&se(c,e),s.debug("Opened link action menu",{url:e,workspaceId:n}),!0}catch(u){return s.warn("Failed to open link action menu, falling back to external browser",{url:e,error:u}),await w(e)}}function se(e,t){h(async()=>{const{loadLinkActionMenuLinkedWorkspaces:a}=await import("./BxJ6X-Sl.js");return{loadLinkActionMenuLinkedWorkspaces:a}},__vite__mapDeps([49,12,13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,40,35,30,26,29,41,32,48]),import.meta.url).then(({loadLinkActionMenuLinkedWorkspaces:a})=>a(e,t)).catch(a=>{s.debug("PR workspace lookup unavailable",{url:t,error:a})})}async function ie(e){try{return await L(e,{openInWorkspace:!0}),!0}catch(t){return s.warn("Failed to open linked workspace",{workspaceId:e,error:t}),!1}}async function E(e,t,a={}){if(t===T){try{const{showAssistantContent:o}=await h(async()=>{const{showAssistantContent:r}=await import("./ufC4F9mx.js");return{showAssistantContent:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await o(e,{layoutId:a.assistantLayoutId}))return!0}catch(o){s.warn("Assistant panel unavailable, opening in external browser",{url:e,error:o})}return await w(e)}try{await L(t,a)}catch(o){return s.warn("Failed to enter workspace for in-app link",{url:e,workspaceId:t,error:o}),!1}const n=a.openInWorkspace?void 0:a.sourcePanelId;return await U(e,t,n)}async function U(e,t,a){let n=e,o;try{const{resolveBrowserLinkForOpen:r}=await h(async()=>{const{resolveBrowserLinkForOpen:u}=await import("./ozVAo4aX.js").then(i=>i.b);return{resolveBrowserLinkForOpen:u}},__vite__mapDeps([50,25,11,7,1,2,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39]),import.meta.url),l=await r(e);n=l.url,o=l.requestedUrl}catch(r){s.warn("URL resolution failed, opening the URL unresolved",{url:e,error:r})}try{P({workspaceId:t,sourcePanelId:a});const{getPanelLayoutManager:r}=await h(async()=>{const{getPanelLayoutManager:u}=await import("./DA5opfEp.js").then(i=>i.p);return{getPanelLayoutManager:u}},__vite__mapDeps([51,3,4,2,5,6,7,8,1,9,10,11,43]),import.meta.url);return r(t).openBrowserPanel(n,void 0,a,o),s.debug("Opened URL in browser panel",{url:e,targetUrl:n,workspaceId:t}),!0}catch(r){return s.warn("Failed to open URL in browser panel, falling back to external browser",{url:e,error:r}),await w(n)}}async function w(e){try{return await F("shell:openExternal",{url:e}),s.debug("Opened URL in external browser",{url:e}),!0}catch(t){return s.error("Failed to open URL in external browser",{url:e,error:t}),!1}}async function H(e){try{const t=e.replace("file://","");return typeof window<"u"&&window.electronAPI?(await F("shell:openExternal",{url:`vscode://file/${t}`}),s.debug("Opened file in external editor",{filePath:t}),!0):!1}catch(t){return s.error("Failed to open file in external editor",{url:e,error:t}),!1}}function ce(e,t={}){let a=null,n=null,o=null;async function r(){if(!n||!o){const d=await h(()=>import("./DCRuihKm.js").then(f=>f.K),__vite__mapDeps([14,1,2,11,7,15,10,16,8,17,18]),import.meta.url);n=d.showLinkTooltip,o=d.hideLinkTooltip}}function l(d){const c=d.target.closest("a");if(c?.href&&!c.href.startsWith("intent://")&&!c.href.startsWith("devspace://")){if(c===a)return;a=c;const p=t.workspaceId??c.closest("[data-workspace-id]")?.dataset.workspaceId??c.closest("[data-workspace-surface]")?.dataset.workspaceSurface;r().then(()=>{a===c&&n&&n(c,c.href,p)})}else a&&(a=null,o?.())}function u(d){const c=d.target.closest("a");if(c&&c===a){const p=d.relatedTarget;if(p&&c.contains(p))return;a=null,o?.()}}function i(){a&&(a=null,o?.())}return e.addEventListener("mouseover",l),e.addEventListener("mouseout",u),e.addEventListener("click",i),()=>{e.removeEventListener("mouseover",l),e.removeEventListener("mouseout",u),e.removeEventListener("click",i),o?.()}}const ve=Object.freeze(Object.defineProperty({__proto__:null,createLinkTooltipHandler:ce,handleLink:Q,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,Q as h,ve as l,w as o,J as r,ye as w};
|