@intent-hq/web 2.372.0 → 2.372.2
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/{CU0T1_4H.js → 1mJrE3jk.js} +1 -1
- package/web/app/immutable/chunks/{Cb1kbo-l.js → 2XoFwLeT.js} +1 -1
- package/web/app/immutable/chunks/{Bgv4xl9c.js → 2YKrLT6f.js} +1 -1
- package/web/app/immutable/chunks/{eJTQudLa.js → 55NQjm3t.js} +1 -1
- package/web/app/immutable/chunks/{CbMY6SJh.js → 5Z6V3HtS.js} +3 -3
- package/web/app/immutable/chunks/{8nvKsF1U.js → 9DRLCqFH.js} +1 -1
- package/web/app/immutable/chunks/{D8lwHYbt.js → A-qdlPO9.js} +1 -1
- package/web/app/immutable/chunks/{D2IPgYKy.js → B0kpU9fA.js} +2 -2
- package/web/app/immutable/chunks/{BWxNGH0I.js → B0lZCUS6.js} +1 -1
- package/web/app/immutable/chunks/{CLAx8h40.js → B2NZzPt-.js} +1 -1
- package/web/app/immutable/chunks/{COL2_tWj.js → B418rdhJ.js} +1 -1
- package/web/app/immutable/chunks/{DqABqR68.js → B5PU_SZw.js} +1 -1
- package/web/app/immutable/chunks/{DPE-JMtK.js → B6l-Kttu.js} +1 -1
- package/web/app/immutable/chunks/{Dpx32Qmu.js → B89v0U4a.js} +3 -3
- package/web/app/immutable/chunks/{Ch_at1f7.js → B9STQthu.js} +1 -1
- package/web/app/immutable/chunks/{teD5XqBt.js → B9Y57c7j.js} +2 -2
- package/web/app/immutable/chunks/{D43Jqbde.js → BApUcPKR.js} +1 -1
- package/web/app/immutable/chunks/{BjnC0-9k.js → BDThAQjj.js} +1 -1
- package/web/app/immutable/chunks/{B_dYfWPi.js → BEWjMMmw.js} +3 -3
- package/web/app/immutable/chunks/{P8hAbmXB.js → BHtMcien.js} +1 -1
- package/web/app/immutable/chunks/{CYR-FbvP.js → BIkmNkpw.js} +1 -1
- package/web/app/immutable/chunks/{DEY6iSRW.js → BIn5egRU.js} +1 -1
- package/web/app/immutable/chunks/{0WGKoTp7.js → BOD8_Ffh.js} +1 -1
- package/web/app/immutable/chunks/{87xWd9kf.js → BPW7kjsh.js} +1 -1
- package/web/app/immutable/chunks/{Bu27PjCq.js → BPwzpRKZ.js} +1 -1
- package/web/app/immutable/chunks/{CKOWGM2h.js → BQNpzQlP.js} +1 -1
- package/web/app/immutable/chunks/{CQrtn7uL.js → BTcBtO7l.js} +1 -1
- package/web/app/immutable/chunks/{-wVJP2Nv.js → BTi_uPkP.js} +2 -2
- package/web/app/immutable/chunks/{BgwOqGGz.js → BWDjljS8.js} +3 -3
- package/web/app/immutable/chunks/{yVus3yZB.js → BZQZwdGm.js} +1 -1
- package/web/app/immutable/chunks/{CEVE3XrG.js → BbobBw8S.js} +1 -1
- package/web/app/immutable/chunks/{BoQ6mo7A.js → BehvUfjM.js} +1 -1
- package/web/app/immutable/chunks/{qmbewbeC.js → BesmUwoU.js} +1 -1
- package/web/app/immutable/chunks/{CcG4EdUX.js → BoefNJ5Q.js} +1 -1
- package/web/app/immutable/chunks/{DaJLZAtJ.js → BpSBXUuJ.js} +2 -2
- package/web/app/immutable/chunks/{BL6KysZT.js → BpWCMu3u.js} +1 -1
- package/web/app/immutable/chunks/{Enj8TVg6.js → Bpb7JDWq.js} +1 -1
- package/web/app/immutable/chunks/{DHh2do2s.js → BrFkQr4z.js} +1 -1
- package/web/app/immutable/chunks/{C6eGErE5.js → BuQN2T0g.js} +2 -2
- package/web/app/immutable/chunks/{D8p89jlI.js → Bxb8LI6C.js} +1 -1
- package/web/app/immutable/chunks/{B17WB5I_.js → C-y2Lv4J.js} +1 -1
- package/web/app/immutable/chunks/{DWRcesyP.js → C79sRXBG.js} +1 -1
- package/web/app/immutable/chunks/{DT8wW0xY.js → CAG8YIXN.js} +1 -1
- package/web/app/immutable/chunks/{ClzgmEiJ.js → CBHdapAk.js} +1 -1
- package/web/app/immutable/chunks/{A9ecW27k.js → CIJY2gxU.js} +1 -1
- package/web/app/immutable/chunks/{4tnKpgtx.js → CKK0Gz-a.js} +2 -2
- package/web/app/immutable/chunks/{Dw3Zchmi.js → CL1PbmdJ.js} +1 -1
- package/web/app/immutable/chunks/{DyBjQloT.js → CMAV3UUk.js} +1 -1
- package/web/app/immutable/chunks/{I3rQi8Mk.js → CNsgRr0G.js} +1 -1
- package/web/app/immutable/chunks/{CkdufNLY.js → CPj4SFCC.js} +1 -1
- package/web/app/immutable/chunks/{B_wU2oqB.js → CQR1o7um.js} +2 -2
- package/web/app/immutable/chunks/{DTUDqqvP.js → CQy8trug.js} +1 -1
- package/web/app/immutable/chunks/{Byf67NBn.js → CR5ZxoLH.js} +1 -1
- package/web/app/immutable/chunks/{CzB8OdN6.js → CRBVaIXN.js} +1 -1
- package/web/app/immutable/chunks/{DHAMveef.js → CYyfRGPT.js} +1 -1
- package/web/app/immutable/chunks/{CD8rDp1I.js → CZDluI6H.js} +1 -1
- package/web/app/immutable/chunks/{Cu6uSewr.js → CajUAX8N.js} +2 -2
- package/web/app/immutable/chunks/{C8Rbp5XG.js → CjYF1At4.js} +1 -1
- package/web/app/immutable/chunks/{ixY04dr_.js → CnzZSXm6.js} +1 -1
- package/web/app/immutable/chunks/{CNY7yqiH.js → CrBBYf3_.js} +1 -1
- package/web/app/immutable/chunks/{831yit0u.js → CrL6DZCQ.js} +1 -1
- package/web/app/immutable/chunks/{D4Sr27VP.js → CsleiD5D.js} +1 -1
- package/web/app/immutable/chunks/{Dw1vGMUI.js → CtKyfVB_.js} +1 -1
- package/web/app/immutable/chunks/{BCl0bKac.js → CtZeiR9i.js} +1 -1
- package/web/app/immutable/chunks/{GFZ204Jt.js → Cv2q5gkL.js} +1 -1
- package/web/app/immutable/chunks/{BG3Ebj57.js → CwB9Am9z.js} +3 -3
- package/web/app/immutable/chunks/{CeH003CQ.js → D-usBtmP.js} +4 -4
- package/web/app/immutable/chunks/{BxehPJxq.js → D0xQDzbV.js} +1 -1
- package/web/app/immutable/chunks/{xDHVFIMJ.js → D1wNvwqn.js} +1 -1
- package/web/app/immutable/chunks/{Br82-Xei.js → D82C3bhe.js} +1 -1
- package/web/app/immutable/chunks/{pvJ_cn50.js → D9-KwDth.js} +1 -1
- package/web/app/immutable/chunks/{CI-9xLBe.js → DC0oh9YH.js} +1 -1
- package/web/app/immutable/chunks/{CRPodL8x.js → DCO02E6M.js} +1 -1
- package/web/app/immutable/chunks/{BdKyRGol.js → DCzChru-.js} +1 -1
- package/web/app/immutable/chunks/{Cc258RGc.js → DE_K0DMt.js} +3 -3
- package/web/app/immutable/chunks/{SA06hBPi.js → DFQ6yCR1.js} +13 -13
- package/web/app/immutable/chunks/{DzQ9pTdH.js → DHpb0iQY.js} +1 -1
- package/web/app/immutable/chunks/{CsP9aubD.js → DLmLA9DN.js} +1 -1
- package/web/app/immutable/chunks/{_Zri9kdP.js → DOOplL0N.js} +2 -2
- package/web/app/immutable/chunks/{B0VS3QHA.js → DQewNXDh.js} +1 -1
- package/web/app/immutable/chunks/{DOfs-gJd.js → DSIsc1Ss.js} +1 -1
- package/web/app/immutable/chunks/{14PuynRk.js → DY06SZsl.js} +1 -1
- package/web/app/immutable/chunks/{Bqcfe5TT.js → DadrYnVI.js} +1 -1
- package/web/app/immutable/chunks/{CcdfY8p5.js → DdJj628K.js} +1 -1
- package/web/app/immutable/chunks/{C2-otZwl.js → Df3mQZLv.js} +3 -3
- package/web/app/immutable/chunks/{D5F19aKJ.js → Dge5ZGj2.js} +1 -1
- package/web/app/immutable/chunks/{B1UYfQY0.js → Di4F3rxF.js} +1 -1
- package/web/app/immutable/chunks/{DnNbT2UP.js → Dkvzw9dt.js} +1 -1
- package/web/app/immutable/chunks/{xmaMS7As.js → DqfSttpc.js} +1 -1
- package/web/app/immutable/chunks/{C02go3w8.js → Ds6NYQhM.js} +1 -1
- package/web/app/immutable/chunks/{CSPmTvrs.js → DsFpAZo7.js} +2 -2
- package/web/app/immutable/chunks/{DnE-1Bxa.js → DsnmJyUD.js} +1 -1
- package/web/app/immutable/chunks/{O2Ahsla9.js → DyaBo2y6.js} +1 -1
- package/web/app/immutable/chunks/{BisaElGo.js → EwMtkE4R.js} +4 -4
- package/web/app/immutable/chunks/{tHutCKct.js → Ixhw1ROs.js} +1 -1
- package/web/app/immutable/chunks/{DqYcXS23.js → LbiCax8N.js} +1 -1
- package/web/app/immutable/chunks/{B2az9vht.js → NPKMdhKA.js} +2 -2
- package/web/app/immutable/chunks/{CshcKh7R.js → O-dTT9_6.js} +1 -1
- package/web/app/immutable/chunks/{D-rjvjF4.js → OfToEAub.js} +1 -1
- package/web/app/immutable/chunks/{DjRAhqVm.js → OusZ11tk.js} +1 -1
- package/web/app/immutable/chunks/{Cttcfwyz.js → Qh1eK2X9.js} +1 -1
- package/web/app/immutable/chunks/{CkUjwYD9.js → R-aBLidW.js} +3 -3
- package/web/app/immutable/chunks/{CVko5-Ce.js → RwJyhbRN.js} +1 -1
- package/web/app/immutable/chunks/{JhsJwerv.js → Z4Jzxw8B.js} +1 -1
- package/web/app/immutable/chunks/{D1XBIS4d.js → ZJOyleCJ.js} +3 -3
- package/web/app/immutable/chunks/{D4k6RYUX.js → ahq3r4Wz.js} +1 -1
- package/web/app/immutable/chunks/{rYQs4fAE.js → eGqXrC9g.js} +1 -1
- package/web/app/immutable/chunks/{BnU26i3j.js → f50N8hQo.js} +1 -1
- package/web/app/immutable/chunks/{DZfjVo5t.js → ftVcR4tQ.js} +1 -1
- package/web/app/immutable/chunks/{YeAZLB5H.js → fth1noPu.js} +1 -1
- package/web/app/immutable/chunks/{CfwJkes2.js → lCSqh71Z.js} +1 -1
- package/web/app/immutable/chunks/{CSOGWXLp.js → lFTk8wpi.js} +1 -1
- package/web/app/immutable/chunks/{DWne2Ca4.js → m11ohSMf.js} +1 -1
- package/web/app/immutable/chunks/{nSDaSLgN.js → oaGKgX0i.js} +1 -1
- package/web/app/immutable/chunks/{DHDLfgZi.js → uA3ZM6fH.js} +1 -1
- package/web/app/immutable/chunks/{B2xC2uJc.js → ulO2uazy.js} +1 -1
- package/web/app/immutable/chunks/{7FgEVpQ3.js → vE2E6sS8.js} +1 -1
- package/web/app/immutable/chunks/{Cs5tgO-b.js → vQ3XSTvm.js} +1 -1
- package/web/app/immutable/chunks/{G7hg690T.js → vlM04DTZ.js} +1 -1
- package/web/app/immutable/chunks/{PQTTXGcn.js → wDPUZWBZ.js} +1 -1
- package/web/app/immutable/chunks/{BJPFCP7M.js → xs1C7KnJ.js} +1 -1
- package/web/app/immutable/chunks/{fq6SYOzd.js → yLWVsiXj.js} +1 -1
- package/web/app/immutable/chunks/{WNTW6hiT.js → zROLTv2m.js} +1 -1
- package/web/app/immutable/entry/{app.o5RAXAAj.js → app.-hRXZvoO.js} +2 -2
- package/web/app/immutable/entry/start.C3r7ji-v.js +1 -0
- package/web/app/immutable/nodes/{0.DTgMOczx.js → 0.Bf92A2SS.js} +1 -1
- package/web/app/immutable/nodes/{1.DmX_GPIL.js → 1.BWS1uOkH.js} +1 -1
- package/web/app/immutable/nodes/{10.CsL1og_U.js → 10.xvB45P-Z.js} +4 -4
- package/web/app/immutable/nodes/{11.DRyBXsyz.js → 11.CWt_UL31.js} +1 -1
- package/web/app/immutable/nodes/{15.DDwysLtQ.js → 15.BFkam5BT.js} +1 -1
- package/web/app/immutable/nodes/{19.DQoSX-dg.js → 19.DASGyMmu.js} +2 -2
- package/web/app/immutable/nodes/{2.9n1G_JzW.js → 2.BLp65UB0.js} +4 -4
- package/web/app/immutable/nodes/{3.BVw8jFJ4.js → 3.sLYNU_z5.js} +1 -1
- package/web/app/immutable/nodes/{4.DjCaEZub.js → 4.CYsqPvqR.js} +1 -1
- package/web/app/immutable/nodes/{5.D4a0KA3T.js → 5.BDPUNvGt.js} +1 -1
- package/web/app/immutable/nodes/{6.BHOytGZd.js → 6.Cmp_rej6.js} +1 -1
- package/web/app/immutable/nodes/{7.CvMVMdst.js → 7.BeJ_Zasr.js} +1 -1
- package/web/app/immutable/nodes/{8.BwKdMsTy.js → 8.CTerGGp8.js} +1 -1
- package/web/app/immutable/nodes/{9.CbsmExoL.js → 9.D8TUAlXi.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.BwuZE7hN.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as It}from"./ClpAEjbe.js";import{bs as ct,ay as ye,be as E,b$ as L,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Gt}from"./CJxGDkBm.js";import{g as Dt,i as Ot,I as gt}from"./BwASeArv.js";import{c as Tt}from"./DSqSJXGX.js";import{s as ot,f as Ft,c as Bt}from"./CnGVh7I3.js";import{f as B}from"./BVi5KkOP.js";import"./CPDV_dyu.js";import"./Qt_rZNko.js";import{b as Rt}from"./ISNHM8TL.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import{b as Nt}from"./B5fQcqb-.js";import{i as K}from"./wmcYjLAa.js";import{b as Ht}from"./5vm8eILD.js";import{F as Mt,ay as qt}from"./CtJxHvGv.js";import"./WSVFXKpL.js";import{F as mt,G as Jt}from"./CLAx8h40.js";import"./B5wwCKYG.js";/* empty css */import{C as Wt}from"./C1zxTHwk.js";import{L as xt}from"./CIMWDf4a.js";import{I as tt}from"./MZe3NxQe.js";import"./B8-SJLLz.js";import"./D_G_nxUe.js";import{h as Yt}from"./B_wU2oqB.js";import{Jq as ke,fB as ht,J as Qt,eo as kt,r3 as Vt,uy as jt,Jh as Xt,oB as Zt,hQ as er}from"./CpP1PKzF.js";import{aC as yt,aD as $t,aE as tr,ax as rr,ay as Ct,az as ar,aA as sr,aI as nr}from"./Br82-Xei.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),V=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function j(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return V()},set title(d){V(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Nt(ie,{get static(){return U()},role:"alertdialog",get title(){return V()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>j(T().length-1),onCancel:()=>j(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),N=ye(A);Dt(N,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");B(de,{get variant(){return e(me)},onclick:()=>j(ae),children:(Ke,ze)=>{E();var Ae=L();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var N=or(),de=ye(N);Tt(de,()=>Rt,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var Ge=L();o(()=>s(Ge,h())),a(ze,Ge)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,N)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),V=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),j=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),N=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",Ge="https://",Be=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>V()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),De=$(()=>{if(e(Be))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return V()},set mode(r){V(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return j()},set baseUrl(r=""){j(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return N()},set secretDisabled(r=A){N(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,I)=>dt(c,r,I)},k=br(),Re=C(k);{var Ne=r=>{var I=lr(),J=g(I,!0);o(se=>s(J,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,I)};K(Re,r=>{w()==="codex"&&U()==="token"&&r(Ne)})}var qe=i(Re,2);{var Je=r=>{var I=cr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var G=i(q,2);Wt(G,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(H,u=>{e(Be)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(H,2);{var R=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(R)})}P(W);var Z=i(W,2);{var Ce=u=>{B(u,{variant:"link",size:"sm",get href(){return e(De).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=L();o(()=>s(F,e(De).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(De)&&u(Ce)})}P(I),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,I)};K(qe,r=>{(V()==="add"||x())&&r(Je)})}var We=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(J,se=ft)=>{var W=Kt(),H=C(W);tt(H,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(H,2);{var ne=M=>{B(M,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:xe,children:($e,_e)=>{E();var R=L();o(Z=>s(R,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,R)},$$slots:{default:!0}})};K(ve,M=>{V()==="edit"&&T()&&M(ne)})}P(W),a(J,W)},$$slots:{control:!0}})},Qe=r=>{var I=pr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W),ve=g(H,!0),ne=i(H,2);B(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=L();o(R=>s(_e,R),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(W),P(I),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,I)};K(We,r=>{e(at)?r(Ye):r(Qe,-1)})}var Ve=i(We,2);{var st=r=>{var I=fr(),J=C(I),se=C(J);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var W=i(se);P(J);var H=i(J,2),ve=C(H),ne=g(ve,!0),M=i(ve,2);{var $e=R=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=L();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);B(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(R,Z)},_e=R=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:Ge,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return j()},set value(G){j(G)}}));var z=i(F,2);{var q=G=>{B(G,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),j("")},children:(ee,p)=>{E();var n=L();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,G=>{V()==="edit"&&ge()&&G(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(R,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,R=>{V()==="edit"&&ge()&&d()!=="replace"?R($e):R(_e,-1)})}P(H),P(I),o((R,Z)=>{s(W,` ${R??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Ht("open","toggle",I,X,X),a(r,I)};K(Ve,r=>{e(Be)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Lr(ie,c){const w=Ut();if(new.target)return it({component:Lr,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),V=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Be,"$deviceFlow$",d),j=()=>Se(Ge,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=It();let A=f(c,"compact",7,!1),N=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),Ge=rr(),Be=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),De=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>jt(e(Ee))),Re=$(()=>e(Oe)||e(k)===U()&&V()===!1),Ne=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(De)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Gt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function Je(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(Vt(e(k)))}function We(){he(De,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Qe(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function Ve(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function I(){e(Ne)&&Yt(e(Ne),{})}function J(p){p.key==="Enter"&&(p.preventDefault(),Je(),e(Re)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Qe())}const W=$(()=>A()?"sm":"xl"),H=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return N()},set onCancel(p){N(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{B(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var R=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(R)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Ie=$(()=>t.lib_gitlabConnect_openGitlab_label());Jt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Ie)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{let Ie=$(()=>x()||!h());B(Le,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Ie)},onclick:Ve,children:(nt,ut)=>{E();var D=L();o(Q=>s(D,Q),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,D)},$$slots:{default:!0}})}var He=i(Le,2);p(He),P(_),P(l),o(Ie=>s(Te,Ie),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(D,Q)=>{E();var te=L();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(D,te)},$$slots:{default:!0}});var Y=i(_,2);{let D=$(()=>!h()),Q=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(D)},get"aria-invalid"(){return e(Q)},get"aria-describedby"(){return e(te)},get placeholder(){return Qt},oninput:We,onchange:Je,onkeydown:J,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{var He=D=>{var Q=yr(),te=g(Q,!0);o(pe=>{ot(Q,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(D,Q)};K(Le,D=>{e(k)||D(He)})}P(v);var Ie=i(v,2);{var nt=D=>{var Q=$r(),te=ye(Q),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=L();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var je=i(pe,2);{let O=$(()=>!h());tt(je,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(je,2),fe=C(Xe),we=i(fe);{var Ze=O=>{B(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:I,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(Ne)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));B(Pe,{variant:"primary",get size(){return e(W)},type:"button",onclick:Qe,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&V()===!1)&&O(At)})}var Et=i(vt,2);{var Lt=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{N()&&O(Lt)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(D,Q)},ut=D=>{var Q=Cr(),te=C(Q);{let fe=$(()=>!e(k)||!h());B(te,{variant:"primary",get size(){return e(W)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());B(pe,{variant:"ghost",get size(){return e(H)},type:"button",get disabled(){return e(fe)},onclick:Ve,children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var je=i(pe,2);{var Xe=fe=>{B(fe,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(je,fe=>{N()&&fe(Xe)})}P(Q),a(D,Q)};K(Ie,D=>{e(Re)?D(nt):D(ut,-1)})}o(D=>{ot(oe,"id",ce),s(Te,D)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);B(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Le=L();o(He=>s(Le,He),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Le)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>j()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{j()==="cancelled"?n(F):(j()==="already-started"||j()==="failed")&&n(z,1)})}var q=i(y,2);{var G=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(G)})}P(ne)}o(()=>Ft(ne,1,Bt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Lr as G,ir as M,gr as P,sa as s};
|
|
1
|
+
import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as It}from"./ClpAEjbe.js";import{bs as ct,ay as ye,be as E,b$ as L,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Gt}from"./CJxGDkBm.js";import{g as Dt,i as Ot,I as gt}from"./BwASeArv.js";import{c as Tt}from"./DSqSJXGX.js";import{s as ot,f as Ft,c as Bt}from"./CnGVh7I3.js";import{f as B}from"./BVi5KkOP.js";import"./CPDV_dyu.js";import"./Qt_rZNko.js";import{b as Rt}from"./ISNHM8TL.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import{b as Nt}from"./B5fQcqb-.js";import{i as K}from"./wmcYjLAa.js";import{b as Ht}from"./5vm8eILD.js";import{F as Mt,ay as qt}from"./CtJxHvGv.js";import"./WSVFXKpL.js";import{F as mt,G as Jt}from"./B2NZzPt-.js";import"./B5wwCKYG.js";/* empty css */import{C as Wt}from"./C1zxTHwk.js";import{L as xt}from"./CIMWDf4a.js";import{I as tt}from"./MZe3NxQe.js";import"./B8-SJLLz.js";import"./D_G_nxUe.js";import{h as Yt}from"./CQR1o7um.js";import{Jq as ke,fB as ht,J as Qt,eo as kt,r3 as Vt,uy as jt,Jh as Xt,oB as Zt,hQ as er}from"./CpP1PKzF.js";import{aC as yt,aD as $t,aE as tr,ax as rr,ay as Ct,az as ar,aA as sr,aI as nr}from"./D82C3bhe.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),V=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function j(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return V()},set title(d){V(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Nt(ie,{get static(){return U()},role:"alertdialog",get title(){return V()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>j(T().length-1),onCancel:()=>j(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),N=ye(A);Dt(N,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");B(de,{get variant(){return e(me)},onclick:()=>j(ae),children:(Ke,ze)=>{E();var Ae=L();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var N=or(),de=ye(N);Tt(de,()=>Rt,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var Ge=L();o(()=>s(Ge,h())),a(ze,Ge)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,N)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),V=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),j=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),N=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",Ge="https://",Be=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>V()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),De=$(()=>{if(e(Be))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return V()},set mode(r){V(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return j()},set baseUrl(r=""){j(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return N()},set secretDisabled(r=A){N(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,I)=>dt(c,r,I)},k=br(),Re=C(k);{var Ne=r=>{var I=lr(),J=g(I,!0);o(se=>s(J,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,I)};K(Re,r=>{w()==="codex"&&U()==="token"&&r(Ne)})}var qe=i(Re,2);{var Je=r=>{var I=cr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var G=i(q,2);Wt(G,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(H,u=>{e(Be)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(H,2);{var R=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(R)})}P(W);var Z=i(W,2);{var Ce=u=>{B(u,{variant:"link",size:"sm",get href(){return e(De).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=L();o(()=>s(F,e(De).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(De)&&u(Ce)})}P(I),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,I)};K(qe,r=>{(V()==="add"||x())&&r(Je)})}var We=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(J,se=ft)=>{var W=Kt(),H=C(W);tt(H,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(H,2);{var ne=M=>{B(M,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:xe,children:($e,_e)=>{E();var R=L();o(Z=>s(R,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,R)},$$slots:{default:!0}})};K(ve,M=>{V()==="edit"&&T()&&M(ne)})}P(W),a(J,W)},$$slots:{control:!0}})},Qe=r=>{var I=pr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W),ve=g(H,!0),ne=i(H,2);B(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=L();o(R=>s(_e,R),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(W),P(I),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,I)};K(We,r=>{e(at)?r(Ye):r(Qe,-1)})}var Ve=i(We,2);{var st=r=>{var I=fr(),J=C(I),se=C(J);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var W=i(se);P(J);var H=i(J,2),ve=C(H),ne=g(ve,!0),M=i(ve,2);{var $e=R=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=L();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);B(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(R,Z)},_e=R=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:Ge,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return j()},set value(G){j(G)}}));var z=i(F,2);{var q=G=>{B(G,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),j("")},children:(ee,p)=>{E();var n=L();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,G=>{V()==="edit"&&ge()&&G(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(R,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,R=>{V()==="edit"&&ge()&&d()!=="replace"?R($e):R(_e,-1)})}P(H),P(I),o((R,Z)=>{s(W,` ${R??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Ht("open","toggle",I,X,X),a(r,I)};K(Ve,r=>{e(Be)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Lr(ie,c){const w=Ut();if(new.target)return it({component:Lr,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),V=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Be,"$deviceFlow$",d),j=()=>Se(Ge,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=It();let A=f(c,"compact",7,!1),N=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),Ge=rr(),Be=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),De=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>jt(e(Ee))),Re=$(()=>e(Oe)||e(k)===U()&&V()===!1),Ne=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(De)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Gt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function Je(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(Vt(e(k)))}function We(){he(De,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Qe(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function Ve(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function I(){e(Ne)&&Yt(e(Ne),{})}function J(p){p.key==="Enter"&&(p.preventDefault(),Je(),e(Re)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Qe())}const W=$(()=>A()?"sm":"xl"),H=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return N()},set onCancel(p){N(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{B(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var R=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(R)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Ie=$(()=>t.lib_gitlabConnect_openGitlab_label());Jt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Ie)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{let Ie=$(()=>x()||!h());B(Le,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Ie)},onclick:Ve,children:(nt,ut)=>{E();var D=L();o(Q=>s(D,Q),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,D)},$$slots:{default:!0}})}var He=i(Le,2);p(He),P(_),P(l),o(Ie=>s(Te,Ie),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(D,Q)=>{E();var te=L();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(D,te)},$$slots:{default:!0}});var Y=i(_,2);{let D=$(()=>!h()),Q=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(D)},get"aria-invalid"(){return e(Q)},get"aria-describedby"(){return e(te)},get placeholder(){return Qt},oninput:We,onchange:Je,onkeydown:J,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{var He=D=>{var Q=yr(),te=g(Q,!0);o(pe=>{ot(Q,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(D,Q)};K(Le,D=>{e(k)||D(He)})}P(v);var Ie=i(v,2);{var nt=D=>{var Q=$r(),te=ye(Q),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=L();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var je=i(pe,2);{let O=$(()=>!h());tt(je,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(je,2),fe=C(Xe),we=i(fe);{var Ze=O=>{B(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:I,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(Ne)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));B(Pe,{variant:"primary",get size(){return e(W)},type:"button",onclick:Qe,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&V()===!1)&&O(At)})}var Et=i(vt,2);{var Lt=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{N()&&O(Lt)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(D,Q)},ut=D=>{var Q=Cr(),te=C(Q);{let fe=$(()=>!e(k)||!h());B(te,{variant:"primary",get size(){return e(W)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());B(pe,{variant:"ghost",get size(){return e(H)},type:"button",get disabled(){return e(fe)},onclick:Ve,children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var je=i(pe,2);{var Xe=fe=>{B(fe,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(je,fe=>{N()&&fe(Xe)})}P(Q),a(D,Q)};K(Ie,D=>{e(Re)?D(nt):D(ut,-1)})}o(D=>{ot(oe,"id",ce),s(Te,D)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);B(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Le=L();o(He=>s(Le,He),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Le)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>j()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{j()==="cancelled"?n(F):(j()==="already-started"||j()==="failed")&&n(z,1)})}var q=i(y,2);{var G=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(G)})}P(ne)}o(()=>Ft(ne,1,Bt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Lr as G,ir as M,gr as P,sa as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as $,bo as v,bw as w,b as A,br as P,bs as B,bq as W,bp as R}from"./ClpAEjbe.js";import{bs as h,b_ as F,aD as p,W as f,bA as M,bn as y,c9 as x,aA as m,aB as g,bV as k,br as q,ca as E,bH as C,a5 as H,bl as L,bS as N,bO as U,ay as V}from"./CJxGDkBm.js";import{f as Y}from"./BVi5KkOP.js";import{Y as j}from"./CPDV_dyu.js";import{F as G,cF as J}from"./CtJxHvGv.js";import{ay as K,aB as Q}from"./b89lNINv.js";import{f as X}from"./D5Z_ha09.js";import{g as Z,i as ee}from"./BwASeArv.js";import{s as te,g as se}from"./CnGVh7I3.js";import{a as z}from"./
|
|
1
|
+
import{t as $,bo as v,bw as w,b as A,br as P,bs as B,bq as W,bp as R}from"./ClpAEjbe.js";import{bs as h,b_ as F,aD as p,W as f,bA as M,bn as y,c9 as x,aA as m,aB as g,bV as k,br as q,ca as E,bH as C,a5 as H,bl as L,bS as N,bO as U,ay as V}from"./CJxGDkBm.js";import{f as Y}from"./BVi5KkOP.js";import{Y as j}from"./CPDV_dyu.js";import{F as G,cF as J}from"./CtJxHvGv.js";import{ay as K,aB as Q}from"./b89lNINv.js";import{f as X}from"./D5Z_ha09.js";import{g as Z,i as ee}from"./BwASeArv.js";import{s as te,g as se}from"./CnGVh7I3.js";import{a as z}from"./D82C3bhe.js";var ae=g('<span class="svelte-dywwvd"></span>'),re=g('<span class="waveform svelte-dywwvd" aria-hidden="true" data-dictation-waveform=""></span>');function T(c,e){if(new.target)return $({component:T,...c});h(e,!0);let n=v(e,"levels",7);const r=x(()=>{const t=n().slice(-z).map(a=>Number.isFinite(a)?Math.min(1,Math.max(0,a)):0);return[...new Array(z-t.length).fill(0),...t]});var l={get levels(){return n()},set levels(t){n(t),m()},$set:w,$on:(t,a)=>A(e,t,a)},o=re();return Z(o,21,()=>p(r),ee,(t,a)=>{var i=ae();let d;F(()=>{te(i,"data-level",p(a)),d=se(i,"",d,{height:`${2+p(a)*12}px`})}),f(t,i)}),M(o),f(c,o),y(l)}var ne=g('<span class="dictation-meter svelte-1oz1rct"><span class="elapsed svelte-1oz1rct" data-dictation-elapsed=""> </span> <!></span>');function I(c,e){if(new.target)return $({component:I,...c});h(e,!0);let n=v(e,"levels",7),r=v(e,"startedAt",7,null),l=v(e,"elapsed",7),o=k(q(Date.now()));E(()=>{if(!(l()!==void 0||r()===null))return C(o,Date.now(),!0),j.subscribe(new Date(r()),()=>C(o,Date.now(),!0),"second")});const t=x(()=>l()??X(r()===null?0:p(o)-r()));var a={get levels(){return n()},set levels(s){n(s),m()},get startedAt(){return r()},set startedAt(s=null){r(s),m()},get elapsed(){return l()},set elapsed(s){l(s),m()},$set:w,$on:(s,u)=>A(e,s,u)},i=ne(),d=H(i),_=L(d,!0),b=N(d,2);return T(b,{get levels(){return n()}}),M(i),F(()=>U(_,p(t))),f(c,i),y(a)}var le=new Set(["$$slots","$$events","$$legacy","class"]),oe=g("<!> <!>",1);function ie(c,e){if(new.target)return $({component:ie,...c});h(e,!0);const n=()=>B(i,"$levels$",l),r=()=>B(d,"$startedAt$",l),[l,o]=W();let t=v(e,"class",7,""),a=R(e,le);const i=K(),d=Q();var _={get class(){return t()},set class(s=""){t(s),m()},$set:w,$on:(s,u)=>A(e,s,u)};{let s=x(()=>`dictation-stop-pill ${t()}`.trim());Y(c,P({variant:"ghost",size:"sm",get class(){return p(s)},"aria-pressed":"true"},()=>a,{children:(u,ce)=>{var D=oe(),S=V(D);G(S,{get icon(){return J},size:14});var O=N(S,2);I(O,{get levels(){return n()},get startedAt(){return r()}}),f(u,D)},$$slots:{default:!0}}))}var b=y(_);return o(),b}export{I as D,ie as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as c,_ as p}from"./ClpAEjbe.js";import{m as k}from"./C1zxTHwk.js";import"./CJxGDkBm.js";import"./CnGVh7I3.js";import"./WSVFXKpL.js";import{Q as A}from"./CPDV_dyu.js";import"./ChTqQfQN.js";import"./BeYVt6Wg.js";import{m as L,Jq as d,vG as g,vI as v}from"./CpP1PKzF.js";import{a9 as R}from"./D9Ykl3eH.js";import{selectCurrentWorkspaceTabId as P}from"./DujUyPvo.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&I(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&I(a[0])&&I(a[2])&&I(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return k.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/vQ3XSTvm.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BxKppgO5.js","/app/immutable/chunks/ClpAEjbe.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/CpP1PKzF.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CgBcONKs.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/WSVFXKpL.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CPDV_dyu.js","/app/immutable/chunks/BejTxFyR.js","/app/immutable/chunks/CnGVh7I3.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/ByoP16rr.js","/app/immutable/chunks/D9Ykl3eH.js","/app/immutable/chunks/CtJxHvGv.js","/app/immutable/chunks/DSqSJXGX.js","/app/immutable/chunks/wmcYjLAa.js","/app/immutable/chunks/BwASeArv.js","/app/immutable/chunks/CTV49dzf.js","/app/immutable/chunks/By588DV1.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DsFpAZo7.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DqfSttpc.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as c,_ as p}from"./ClpAEjbe.js";import{m as k}from"./C1zxTHwk.js";import"./CJxGDkBm.js";import"./CnGVh7I3.js";import"./WSVFXKpL.js";import{Q as A}from"./CPDV_dyu.js";import"./ChTqQfQN.js";import"./BeYVt6Wg.js";import{m as L,Jq as d,vG as g,vI as v}from"./CpP1PKzF.js";import{a9 as R}from"./D9Ykl3eH.js";import{selectCurrentWorkspaceTabId as P}from"./DujUyPvo.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&I(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&I(a[0])&&I(a[2])&&I(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return k.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./vQ3XSTvm.js");return{openMessage:a}},__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]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:k.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?k.error(c.ui_linkHandler_notFound_title(),{description:n.message}):k.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./BxKppgO5.js").then(o=>o.o);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./DqfSttpc.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./DqfSttpc.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./DqfSttpc.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./CPDV_dyu.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./
|
|
1
|
+
import{g as gt}from"./CZDluI6H.js";import{d as mt,g as lt,f as xt,e as kt}from"./eGqXrC9g.js";import{U as _t,aZ as vt,V as bt,a_ as wt,Y as Tt,b0 as St,b as s,X as R,aW as H,B as $t,r as Mt,d as it}from"./D-usBtmP.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(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:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,W;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";W=[];for(N in v[A])this.terminals_[N]&&N>yt&&W.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:W})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=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),l.length-1&&(this.yylineno-=l.length-1);var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as z}from"./
|
|
1
|
+
import{p as z}from"./zROLTv2m.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./D-usBtmP.js";import{p as I}from"./2ypcXvW0.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{K as jt}from"./
|
|
1
|
+
import{K as jt}from"./ZJOyleCJ.js";import{V as Ut}from"./5Z6V3HtS.js";import{bI as Mt,aD as s,aG as zt,bH as Ie,bV as Me,bs as dt,ca as _t,c0 as Ht,a5 as j,bS as u,bl as F,bA as U,b_ as v,bO as l,aw as Kt,W as n,bn as pt,c9 as y,aA as T,aB as N,b$ as L,bf as ee,a7 as $,ay as w,be as De,am as Fe,ax as Ee}from"./CJxGDkBm.js";import{t as vt,bo as O,bm as _,bw as ut,b as ct,bs as Ze,bq as qt}from"./ClpAEjbe.js";import{i as I}from"./wmcYjLAa.js";import{s as je,f as Ue,g as Be}from"./CnGVh7I3.js";import{b as Yt}from"./NtFyWdpR.js";import{A as Gt,c as Vt}from"./BoefNJ5Q.js";import{k as et}from"./Xh71Wbuh.js";import{s as tt}from"./WSVFXKpL.js";import{n as se,b as at,j as ge}from"./oXpJ1LFx.js";import{F as $t,bo as Xt,aN as Jt,cK as Qt,cn as Zt}from"./CtJxHvGv.js";import{m as ea}from"./C1zxTHwk.js";import{f as Le}from"./BVi5KkOP.js";import"./CPDV_dyu.js";import{T as rt}from"./ClEpfV0K.js";import"./ChTqQfQN.js";import"./BeYVt6Wg.js";import"./CpP1PKzF.js";import{q as ta,h as aa,S as ra}from"./CNsgRr0G.js";import{O as We}from"./Dkvzw9dt.js";import{be as na,D as sa,q as oa}from"./D82C3bhe.js";import{d as ia}from"./oaGKgX0i.js";import{s as la,f as da,c as nt}from"./DE4gFzLD.js";function ar(M){let b=0,E=!1;function Q(x){E!==x&&(E=x,M.onDragChange(x))}function Z(){b=0,Q(!1)}function X(x){return M.isEnabled&&!M.isEnabled()?!1:jt(x)}return{handleDragEnter(x){X(x)&&(x.preventDefault(),b++,Q(!0))},handleDragLeave(x){X(x)&&(x.preventDefault(),b=Math.max(0,b-1),b===0&&Q(!1))},handleDragOver(x){X(x)&&x.preventDefault()},handleDrop(x){if(!X(x))return;x.preventDefault(),Z();const G=Ut(x.dataTransfer);(G.files.length>0||G.folderFiles.length>0)&&M.onDrop(G)},reset:Z}}const gt=Symbol("panel-file-drop-context");function rr(){let M=Me(null);const b={register(E){Ie(M,E)},unregister(E){s(M)===E&&Ie(M,null)}};return Mt(gt,b),{context:b,handler:{get current(){return s(M)}}}}function nr(){return zt(gt)??null}var _a=N('<p class="type-caption text-subtle"> </p>'),pa=N('<div class="space-y-1" data-remote-setup-log=""><!> <pre role="log" tabindex="0"> </pre></div>');function va(M,b){if(new.target)return vt({component:va,...M});dt(b,!0);let E=O(b,"machine",7),Q=O(b,"output",7),Z=O(b,"truncated",7,!1);const X=y(()=>Gt({chunks:[{text:Q()??"",timestamp:""}]}).join(`
|
|
2
2
|
`));let x=Me(null),G=!0;function V(){s(x)&&(G=s(x).scrollHeight-s(x).scrollTop-s(x).clientHeight<8)}_t(()=>{s(X),!(!s(x)||!G)&&Ht().then(()=>{s(x)&&(s(x).scrollTop=s(x).scrollHeight)})});var oe={get machine(){return E()},set machine(R){E(R),T()},get output(){return Q()},set output(R){Q(R),T()},get truncated(){return Z()},set truncated(R=!1){Z(R),T()},$set:ut,$on:(R,J)=>ct(b,R,J)},H=pa(),te=j(H);{var ae=R=>{var J=_a(),W=F(J,!0);v(re=>l(W,re),[()=>_.remoteAgent_setup_outputTruncated()]),n(R,J)};I(te,R=>{Z()&&R(ae)})}var q=u(te,2),pe=F(q,!0);return Yt(q,R=>Ie(x,R),()=>s(x)),U(H),v((R,J)=>{je(q,"aria-label",R),Ue(q,1,`max-h-60 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted/60 px-3 py-2 font-mono text-xs ${s(X)?"text-foreground":"text-subtle"} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`),l(pe,J)},[()=>_.remoteAgent_setup_outputLabel({machine:E()}),()=>s(X)||_.remoteAgent_setup_noOutput()]),Kt("scroll",q,V),n(M,H),pt(oe)}var ua=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),ca=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),ga=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),fa=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),ma=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),st=N('<div class="svelte-enden2"><!></div>'),ba=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),xa=N('<div class="mt-1 text-xs tabular-nums svelte-enden2" data-testid="setup-card-progress-transfer"> </div>'),ha=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div> <!>',1),fe=N(" <!>",1),Ca=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),wa=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),ot=N(" <!> <!>",1),Sa=N(' <span class="svelte-enden2"> </span> ',1),ya=N(' <span class="svelte-enden2"> </span> <!>',1),ka=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),Pa=N("<!> ",1),it=N('<span class="svelte-enden2"> </span>'),_e=N(" <!> ",1),Da=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),lt=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),Ia=N(" <!> <!> ",1),Na=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),Ta=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Oa(M,b){if(new.target)return vt({component:Oa,...M});dt(b,!0);const E=()=>Ze(ft,"$progressEntry$",Z),Q=()=>Ze(mt,"$specialists$",Z),[Z,X]=qt();let x=O(b,"repoName",7),G=O(b,"repoPath",7),V=O(b,"worktreePath",7),oe=O(b,"workspaceId",7),H=O(b,"branch",7),te=O(b,"baseRef",7,"origin/main"),ae=O(b,"projectType",7),q=O(b,"setupScriptStatus",7),pe=O(b,"setupScriptContent",7),R=O(b,"onFocusSetupTerminal",7),J=O(b,"specialistName",7),W=O(b,"specialistId",7),re=O(b,"hasPrompt",7,!0),ve=O(b,"repoStatus",7,"pending"),me=O(b,"branchStatus",7,"pending"),be=O(b,"agentStatus",7,"pending"),ie=O(b,"skipIsolation",7,!1),ue=O(b,"plainFolder",7,!1),Ne=O(b,"progressId",7);const ft=la(Ne()??""),mt=na();let xe=Me(0);_t(()=>{const d=Math.min(E()?.percent??0,100);d>s(xe)&&Ie(xe,d,!0)});const bt=y(()=>E()?.sawFrame===!0),ze=y(()=>E()?.transfer?Vt(E().transfer):null),xt=y(()=>te().replace(/^[^/]+\//,"")),Te=y(()=>W()?oa(W()):void 0),ht=y(()=>W()?Q().find(d=>d.id===W()):void 0),Ct=y(()=>s(ht)?.name||s(Te)?.name||J()),He=y(()=>W()==="spec-writer"||W()===sa),Ke=y(()=>{const d=ue()?[ve()]:[ve(),me()];return q()&&d.push(q()),d.push(be()),d}),Oe=y(()=>s(Ke).length),qe=y(()=>s(Ke).filter(d=>d==="done").length),Ye=y(()=>Math.min(s(qe)+1,s(Oe))),ye=y(()=>s(qe)===s(Oe)),Ge=y(()=>s(ye)?_.onboarding_setupCard_ready_title():_.onboarding_setupCard_settingUp_title());function wt(d,B){navigator.clipboard.writeText(d),ea.success(_.onboarding_setupCard_copied_label({label:B}))}function Ae(d){return d.replace(/^\/Users\/[^/]+/,"~")}function St(){W()&&ia({specialist:W(),hash:"specialists"})}var yt={get repoName(){return x()},set repoName(d){x(d),T()},get repoPath(){return G()},set repoPath(d){G(d),T()},get worktreePath(){return V()},set worktreePath(d){V(d),T()},get workspaceId(){return oe()},set workspaceId(d){oe(d),T()},get branch(){return H()},set branch(d){H(d),T()},get baseRef(){return te()},set baseRef(d="origin/main"){te(d),T()},get projectType(){return ae()},set projectType(d){ae(d),T()},get setupScriptStatus(){return q()},set setupScriptStatus(d){q(d),T()},get setupScriptContent(){return pe()},set setupScriptContent(d){pe(d),T()},get onFocusSetupTerminal(){return R()},set onFocusSetupTerminal(d){R(d),T()},get specialistName(){return J()},set specialistName(d){J(d),T()},get specialistId(){return W()},set specialistId(d){W(d),T()},get hasPrompt(){return re()},set hasPrompt(d=!0){re(d),T()},get repoStatus(){return ve()},set repoStatus(d="pending"){ve(d),T()},get branchStatus(){return me()},set branchStatus(d="pending"){me(d),T()},get agentStatus(){return be()},set agentStatus(d="pending"){be(d),T()},get skipIsolation(){return ie()},set skipIsolation(d=!1){ie(d),T()},get plainFolder(){return ue()},set plainFolder(d=!1){ue(d),T()},get progressId(){return Ne()},set progressId(d){Ne(d),T()},$set:ut,$on:(d,B)=>ct(b,d,B)},ke=Ta(),Pe=j(ke);Be(Pe,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Re=j(Pe),kt=j(Re);et(kt,()=>s(ye),d=>{var B=ca(),le=j(B);{var he=Y=>{var z=ua(),we=F(z,!0);v(()=>l(we,s(Ge))),n(Y,z)},Ce=Y=>{var z=L();v(()=>l(z,s(Ge))),n(Y,z)};I(le,Y=>{s(ye)?Y(he):Y(Ce,-1)})}U(B),se(1,B,()=>at,()=>({tier:"slow",distance:3})),se(2,B,()=>at,()=>({tier:"slow",distance:3})),n(d,B)}),U(Re);var Pt=u(Re,2);{var Dt=d=>{var B=fa(),le=j(B),he=j(le);et(he,()=>s(Ye),Y=>{var z=ga(),we=F(z,!0);v(()=>l(we,s(Ye))),se(1,z,()=>ge,()=>({axis:"y",tier:"slow"})),n(Y,z)}),U(le);var Ce=u(le);U(B),v(()=>l(Ce,`/${s(Oe)??""}`)),n(d,B)};I(Pt,d=>{s(ye)||d(Dt)})}U(Pe);var Ve=u(Pe,2);{const d=(f,h=ee,P=ee,D=ee,S=ee,C=ee)=>{var o=ba();Be(o,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=j(o);{var e=m=>{var k=ma(),A=j(k);ra(A,{}),U(k),n(m,k)};I(t,m=>{h()==="active"&&m(e)})}var a=u(t,2),r=j(a);$t(r,{get icon(){return P()},size:14,get class(){return D()}}),U(a);var i=u(a,2),c=j(i);{var g=m=>{var k=st(),A=j(k);tt(A,S),U(k),se(1,k,()=>ge,()=>({axis:"y",tier:"moderate"})),se(2,k,()=>ge,()=>({axis:"y",tier:"moderate"})),n(m,k)},p=m=>{var k=st(),A=j(k);tt(A,C),U(k),se(1,k,()=>ge,()=>({axis:"y",tier:"moderate"})),se(2,k,()=>ge,()=>({axis:"y",tier:"moderate"})),n(m,k)};I(c,m=>{h()==="active"?m(g):m(p,-1)})}U(i),U(o),v(()=>Ue(a,1,`${aa} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),se(3,o,()=>ge,()=>({tier:"slow"})),n(f,o)},B=(f,h)=>{let P=Fe(()=>Ee(h?.(),""));var D=$(),S=w(D);{var C=t=>{{let e=y(()=>_.onboarding_setupCard_originalFolder_label());z(t,x,()=>s(e),G,()=>s(P))}},o=t=>{var e=L();v(()=>l(e,`${x()??""}${s(P)??""}`)),n(t,e)};I(S,t=>{G()?t(C):t(o,-1)})}n(f,D)},le=f=>{var h=$(),P=w(h);{var D=o=>{var t=ha(),e=w(t),a=F(e,!0),r=u(e,2),i=F(r),c=u(r,2);{var g=p=>{var m=xa(),k=F(m,!0);v(()=>l(k,s(ze))),n(p,m)};I(c,p=>{s(ze)&&p(g)})}v((p,m)=>{l(a,p),Be(i,`width: ${s(xe)??""}%`),je(i,"aria-label",m),je(i,"aria-valuenow",s(xe))},[()=>_.workspace_compactInitializer_progressWithPercent_label({label:nt(E()),percent:da(s(xe))}),()=>nt(E())]),n(o,t)},S=o=>{var t=fe(),e=w(t),a=u(e);{let r=y(()=>_.onboarding_setupCard_opening_after());B(a,()=>s(r))}v(r=>l(e,`${r??""} `),[()=>_.onboarding_setupCard_opening_before()]),n(o,t)},C=o=>{var t=fe(),e=w(t),a=u(e);B(a),v(r=>l(e,`${r??""} `),[()=>_.onboarding_setupCard_creatingIsolatedCopy_before()]),n(o,t)};I(P,o=>{s(bt)&&E()?o(D):ie()||ue()?o(S,1):o(C,-1)})}n(f,h)},he=f=>{var h=$(),P=w(h);{var D=o=>{const t=y(()=>V()||G());var e=Ca(),a=j(e),r=u(a);{var i=p=>{We(p,{get filePath(){return s(t)},get workspaceId(){return oe()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(m,k)=>{{let A=y(()=>Ae(s(t)));Y(m,()=>s(A),()=>".")}},$$slots:{default:!0}})},c=p=>{var m=L();v(()=>l(m,`${x()??""}.`)),n(p,m)};I(r,p=>{s(t)?p(i):p(c,-1)})}var g=u(r);U(e),v((p,m)=>{l(a,`${p??""} `),l(g,` ${m??""}`)},[()=>_.onboarding_setupCard_workingInFolder_before(),()=>_.onboarding_setupCard_plainFolderInPlace_label()]),n(o,e)},S=o=>{var t=wa(),e=w(t),a=u(e),r=F(a,!0),i=u(a,2);{var c=p=>{var m=fe(),k=w(m),A=u(k);We(A,{get filePath(){return V()},get workspaceId(){return oe()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(K,de)=>{{let ne=y(()=>Ae(V()));Y(K,()=>s(ne),()=>".")}},$$slots:{default:!0}}),v(K=>l(k,` ${K??""} `),[()=>_.onboarding_setupCard_at_label()]),n(p,m)},g=p=>{var m=L(".");n(p,m)};I(i,p=>{V()?p(c):p(g,-1)})}v(p=>{l(e,`${p??""} `),l(r,s(xt))},[()=>_.onboarding_setupCard_workingDirectlyOn_before()]),n(o,t)},C=o=>{var t=ot(),e=w(t),a=u(e);B(a);var r=u(a,2);{var i=g=>{var p=fe(),m=w(p),k=u(m);We(k,{get filePath(){return V()},get workspaceId(){return oe()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(A,K)=>{{let de=y(()=>Ae(V()));Y(A,()=>s(de),()=>".")}},$$slots:{default:!0}}),v(A=>l(m,` ${A??""} `),[()=>_.onboarding_setupCard_at_label()]),n(g,p)},c=g=>{var p=L(".");n(g,p)};I(r,g=>{V()?g(i):g(c,-1)})}v(g=>l(e,`${g??""} `),[()=>_.onboarding_setupCard_createdIsolatedCopy_before()]),n(o,t)};I(P,o=>{ue()?o(D):ie()?o(S,1):o(C,-1)})}n(f,h)},Ce=f=>{var h=$(),P=w(h);{var D=o=>{var t=$(),e=w(t);{var a=i=>{var c=Sa(),g=w(c),p=u(g),m=F(p,!0),k=u(p,1,!0);v((A,K)=>{l(g,`${A??""} `),l(m,H()),l(k,K)},[()=>_.onboarding_setupCard_workingOnBranchNamed_before(),()=>_.onboarding_setupCard_workingOnBranchActive_after()]),n(i,c)},r=i=>{var c=L();v(g=>l(c,g),[()=>_.onboarding_setupCard_workingOnBranch_label()]),n(i,c)};I(e,i=>{H()?i(a):i(r,-1)})}n(o,t)},S=o=>{var t=ya(),e=w(t),a=u(e),r=F(a,!0),i=u(a),c=u(i);{let g=y(()=>_.onboarding_setupCard_baseRef_label()),p=y(()=>_.onboarding_setupCard_creatingBranch_after());z(c,te,()=>s(g),()=>{},()=>s(p))}v((g,p)=>{l(e,`${g??""} `),l(r,H()),l(i,` ${p??""} `)},[()=>_.onboarding_setupCard_creatingBranch_before(),()=>_.onboarding_setupCard_creatingBranch_middle()]),n(o,t)},C=o=>{var t=L();v(e=>l(t,e),[()=>_.onboarding_setupCard_creatingBranchNoName_label()]),n(o,t)};I(P,o=>{ie()?o(D):H()?o(S,1):o(C,-1)})}n(f,h)},Y=(f,h=ee,P)=>{let D=Fe(()=>Ee(P?.(),""));const S=y(()=>Array.from(h()));var C=ka(),o=w(C),t=F(o,!0),e=u(o),a=j(e),r=F(a,!0),i=u(a),c=F(i,!0);U(e),v((g,p)=>{l(t,g),l(r,p),l(c,s(D))},[()=>s(S).slice(0,-1).join(""),()=>s(S).at(-1)??""]),n(f,C)},z=(f,h=ee,P=ee,D=ee,S)=>{let C=Fe(()=>Ee(S?.(),""));const o=y(()=>s(C).match(/^\p{P}+/u)?.[0]??"");var t=Pa(),e=w(t);Le(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>wt(D()??h(),P()),children:(r,i)=>{Y(r,h,()=>s(o))},$$slots:{default:!0}});var a=u(e,1,!0);v(r=>l(a,r),[()=>s(C).slice(s(o).length)]),n(f,t)},we=f=>{var h=$(),P=w(h);{var D=o=>{var t=$(),e=w(t);{var a=i=>{var c=fe(),g=w(c),p=u(g);{let m=y(()=>_.onboarding_setupCard_branchName_label()),k=y(()=>_.onboarding_setupCard_workingOnBranchDone_after());z(p,H,()=>s(m),()=>{},()=>s(k))}v(m=>l(g,`${m??""} `),[()=>_.onboarding_setupCard_workingOnBranchNamed_before()]),n(i,c)},r=i=>{var c=L();v(g=>l(c,g),[()=>_.onboarding_setupCard_workingDirectlyOnBranch_label()]),n(i,c)};I(e,i=>{H()?i(a):i(r,-1)})}n(o,t)},S=o=>{var t=ot(),e=w(t),a=u(e);{let i=y(()=>_.onboarding_setupCard_branchName_label()),c=y(()=>_.onboarding_setupCard_workingInNewBranch_middle());z(a,H,()=>s(i),()=>{},()=>s(c))}var r=u(a,2);{let i=y(()=>_.onboarding_setupCard_baseRef_label()),c=y(()=>_.onboarding_setupCard_workingInNewBranch_after());z(r,te,()=>s(i),()=>{},()=>s(c))}v(i=>l(e,`${i??""} `),[()=>_.onboarding_setupCard_workingInNewBranch_before()]),n(o,t)},C=o=>{var t=L();v(e=>l(t,e),[()=>_.onboarding_setupCard_branchCreated_label()]),n(o,t)};I(P,o=>{ie()?o(D):H()?o(S,1):o(C,-1)})}n(f,h)},Ft=f=>{De();var h=_e(),P=w(h),D=u(P);{var S=t=>{var e=it(),a=F(e,!0);v(()=>l(a,ae())),n(t,e)},C=t=>{var e=L();v(a=>l(e,a),[()=>_.onboarding_setupCard_project_label()]),n(t,e)};I(D,t=>{ae()?t(S):t(C,-1)})}var o=u(D);v((t,e)=>{l(P,`${t??""} `),l(o,` ${e??""}`)},[()=>_.onboarding_setupCard_runningSetup_before(),()=>_.onboarding_setupCard_runningSetup_after()]),n(f,h)},Et=f=>{De();var h=Ia(),P=w(h),D=u(P);{var S=r=>{var i=it(),c=F(i,!0);v(()=>l(c,ae())),n(r,i)},C=r=>{var i=L();v(c=>l(i,c),[()=>_.onboarding_setupCard_project_label()]),n(r,i)};I(D,r=>{ae()?r(S):r(C,-1)})}var o=u(D),t=u(o);{var e=r=>{var i=fe(),c=w(i),g=u(c);rt(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:A=>{Le(A,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return R()},children:(K,de)=>{De();var ne=L();v(Se=>l(ne,Se),[()=>_.onboarding_setupCard_terminalTab_label()]),n(K,ne)},$$slots:{default:!0}})},content:A=>{var K=$(),de=w(K);{var ne=Se=>{var Qe=Da(),Wt=F(Qe,!0);v(()=>l(Wt,pe())),n(Se,Qe)};I(de,Se=>{pe()&&Se(ne)})}n(A,K)},footer:A=>{var K=lt(),de=F(K,!0);v(ne=>l(de,ne),[()=>_.onboarding_setupCard_openTerminal_footer()]),n(A,K)},$$slots:{trigger:!0,content:!0,footer:!0}}),v(p=>l(c,` ${p??""} `),[()=>_.onboarding_setupCard_ranSetupIn_middle()]),n(r,i)};I(t,r=>{R()&&r(e)})}var a=u(t,1,!0);v((r,i,c)=>{l(P,`${r??""} `),l(o,` ${i??""}`),l(a,c)},[()=>_.onboarding_setupCard_ranSetup_before(),()=>_.onboarding_setupCard_ranSetup_middle(),()=>_.onboarding_setupCard_ranSetup_after()]),n(f,h)},ce=f=>{rt(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:S=>{Le(S,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:St,children:(C,o)=>{De();var t=L();v(()=>l(t,s(Ct))),n(C,t)},$$slots:{default:!0}})},content:S=>{var C=$(),o=w(C);{var t=e=>{var a=Na(),r=F(a,!0);v(()=>l(r,s(Te).description)),n(e,a)};I(o,e=>{s(Te)&&e(t)})}n(S,C)},footer:S=>{var C=lt(),o=F(C,!0);v(t=>l(o,t),[()=>_.onboarding_setupCard_editInSettings_footer()]),n(S,C)},$$slots:{trigger:!0,content:!0,footer:!0}})},Bt=f=>{var h=$(),P=w(h);{var D=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_agentReadyNamed_before(),()=>_.onboarding_setupCard_agentReadyNamed_after()]),n(e,a)},S=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_agentReady_label()]),n(e,a)},C=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_specStartingUp_before(),()=>_.onboarding_setupCard_specStartingUp_after()]),n(e,a)},o=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_startingUpNamed_before(),()=>_.onboarding_setupCard_startingUpNamed_after()]),n(e,a)},t=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_startingUp_label()]),n(e,a)};I(P,e=>{!re()&&W()?e(D):re()?s(He)?e(C,2):W()?e(o,3):e(t,-1):e(S,1)})}n(f,h)},Lt=f=>{var h=$(),P=w(h);{var D=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_agentReadyNamed_before(),()=>_.onboarding_setupCard_agentReadyNamed_after()]),n(e,a)},S=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_agentReady_label()]),n(e,a)},C=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_specDone_before(),()=>_.onboarding_setupCard_specDone_after()]),n(e,a)},o=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_agentDoneNamed_before(),()=>_.onboarding_setupCard_agentDoneNamed_after()]),n(e,a)},t=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_agentOrienting_label()]),n(e,a)};I(P,e=>{!re()&&W()?e(D):re()?s(He)?e(C,2):W()?e(o,3):e(t,-1):e(S,1)})}n(f,h)};var $e=j(Ve);{var It=f=>{d(f,ve,()=>Xt,()=>"-ml-px transform scale-[0.98]",()=>le,()=>he)};I($e,f=>{ve()!=="pending"&&f(It)})}var Xe=u($e,2);{var Nt=f=>{d(f,me,()=>Jt,()=>"",()=>Ce,()=>we)};I(Xe,f=>{me()!=="pending"&&!ie()&&!ue()&&f(Nt)})}var Je=u(Xe,2);{var Tt=f=>{d(f,q,()=>Qt,()=>"ml-[0.5px]",()=>Ft,()=>Et)};I(Je,f=>{q()&&q()!=="pending"&&f(Tt)})}var Ot=u(Je,2);{var At=f=>{d(f,be,()=>Zt,()=>"ml-[-0.5px]",()=>Bt,()=>Lt)};I(Ot,f=>{be()!=="pending"&&f(At)})}U(Ve)}U(ke),v(()=>Ue(ke,1,`${ta} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),n(M,ke);var Rt=pt(yt);return X(),Rt}export{va as R,Oa as W,rr as a,ar as c,nr as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ie}from"./
|
|
1
|
+
import{g as ie}from"./xs1C7KnJ.js";import{s as re}from"./DSIsc1Ss.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./D-usBtmP.js";import{c as Ee}from"./eGqXrC9g.js";import{aR as _e}from"./Bxb8LI6C.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],N=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(R){n.length=n.length-2*R,E.length=E.length-R,i.length=i.length-R}p(se,"popStack");function Rt(){var R;return R=T.pop()||k.lex()||Q,typeof R!="number"&&(R instanceof Array&&(T=R,R=T.pop()),R=f.symbols_[R]||R),R}p(Rt,"lex");for(var x,U,O,bt,J={},ft,Y,Nt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Rt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[x]||x)+"'":kt="Parse error on line "+(G+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(kt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:pt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+x);switch(O[0]){case 1:n.push(x),E.push(k.yytext),i.push(k.yylloc),n.push(O[1]),x=null,X=k.yyleng,d=k.yytext,G=k.yylineno,_t=k.yylloc;break;case 2:if(Y=this.productions_[O[1]][1],J.$=E[E.length-Y],J._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ee&&(J._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),bt=this.performAction.apply(J,[d,X,G,W.yy,O[1],E,i].concat(Tt)),typeof bt<"u")return bt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),i=i.slice(0,-1*Y)),n.push(this.productions_[O[1]][0]),E.push(J.$),i.push(J._$),Nt=B[n[n.length-2]][n[n.length-1]],n.push(Nt);break;case 3:return!0}}return!0},"parse")},te=(function(){var V={EOF:1,parseError:p(function(f,n){if(this.yy.parser)this.yy.parser.parseError(f,n);else throw new Error(f)},"parseError"),setInput:p(function(o,f){return this.yy=f||this.yy||{},this._input=o,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:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var f=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var T=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 E=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===T.length?this.yylloc.first_column:0)+T[T.length-n.length].length-n[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|