@autocode-cli/autocode 0.28.1 → 0.36.0
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/.output/nitro.json +1 -1
- package/.output/public/_i18n/Ld0h1Adq/en/messages.json +1 -0
- package/.output/public/_i18n/Ld0h1Adq/fr/messages.json +1 -0
- package/.output/public/_nuxt/00BWY9Ij.js +10 -0
- package/.output/public/_nuxt/{DqQxVbWA.js → 48RFRq_I.js} +1 -1
- package/.output/public/_nuxt/{AM5G3Gb5.js → 6gOFoOBv.js} +1 -1
- package/.output/public/_nuxt/7sR_btEk.js +1 -0
- package/.output/public/_nuxt/{DVrAHktU.js → Amqf1SBE.js} +1 -1
- package/.output/public/_nuxt/{B2zBdK3d.js → B0yQK1au.js} +1 -1
- package/.output/public/_nuxt/{DDhcSt_S.js → B3JaNZxX.js} +1 -1
- package/.output/public/_nuxt/{BHVpJd4P.js → BAAiS_qy.js} +1 -1
- package/.output/public/_nuxt/{hAo59O9E.js → BAOdxXv4.js} +1 -1
- package/.output/public/_nuxt/BGJFtQgK.js +1 -0
- package/.output/public/_nuxt/BMQOAvhP.js +1 -0
- package/.output/public/_nuxt/{CebUck3P.js → BPxDXB13.js} +1 -1
- package/.output/public/_nuxt/{Cm0Kz8KR.js → BQMX0Vtg.js} +1 -1
- package/.output/public/_nuxt/{H1ZdG1j9.js → BQPgjGfs.js} +1 -1
- package/.output/public/_nuxt/{BQNoAdwZ.js → BRNVrR0Q.js} +1 -1
- package/.output/public/_nuxt/{DUmRoRZn.js → BRR7H4VZ.js} +1 -1
- package/.output/public/_nuxt/{CPo_B76D.js → BStRXLlp.js} +1 -1
- package/.output/public/_nuxt/{D1bOowq2.js → BTUypKON.js} +1 -1
- package/.output/public/_nuxt/{Dg0UerBw.js → BZ5eH4oZ.js} +1 -1
- package/.output/public/_nuxt/{CTBcrkyt.js → BcjH67ba.js} +1 -1
- package/.output/public/_nuxt/{BeGyjVK0.js → BrtBSWOq.js} +1 -1
- package/.output/public/_nuxt/{E6PL7Nzd.js → C0Gbbife.js} +1 -1
- package/.output/public/_nuxt/{DrakT86i.js → C9P-GWig.js} +1 -1
- package/.output/public/_nuxt/{xpS189GL.js → C9Q_XE2y.js} +1 -1
- package/.output/public/_nuxt/{BPzjv_6i.js → CCEPkO9Q.js} +1 -1
- package/.output/public/_nuxt/{Dh-Zeb3O.js → CFJDHFu0.js} +1 -1
- package/.output/public/_nuxt/{Bpmmm66_.js → CFQXrjRh.js} +1 -1
- package/.output/public/_nuxt/{sXDQPz8X.js → CGNl3nJG.js} +1 -1
- package/.output/public/_nuxt/{Cx_L8WQj.js → CKjR6Oik.js} +1 -1
- package/.output/public/_nuxt/{B9C0HWuW.js → CTLXeCVr.js} +1 -1
- package/.output/public/_nuxt/{BWz5jw0L.js → CXfoqgHV.js} +1 -1
- package/.output/public/_nuxt/{5FWvGp_V.js → CZAptABr.js} +1 -1
- package/.output/public/_nuxt/{DGllJptg.js → CaT6Gmvd.js} +1 -1
- package/.output/public/_nuxt/{C2GaASXz.js → CeKi_uUO.js} +1 -1
- package/.output/public/_nuxt/CercIbuG.js +1 -0
- package/.output/public/_nuxt/{D8OjLiok.js → CgTGeNUg.js} +1 -1
- package/.output/public/_nuxt/{Dk0kqhok.js → ChtvGXKc.js} +1 -1
- package/.output/public/_nuxt/{Dn7Pqpyg.js → CkQJAsUV.js} +1 -1
- package/.output/public/_nuxt/{DBPjp5rm.js → CnBvzpvA.js} +1 -1
- package/.output/public/_nuxt/{D5ooCSL9.js → Co4zaoac.js} +1 -1
- package/.output/public/_nuxt/CouFgKW5.js +1 -0
- package/.output/public/_nuxt/{Ch6U-XfV.js → CpoLuEmz.js} +1 -1
- package/.output/public/_nuxt/{xPRPCEbj.js → Cpxhv8Qg.js} +1 -1
- package/.output/public/_nuxt/{BVJEdOBz.js → D45sR6CZ.js} +1 -1
- package/.output/public/_nuxt/{Dq2LFE1d.js → DAGJ7zg9.js} +1 -1
- package/.output/public/_nuxt/{CEVkryQZ.js → DAlNcmKB.js} +1 -1
- package/.output/public/_nuxt/{C6NP8L7w.js → DDNH3Fq2.js} +1 -1
- package/.output/public/_nuxt/{C7oKuzsd.js → DQwsIvTZ.js} +1 -1
- package/.output/public/_nuxt/{CKs1TwM-.js → DRMwpGCv.js} +1 -1
- package/.output/public/_nuxt/{7OrNJZ8q.js → DYqWq1Vn.js} +1 -1
- package/.output/public/_nuxt/Dfr112Jw.js +1 -0
- package/.output/public/_nuxt/{D2RHUlLB.js → DkJTip7e.js} +1 -1
- package/.output/public/_nuxt/{BTpkhX3G.js → Dob4oaN0.js} +1 -1
- package/.output/public/_nuxt/{B1Etvs3c.js → DpYdB9MN.js} +1 -1
- package/.output/public/_nuxt/{DDBIX1Ge.js → DxNPZ1bU.js} +1 -1
- package/.output/public/_nuxt/{BsL_VgkM.js → I5zwxUB4.js} +1 -1
- package/.output/public/_nuxt/{DHK6Urm7.js → NIeoUmDE.js} +1 -1
- package/.output/public/_nuxt/{DadxcRMs.js → NVsyChWu.js} +1 -1
- package/.output/public/_nuxt/SK7I1OsC.js +1 -0
- package/.output/public/_nuxt/{CBV4OF4H.js → Wm7exVxY.js} +1 -1
- package/.output/public/_nuxt/{CWOdQCPj.js → _hRtkQ2r.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/eddd3f97-dfcd-4aa3-a8e7-9f432f427e6d.json +1 -0
- package/.output/public/_nuxt/cIYz9vRR.js +1 -0
- package/.output/public/_nuxt/cli.D68WAxVv.css +1 -0
- package/.output/public/_nuxt/{2UKQ6Srj.js → ge5HoFHn.js} +3 -3
- package/.output/public/_nuxt/{index.Dndk3KN9.css → index.B-MCQhP8.css} +1 -1
- package/.output/public/_nuxt/index.CPvzWVwd.css +1 -0
- package/.output/public/_nuxt/{BZwqSlWD.js → ivFMXWZI.js} +1 -1
- package/.output/public/_nuxt/kdqZYFE6.js +1 -0
- package/.output/public/_nuxt/{Dye3__N7.js → nSLZfjDc.js} +3 -3
- package/.output/public/_nuxt/new.84MgEEsd.css +1 -0
- package/.output/public/_nuxt/prompt.CNw9EZnJ.css +1 -0
- package/.output/public/_nuxt/{CGLkc3In.js → t7k_e5FQ.js} +1 -1
- package/.output/public/_nuxt/{CNa2gyMe.js → uL1fX62J.js} +1 -1
- package/.output/public/_payload.json +1 -1
- package/.output/public/api/_openapi.json +1 -1
- package/.output/public/docs/api/_payload.json +1 -1
- package/.output/public/docs/api/index.html +8 -4
- package/.output/public/docs/cli/_payload.json +1 -1
- package/.output/public/docs/cli/index.html +13 -13
- package/.output/public/index.html +1 -1
- package/.output/server/chunks/_/en.mjs +5 -1
- package/.output/server/chunks/_/en.mjs.map +1 -1
- package/.output/server/chunks/_/fr.mjs +5 -1
- package/.output/server/chunks/_/fr.mjs.map +1 -1
- package/.output/server/chunks/build/LandingFooter-styles.CudcJSR4.mjs +8 -0
- package/.output/server/chunks/build/LandingFooter-styles.CudcJSR4.mjs.map +1 -0
- package/.output/server/chunks/build/{cli-CZwbcgW5.mjs → cli-S2geGQoF.mjs} +27 -14
- package/.output/server/chunks/build/cli-S2geGQoF.mjs.map +1 -0
- package/.output/server/chunks/build/cli-styles.BonhH80m.mjs +8 -0
- package/.output/server/chunks/build/cli-styles.BonhH80m.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{en-BwRtQJL1.mjs → en-BhagfGAQ.mjs} +6 -2
- package/.output/server/chunks/build/{en-BwRtQJL1.mjs.map → en-BhagfGAQ.mjs.map} +1 -1
- package/.output/server/chunks/build/{fr-BAbxj8tA.mjs → fr-12bubW4G.mjs} +6 -2
- package/.output/server/chunks/build/{fr-BAbxj8tA.mjs.map → fr-12bubW4G.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-CKZ58Ox2.mjs → index-BZJzUQ3B.mjs} +27 -17
- package/.output/server/chunks/build/index-BZJzUQ3B.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BP9liX_F.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BP9liX_F.mjs.map +1 -0
- package/.output/server/chunks/build/{index-3KvoAMZW.mjs → index-tBZcd_Xi.mjs} +78 -182
- package/.output/server/chunks/build/index-tBZcd_Xi.mjs.map +1 -0
- package/.output/server/chunks/build/{new-BI12IpeK.mjs → new-BqYiaSD7.mjs} +19 -19
- package/.output/server/chunks/build/{new-BI12IpeK.mjs.map → new-BqYiaSD7.mjs.map} +1 -1
- package/.output/server/chunks/build/new-styles.BPjkN6Iy.mjs +8 -0
- package/.output/server/chunks/build/new-styles.BPjkN6Iy.mjs.map +1 -0
- package/.output/server/chunks/build/{prompt-BjvwrM-J.mjs → prompt-D-xu1MtO.mjs} +41 -12
- package/.output/server/chunks/build/prompt-D-xu1MtO.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-styles.Dvlc6Xra.mjs +8 -0
- package/.output/server/chunks/build/prompt-styles.Dvlc6Xra.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +9 -9
- package/.output/server/chunks/build/styles.mjs +15 -21
- package/.output/server/chunks/nitro/nitro.mjs +545 -515
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/.well-known/appspecific/_...path_.mjs +34 -0
- package/.output/server/chunks/routes/.well-known/appspecific/_...path_.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/history.get.mjs +3 -2
- package/.output/server/chunks/routes/api/issues/_id/history.get.mjs.map +1 -1
- package/.output/server/node_modules/.prisma/client/index.js +4 -3
- package/.output/server/node_modules/.prisma/client/package.json +1 -1
- package/.output/server/package.json +1 -1
- package/bin/autocode +176 -4
- package/package.json +5 -6
- package/prisma/migrations/20260104173538_init/migration.sql +142 -0
- package/prisma/migrations/20260104180000_pipeline_versioning/migration.sql +216 -0
- package/prisma/migrations/20260104190638_add_column_prompts/migration.sql +50 -0
- package/prisma/migrations/20260105120000_remove_column_prompts/migration.sql +3 -0
- package/prisma/migrations/20260105150000_normalize_pipeline_names/migration.sql +37 -0
- package/prisma/migrations/20260105170000_remove_slug_prefixes/migration.sql +16 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +185 -0
- package/templates/prompts/_transition-decision.en.md +41 -25
- package/templates/prompts/_transition-decision.fr.md +28 -11
- package/templates/prompts/design.en.md +31 -9
- package/templates/prompts/design.fr.md +31 -9
- package/templates/prompts/git-tag.en.md +47 -11
- package/templates/prompts/git-tag.fr.md +47 -11
- package/templates/prompts/in-progress.en.md +43 -9
- package/templates/prompts/in-progress.fr.md +44 -10
- package/templates/prompts/qualification.en.md +48 -17
- package/templates/prompts/qualification.fr.md +48 -17
- package/templates/prompts/retest-cypress.en.md +14 -3
- package/templates/prompts/retest-cypress.fr.md +14 -3
- package/templates/prompts/review-security.en.md +35 -6
- package/templates/prompts/review-security.fr.md +35 -6
- package/templates/prompts/specification.en.md +29 -7
- package/templates/prompts/specification.fr.md +29 -7
- package/templates/prompts/splitter.en.md +50 -28
- package/templates/prompts/splitter.fr.md +52 -31
- package/templates/prompts/testing-cypress.en.md +14 -4
- package/templates/prompts/testing-cypress.fr.md +14 -4
- package/templates/prompts/testing-integration.en.md +39 -3
- package/templates/prompts/testing-integration.fr.md +39 -3
- package/.output/public/_i18n/1tr7GMXh/en/messages.json +0 -1
- package/.output/public/_i18n/1tr7GMXh/fr/messages.json +0 -1
- package/.output/public/_nuxt/BLgRKHG3.js +0 -1
- package/.output/public/_nuxt/Bn3kTsBm.js +0 -1
- package/.output/public/_nuxt/D1HszwGo.js +0 -1
- package/.output/public/_nuxt/D3gNfEFX.js +0 -1
- package/.output/public/_nuxt/DYSILRDe.js +0 -1
- package/.output/public/_nuxt/F0VLILv_.js +0 -1
- package/.output/public/_nuxt/_bAHEawb.js +0 -1
- package/.output/public/_nuxt/builds/meta/869ae272-5034-4cd9-bcf3-c435cd504497.json +0 -1
- package/.output/public/_nuxt/cli.e1u7fwy6.css +0 -1
- package/.output/public/_nuxt/eYN6S-_a.js +0 -1
- package/.output/public/_nuxt/index.COVdL_Kx.css +0 -1
- package/.output/public/_nuxt/new.BFERdqdm.css +0 -1
- package/.output/public/_nuxt/prompt.DZ0wdOji.css +0 -1
- package/.output/public/_nuxt/x-ybRJG0.js +0 -10
- package/.output/public/_nuxt/xFbyDfcC.js +0 -1
- package/.output/server/chunks/build/LandingArchitecture-styles.Don6ug3a.mjs +0 -8
- package/.output/server/chunks/build/LandingArchitecture-styles.Don6ug3a.mjs.map +0 -1
- package/.output/server/chunks/build/LandingDocs-styles.FyNL7DNS.mjs +0 -8
- package/.output/server/chunks/build/LandingDocs-styles.FyNL7DNS.mjs.map +0 -1
- package/.output/server/chunks/build/LandingFooter-styles.sSpn5cgM.mjs +0 -8
- package/.output/server/chunks/build/LandingFooter-styles.sSpn5cgM.mjs.map +0 -1
- package/.output/server/chunks/build/LandingRoadmap-styles.DX5EsTsx.mjs +0 -8
- package/.output/server/chunks/build/LandingRoadmap-styles.DX5EsTsx.mjs.map +0 -1
- package/.output/server/chunks/build/cli-CZwbcgW5.mjs.map +0 -1
- package/.output/server/chunks/build/cli-styles.CSdcLhw8.mjs +0 -8
- package/.output/server/chunks/build/cli-styles.CSdcLhw8.mjs.map +0 -1
- package/.output/server/chunks/build/index-3KvoAMZW.mjs.map +0 -1
- package/.output/server/chunks/build/index-CKZ58Ox2.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles.BJ7kZO7q.mjs +0 -8
- package/.output/server/chunks/build/index-styles.BJ7kZO7q.mjs.map +0 -1
- package/.output/server/chunks/build/new-styles.Chk5u_6M.mjs +0 -8
- package/.output/server/chunks/build/new-styles.Chk5u_6M.mjs.map +0 -1
- package/.output/server/chunks/build/prompt-BjvwrM-J.mjs.map +0 -1
- package/.output/server/chunks/build/prompt-styles.DWfublIG.mjs +0 -8
- package/.output/server/chunks/build/prompt-styles.DWfublIG.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as x}from"./
|
|
1
|
+
import{_ as x}from"./t7k_e5FQ.js";import{_ as C}from"./Amqf1SBE.js";import{d as T,H as F,x as h,m as I,v as L,c as a,f as v,e as n,h as e,k as V,t,F as D,q as H,w as B,b as i,s as S,g as X,_ as A}from"./nSLZfjDc.js";import{u as y}from"./C9Q_XE2y.js";const E={class:"terminal-page"},R={class:"card"},q={class:"section-header"},z={class:"session-badge"},J={key:0,class:"column-badge"},O={key:0,class:"loading"},W={key:1,class:"error-message"},Y={key:2,class:"empty"},j={key:3,class:"terminal-content"},G={class:"log-time"},K={class:"log-level"},M={class:"log-message"},P={class:"actions"},Q=T({__name:"terminal",async setup(U){let o,c;const p=F(),l=p.params.id,u=p.params.sessionId,{data:r}=([o,c]=h(()=>y(`/api/issues/${l}`,"$WXwXsy2rDm")),o=await o,c(),o),f=I(()=>{if(!r.value)return null;const s={id:r.value.key,title:r.value.title,column:r.value.column_slug};return r.value.priority&&(s.priority=r.value.priority),s}),{data:d,status:$,error:g}=([o,c]=h(()=>y(`/api/issues/${l}/history/${u}/log`,"$7VJyO-YXL0")),o=await o,c(),o),k=s=>{const m=new Date(s);return isNaN(m.getTime())?s:m.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit",second:"2-digit"})};return L({title:`Terminal ${u} - ${l} - AutoCode`}),(s,m)=>{const w=x,b=C;return i(),a("div",E,[v(w,{issue:e(f),"active-tab":"history"},null,8,["issue"]),n("div",R,[n("div",q,[n("h2",null,t(s.$t("history.viewTerminal")),1),n("span",z,t(e(u)),1),e(d)?.column?(i(),a("span",J,t(e(d).column),1)):V("",!0)]),e($)==="pending"?(i(),a("div",O,t(s.$t("app.loading")),1)):e(g)?(i(),a("div",W,t(e(g).message),1)):e(d)?.logs?.length?(i(),a("div",j,[(i(!0),a(D,null,H(e(d).logs,(_,N)=>(i(),a("div",{key:N,class:S(["log-entry",`log-${_.level}`])},[n("span",G,t(k(_.timestamp)),1),n("span",K,t(_.level),1),n("span",M,t(_.message),1)],2))),128))])):(i(),a("div",Y,t(s.$t("terminal.noLogs")),1))]),n("div",P,[v(b,{to:`/issue/${e(l)}/history`,class:"btn-secondary"},{default:B(()=>[X(t(s.$t("nav.back")),1)]),_:1},8,["to"])])])}}}),os=A(Q,[["__scopeId","data-v-608b488c"]]);export{os as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as nt,v as ot,p as rt,V as it,C as ut,m as Se,_ as ct,o as dt,s as Ie,a as mt,b as he,c as Ke,d as pe,g as fe,e as pt,f as ft,h as vt,w as De,i as je,j as ht,x as yt,k as Ae,F as bt,J as gt,W as xt,I as kt,K as wt,T as te,l as ve,n as Me,q as Je,r as V,Z as ze,t as X,y as Ct,z as $e,A as qe,B as Qe,D as Rt,M as ge,E as _t,G as be,H as $t,L as xe,Q as Ye,N as Ee,$ as Pe,O as Ne,P as qt,R as St,S as Et,U as ae,X as It,Y as Re,a0 as Dt,a1 as Be,a2 as Ut,a3 as Ue,a4 as Tt}from"./
|
|
1
|
+
import{u as nt,v as ot,p as rt,V as it,C as ut,m as Se,_ as ct,o as dt,s as Ie,a as mt,b as he,c as Ke,d as pe,g as fe,e as pt,f as ft,h as vt,w as De,i as je,j as ht,x as yt,k as Ae,F as bt,J as gt,W as xt,I as kt,K as wt,T as te,l as ve,n as Me,q as Je,r as V,Z as ze,t as X,y as Ct,z as $e,A as qe,B as Qe,D as Rt,M as ge,E as _t,G as be,H as $t,L as xe,Q as Ye,N as Ee,$ as Pe,O as Ne,P as qt,R as St,S as Et,U as ae,X as It,Y as Re,a0 as Dt,a1 as Be,a2 as Ut,a3 as Ue,a4 as Tt}from"./ge5HoFHn.js";import{d as ce,ao as Mt,r as K,ap as zt,c as L,o as we,b as m,f as b,D as Xe,j as S,k as z,h as e,E as Wt,e as d,ak as At,A as H,aj as Ot,an as jt,t as se,s as F,n as oe,aF as ye,m as B,w as k,F as ue,q as ke,g as re,z as Ge,ar as Oe,J as _e,aA as Pt,aJ as Nt,bc as Ve,al as Le,a9 as Bt,C as Vt,at as Lt,ay as Ht,I as Ze,aP as Ft}from"./nSLZfjDc.js";import{m as et,c as Kt,o as Jt,C as Qt,y as Yt,D as Xt,h as Gt}from"./6gOFoOBv.js";import{i as He}from"./BTUypKON.js";import{g as Zt,m as ea}from"./D45sR6CZ.js";import{a as ta,w as We}from"./BAAiS_qy.js";import{$ as aa}from"./I5zwxUB4.js";import{C as tt}from"./CgTGeNUg.js";import{m as sa}from"./BQPgjGfs.js";import"./92s3wAHG.js";import"./C9Q_XE2y.js";import"./BrtBSWOq.js";import"./DxNPZ1bU.js";import"./C0Gbbife.js";import"./BAOdxXv4.js";const la=["aria-label"],na=ce({inheritAttrs:!1,__name:"ScalarSidebarSearchInput",props:Mt({autofocus:{type:Boolean},loader:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const t=K(null),a=zt(r,"modelValue");function i(){a.value="",t.value&&t.value.focus()}const{stylingAttrsCx:p,otherAttrs:s}=nt();return we(()=>r.autofocus&&t.value?.focus()),(g,u)=>(m(),L("label",Ot(jt(e(p)("flex items-center rounded border text-base has-[:focus-visible]:bg-sidebar-b-1 has-[:focus-visible]:outline h-8 gap-1 pl-2 pr-1.5","bg-sidebar-b-search border-sidebar-border-search",a.value?"text-sidebar-c-1":"text-sidebar-c-search"))),[b(e(ot),{class:"text-sidebar-c-search size-4"}),Xe(d("input",At({ref_key:"inputRef",ref:t,"aria-label":g.label??"Enter search query",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 appearance-none rounded border-none bg-transparent outline-none",placeholder:"Search...",spellcheck:"false",type:"search"},e(s),{"onUpdate:modelValue":u[0]||(u[0]=v=>a.value=v)}),null,16,la),[[Wt,a.value]]),g.loader&&g.loader.isActive?(m(),S(e(rt),{key:0,class:"mr-3 self-center",loader:g.loader,size:"md"},null,8,["loader"])):a.value?(m(),S(e(ut),{key:1,class:"p-0.25 size-4",icon:e(it),weight:"bold",label:"Clear Search",onClick:H(i,["stop","prevent"])},null,8,["icon"])):z("",!0)],16))}}),oa={parse(r){try{return{error:!1,data:JSON.parse(r)}}catch(t){return{error:!0,message:t.message?String(t.message):"Unknown Error"}}}},ra=["aria-pressed"],ia={class:"sr-only"},ua={class:"size-4",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ca={"clip-path":"url(#mask)"},da=ce({__name:"SidebarToggle",setup(r){const{isSidebarOpen:t,toggleSidebarOpen:a}=Se();return(i,p)=>(m(),L("button",{"aria-pressed":e(t),class:"scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",type:"button",onClick:p[0]||(p[0]=(...s)=>e(a)&&e(a)(...s))},[d("span",ia,se(e(t)?"Hide":"Show")+" sidebar",1),(m(),L("svg",ua,[p[1]||(p[1]=d("defs",null,[d("clipPath",{id:"mask"},[d("path",{"clip-rule":"evenodd",d:"M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"})])],-1)),d("g",ca,[d("path",{class:F(["transition-transform duration-300",e(t)?"translate-x-0":"-translate-x-1/2"]),d:"M1 3.2h8v17.5H1z",fill:"currentColor"},null,2)]),p[2]||(p[2]=d("path",{d:"M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1))]))],8,ra))}}),ma={"page-view":dt({to:Ie(),from:Ie(),hostname:Ie()}),"client-send-request":ct()},at=Object.keys(ma);mt(at);const pa=(r,t)=>{async function a(i,...[p]){if(!at.includes(i))throw new Error("[Analytics]: Invalid event submission");const s=t();await fetch(`${r}/analytics/send`,{method:"POST",headers:{"content-type":"application/json",...s?{authorization:`Bearer ${s}`}:{}},body:JSON.stringify({event:i,data:p})})}return{capture:a}},fa=pa("https://api.scalar.com",()=>null);function va(){const{layout:r}=he();if(!(!Ke().value.telemetry||r==="modal"))return fa}const ha=r=>{const t={invalidParams:new Set,hasBlockingErrors:!1};return r&&(r.parameters?.path?.forEach(a=>{a.enabled&&a.value.trim()===""&&(t.invalidParams.add(a.key),t.hasBlockingErrors=!0)}),["query","headers","cookies"].forEach(a=>{r.parameters?.[a]?.forEach(i=>{i.required&&i.value===""&&t.invalidParams.add(i.key)})})),t},ya=5*1e3,ba=60*1e3,ga=()=>{const{toast:r}=Ae(),t=pe(),a=fe(),{activeCollection:i,activeWorkspace:p}=t,{collectionMutators:s}=a,g=l=>r(`[useOpenApiWatcher] Changes to the ${l} were not applied`,"error"),u=l=>{l.path[0]==="info"||l.path[0]==="security"?bt(l,t,a)||g("collection"):l.path[0]==="components"&&l.path[1]==="securitySchemes"?gt(l,t,a)||g("securitySchemes"):l.path[0]==="servers"?xt(l,t,a)||g("servers"):l.path[0]==="tags"?kt(l,t,a)||g("tags"):l.path[0]==="paths"&&(wt(l,t,a)||g("requests"))},{pause:v,resume:_}=pt(async()=>{const l=i.value?.documentUrl;if(!l)return;const $=De[l];try{const D=await ft(l,p.value?.proxyUrl,void 0,!1),C=vt(D);if(s.edit(i.value.uid,"watchModeStatus","WATCHING"),$?.hash)if($.hash&&$.hash!==C){const{schema:w}=await je(D),y=ht($.schema,w),U=yt(y);try{U.forEach(u),De[l]={hash:C,schema:w}}catch(E){console.error("[useOpenApiWatcher] Error:",E)}}else console.log("[useOpenApiWatcher] No changes detected yet…");else{const{schema:w}=await je(D);w&&(De[l]={hash:C,schema:w})}}catch(D){console.error("[useOpenApiWatcher] Error:",D),console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"),v(),s.edit(i.value.uid,"watchModeStatus","ERROR"),r("[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds","error"),setTimeout(()=>{console.info("[useOpenApiWatcher] Resuming watcher"),_()},ba)}},ya);oe([()=>i.value?.documentUrl,()=>i.value?.watchMode],([l,$])=>{l&&$?(console.info(`[useOpenApiWatcher] Watching ${l} …`),_()):i.value&&(v(),s.edit(i.value.uid,"watchModeStatus","IDLE"))},{immediate:!0})},xa=` ,\\
|
|
2
2
|
\\\\\\,_
|
|
3
3
|
\\\` ,\\
|
|
4
4
|
__,.-" =__)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,o as k,a as I,B as y,i as P}from"./
|
|
1
|
+
import{r as i,o as k,a as I,B as y,i as P}from"./nSLZfjDc.js";const C=globalThis.setInterval;function J(v={}){const{autoConnect:w=!0,reconnectDelay:W=3e3,maxReconnectAttempts:S=5}=v,u=P(),c=i(!1),p=i(null),r=i(null),l=i(0);let e=null,a=null,s=null;const m=()=>{if(u.public.wsUrl)return u.public.wsUrl;{const n=window.location.protocol==="https:"?"wss:":"ws:",o=window.location.hostname,t=window.location.port,f=u.public.wsPort;if(f&&f!==t)return`${n}//${o}:${f}`;const h=t?`:${t}`:"";return`${n}//${o}${h}/_ws`}},d=()=>{if(e?.readyState===WebSocket.OPEN)return;const n=m();if(n)try{e=new WebSocket(n),e.onopen=()=>{c.value=!0,l.value=0,console.log("[WS] Connected"),s=C(()=>{e?.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"ping"}))},3e4)},e.onmessage=o=>{try{const t=JSON.parse(o.data);p.value=t,t.type==="connected"&&(r.value=t.clientId)}catch(t){console.error("[WS] Parse error:",t)}},e.onclose=()=>{c.value=!1,r.value=null,console.log("[WS] Disconnected"),s&&(clearInterval(s),s=null),g()},e.onerror=o=>{console.error("[WS] Error:",o)}}catch(o){console.error("[WS] Connection failed:",o),g()}},b=()=>{a&&(clearTimeout(a),a=null),s&&(clearInterval(s),s=null),e&&(e.close(),e=null),c.value=!1,r.value=null},g=()=>{if(l.value>=S){console.log("[WS] Max reconnect attempts reached");return}a=setTimeout(()=>{l.value++,console.log(`[WS] Reconnecting (${l.value}/${S})...`),d()},W)},N=n=>{e?.readyState===WebSocket.OPEN?e.send(JSON.stringify(n)):console.warn("[WS] Cannot send message: not connected")},O=n=>{e?.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"subscribe",channel:n}))},$=n=>{e?.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"unsubscribe",channel:n}))};return w&&k(()=>{d()}),I(()=>{b()}),{isConnected:y(c),lastMessage:p,clientId:y(r),connect:d,disconnect:b,send:N,subscribe:O,unsubscribe:$}}export{C as s,J as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as u,m as h,c as n,b as s,F as g,q as f,p as r,e as v,t as y,s as k}from"./
|
|
1
|
+
import{d as u,m as h,c as n,b as s,F as g,q as f,p as r,e as v,t as y,s as k}from"./nSLZfjDc.js";import{N as x}from"./ge5HoFHn.js";const c=500,i=100,$=u({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(m){const p=m,e=h(()=>p.art.split(`
|
|
2
2
|
`)),d=(a,l)=>({animationDuration:`${a*i}ms, ${c}ms`,animationTimingFunction:`steps(${a}), step-end`,animationDelay:`${l*i}ms, 0ms`,animationIterationCount:`1, ${((e.value?.length??0)+(e.value?.[e.value?.length-1]?.length??0)+5)*i/c}`});return(a,l)=>(s(),n("div",{"aria-hidden":"true",class:k(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":a.animate}]),role:"presentation",inert:""},[(s(!0),n(g,null,f(e.value,(t,o)=>(s(),n("span",{key:o,class:"inline-block",style:r({width:`calc(${t.length+1}ch)`})},[v("span",{class:"inline-block whitespace-pre overflow-hidden",style:r(d(t.length,o))},y(t),5)],4))),128))],2))}}),_=x($,[["__scopeId","data-v-69ebd973"]]);export{_ as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{N as o}from"./
|
|
1
|
+
import{N as o}from"./ge5HoFHn.js";import{E as c}from"./C0Gbbife.js";import{i as r}from"./BTUypKON.js";import{d as n,c as i,b as p,e as a,f as e,h as t}from"./nSLZfjDc.js";const s=` .:=+++++=================-
|
|
2
2
|
.--#* :.
|
|
3
3
|
.-:-** -.
|
|
4
4
|
.:-::-+* =:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as ne,H as ae,y as oe,m as l,r as v,x as E,u as le,o as re,v as ie,c as r,e as a,k as C,t as n,h as e,s as ce,F as ue,D as de,E as pe,I as me,g as R,b as i,_ as ve}from"./
|
|
1
|
+
import{d as ne,H as ae,y as oe,m as l,r as v,x as E,u as le,o as re,v as ie,c as r,e as a,k as C,t as n,h as e,s as ce,F as ue,D as de,E as pe,I as me,g as R,b as i,_ as ve}from"./nSLZfjDc.js";import{u as fe}from"./BrtBSWOq.js";import{u as ge}from"./DxNPZ1bU.js";import{u as D}from"./C9Q_XE2y.js";const ye={class:"column-prompt-page"},_e={class:"page-header card"},he={class:"header-left"},be={key:0,class:"pipeline-badge"},ke={class:"header-right"},Ce=["disabled"],we=["disabled"],Pe={key:0,class:"loading card"},Se={key:1,class:"error-message card"},$e={key:2,class:"prompt-container card"},xe={key:0,class:"prompt-content"},Ne={class:"prompt-meta"},Be={class:"meta-item"},Ie={class:"meta-item"},Te={key:0,class:"meta-item meta-dirty"},Ve=ne({__name:"prompt",async setup(Fe){let u,g;const w=ae(),N=oe(),{success:P,error:B}=fe(),{pipelineConfig:M,isColumnInPipeline:q,addColumnBySlug:z,removeColumnBySlug:H,savePipeline:I,loadActivePipeline:j}=ge(),d=l(()=>w.params.slug),y=l(()=>w.query.pipeline||""),U=l(()=>w.query.name||""),G=l(()=>U.value||d.value),J=()=>{window.history.length>1?N.back():N.push("/kanban")},S=v(!1),c=v(!1),m=v(""),p=v(!1),_=v(!1),h=v(!1),{data:b,status:L,error:T,refresh:W}=([u,g]=E(()=>D(()=>{const s=new URLSearchParams;y.value&&s.set("pipeline",y.value);const o=s.toString();return`/api/columns/${d.value}/prompt${o?`?${o}`:""}`},"$jZPB4J8e0r")),u=await u,g(),u),f=l(()=>b.value?typeof b.value=="string"?b.value:b.value.content||"":""),V=l(()=>c.value?m.value:f.value),Z=l(()=>{const s=V.value;return!s||typeof s!="string"?0:s.split(`
|
|
2
2
|
`).length}),K=l(()=>{const s=V.value;return!s||typeof s!="string"?0:s.length}),O=async()=>{if(f.value)try{await navigator.clipboard.writeText(f.value),S.value=!0,setTimeout(()=>{S.value=!1},2e3)}catch(s){console.error("Failed to copy:",s)}},Q=()=>{m.value=f.value,p.value=!1,c.value=!0},X=()=>{p.value&&!confirm("Vous avez des modifications non enregistrées. Voulez-vous vraiment annuler ?")||(c.value=!1,p.value=!1)},Y=async()=>{_.value=!0;try{await $fetch(`/api/columns/${d.value}/actions`,{method:"PATCH",body:{content:m.value}}),P(t("pipeline.promptSaved")),p.value=!1,await W(),c.value=!1}catch{B(t("error.saveFailed"))}finally{_.value=!1}},{t}=le(),{data:F}=([u,g]=E(()=>D("/api/catalog","$8GjW2wVST-")),u=await u,g(),u),k=l(()=>{if(!F.value)return null;const s=d.value.replace(/^\d+_/,"");for(const o of["definition","action","finish"]){const A=F.value.segments[o].columns.find(se=>se.slug.replace(/^\d+_/,"")===s);if(A)return{...A,segment:o}}return null}),ee=l(()=>q(d.value)),$=l(()=>ee.value.inPipeline),te=async()=>{if(k.value){h.value=!0;try{if($.value)H(d.value),await I(),P(t("pipeline.columnRemoved"));else{const s=k.value.segment;z(d.value,k.value.name,s),await I(),P(t("pipeline.columnAdded"))}}catch{B(t("error.saveFailed"))}finally{h.value=!1}}};return re(()=>{j()}),ie({title:l(()=>`${d.value} - AutoCode`)}),(s,o)=>(i(),r("div",ye,[a("header",_e,[a("div",he,[a("button",{class:"back-link",onClick:J},"← "+n(e(t)("nav.back")),1),o[2]||(o[2]=a("span",{class:"header-separator"},"/",-1)),a("h1",null,n(e(G)),1),e(y)?(i(),r("span",be,n(e(y)),1)):C("",!0)]),a("div",ke,[!e(c)&&e(k)&&e(M)?(i(),r("button",{key:0,class:ce(["btn btn-sm",e($)?"btn-danger":"btn-success"]),disabled:e(h),onClick:te},n(e(h)?"...":e($)?e(t)("column.deactivate"):e(t)("column.activate")),11,Ce)):C("",!0),e(c)?C("",!0):(i(),r("button",{key:1,class:"btn btn-secondary btn-sm",onClick:O},n(e(S)?e(t)("form.copied"):e(t)("form.copy")),1)),e(c)?(i(),r(ue,{key:3},[a("button",{class:"btn btn-secondary btn-sm",onClick:X},n(e(t)("modal.cancel")),1),a("button",{class:"btn btn-primary btn-sm",disabled:e(_)||!e(p),onClick:Y},n(e(_)?e(t)("form.saving"):e(t)("form.save")),9,we)],64)):(i(),r("button",{key:2,class:"btn btn-primary btn-sm",onClick:Q},n(e(t)("column.edit")),1))])]),e(L)==="pending"?(i(),r("div",Pe,n(e(t)("app.loading")),1)):e(T)?(i(),r("div",Se,n(e(T).message),1)):(i(),r("div",$e,[e(c)?de((i(),r("textarea",{key:1,"onUpdate:modelValue":o[0]||(o[0]=x=>me(m)?m.value=x:null),class:"code-editor",spellcheck:"false",onInput:o[1]||(o[1]=x=>p.value=!0)},null,544)),[[pe,e(m)]]):(i(),r("pre",xe,[a("code",null,n(e(f)),1)])),a("div",Ne,[a("span",Be,[a("strong",null,n(e(t)("column.lines"))+":",1),R(" "+n(e(Z)),1)]),a("span",Ie,[a("strong",null,n(e(t)("column.chars"))+":",1),R(" "+n(e(K)),1)]),e(c)&&e(p)?(i(),r("span",Te,n(e(t)("form.unsavedChanges")),1)):C("",!0)])]))]))}}),Me=ve(Ve,[["__scopeId","data-v-bf4ee782"]]);export{Me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as f,r as u}from"./
|
|
1
|
+
import{B as f,r as u}from"./nSLZfjDc.js";const e=u([]);function v(){const t=n=>{const o=`notification-${Date.now()}-${Math.random().toString(36).slice(2)}`,i={id:o,duration:5e3,...n};e.value.push(i),i.duration&&i.duration>0&&setTimeout(()=>{s(o)},i.duration)},s=n=>{const o=e.value.findIndex(i=>i.id===n);o!==-1&&e.value.splice(o,1)},c=(n,o)=>{t({type:"success",message:n,...o!==void 0&&{duration:o}})},r=(n,o)=>{t({type:"error",message:n,duration:o??8e3})},a=(n,o)=>{t({type:"warning",message:n,...o!==void 0&&{duration:o}})},d=(n,o)=>{t({type:"info",message:n,...o!==void 0&&{duration:o}})};return{notifications:f(e),add:t,remove:s,success:c,error:r,warning:a,info:d}}export{v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bb as u,u as p}from"./
|
|
1
|
+
import{bb as u,u as p}from"./ge5HoFHn.js";import{d as f,m,c as o,b as n,F as h,q as b,e as s,t as i,h as l,aj as g,an as k}from"./nSLZfjDc.js";const c={"⌘":"Command","^":"Control",ctrl:"Control","⌥":"Option",alt:"Alt","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},A={Meta:"⌘",Shift:"⇧",Alt:"⌥",Control:"^"},C={Meta:"ctrl",Shift:"⇧",Alt:"alt",Control:"ctrl"};function x(e){return e==="default"}function v(e){const t=x(e)?"Meta":e;return u()?A[t]:C[t]}function w(e,t){return[...t.map(r=>v(r)),e]}function y(e){return e in c?c[e]:e}const S={"aria-hidden":"true",class:"contents"},M={class:"sr-only"},D=f({inheritAttrs:!1,__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(e){const{cx:t}=p(),r=m(()=>w(e.hotkey,e.modifier));return(B,E)=>(n(),o("div",g(k(l(t)("border-(--scalar-background-3) inline-flex gap-0.5 overflow-hidden rounded border text-xxs rounded-b p-1 font-medium uppercase leading-none"))),[(n(!0),o(h,null,b(r.value,(a,d)=>(n(),o("div",{key:d},[s("span",S,i(a),1),s("span",M,i(l(y)(a)),1)]))),128))],16))}});export{D as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,u as p,m as c,o as g,c as n,b as s,F as v,q as h,s as L,h as l,t as f,_ as S}from"./
|
|
1
|
+
import{d,u as p,m as c,o as g,c as n,b as s,F as v,q as h,s as L,h as l,t as f,_ as S}from"./nSLZfjDc.js";const b={class:"lang-switcher"},k=["title","onClick"],r="autocode-lang",w=d({__name:"LangSwitcher",setup(C){const{locale:a,locales:_,setLocale:u}=p(),i=c(()=>_.value),m=c(()=>a.value),o=async e=>{await u(e),localStorage.setItem(r,e),document.documentElement.lang=e};return g(()=>{const e=localStorage.getItem(r);e&&e!==a.value&&o(e),document.documentElement.lang=a.value}),(e,E)=>(s(),n("div",b,[(s(!0),n(v,null,h(l(i),t=>(s(),n("button",{key:t.code,class:L(["lang-btn",{active:l(m)===t.code}]),title:t.name,onClick:x=>o(t.code)},f(t.code.toUpperCase()),11,k))),128))]))}}),y=Object.assign(S(w,[["__scopeId","data-v-2d84a2aa"]]),{__name:"LangSwitcher"});export{y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aV as V,m as O,ax as w,aW as $,aX as A,af as H,aO as W,a as x,aa as I,n as T,av as G,au as X,r as Y,ae as U,aH as Z,z as J,aY as Q,h as z,aZ as K,C as L,a_ as k,a$ as tt}from"./Dye3__N7.js";const et=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],at=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",B=[];class nt{_data=new E;_hash=new E([...et]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const a=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(a/4294967296),this._data.words[(e+64>>>9<<4)+15]=a,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,a){const e=this._hash.words;let n=e[0],i=e[1],r=e[2],o=e[3],_=e[4],g=e[5],c=e[6],f=e[7];for(let u=0;u<64;u++){if(u<16)B[u]=t[a+u]|0;else{const m=B[u-15],h=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,l=B[u-2],P=(l<<15|l>>>17)^(l<<13|l>>>19)^l>>>10;B[u]=h+B[u-7]+P+B[u-16]}const b=_&g^~_&c,d=n&i^n&r^i&r,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),p=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),D=f+p+b+at[u]+B[u],v=y+d;f=c,c=g,g=_,_=o+D|0,o=r,r=i,i=n,n=D+v|0}e[0]=e[0]+n|0,e[1]=e[1]+i|0,e[2]=e[2]+r|0,e[3]=e[3]+o|0,e[4]=e[4]+_|0,e[5]=e[5]+g|0,e[6]=e[6]+c|0,e[7]=e[7]+f|0}_append(t){typeof t=="string"&&(t=E.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let a,e=this._data.sigBytes/64;t?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const n=e*16,i=Math.min(n*4,this._data.sigBytes);if(n){for(let r=0;r<n;r+=16)this._doProcessBlock(this._data.words,r);a=this._data.words.splice(0,n),this._data.sigBytes-=i}return new E(a,i)}}class E{words;sigBytes;constructor(t,a){t=this.words=t||[],this.sigBytes=a===void 0?t.length*4:a}static fromUtf8(t){const a=unescape(encodeURIComponent(t)),e=a.length,n=[];for(let i=0;i<e;i++)n[i>>>2]|=(a.charCodeAt(i)&255)<<24-i%4*8;return new E(n,e)}toBase64(){const t=[];for(let a=0;a<this.sigBytes;a+=3){const e=this.words[a>>>2]>>>24-a%4*8&255,n=this.words[a+1>>>2]>>>24-(a+1)%4*8&255,i=this.words[a+2>>>2]>>>24-(a+2)%4*8&255,r=e<<16|n<<8|i;for(let o=0;o<4&&a*8+o*6<this.sigBytes*8;o++)t.push(st.charAt(r>>>6*(3-o)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let a=0;a<t.sigBytes;a++){const e=t.words[a>>>2]>>>24-a%4*8&255;this.words[this.sigBytes+a>>>2]|=e<<24-(this.sigBytes+a)%4*8}else for(let a=0;a<t.sigBytes;a+=4)this.words[this.sigBytes+a>>>2]=t.words[a>>>2];this.sigBytes+=t.sigBytes}}function rt(s){return new nt().finalize(s).toBase64()}function C(s){return rt(V(s))}const ot={trailing:!0};function it(s,t=25,a={}){if(a={...ot,...a},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let e,n,i=[],r,o;const _=(f,u)=>(r=ct(s,f,u),r.finally(()=>{if(r=null,a.trailing&&o&&!n){const b=_(f,o);return o=null,b}}),r),g=function(...f){return a.trailing&&(o=f),r||new Promise(u=>{const b=!n&&a.leading;clearTimeout(n),n=setTimeout(()=>{n=null;const d=a.leading?e:_(this,f);o=null;for(const y of i)y(d);i=[]},t),b?(e=_(this,f),u(e)):i.push(u)})},c=f=>{f&&(clearTimeout(f),n=null)};return g.isPending=()=>!!n,g.cancel=()=>{c(n),i=[],o=null},g.flush=()=>{if(c(n),!o||r)return;const f=o;return o=null,_(this,f)},g}async function ct(s,t,a){return await s.apply(t,a)}const lt=Symbol.for("nuxt:client-only");function ut(...s){const t=typeof s[s.length-1]=="string"?s.pop():void 0;ft(s[0],s[1])&&s.unshift(t);let[a,e,n={}]=s,i=!1;const r=O(()=>w(a));if(typeof r.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof e!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const o=$();n.server??=!0,n.default??=ht,n.getCachedData??=q,n.lazy??=!1,n.immediate??=!0,n.deep??=A.deep,n.dedupe??="cancel",n._functionName,o._asyncData[r.value];function _(){const d={cause:"initial",dedupe:n.dedupe};return o._asyncData[r.value]?._init||(d.cachedData=n.getCachedData(r.value,o,{cause:"initial"}),o._asyncData[r.value]=j(o,r.value,e,n,d.cachedData)),()=>o._asyncData[r.value].execute(d)}const g=_(),c=o._asyncData[r.value];c._deps++;const f=n.server!==!1&&o.payload.serverRendered;{let d=function(h){const l=o._asyncData[h];l?._deps&&(l._deps--,l._deps===0&&l?._off())};const y=H();if(y&&f&&n.immediate&&!y.sp&&(y.sp=[]),y&&!y._nuxtOnBeforeMountCbs){y._nuxtOnBeforeMountCbs=[];const h=y._nuxtOnBeforeMountCbs;W(()=>{h.forEach(l=>{l()}),h.splice(0,h.length)}),x(()=>h.splice(0,h.length))}const p=y&&(y._nuxtClientOnly||I(lt,!1));f&&o.isHydrating&&(c.error.value||c.data.value!==void 0)?c.status.value=c.error.value?"error":"success":y&&(!p&&o.payload.serverRendered&&o.isHydrating||n.lazy)&&n.immediate?y._nuxtOnBeforeMountCbs.push(g):n.immediate&&c.status.value!=="success"&&g();const D=X(),v=T(r,(h,l)=>{if((h||l)&&h!==l){i=!0;const P=o._asyncData[l]?.data.value!==void 0,F=o._asyncDataPromises[l]!==void 0,R={cause:"initial",dedupe:n.dedupe};if(!o._asyncData[h]?._init){let S;l&&P?S=o._asyncData[l].data.value:(S=n.getCachedData(h,o,{cause:"initial"}),R.cachedData=S),o._asyncData[h]=j(o,h,e,n,S)}o._asyncData[h]._deps++,l&&d(l),(n.immediate||P||F)&&o._asyncData[h].execute(R),K(()=>{i=!1})}},{flush:"sync"}),m=n.watch?T(n.watch,()=>{i||o._asyncData[r.value]?._execute({cause:"watch",dedupe:n.dedupe})}):()=>{};D&&G(()=>{v(),m(),d(r.value)})}const u={data:M(()=>o._asyncData[r.value]?.data),pending:M(()=>o._asyncData[r.value]?.pending),status:M(()=>o._asyncData[r.value]?.status),error:M(()=>o._asyncData[r.value]?.error),refresh:(...d)=>o._asyncData[r.value]?._init?o._asyncData[r.value].execute(...d):_()(),execute:(...d)=>u.refresh(...d),clear:()=>{const d=o._asyncData[r.value];if(d?._abortController)try{d._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{d._abortController=void 0}N(o,r.value)}},b=Promise.resolve(o._asyncDataPromises[r.value]).then(()=>u);return Object.assign(b,u),b}function M(s){return O({get(){return s()?.value},set(t){const a=s();a&&(a.value=t)}})}function ft(s,t){return!(typeof s=="string"||typeof s=="object"&&s!==null||typeof s=="function"&&typeof t=="function")}function N(s,t){t in s.payload.data&&(s.payload.data[t]=void 0),t in s.payload._errors&&(s.payload._errors[t]=void 0),s._asyncData[t]&&(s._asyncData[t].data.value=z(s._asyncData[t]._default()),s._asyncData[t].error.value=void 0,s._asyncData[t].status.value="idle"),t in s._asyncDataPromises&&(s._asyncDataPromises[t]=void 0)}function dt(s,t){const a={};for(const e of t)a[e]=s[e];return a}function j(s,t,a,e,n){s.payload._errors[t]??=void 0;const i=e.getCachedData!==q,r=a,o=e.deep?Y:U,_=n!==void 0,g=s.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:o(_?n:e.default()),pending:O(()=>c.status.value==="pending"),error:Z(s.payload._errors,t),status:U("idle"),execute:(...f)=>{const[u,b=void 0]=f,d=u&&b===void 0&&typeof u=="object"?u:{};if(s._asyncDataPromises[t]&&(d.dedupe??e.dedupe)==="defer")return s._asyncDataPromises[t];{const D="cachedData"in d?d.cachedData:e.getCachedData(t,s,{cause:d.cause??"refresh:manual"});if(D!==void 0)return s.payload.data[t]=c.data.value=D,c.error.value=void 0,c.status.value="success",Promise.resolve(D)}c._abortController&&c._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),c._abortController=new AbortController,c.status.value="pending";const y=new AbortController,p=new Promise((D,v)=>{try{const m=d.timeout??e.timeout,h=_t([c._abortController?.signal,d?.signal],y.signal,m);if(h.aborted){const l=h.reason;v(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"));return}return h.addEventListener("abort",()=>{const l=h.reason;v(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"))},{once:!0,signal:y.signal}),Promise.resolve(r(s,{signal:h})).then(D,v)}catch(m){v(m)}}).then(async D=>{let v=D;e.transform&&(v=await e.transform(D)),e.pick&&(v=dt(v,e.pick)),s.payload.data[t]=v,c.data.value=v,c.error.value=void 0,c.status.value="success"}).catch(D=>{if(s._asyncDataPromises[t]&&s._asyncDataPromises[t]!==p||c._abortController?.signal.aborted)return s._asyncDataPromises[t];if(typeof DOMException<"u"&&D instanceof DOMException&&D.name==="AbortError")return c.status.value="idle",s._asyncDataPromises[t];c.error.value=Q(D),c.data.value=z(e.default()),c.status.value="error"}).finally(()=>{y.abort(),delete s._asyncDataPromises[t]});return s._asyncDataPromises[t]=p,s._asyncDataPromises[t]},_execute:it((...f)=>c.execute(...f),0,{leading:!0}),_default:e.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{g(),s._asyncData[t]?._init&&(s._asyncData[t]._init=!1),i||J(()=>{s._asyncData[t]?._init||(N(s,t),c.execute=()=>Promise.resolve())})}};return c}const ht=()=>{},q=(s,t,a)=>{if(t.isHydrating)return t.payload.data[s];if(a.cause!=="refresh:manual"&&a.cause!=="refresh:hook")return t.static.data[s]};function _t(s,t,a){const e=s.filter(r=>!!r);if(typeof a=="number"&&a>=0){const r=AbortSignal.timeout?.(a);r&&e.push(r)}if(AbortSignal.any)return AbortSignal.any(e);const n=new AbortController;for(const r of e)if(r.aborted){const o=r.reason??new DOMException("Aborted","AbortError");try{n.abort(o)}catch{n.abort()}return n.signal}const i=()=>{const o=e.find(_=>_.aborted)?.reason??new DOMException("Aborted","AbortError");try{n.abort(o)}catch{n.abort()}};for(const r of e)r.addEventListener?.("abort",i,{once:!0,signal:t});return n.signal}function gt(s,t,a){const[e={},n]=typeof t=="string"?[{},t]:[t,a],i=O(()=>w(s)),r=O(()=>w(e.key)||"$f"+C([n,typeof i.value=="string"?i.value:"",...yt(e)]));if(!e.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:o,lazy:_,default:g,transform:c,pick:f,watch:u,immediate:b,getCachedData:d,deep:y,dedupe:p,timeout:D,...v}=e,m=L({...k,...v,cache:typeof e.cache=="boolean"?void 0:e.cache}),h={server:o,lazy:_,default:g,transform:c,pick:f,immediate:b,getCachedData:d,deep:y,dedupe:p,timeout:D,watch:u===!1?[]:[...u||[],m]};return ut(u===!1?r.value:r,(P,{signal:F})=>(e.$fetch||globalThis.$fetch)(i.value,{signal:F,...m}),h)}function yt(s){const t=[w(s.method)?.toUpperCase()||"GET",w(s.baseURL)];for(const a of[s.query||s.params]){const e=w(a);if(!e)continue;const n={};for(const[i,r]of Object.entries(e))n[w(i)]=w(r);t.push(n)}if(s.body){const a=w(s.body);if(!a)t.push(C(a));else if(a instanceof ArrayBuffer)t.push(C(Object.fromEntries([...new Uint8Array(a).entries()].map(([e,n])=>[e,n.toString()]))));else if(a instanceof FormData){const e={};for(const n of a.entries()){const[i,r]=n;e[i]=r instanceof File?r.name:r}t.push(C(e))}else if(tt(a))t.push(C(L(a)));else try{t.push(C(a))}catch{console.warn("[useFetch] Failed to hash body",a)}}return t}export{ut as a,gt as u};
|
|
1
|
+
import{aV as V,m as O,ax as w,aW as $,aX as A,af as H,aO as W,a as x,aa as I,n as T,av as G,au as X,r as Y,ae as U,aH as Z,z as J,aY as Q,h as z,aZ as K,C as L,a_ as k,a$ as tt}from"./nSLZfjDc.js";const et=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],at=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",B=[];class nt{_data=new E;_hash=new E([...et]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const a=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(a/4294967296),this._data.words[(e+64>>>9<<4)+15]=a,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,a){const e=this._hash.words;let n=e[0],i=e[1],r=e[2],o=e[3],_=e[4],g=e[5],c=e[6],f=e[7];for(let u=0;u<64;u++){if(u<16)B[u]=t[a+u]|0;else{const m=B[u-15],h=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,l=B[u-2],P=(l<<15|l>>>17)^(l<<13|l>>>19)^l>>>10;B[u]=h+B[u-7]+P+B[u-16]}const b=_&g^~_&c,d=n&i^n&r^i&r,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),p=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),D=f+p+b+at[u]+B[u],v=y+d;f=c,c=g,g=_,_=o+D|0,o=r,r=i,i=n,n=D+v|0}e[0]=e[0]+n|0,e[1]=e[1]+i|0,e[2]=e[2]+r|0,e[3]=e[3]+o|0,e[4]=e[4]+_|0,e[5]=e[5]+g|0,e[6]=e[6]+c|0,e[7]=e[7]+f|0}_append(t){typeof t=="string"&&(t=E.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let a,e=this._data.sigBytes/64;t?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const n=e*16,i=Math.min(n*4,this._data.sigBytes);if(n){for(let r=0;r<n;r+=16)this._doProcessBlock(this._data.words,r);a=this._data.words.splice(0,n),this._data.sigBytes-=i}return new E(a,i)}}class E{words;sigBytes;constructor(t,a){t=this.words=t||[],this.sigBytes=a===void 0?t.length*4:a}static fromUtf8(t){const a=unescape(encodeURIComponent(t)),e=a.length,n=[];for(let i=0;i<e;i++)n[i>>>2]|=(a.charCodeAt(i)&255)<<24-i%4*8;return new E(n,e)}toBase64(){const t=[];for(let a=0;a<this.sigBytes;a+=3){const e=this.words[a>>>2]>>>24-a%4*8&255,n=this.words[a+1>>>2]>>>24-(a+1)%4*8&255,i=this.words[a+2>>>2]>>>24-(a+2)%4*8&255,r=e<<16|n<<8|i;for(let o=0;o<4&&a*8+o*6<this.sigBytes*8;o++)t.push(st.charAt(r>>>6*(3-o)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let a=0;a<t.sigBytes;a++){const e=t.words[a>>>2]>>>24-a%4*8&255;this.words[this.sigBytes+a>>>2]|=e<<24-(this.sigBytes+a)%4*8}else for(let a=0;a<t.sigBytes;a+=4)this.words[this.sigBytes+a>>>2]=t.words[a>>>2];this.sigBytes+=t.sigBytes}}function rt(s){return new nt().finalize(s).toBase64()}function C(s){return rt(V(s))}const ot={trailing:!0};function it(s,t=25,a={}){if(a={...ot,...a},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let e,n,i=[],r,o;const _=(f,u)=>(r=ct(s,f,u),r.finally(()=>{if(r=null,a.trailing&&o&&!n){const b=_(f,o);return o=null,b}}),r),g=function(...f){return a.trailing&&(o=f),r||new Promise(u=>{const b=!n&&a.leading;clearTimeout(n),n=setTimeout(()=>{n=null;const d=a.leading?e:_(this,f);o=null;for(const y of i)y(d);i=[]},t),b?(e=_(this,f),u(e)):i.push(u)})},c=f=>{f&&(clearTimeout(f),n=null)};return g.isPending=()=>!!n,g.cancel=()=>{c(n),i=[],o=null},g.flush=()=>{if(c(n),!o||r)return;const f=o;return o=null,_(this,f)},g}async function ct(s,t,a){return await s.apply(t,a)}const lt=Symbol.for("nuxt:client-only");function ut(...s){const t=typeof s[s.length-1]=="string"?s.pop():void 0;ft(s[0],s[1])&&s.unshift(t);let[a,e,n={}]=s,i=!1;const r=O(()=>w(a));if(typeof r.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof e!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const o=$();n.server??=!0,n.default??=ht,n.getCachedData??=q,n.lazy??=!1,n.immediate??=!0,n.deep??=A.deep,n.dedupe??="cancel",n._functionName,o._asyncData[r.value];function _(){const d={cause:"initial",dedupe:n.dedupe};return o._asyncData[r.value]?._init||(d.cachedData=n.getCachedData(r.value,o,{cause:"initial"}),o._asyncData[r.value]=j(o,r.value,e,n,d.cachedData)),()=>o._asyncData[r.value].execute(d)}const g=_(),c=o._asyncData[r.value];c._deps++;const f=n.server!==!1&&o.payload.serverRendered;{let d=function(h){const l=o._asyncData[h];l?._deps&&(l._deps--,l._deps===0&&l?._off())};const y=H();if(y&&f&&n.immediate&&!y.sp&&(y.sp=[]),y&&!y._nuxtOnBeforeMountCbs){y._nuxtOnBeforeMountCbs=[];const h=y._nuxtOnBeforeMountCbs;W(()=>{h.forEach(l=>{l()}),h.splice(0,h.length)}),x(()=>h.splice(0,h.length))}const p=y&&(y._nuxtClientOnly||I(lt,!1));f&&o.isHydrating&&(c.error.value||c.data.value!==void 0)?c.status.value=c.error.value?"error":"success":y&&(!p&&o.payload.serverRendered&&o.isHydrating||n.lazy)&&n.immediate?y._nuxtOnBeforeMountCbs.push(g):n.immediate&&c.status.value!=="success"&&g();const D=X(),v=T(r,(h,l)=>{if((h||l)&&h!==l){i=!0;const P=o._asyncData[l]?.data.value!==void 0,F=o._asyncDataPromises[l]!==void 0,R={cause:"initial",dedupe:n.dedupe};if(!o._asyncData[h]?._init){let S;l&&P?S=o._asyncData[l].data.value:(S=n.getCachedData(h,o,{cause:"initial"}),R.cachedData=S),o._asyncData[h]=j(o,h,e,n,S)}o._asyncData[h]._deps++,l&&d(l),(n.immediate||P||F)&&o._asyncData[h].execute(R),K(()=>{i=!1})}},{flush:"sync"}),m=n.watch?T(n.watch,()=>{i||o._asyncData[r.value]?._execute({cause:"watch",dedupe:n.dedupe})}):()=>{};D&&G(()=>{v(),m(),d(r.value)})}const u={data:M(()=>o._asyncData[r.value]?.data),pending:M(()=>o._asyncData[r.value]?.pending),status:M(()=>o._asyncData[r.value]?.status),error:M(()=>o._asyncData[r.value]?.error),refresh:(...d)=>o._asyncData[r.value]?._init?o._asyncData[r.value].execute(...d):_()(),execute:(...d)=>u.refresh(...d),clear:()=>{const d=o._asyncData[r.value];if(d?._abortController)try{d._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{d._abortController=void 0}N(o,r.value)}},b=Promise.resolve(o._asyncDataPromises[r.value]).then(()=>u);return Object.assign(b,u),b}function M(s){return O({get(){return s()?.value},set(t){const a=s();a&&(a.value=t)}})}function ft(s,t){return!(typeof s=="string"||typeof s=="object"&&s!==null||typeof s=="function"&&typeof t=="function")}function N(s,t){t in s.payload.data&&(s.payload.data[t]=void 0),t in s.payload._errors&&(s.payload._errors[t]=void 0),s._asyncData[t]&&(s._asyncData[t].data.value=z(s._asyncData[t]._default()),s._asyncData[t].error.value=void 0,s._asyncData[t].status.value="idle"),t in s._asyncDataPromises&&(s._asyncDataPromises[t]=void 0)}function dt(s,t){const a={};for(const e of t)a[e]=s[e];return a}function j(s,t,a,e,n){s.payload._errors[t]??=void 0;const i=e.getCachedData!==q,r=a,o=e.deep?Y:U,_=n!==void 0,g=s.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:o(_?n:e.default()),pending:O(()=>c.status.value==="pending"),error:Z(s.payload._errors,t),status:U("idle"),execute:(...f)=>{const[u,b=void 0]=f,d=u&&b===void 0&&typeof u=="object"?u:{};if(s._asyncDataPromises[t]&&(d.dedupe??e.dedupe)==="defer")return s._asyncDataPromises[t];{const D="cachedData"in d?d.cachedData:e.getCachedData(t,s,{cause:d.cause??"refresh:manual"});if(D!==void 0)return s.payload.data[t]=c.data.value=D,c.error.value=void 0,c.status.value="success",Promise.resolve(D)}c._abortController&&c._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),c._abortController=new AbortController,c.status.value="pending";const y=new AbortController,p=new Promise((D,v)=>{try{const m=d.timeout??e.timeout,h=_t([c._abortController?.signal,d?.signal],y.signal,m);if(h.aborted){const l=h.reason;v(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"));return}return h.addEventListener("abort",()=>{const l=h.reason;v(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"))},{once:!0,signal:y.signal}),Promise.resolve(r(s,{signal:h})).then(D,v)}catch(m){v(m)}}).then(async D=>{let v=D;e.transform&&(v=await e.transform(D)),e.pick&&(v=dt(v,e.pick)),s.payload.data[t]=v,c.data.value=v,c.error.value=void 0,c.status.value="success"}).catch(D=>{if(s._asyncDataPromises[t]&&s._asyncDataPromises[t]!==p||c._abortController?.signal.aborted)return s._asyncDataPromises[t];if(typeof DOMException<"u"&&D instanceof DOMException&&D.name==="AbortError")return c.status.value="idle",s._asyncDataPromises[t];c.error.value=Q(D),c.data.value=z(e.default()),c.status.value="error"}).finally(()=>{y.abort(),delete s._asyncDataPromises[t]});return s._asyncDataPromises[t]=p,s._asyncDataPromises[t]},_execute:it((...f)=>c.execute(...f),0,{leading:!0}),_default:e.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{g(),s._asyncData[t]?._init&&(s._asyncData[t]._init=!1),i||J(()=>{s._asyncData[t]?._init||(N(s,t),c.execute=()=>Promise.resolve())})}};return c}const ht=()=>{},q=(s,t,a)=>{if(t.isHydrating)return t.payload.data[s];if(a.cause!=="refresh:manual"&&a.cause!=="refresh:hook")return t.static.data[s]};function _t(s,t,a){const e=s.filter(r=>!!r);if(typeof a=="number"&&a>=0){const r=AbortSignal.timeout?.(a);r&&e.push(r)}if(AbortSignal.any)return AbortSignal.any(e);const n=new AbortController;for(const r of e)if(r.aborted){const o=r.reason??new DOMException("Aborted","AbortError");try{n.abort(o)}catch{n.abort()}return n.signal}const i=()=>{const o=e.find(_=>_.aborted)?.reason??new DOMException("Aborted","AbortError");try{n.abort(o)}catch{n.abort()}};for(const r of e)r.addEventListener?.("abort",i,{once:!0,signal:t});return n.signal}function gt(s,t,a){const[e={},n]=typeof t=="string"?[{},t]:[t,a],i=O(()=>w(s)),r=O(()=>w(e.key)||"$f"+C([n,typeof i.value=="string"?i.value:"",...yt(e)]));if(!e.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:o,lazy:_,default:g,transform:c,pick:f,watch:u,immediate:b,getCachedData:d,deep:y,dedupe:p,timeout:D,...v}=e,m=L({...k,...v,cache:typeof e.cache=="boolean"?void 0:e.cache}),h={server:o,lazy:_,default:g,transform:c,pick:f,immediate:b,getCachedData:d,deep:y,dedupe:p,timeout:D,watch:u===!1?[]:[...u||[],m]};return ut(u===!1?r.value:r,(P,{signal:F})=>(e.$fetch||globalThis.$fetch)(i.value,{signal:F,...m}),h)}function yt(s){const t=[w(s.method)?.toUpperCase()||"GET",w(s.baseURL)];for(const a of[s.query||s.params]){const e=w(a);if(!e)continue;const n={};for(const[i,r]of Object.entries(e))n[w(i)]=w(r);t.push(n)}if(s.body){const a=w(s.body);if(!a)t.push(C(a));else if(a instanceof ArrayBuffer)t.push(C(Object.fromEntries([...new Uint8Array(a).entries()].map(([e,n])=>[e,n.toString()]))));else if(a instanceof FormData){const e={};for(const n of a.entries()){const[i,r]=n;e[i]=r instanceof File?r.name:r}t.push(C(e))}else if(tt(a))t.push(C(L(a)));else try{t.push(C(a))}catch{console.warn("[useFetch] Failed to hash body",a)}}return t}export{ut as a,gt as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as V,r as p,m as j,v as B,c,e,k as y,t as a,D as H,E as I,h as t,I as J,g as z,F as A,q as N,z as M,b as i,s as O,A as q,_ as G}from"./
|
|
1
|
+
import{d as V,r as p,m as j,v as B,c,e,k as y,t as a,D as H,E as I,h as t,I as J,g as z,F as A,q as N,z as M,b as i,s as O,A as q,_ as G}from"./nSLZfjDc.js";import{u as L}from"./BrtBSWOq.js";const U={class:"autocreate-page"},W={class:"page-header"},K={class:"page-description"},Q={class:"card input-section"},X={class:"form-group"},Y={class:"form-label",for:"prompt"},Z=["placeholder"],x=["disabled"],ee={key:0,class:"card streaming-section"},se={key:0,class:"cursor"},te={key:1,class:"card error-section"},ae={class:"error-text"},oe={key:2,class:"proposals-section"},le={class:"proposals-grid"},re=["onClick"],ne={class:"proposal-header"},ce=["checked","onChange"],ie={class:"proposal-description"},ue={class:"proposal-meta"},pe={class:"badge"},de={class:"proposals-actions"},he=["disabled"],ve={key:3,class:"card results-section"},fe={class:"results-list"},_e={class:"result-icon"},ge={class:"result-name"},me={key:0,class:"result-error"},ye=V({__name:"autocreate",setup(ke){const{success:E,error:C}=L(),f=p(""),_=p(!1),b=p(!1),k=p(""),$=p(null),d=p([]),n=p([]),h=p([]),g=p(""),w=j(()=>d.value.length>0&&n.value.length===d.value.length),F=async()=>{if(f.value.trim()){_.value=!0,k.value="",d.value=[],h.value=[],n.value=[],g.value="";try{const s=await fetch("/api/catalog/autocreate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:f.value})});if(!s.ok)throw new Error(`HTTP error: ${s.status}`);const o=s.body?.getReader(),l=new TextDecoder;if(o){let r="";for(;;){const{done:m,value:v}=await o.read();if(m)break;r+=l.decode(v,{stream:!0});const P=r.split(`
|
|
2
2
|
`);r=P.pop()||"";for(const S of P)if(S.startsWith("data: "))try{const u=JSON.parse(S.slice(6));u.type==="thinking"&&u.content?(k.value+=u.content,M(()=>{$.value&&($.value.scrollTop=$.value.scrollHeight)})):u.type==="proposals"&&u.proposals?(d.value=u.proposals,k.value=""):u.type==="error"&&u.message&&(g.value=u.message)}catch{}}}}catch{g.value="Failed to generate proposals. Please try again.",C("Generation failed")}finally{_.value=!1}}},T=s=>{const o=n.value.indexOf(s);o===-1?n.value.push(s):n.value.splice(o,1)},D=()=>{w.value?n.value=[]:n.value=d.value.map((s,o)=>o)},R=async()=>{if(n.value.length){b.value=!0,h.value=[];try{const s=n.value.map(v=>d.value[v]),o=await fetch("/api/catalog/autocreate/apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proposals:s})});if(!o.ok)throw new Error("Failed to apply proposals");const l=await o.json();h.value=l;const r=h.value.filter(v=>v.success).length,m=h.value.filter(v=>!v.success).length;m===0?E(`Successfully applied ${r} columns`):C(`Applied ${r}, failed ${m}`)}catch{C("Failed to apply proposals")}finally{b.value=!1}}};return B({title:"Autocreate - AutoCode"}),(s,o)=>(i(),c("div",U,[e("header",W,[e("h1",null,a(s.$t("autocreate.title")),1),e("p",K,a(s.$t("autocreate.description")),1)]),e("div",Q,[e("div",X,[e("label",Y,a(s.$t("autocreate.prompt")),1),H(e("textarea",{id:"prompt","onUpdate:modelValue":o[0]||(o[0]=l=>J(f)?f.value=l:null),class:"form-input",rows:"4",placeholder:s.$t("autocreate.promptPlaceholder")},null,8,Z),[[I,t(f)]])]),e("button",{class:"btn btn-primary",disabled:!t(f).trim()||t(_),onClick:F},a(t(_)?s.$t("autocreate.generating"):s.$t("autocreate.generate")),9,x)]),t(k)||t(_)?(i(),c("div",ee,[e("h2",null,a(s.$t("autocreate.thinking")),1),e("div",{ref_key:"streamingRef",ref:$,class:"streaming-output"},[z(a(t(k))+" ",1),t(_)?(i(),c("span",se,"▊")):y("",!0)],512)])):y("",!0),t(g)?(i(),c("div",te,[e("p",ae,a(t(g)),1),e("button",{class:"btn btn-secondary",onClick:o[1]||(o[1]=l=>g.value="")},a(s.$t("form.dismiss")),1)])):y("",!0),t(d).length?(i(),c("div",oe,[e("h2",null,a(s.$t("autocreate.proposals")),1),e("div",le,[(i(!0),c(A,null,N(t(d),(l,r)=>(i(),c("div",{key:r,class:O(["proposal-card card",{selected:t(n).includes(r)}]),onClick:m=>T(r)},[e("div",ne,[e("input",{type:"checkbox",checked:t(n).includes(r),onClick:o[2]||(o[2]=q(()=>{},["stop"])),onChange:m=>T(r)},null,40,ce),e("h3",null,a(l.name),1)]),e("p",ie,a(l.description),1),e("div",ue,[e("span",pe,a(l.type),1)])],10,re))),128))]),e("div",de,[e("button",{class:"btn btn-secondary",onClick:D},a(t(w)?s.$t("autocreate.deselectAll"):s.$t("autocreate.selectAll")),1),e("button",{class:"btn btn-primary",disabled:!t(n).length||t(b),onClick:R},a(t(b)?s.$t("autocreate.applying"):s.$t("autocreate.apply"))+" ("+a(t(n).length)+") ",9,he)])])):y("",!0),t(h).length?(i(),c("div",ve,[e("h2",null,a(s.$t("autocreate.results")),1),e("ul",fe,[(i(!0),c(A,null,N(t(h),(l,r)=>(i(),c("li",{key:r,class:O({success:l.success,error:!l.success})},[e("span",_e,a(l.success?"✓":"✗"),1),e("span",ge,a(l.name),1),l.error?(i(),c("span",me,a(l.error),1)):y("",!0)],2))),128))])])):y("",!0)]))}}),Ce=G(ye,[["__scopeId","data-v-8a41c3ab"]]);export{Ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,aD as v,aA as V,bh as g,r as h}from"./
|
|
1
|
+
import{d as y,aD as v,aA as V,bh as g,r as h}from"./ge5HoFHn.js";import{b as x}from"./CGNl3nJG.js";import{d as _,a9 as w,j as o,b as l,ay as c,w as t,c as p,al as B,t as m,e as n,k as F,h as a,F as C,q as N,s as U,f}from"./nSLZfjDc.js";const z={key:0},D={class:"flex flex-1 flex-col gap-1.5"},E=["for"],S={class:"centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5"},L=_({__name:"Form",props:{title:{},options:{},data:{},onUpdate:{type:Function}},setup(j){const{activeEnvVariables:k,activeEnvironment:u,activeWorkspace:r}=y(),d=w();return(e,q)=>(l(),o(x,{class:"last:rounded-b-lg"},c({default:t(()=>[n("div",D,[Object.keys(e.data).length>0&&a(r)?(l(),o(v,{key:0,columns:[""],class:"rounded-b-lg"},{default:t(()=>[(l(!0),p(C,null,N(e.options,(s,i)=>(l(),o(V,{key:i,class:U({"border-t":i===0})},{default:t(()=>[f(g,{class:"pr-9",lineWrapping:"",id:a(d),envVariables:a(k),environment:a(u),modelValue:e.data[s.key]??"",placeholder:s.placeholder,workspace:a(r),"onUpdate:modelValue":b=>e.onUpdate(s.key,b)},c({default:t(()=>[n("label",{for:a(d)},m(s.label),9,E)]),_:2},[s.key==="description"?{name:"icon",fn:t(()=>[n("div",S,[f(a(h),{icon:"Markdown",size:"lg"})])]),key:"0"}:void 0]),1032,["id","envVariables","environment","modelValue","placeholder","workspace","onUpdate:modelValue"])]),_:2},1032,["class"]))),128))]),_:1})):F("",!0)])]),_:2},[e.title||e.$slots.title?{name:"title",fn:t(()=>[e.title?(l(),p("span",z,m(e.title),1)):B(e.$slots,"title",{key:1})]),key:"0"}:void 0]),1024))}});export{L as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as w,L as S,g as N,aE as U,T as B,k as M}from"./
|
|
1
|
+
import{r as w,L as S,g as N,aE as U,T as B,k as M}from"./ge5HoFHn.js";import{a as W}from"./BAAiS_qy.js";import{d as V,r as f,m as j,n as I,c as k,b as n,k as b,F as D,p as z,s as d,j as x,h as v,e as u,q as $,D as L,E as P,f as p,z as R,w as m,g as q,t as A}from"./nSLZfjDc.js";import{h as J,E as G}from"./Dob4oaN0.js";const H=["onClick"],K=["placeholder"],T=V({__name:"EnvironmentColors",props:{activeColor:{},selector:{type:Boolean,default:!1}},emits:["select"],setup(g,{emit:y}){const l=g,C=y,a=f(""),i=f(null),c=f(!1),s=f(!1),o=[{color:"#FFFFFF"},{color:"#EF0006"},{color:"#EDBE20"},{color:"#069061"},{color:"#FB892C"},{color:"#0082D0"},{color:"#5203D1"},{color:"#FFC0CB"}],h=j(()=>l.activeColor&&!o.some(e=>e.color===l.activeColor)||a.value?`background-color: ${l.activeColor||a.value};`:"background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));"),F=()=>{c.value=!c.value,l.selector&&(s.value=!1),R(()=>{i.value&&i.value.focus()})};I(a,e=>{e&&!e.startsWith("#")&&(a.value=`#${e}`),c.value=!0});const _=()=>{l.selector&&(s.value=!s.value)},E=e=>{C("select",e),l.selector&&(s.value=!1)};return(e,t)=>(n(),k("div",null,[c.value?b("",!0):(n(),k(D,{key:0},[l.selector&&!s.value?(n(),k("div",{key:0,class:d(["flex cursor-pointer items-center justify-center rounded-full",l.selector?"h-4 w-4":"h-5 w-5"]),style:z({backgroundColor:e.activeColor}),onClick:_},[e.activeColor?(n(),x(v(w),{key:0,class:d(["text-c-btn",l.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"])):b("",!0)],6)):b("",!0),s.value||!l.selector?(n(),k("div",{key:1,class:d(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1",l.selector?"h-4":"min-h-10 min-w-[296px]"])},[(n(),k(D,null,$(o,r=>u("div",{key:r.color,class:d(["flex cursor-pointer items-center justify-center rounded-full",l.selector?"h-4 w-4":"h-5 w-5"]),style:z({backgroundColor:r.color}),onClick:X=>E(r.color)},[e.activeColor===r.color&&!a.value?(n(),x(v(w),{key:0,class:d(["text-c-btn",l.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"])):b("",!0)],14,H)),64)),t[2]||(t[2]=u("hr",{class:"border-ghost h-5 w-0.5 border-l"},null,-1)),u("label",{class:d(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full",l.selector?"h-4 w-4":"h-5 w-5"]),style:z(h.value),onClick:F},[!c.value&&(e.activeColor===a.value||e.activeColor&&!o.some(r=>r.color===e.activeColor))?(n(),x(v(w),{key:0,class:"text-c-btn",icon:"Checkmark",size:"xs"})):b("",!0)],6)],2)):b("",!0)],64)),c.value?(n(),k("div",{key:1,class:d(["color-selector flex flex-1 items-center gap-2 rounded",l.selector?"h-4":"min-h-10"])},[u("span",{class:d(["absolute rounded-full border border-dashed",l.selector?"h-4 w-4":"h-5 w-5"])},null,2),u("span",{class:d(["z-[1] rounded-full",l.selector?"h-4 w-4":"h-5 w-5"]),style:z(h.value)},null,6),L(u("input",{ref_key:"customColorInputRef",ref:i,"onUpdate:modelValue":t[0]||(t[0]=r=>a.value=r),class:"w-full flex-1 border-transparent text-sm outline-none",placeholder:e.activeColor||"#000000",type:"text",onInput:t[1]||(t[1]=r=>E(a.value))},null,40,K),[[P,a.value]]),u("button",{class:"text-c-3 hover:bg-b-2 rounded-lg p-1.5",type:"button",onClick:F},[p(v(w),{icon:"Checkmark",size:"xs"})])],2)):b("",!0)]))}}),O={class:"flex flex-col gap-4"},oe=V({__name:"EnvironmentColorModal",props:{state:{},selectedColor:{}},emits:["cancel","submit"],setup(g,{emit:y}){const l=g,C=y,a=f(""),i=s=>{a.value=s},c=()=>{C("submit",a.value),a.value=""};return(s,o)=>(n(),x(v(S),{size:"xxs",state:s.state,title:"Edit Environment Color"},{default:m(()=>[u("div",O,[p(T,{activeColor:a.value||l.selectedColor,class:"w-full p-1",onSelect:i},null,8,["activeColor"]),p(W,{onCancel:o[0]||(o[0]=h=>C("cancel")),onSubmit:c})])]),_:1},8,["state"]))}}),Q={class:"flex items-start gap-2"},te=V({__name:"EnvironmentModal",props:{state:{},activeWorkspaceCollections:{},collectionId:{}},emits:["cancel","submit"],setup(g,{emit:y}){const l=g,C=y,{events:a}=N(),i=f(""),c=f("#FFFFFF"),s=j(()=>[...l.activeWorkspaceCollections.filter(e=>e.info?.title!=="Drafts").map(e=>({id:e.uid,label:e.info?.title??"Untitled Collection"}))]),o=f(s.value.find(e=>e.id===l.collectionId)),{toast:h}=M(),F=e=>{c.value=e};I(()=>l.state.open,e=>{e&&(i.value="",c.value="#FFFFFF",l.collectionId?o.value=s.value.find(t=>t.id===l.collectionId):o.value=void 0)});const _=()=>{if(!i.value.trim()){h("Please enter a name before adding an environment.","error");return}if(!o.value?.id){h("Please select a collection before adding an environment.","error");return}C("submit",{name:i.value,color:c.value,type:o.value?.id==="global"?"global":"collection",collectionId:o.value?.id!=="global"?o.value?.id:void 0})},E=()=>{l.state.hide(),a.commandPalette.emit({commandName:"Create Collection"})};return(e,t)=>(n(),x(v(S),{bodyClass:"border-t-0 rounded-t-lg",size:"xs",state:e.state},{default:m(()=>[p(J,{disabled:!o.value||!i.value.trim(),onCancel:t[2]||(t[2]=r=>C("cancel")),onSubmit:_},{options:m(()=>[p(v(U),{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=r=>o.value=r),options:s.value,placeholder:"Select Type"},{default:m(()=>[s.value.length>0?(n(),x(v(B),{key:0,class:"hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",variant:"outlined"},{default:m(()=>[u("span",{class:d(o.value?"text-c-1":"text-c-3")},A(o.value?o.value.label:"Select Collection"),3),p(v(w),{class:"text-c-3",icon:"ChevronDown",size:"xs"})]),_:1})):(n(),x(v(B),{key:1,class:"hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",variant:"outlined",onClick:E},{default:m(()=>[...t[3]||(t[3]=[u("span",{class:"text-c-1"},"Create Collection",-1)])]),_:1}))]),_:1},8,["modelValue","options"])]),submit:m(()=>[...t[4]||(t[4]=[q(" Add Environment ",-1)])]),default:m(()=>[u("div",Q,[p(T,{activeColor:c.value,class:"peer",selector:"",onSelect:F},null,8,["activeColor"]),p(G,{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=r=>i.value=r),class:"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",placeholder:"Environment name"},null,8,["modelValue"])])]),_:1},8,["disabled"])]),_:1},8,["state"]))}});export{te as J,oe as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as r}from"./
|
|
1
|
+
import{u as r}from"./ge5HoFHn.js";import{d as n,c as t,b as s,k as a,al as o,aj as i,an as c,h as m}from"./nSLZfjDc.js";const u={key:0,class:"request-response-header bg-b-1 -mb-1/2 sticky top-0 z-1 flex min-h-11 items-center border-b px-2.5 text-base font-medium xl:rounded-none"},b=n({inheritAttrs:!1,__name:"ViewLayoutSection",setup(d){const{cx:l}=r();return(e,f)=>(s(),t("section",i(c(m(l)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0"))),[e.$slots.title?(s(),t("div",u,[o(e.$slots,"title")])):a("",!0),o(e.$slots,"default")],16))}});export{b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Di}from"./DVrAHktU.js";import{d as Vr,m as Et,r as Xn,n as va,c as le,b as ae,s as $n,e as G,D as Zo,E as Ea,h as U,I as Ut,t as re,j as ya,k as qe,w as ot,_ as Ur,N as wn,L as It,M as Me,O as rr,P as Mi,Q as Sa,R as _o,S as jt,T as ba,U as qo,V as Ta,W as wt,X as es,Y as go,Z as Ia,$ as Oa,a0 as Na,a1 as Ca,a2 as Aa,a3 as jr,a4 as xa,a5 as Pa,a6 as Ra,f as je,x as ts,H as Da,y as Ma,o as La,a7 as $a,u as wa,v as Fa,G as Va,F as Ua,q as ja,g as vo}from"./Dye3__N7.js";import{g as Br,a as Ba}from"./92s3wAHG.js";import{i as ir,a as Eo,b as yo,u as Xa}from"./DDBIX1Ge.js";import{u as ns}from"./xpS189GL.js";import{u as Ha}from"./BeGyjVK0.js";const Ga={key:0,class:"icon-lock"},Ka={key:1,class:"handle-icon"},Wa={class:"column-info"},Ya={key:1,class:"column-name"},ka={class:"column-slug"},Ja={class:"column-actions"},za=["title"],Qa=Vr({__name:"PipelineColumn",props:{column:{},pipelineName:{default:""},editable:{type:Boolean,default:!0},isDragging:{type:Boolean,default:!1},showPrompt:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},locked:{type:Boolean,default:!1}},emits:["nameChange","nameBlur","remove"],setup(e){const t=e,n=Et(()=>{const i=`/column/${t.column.slug}/prompt`,s=new URLSearchParams;return t.pipelineName&&s.set("pipeline",t.pipelineName),s.set("name",t.column.name),`${i}?${s.toString()}`}),o=Xn(t.column.name);return va(()=>t.column.name,i=>{o.value=i}),(i,s)=>{const r=Di;return ae(),le("div",{class:$n(["pipeline-column",{dragging:e.isDragging,locked:e.locked}])},[G("div",{class:$n(["column-drag-handle",{disabled:e.locked}])},[e.locked?(ae(),le("span",Ga)):(ae(),le("span",Ka))],2),G("div",Wa,[e.editable?Zo((ae(),le("input",{key:0,"onUpdate:modelValue":s[0]||(s[0]=a=>Ut(o)?o.value=a:null),class:"column-name-input",onInput:s[1]||(s[1]=a=>i.$emit("nameChange",U(o))),onBlur:s[2]||(s[2]=a=>i.$emit("nameBlur"))},null,544)),[[Ea,U(o)]]):(ae(),le("span",Ya,re(e.column.name),1)),G("span",ka,re(e.column.slug),1)]),G("div",Ja,[e.showPrompt?(ae(),ya(r,{key:0,to:U(n),class:"btn-icon",title:i.$t("column.viewPrompt")},{default:ot(()=>[...s[4]||(s[4]=[G("span",{class:"icon-eye"},null,-1)])]),_:1},8,["to","title"])):qe("",!0),e.showRemove&&!e.locked?(ae(),le("button",{key:1,class:"btn-icon btn-danger",title:i.$t("form.delete"),onClick:s[3]||(s[3]=a=>i.$emit("remove",e.column))},[...s[5]||(s[5]=[G("span",{class:"icon-remove"},null,-1)])],8,za)):qe("",!0)])],2)}}}),Za=Object.assign(Ur(Qa,[["__scopeId","data-v-b7d3d1e3"]]),{__name:"PipelineColumn"});var hr={exports:{}},li={exports:{}},ci={};const un=Symbol(""),cn=Symbol(""),Xr=Symbol(""),Hn=Symbol(""),Li=Symbol(""),Xt=Symbol(""),$i=Symbol(""),wi=Symbol(""),Hr=Symbol(""),Gr=Symbol(""),En=Symbol(""),Kr=Symbol(""),Fi=Symbol(""),Wr=Symbol(""),Yr=Symbol(""),kr=Symbol(""),Jr=Symbol(""),zr=Symbol(""),Qr=Symbol(""),Vi=Symbol(""),Ui=Symbol(""),Jn=Symbol(""),Gn=Symbol(""),Zr=Symbol(""),_r=Symbol(""),dn=Symbol(""),yn=Symbol(""),qr=Symbol(""),Nr=Symbol(""),rs=Symbol(""),Cr=Symbol(""),Kn=Symbol(""),is=Symbol(""),os=Symbol(""),ei=Symbol(""),ss=Symbol(""),as=Symbol(""),ti=Symbol(""),ji=Symbol(""),Zt={[un]:"Fragment",[cn]:"Teleport",[Xr]:"Suspense",[Hn]:"KeepAlive",[Li]:"BaseTransition",[Xt]:"openBlock",[$i]:"createBlock",[wi]:"createElementBlock",[Hr]:"createVNode",[Gr]:"createElementVNode",[En]:"createCommentVNode",[Kr]:"createTextVNode",[Fi]:"createStaticVNode",[Wr]:"resolveComponent",[Yr]:"resolveDynamicComponent",[kr]:"resolveDirective",[Jr]:"resolveFilter",[zr]:"withDirectives",[Qr]:"renderList",[Vi]:"renderSlot",[Ui]:"createSlots",[Jn]:"toDisplayString",[Gn]:"mergeProps",[Zr]:"normalizeClass",[_r]:"normalizeStyle",[dn]:"normalizeProps",[yn]:"guardReactiveProps",[qr]:"toHandlers",[Nr]:"camelize",[rs]:"capitalize",[Cr]:"toHandlerKey",[Kn]:"setBlockTracking",[is]:"pushScopeId",[os]:"popScopeId",[ei]:"withCtx",[ss]:"unref",[as]:"isRef",[ti]:"withMemo",[ji]:"isMemoSame"};function ls(e){Object.getOwnPropertySymbols(e).forEach(t=>{Zt[t]=e[t]})}const _a={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},qa={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},el={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},tl={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Le={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function cs(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Le}}function hn(e,t,n,o,i,s,r,a=!1,l=!1,c=!1,u=Le){return e&&(a?(e.helper(Xt),e.helper(en(e.inSSR,c))):e.helper(qt(e.inSSR,c)),r&&e.helper(zr)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:s,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function Bt(e,t=Le){return{type:17,loc:t,elements:e}}function st(e,t=Le){return{type:15,loc:t,properties:e}}function Ae(e,t){return{type:16,loc:Le,key:Me(e)?Q(e,!0):e,value:t}}function Q(e,t=!1,n=Le,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function nl(e,t){return{type:5,loc:t,content:Me(e)?Q(e,!1,t):e}}function lt(e,t=Le){return{type:8,loc:t,children:e}}function Re(e,t=[],n=Le){return{type:14,loc:n,callee:e,arguments:t}}function _t(e,t=void 0,n=!1,o=!1,i=Le){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function Ar(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Le}}function fs(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:Le}}function us(e){return{type:21,body:e,loc:Le}}function rl(e){return{type:22,elements:e,loc:Le}}function il(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Le}}function ol(e,t){return{type:24,left:e,right:t,loc:Le}}function sl(e){return{type:25,expressions:e,loc:Le}}function al(e){return{type:26,returns:e,loc:Le}}function qt(e,t){return e||t?Hr:Gr}function en(e,t){return e||t?$i:wi}function ni(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(qt(o,e.isComponent)),t(Xt),t(en(o,e.isComponent)))}const So=new Uint8Array([123,123]),bo=new Uint8Array([125,125]);function To(e){return e>=97&&e<=122||e>=65&&e<=90}function it(e){return e===32||e===10||e===9||e===12||e===13}function Dt(e){return e===47||e===62||it(e)}function xr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Be={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class ll{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=So,this.delimiterClose=bo,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=So,this.delimiterClose=bo}getPos(t){let n=1,o=t+1;const i=this.newlines.length;let s=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<t?r=l:a=l}s=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){s=r;break}return s>=0&&(n=s+2,o=t-this.newlines[s]),{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Dt(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||it(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Be.TitleEnd||this.currentSequence===Be.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Be.Cdata[this.sequenceIndex]?++this.sequenceIndex===Be.Cdata.length&&(this.state=28,this.currentSequence=Be.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):To(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Dt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Dt(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(xr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){it(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=To(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||it(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):it(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):it(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Dt(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Dt(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Dt(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Dt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Dt(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):it(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):it(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){it(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Be.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Be.ScriptEnd[3]?this.startSpecial(Be.ScriptEnd,4):t===Be.StyleEnd[3]?this.startSpecial(Be.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Be.TitleEnd[3]?this.startSpecial(Be.TitleEnd,4):t===Be.TextareaEnd[3]?this.startSpecial(Be.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const cl={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},fl={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function bi(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function zt(e,t){const n=bi("MODE",t),o=bi(e,t);return n===3?o===!0:o!==!1}function pn(e,t,n,...o){return zt(e,t)}function ul(e,t,n,...o){if(bi(e,t)==="suppress-warning")return;const{message:s,link:r}=fl[e],a=`(deprecation ${e}) ${typeof s=="function"?s(...o):s}${r?`
|
|
1
|
+
import{_ as Di}from"./Amqf1SBE.js";import{d as Vr,m as Et,r as Xn,n as va,c as le,b as ae,s as $n,e as G,D as Zo,E as Ea,h as U,I as Ut,t as re,j as ya,k as qe,w as ot,_ as Ur,N as wn,L as It,M as Me,O as rr,P as Mi,Q as Sa,R as _o,S as jt,T as ba,U as qo,V as Ta,W as wt,X as es,Y as go,Z as Ia,$ as Oa,a0 as Na,a1 as Ca,a2 as Aa,a3 as jr,a4 as xa,a5 as Pa,a6 as Ra,f as je,x as ts,H as Da,y as Ma,o as La,a7 as $a,u as wa,v as Fa,G as Va,F as Ua,q as ja,g as vo}from"./nSLZfjDc.js";import{g as Br,a as Ba}from"./92s3wAHG.js";import{i as ir,a as Eo,b as yo,u as Xa}from"./DxNPZ1bU.js";import{u as ns}from"./C9Q_XE2y.js";import{u as Ha}from"./BrtBSWOq.js";const Ga={key:0,class:"icon-lock"},Ka={key:1,class:"handle-icon"},Wa={class:"column-info"},Ya={key:1,class:"column-name"},ka={class:"column-slug"},Ja={class:"column-actions"},za=["title"],Qa=Vr({__name:"PipelineColumn",props:{column:{},pipelineName:{default:""},editable:{type:Boolean,default:!0},isDragging:{type:Boolean,default:!1},showPrompt:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},locked:{type:Boolean,default:!1}},emits:["nameChange","nameBlur","remove"],setup(e){const t=e,n=Et(()=>{const i=`/column/${t.column.slug}/prompt`,s=new URLSearchParams;return t.pipelineName&&s.set("pipeline",t.pipelineName),s.set("name",t.column.name),`${i}?${s.toString()}`}),o=Xn(t.column.name);return va(()=>t.column.name,i=>{o.value=i}),(i,s)=>{const r=Di;return ae(),le("div",{class:$n(["pipeline-column",{dragging:e.isDragging,locked:e.locked}])},[G("div",{class:$n(["column-drag-handle",{disabled:e.locked}])},[e.locked?(ae(),le("span",Ga)):(ae(),le("span",Ka))],2),G("div",Wa,[e.editable?Zo((ae(),le("input",{key:0,"onUpdate:modelValue":s[0]||(s[0]=a=>Ut(o)?o.value=a:null),class:"column-name-input",onInput:s[1]||(s[1]=a=>i.$emit("nameChange",U(o))),onBlur:s[2]||(s[2]=a=>i.$emit("nameBlur"))},null,544)),[[Ea,U(o)]]):(ae(),le("span",Ya,re(e.column.name),1)),G("span",ka,re(e.column.slug),1)]),G("div",Ja,[e.showPrompt?(ae(),ya(r,{key:0,to:U(n),class:"btn-icon",title:i.$t("column.viewPrompt")},{default:ot(()=>[...s[4]||(s[4]=[G("span",{class:"icon-eye"},null,-1)])]),_:1},8,["to","title"])):qe("",!0),e.showRemove&&!e.locked?(ae(),le("button",{key:1,class:"btn-icon btn-danger",title:i.$t("form.delete"),onClick:s[3]||(s[3]=a=>i.$emit("remove",e.column))},[...s[5]||(s[5]=[G("span",{class:"icon-remove"},null,-1)])],8,za)):qe("",!0)])],2)}}}),Za=Object.assign(Ur(Qa,[["__scopeId","data-v-b7d3d1e3"]]),{__name:"PipelineColumn"});var hr={exports:{}},li={exports:{}},ci={};const un=Symbol(""),cn=Symbol(""),Xr=Symbol(""),Hn=Symbol(""),Li=Symbol(""),Xt=Symbol(""),$i=Symbol(""),wi=Symbol(""),Hr=Symbol(""),Gr=Symbol(""),En=Symbol(""),Kr=Symbol(""),Fi=Symbol(""),Wr=Symbol(""),Yr=Symbol(""),kr=Symbol(""),Jr=Symbol(""),zr=Symbol(""),Qr=Symbol(""),Vi=Symbol(""),Ui=Symbol(""),Jn=Symbol(""),Gn=Symbol(""),Zr=Symbol(""),_r=Symbol(""),dn=Symbol(""),yn=Symbol(""),qr=Symbol(""),Nr=Symbol(""),rs=Symbol(""),Cr=Symbol(""),Kn=Symbol(""),is=Symbol(""),os=Symbol(""),ei=Symbol(""),ss=Symbol(""),as=Symbol(""),ti=Symbol(""),ji=Symbol(""),Zt={[un]:"Fragment",[cn]:"Teleport",[Xr]:"Suspense",[Hn]:"KeepAlive",[Li]:"BaseTransition",[Xt]:"openBlock",[$i]:"createBlock",[wi]:"createElementBlock",[Hr]:"createVNode",[Gr]:"createElementVNode",[En]:"createCommentVNode",[Kr]:"createTextVNode",[Fi]:"createStaticVNode",[Wr]:"resolveComponent",[Yr]:"resolveDynamicComponent",[kr]:"resolveDirective",[Jr]:"resolveFilter",[zr]:"withDirectives",[Qr]:"renderList",[Vi]:"renderSlot",[Ui]:"createSlots",[Jn]:"toDisplayString",[Gn]:"mergeProps",[Zr]:"normalizeClass",[_r]:"normalizeStyle",[dn]:"normalizeProps",[yn]:"guardReactiveProps",[qr]:"toHandlers",[Nr]:"camelize",[rs]:"capitalize",[Cr]:"toHandlerKey",[Kn]:"setBlockTracking",[is]:"pushScopeId",[os]:"popScopeId",[ei]:"withCtx",[ss]:"unref",[as]:"isRef",[ti]:"withMemo",[ji]:"isMemoSame"};function ls(e){Object.getOwnPropertySymbols(e).forEach(t=>{Zt[t]=e[t]})}const _a={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},qa={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},el={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},tl={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Le={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function cs(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Le}}function hn(e,t,n,o,i,s,r,a=!1,l=!1,c=!1,u=Le){return e&&(a?(e.helper(Xt),e.helper(en(e.inSSR,c))):e.helper(qt(e.inSSR,c)),r&&e.helper(zr)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:s,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function Bt(e,t=Le){return{type:17,loc:t,elements:e}}function st(e,t=Le){return{type:15,loc:t,properties:e}}function Ae(e,t){return{type:16,loc:Le,key:Me(e)?Q(e,!0):e,value:t}}function Q(e,t=!1,n=Le,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function nl(e,t){return{type:5,loc:t,content:Me(e)?Q(e,!1,t):e}}function lt(e,t=Le){return{type:8,loc:t,children:e}}function Re(e,t=[],n=Le){return{type:14,loc:n,callee:e,arguments:t}}function _t(e,t=void 0,n=!1,o=!1,i=Le){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function Ar(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Le}}function fs(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:Le}}function us(e){return{type:21,body:e,loc:Le}}function rl(e){return{type:22,elements:e,loc:Le}}function il(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Le}}function ol(e,t){return{type:24,left:e,right:t,loc:Le}}function sl(e){return{type:25,expressions:e,loc:Le}}function al(e){return{type:26,returns:e,loc:Le}}function qt(e,t){return e||t?Hr:Gr}function en(e,t){return e||t?$i:wi}function ni(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(qt(o,e.isComponent)),t(Xt),t(en(o,e.isComponent)))}const So=new Uint8Array([123,123]),bo=new Uint8Array([125,125]);function To(e){return e>=97&&e<=122||e>=65&&e<=90}function it(e){return e===32||e===10||e===9||e===12||e===13}function Dt(e){return e===47||e===62||it(e)}function xr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Be={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class ll{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=So,this.delimiterClose=bo,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=So,this.delimiterClose=bo}getPos(t){let n=1,o=t+1;const i=this.newlines.length;let s=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<t?r=l:a=l}s=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){s=r;break}return s>=0&&(n=s+2,o=t-this.newlines[s]),{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Dt(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||it(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Be.TitleEnd||this.currentSequence===Be.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Be.Cdata[this.sequenceIndex]?++this.sequenceIndex===Be.Cdata.length&&(this.state=28,this.currentSequence=Be.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):To(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Dt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Dt(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(xr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){it(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=To(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||it(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):it(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):it(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Dt(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Dt(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Dt(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Dt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Dt(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):it(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):it(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){it(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Be.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Be.ScriptEnd[3]?this.startSpecial(Be.ScriptEnd,4):t===Be.StyleEnd[3]?this.startSpecial(Be.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Be.TitleEnd[3]?this.startSpecial(Be.TitleEnd,4):t===Be.TextareaEnd[3]?this.startSpecial(Be.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const cl={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},fl={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function bi(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function zt(e,t){const n=bi("MODE",t),o=bi(e,t);return n===3?o===!0:o!==!1}function pn(e,t,n,...o){return zt(e,t)}function ul(e,t,n,...o){if(bi(e,t)==="suppress-warning")return;const{message:s,link:r}=fl[e],a=`(deprecation ${e}) ${typeof s=="function"?s(...o):s}${r?`
|
|
2
2
|
Details: ${r}`:""}`,l=new SyntaxError(a);l.code=e,n&&(l.loc=n),t.onWarn(l)}function Bi(e){throw e}function ds(e){}function de(e,t,n,o){const i=`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(i));return s.code=e,s.loc=t,s}const dl={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},hl={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
3
3
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function pl(e,t,n=!1,o=[],i=Object.create(null)){}function ml(e,t,n){return!1}function gl(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const o=t[n];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function vl(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function El(e,t){for(const n of e.params)for(const o of vt(n))t(o)}function hs(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const o of n)if(o.type==="VariableDeclaration"){if(o.declare)continue;for(const i of o.declarations)for(const s of vt(i.id))t(s)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;t(o.id)}else yl(o)?Sl(o,!0,t):o.type==="SwitchStatement"&&bl(o,!0,t)}function yl(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function Sl(e,t,n){const o=e.type==="ForStatement"?e.init:e.left;if(o&&o.type==="VariableDeclaration"&&(o.kind==="var"?t:!t))for(const i of o.declarations)for(const s of vt(i.id))n(s)}function bl(e,t,n){for(const o of e.cases){for(const i of o.consequent)if(i.type==="VariableDeclaration"&&(i.kind==="var"?t:!t))for(const s of i.declarations)for(const r of vt(s.id))n(r);hs(o,n)}}function vt(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const o of e.properties)o.type==="RestElement"?vt(o.argument,t):vt(o.value,t);break;case"ArrayPattern":e.elements.forEach(o=>{o&&vt(o,t)});break;case"RestElement":vt(e.argument,t);break;case"AssignmentPattern":vt(e.left,t);break}return t}const Tl=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),ps=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,Il=(e,t)=>ps(t)&&t.key===e,ms=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function gs(e){return ms.includes(e.type)?gs(e.expression):e}const Je=e=>e.type===4&&e.isStatic;function Xi(e){switch(e){case"Teleport":case"teleport":return cn;case"Suspense":case"suspense":return Xr;case"KeepAlive":case"keep-alive":return Hn;case"BaseTransition":case"base-transition":return Li}}const Ol=/^$|^\d|[^\$\w\xA0-\uFFFF]/,zn=e=>!Ol.test(e),Hi=/[A-Za-z_$\xA0-\uFFFF]/,Nl=/[\.\?\w$\xA0-\uFFFF]/,Cl=/\s+[.[]\s*|\s*[.[]\s+/g,vs=e=>e.type===4?e.content:e.loc.source,Es=e=>{const t=vs(e).trim().replace(Cl,a=>a.trim());let n=0,o=[],i=0,s=0,r=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(n){case 0:if(l==="[")o.push(n),n=1,i++;else if(l==="(")o.push(n),n=2,s++;else if(!(a===0?Hi:Nl).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(o.push(n),n=3,r=l):l==="["?i++:l==="]"&&(--i||(n=o.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")o.push(n),n=3,r=l;else if(l==="(")s++;else if(l===")"){if(a===t.length-1)return!1;--s||(n=o.pop())}break;case 3:l===r&&(n=o.pop(),r=null);break}}return!i&&!s},Al=wn,Gi=Es,xl=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,ys=e=>xl.test(vs(e)),Pl=wn,Ss=ys;function Rl(e,t,n=t.length){return bs({offset:e.offset,line:e.line,column:e.column},t,n)}function bs(e,t,n=t.length){let o=0,i=-1;for(let s=0;s<n;s++)t.charCodeAt(s)===10&&(o++,i=s);return e.offset+=n,e.line+=o,e.column=i===-1?e.column+n:n-i,e}function Dl(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function ke(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&(n||i.exp)&&(Me(t)?i.name===t:t.test(i.name)))return i}}function Qn(e,t,n=!1,o=!1){for(let i=0;i<e.props.length;i++){const s=e.props[i];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||o))return s}else if(s.name==="bind"&&(s.exp||o)&&Ft(s.arg,t))return s}}function Ft(e,t){return!!(e&&Je(e)&&e.content===t)}function Ts(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function pr(e){return e.type===5||e.type===2}function Ti(e){return e.type===7&&e.name==="pre"}function Ki(e){return e.type===7&&e.name==="slot"}function mn(e){return e.type===1&&e.tagType===3}function Wn(e){return e.type===1&&e.tagType===2}const Ml=new Set([dn,yn]);function Is(e,t=[]){if(e&&!Me(e)&&e.type===14){const n=e.callee;if(!Me(n)&&Ml.has(n))return Is(e.arguments[0],t.concat(e))}return[e,t]}function Yn(e,t,n){let o,i=e.type===13?e.props:e.arguments[2],s=[],r;if(i&&!Me(i)&&i.type===14){const a=Is(i);i=a[0],s=a[1],r=s[s.length-1]}if(i==null||Me(i))o=st([t]);else if(i.type===14){const a=i.arguments[0];!Me(a)&&a.type===15?Io(t,a)||a.properties.unshift(t):i.callee===qr?o=Re(n.helper(Gn),[st([t]),i]):i.arguments.unshift(st([t])),!o&&(o=i)}else i.type===15?(Io(t,i)||i.properties.unshift(t),o=i):(o=Re(n.helper(Gn),[st([t]),i]),r&&r.callee===yn&&(r=s[s.length-2]));e.type===13?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Io(e,t){let n=!1;if(e.key.type===4){const o=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===o)}return n}function gn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function ht(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const o=e.props[n];if(o.type===7&&(ht(o.arg,t)||ht(o.exp,t)))return!0}return e.children.some(n=>ht(n,t));case 11:return ht(e.source,t)?!0:e.children.some(n=>ht(n,t));case 9:return e.branches.some(n=>ht(n,t));case 10:return ht(e.condition,t)?!0:e.children.some(n=>ht(n,t));case 4:return!e.isStatic&&zn(e.content)&&!!t[e.content];case 8:return e.children.some(n=>qo(n)&&ht(n,t));case 5:case 12:return ht(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Os(e){return e.type===14&&e.callee===ti?e.arguments[1].returns:e}const Ns=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Wi(e){for(let t=0;t<e.length;t++)if(!it(e.charCodeAt(t)))return!1;return!0}function ri(e){return e.type===2&&Wi(e.content)||e.type===12&&ri(e.content)}function Yi(e){return e.type===3||ri(e)}const Cs={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:rr,isPreTag:rr,isIgnoreNewlineTag:rr,isCustomElement:rr,onError:Bi,onWarn:ds,comments:!1,prefixIdentifiers:!1};let se=Cs,kn=null,Ot="",He=null,ee=null,_e="",Tt=-1,Yt=-1,ki=0,Mt=!1,Ii=null;const me=[],Oe=new ll(me,{onerr:bt,ontext(e,t){or(Ue(e,t),e,t)},ontextentity(e,t,n){or(e,t,n)},oninterpolation(e,t){if(Mt)return or(Ue(e,t),e,t);let n=e+Oe.delimiterOpen.length,o=t-Oe.delimiterClose.length;for(;it(Ot.charCodeAt(n));)n++;for(;it(Ot.charCodeAt(o-1));)o--;let i=Ue(n,o);i.includes("&")&&(i=se.decodeEntities(i,!1)),Oi({type:5,content:gr(i,!1,Ce(n,o)),loc:Ce(e,t)})},onopentagname(e,t){const n=Ue(e,t);He={type:1,tag:n,ns:se.getNamespace(n,me[0],se.ns),tagType:0,props:[],children:[],loc:Ce(e-1,t),codegenNode:void 0}},onopentagend(e){No(e)},onclosetag(e,t){const n=Ue(e,t);if(!se.isVoidTag(n)){let o=!1;for(let i=0;i<me.length;i++)if(me[i].tag.toLowerCase()===n.toLowerCase()){o=!0,i>0&&bt(24,me[0].loc.start.offset);for(let r=0;r<=i;r++){const a=me.shift();mr(a,t,r<i)}break}o||bt(23,As(e,60))}},onselfclosingtag(e){const t=He.tag;He.isSelfClosing=!0,No(e),me[0]&&me[0].tag===t&&mr(me.shift(),e)},onattribname(e,t){ee={type:6,name:Ue(e,t),nameLoc:Ce(e,t),value:void 0,loc:Ce(e)}},ondirname(e,t){const n=Ue(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Mt&&o===""&&bt(26,e),Mt||o==="")ee={type:6,name:n,nameLoc:Ce(e,t),value:void 0,loc:Ce(e)};else if(ee={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[Q("prop")]:[],loc:Ce(e)},o==="pre"){Mt=Oe.inVPre=!0,Ii=He;const i=He.props;for(let s=0;s<i.length;s++)i[s].type===7&&(i[s]=Hl(i[s]))}},ondirarg(e,t){if(e===t)return;const n=Ue(e,t);if(Mt&&!Ti(ee))ee.name+=n,Jt(ee.nameLoc,t);else{const o=n[0]!=="[";ee.arg=gr(o?n:n.slice(1,-1),o,Ce(e,t),o?3:0)}},ondirmodifier(e,t){const n=Ue(e,t);if(Mt&&!Ti(ee))ee.name+="."+n,Jt(ee.nameLoc,t);else if(ee.name==="slot"){const o=ee.arg;o&&(o.content+="."+n,Jt(o.loc,t))}else{const o=Q(n,!0,Ce(e,t));ee.modifiers.push(o)}},onattribdata(e,t){_e+=Ue(e,t),Tt<0&&(Tt=e),Yt=t},onattribentity(e,t,n){_e+=e,Tt<0&&(Tt=t),Yt=n},onattribnameend(e){const t=ee.loc.start.offset,n=Ue(t,e);ee.type===7&&(ee.rawName=n),He.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&bt(2,t)},onattribend(e,t){if(He&&ee){if(Jt(ee.loc,t),e!==0)if(_e.includes("&")&&(_e=se.decodeEntities(_e,!0)),ee.type===6)ee.name==="class"&&(_e=Ps(_e).trim()),e===1&&!_e&&bt(13,t),ee.value={type:2,content:_e,loc:e===1?Ce(Tt,Yt):Ce(Tt-1,Yt+1)},Oe.inSFCRoot&&He.tag==="template"&&ee.name==="lang"&&_e&&_e!=="html"&&Oe.enterRCDATA(xr("</template"),0);else{let n=0;ee.exp=gr(_e,!1,Ce(Tt,Yt),0,n),ee.name==="for"&&(ee.forParseResult=$l(ee.exp));let o=-1;ee.name==="bind"&&(o=ee.modifiers.findIndex(i=>i.content==="sync"))>-1&&pn("COMPILER_V_BIND_SYNC",se,ee.loc,ee.arg.loc.source)&&(ee.name="model",ee.modifiers.splice(o,1))}(ee.type!==7||ee.name!=="pre")&&He.props.push(ee)}_e="",Tt=Yt=-1},oncomment(e,t){se.comments&&Oi({type:3,content:Ue(e,t),loc:Ce(e-4,t+3)})},onend(){const e=Ot.length;for(let t=0;t<me.length;t++)mr(me[t],e-1),bt(24,me[t].loc.start.offset)},oncdata(e,t){me[0].ns!==0?or(Ue(e,t),e,t):bt(1,e-9)},onprocessinginstruction(e){(me[0]?me[0].ns:se.ns)===0&&bt(21,e-1)}}),Oo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ll=/^\(|\)$/g;function $l(e){const t=e.loc,n=e.content,o=n.match(Ns);if(!o)return;const[,i,s]=o,r=(f,d,h=!1)=>{const p=t.start.offset+d,m=p+f.length;return gr(f,!1,Ce(p,m),0,h?1:0)},a={source:r(s.trim(),n.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Ll,"").trim();const c=i.indexOf(l),u=l.match(Oo);if(u){l=l.replace(Oo,"").trim();const f=u[1].trim();let d;if(f&&(d=n.indexOf(f,c+l.length),a.key=r(f,d,!0)),u[2]){const h=u[2].trim();h&&(a.index=r(h,n.indexOf(h,a.key?d+f.length:c+l.length),!0))}}return l&&(a.value=r(l,c,!0)),a}function Ue(e,t){return Ot.slice(e,t)}function No(e){Oe.inSFCRoot&&(He.innerLoc=Ce(e+1,e+1)),Oi(He);const{tag:t,ns:n}=He;n===0&&se.isPreTag(t)&&ki++,se.isVoidTag(t)?mr(He,e):(me.unshift(He),(n===1||n===2)&&(Oe.inXML=!0)),He=null}function or(e,t,n){{const s=me[0]&&me[0].tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=se.decodeEntities(e,!1))}const o=me[0]||kn,i=o.children[o.children.length-1];i&&i.type===2?(i.content+=e,Jt(i.loc,n)):o.children.push({type:2,content:e,loc:Ce(t,n)})}function mr(e,t,n=!1){n?Jt(e.loc,As(t,60)):Jt(e.loc,wl(t,62)+1),Oe.inSFCRoot&&(e.children.length?e.innerLoc.end=It({},e.children[e.children.length-1].loc.end):e.innerLoc.end=It({},e.innerLoc.start),e.innerLoc.source=Ue(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i,children:s}=e;if(Mt||(o==="slot"?e.tagType=2:Co(e)?e.tagType=3:Vl(e)&&(e.tagType=1)),Oe.inRCDATA||(e.children=xs(s)),i===0&&se.isIgnoreNewlineTag(o)){const r=s[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&se.isPreTag(o)&&ki--,Ii===e&&(Mt=Oe.inVPre=!1,Ii=null),Oe.inXML&&(me[0]?me[0].ns:se.ns)===0&&(Oe.inXML=!1);{const r=e.props;if(!Oe.inSFCRoot&&zt("COMPILER_NATIVE_TEMPLATE",se)&&e.tag==="template"&&!Co(e)){const l=me[0]||kn,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const a=r.find(l=>l.type===6&&l.name==="inline-template");a&&pn("COMPILER_INLINE_TEMPLATE",se,a.loc)&&e.children.length&&(a.value={type:2,content:Ue(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function wl(e,t){let n=e;for(;Ot.charCodeAt(n)!==t&&n<Ot.length-1;)n++;return n}function As(e,t){let n=e;for(;Ot.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fl=new Set(["if","else","else-if","for","slot"]);function Co({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Fl.has(t[n].name))return!0}return!1}function Vl({tag:e,props:t}){if(se.isCustomElement(e))return!1;if(e==="component"||Ul(e.charCodeAt(0))||Xi(e)||se.isBuiltInComponent&&se.isBuiltInComponent(e)||se.isNativeTag&&!se.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const o=t[n];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(pn("COMPILER_IS_ON_ELEMENT",se,o.loc))return!0}}else if(o.name==="bind"&&Ft(o.arg,"is")&&pn("COMPILER_IS_ON_ELEMENT",se,o.loc))return!0}return!1}function Ul(e){return e>64&&e<91}const jl=/\r\n/g;function xs(e){const t=se.whitespace!=="preserve";let n=!1;for(let o=0;o<e.length;o++){const i=e[o];if(i.type===2)if(ki)i.content=i.content.replace(jl,`
|
|
4
4
|
`);else if(Wi(i.content)){const s=e[o-1]&&e[o-1].type,r=e[o+1]&&e[o+1].type;!s||!r||t&&(s===3&&(r===3||r===1)||s===1&&(r===3||r===1&&Bl(i.content)))?(n=!0,e[o]=null):i.content=" "}else t&&(i.content=Ps(i.content))}return n?e.filter(Boolean):e}function Bl(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Ps(e){let t="",n=!1;for(let o=0;o<e.length;o++)it(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Oi(e){(me[0]||kn).children.push(e)}function Ce(e,t){return{start:Oe.getPos(e),end:t==null?t:Oe.getPos(t),source:t==null?t:Ue(e,t)}}function Xl(e){return Ce(e.start.offset,e.end.offset)}function Jt(e,t){e.end=Oe.getPos(t),e.source=Ue(e.start.offset,t)}function Hl(e){const t={type:6,name:e.rawName,nameLoc:Ce(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function gr(e,t=!1,n,o=0,i=0){return Q(e,t,n,o)}function bt(e,t,n){se.onError(de(e,Ce(t,t)))}function Gl(){Oe.reset(),He=null,ee=null,_e="",Tt=-1,Yt=-1,me.length=0}function Ji(e,t){if(Gl(),Ot=e,se=It({},Cs),t){let i;for(i in t)t[i]!=null&&(se[i]=t[i])}Oe.mode=se.parseMode==="html"?1:se.parseMode==="sfc"?2:0,Oe.inXML=se.ns===1||se.ns===2;const n=t&&t.delimiters;n&&(Oe.delimiterOpen=xr(n[0]),Oe.delimiterClose=xr(n[1]));const o=kn=cs([],e);return Oe.parse(Ot),o.loc=Ce(0,e.length),o.children=xs(o.children),kn=null,o}function Kl(e,t){vr(e,void 0,t,!!Rs(e))}function Rs(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!Wn(t[0])?t[0]:null}function vr(e,t,n,o=!1,i=!1){const{children:s}=e,r=[];for(let u=0;u<s.length;u++){const f=s[u];if(f.type===1&&f.tagType===0){const d=o?0:et(f,n);if(d>0){if(d>=2){f.codegenNode.patchFlag=-1,r.push(f);continue}}else{const h=f.codegenNode;if(h.type===13){const p=h.patchFlag;if((p===void 0||p===512||p===1)&&Ms(f,n)>=2){const m=Ls(f);m&&(h.props=n.hoist(m))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(f.type===12&&(o?0:et(f,n))>=2){f.codegenNode.type===14&&f.codegenNode.arguments.length>0&&f.codegenNode.arguments.push("-1"),r.push(f);continue}if(f.type===1){const d=f.tagType===1;d&&n.scopes.vSlot++,vr(f,e,n,!1,i),d&&n.scopes.vSlot--}else if(f.type===11)vr(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let d=0;d<f.branches.length;d++)vr(f.branches[d],e,n,f.branches[d].children.length===1,i)}let a=!1;if(r.length===s.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&wt(e.codegenNode.children))e.codegenNode.children=l(Bt(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!wt(e.codegenNode.children)&&e.codegenNode.children.type===15){const u=c(e.codegenNode,"default");u&&(u.returns=l(Bt(u.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!wt(t.codegenNode.children)&&t.codegenNode.children.type===15){const u=ke(e,"slot",!0),f=u&&u.arg&&c(t.codegenNode,u.arg);f&&(f.returns=l(Bt(f.returns)),a=!0)}}if(!a)for(const u of r)u.codegenNode=n.cache(u.codegenNode);function l(u){const f=n.cache(u);return f.needArraySpread=!0,f}function c(u,f){if(u.children&&!wt(u.children)&&u.children.type===15){const d=u.children.properties.find(h=>h.key===f||h.key.content===f);return d&&d.value}}r.length&&n.transformHoist&&n.transformHoist(s,n,e)}function et(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=n.get(e);if(o!==void 0)return o;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const a=Ms(e,t);if(a===0)return n.set(e,0),0;a<r&&(r=a);for(let l=0;l<e.children.length;l++){const c=et(e.children[l],t);if(c===0)return n.set(e,0),0;c<r&&(r=c)}if(r>1)for(let l=0;l<e.props.length;l++){const c=e.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const u=et(c.exp,t);if(u===0)return n.set(e,0),0;u<r&&(r=u)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(Xt),t.removeHelper(en(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(qt(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return et(e.content,t);case 4:return e.constType;case 8:let s=3;for(let r=0;r<e.children.length;r++){const a=e.children[r];if(Me(a)||Mi(a))continue;const l=et(a,t);if(l===0)return 0;l<s&&(s=l)}return s;case 20:return 2;default:return 0}}const Wl=new Set([Zr,_r,dn,yn]);function Ds(e,t){if(e.type===14&&!Me(e.callee)&&Wl.has(e.callee)){const n=e.arguments[0];if(n.type===4)return et(n,t);if(n.type===14)return Ds(n,t)}return 0}function Ms(e,t){let n=3;const o=Ls(e);if(o&&o.type===15){const{properties:i}=o;for(let s=0;s<i.length;s++){const{key:r,value:a}=i[s],l=et(r,t);if(l===0)return l;l<n&&(n=l);let c;if(a.type===4?c=et(a,t):a.type===14?c=Ds(a,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Ls(e){const t=e.codegenNode;if(t.type===13)return t.props}function $s(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:s=!1,nodeTransforms:r=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=wn,isCustomElement:u=wn,expressionPlugins:f=[],scopeId:d=null,slotted:h=!0,ssr:p=!1,inSSR:m=!1,ssrCssVars:g="",bindingMetadata:v=ba,inline:E=!1,isTS:I=!1,onError:y=Bi,onWarn:N=ds,compatConfig:O}){const $=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),P={filename:t,selfName:$&&_o(jt($[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:s,nodeTransforms:r,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:f,scopeId:d,slotted:h,ssr:p,inSSR:m,ssrCssVars:g,bindingMetadata:v,inline:E,isTS:I,onError:y,onWarn:N,compatConfig:O,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(S){const R=P.helpers.get(S)||0;return P.helpers.set(S,R+1),S},removeHelper(S){const R=P.helpers.get(S);if(R){const M=R-1;M?P.helpers.set(S,M):P.helpers.delete(S)}},helperString(S){return`_${Zt[P.helper(S)]}`},replaceNode(S){P.parent.children[P.childIndex]=P.currentNode=S},removeNode(S){const R=P.parent.children,M=S?R.indexOf(S):P.currentNode?P.childIndex:-1;!S||S===P.currentNode?(P.currentNode=null,P.onNodeRemoved()):P.childIndex>M&&(P.childIndex--,P.onNodeRemoved()),P.parent.children.splice(M,1)},onNodeRemoved:wn,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){Me(S)&&(S=Q(S)),P.hoists.push(S);const R=Q(`_hoisted_${P.hoists.length}`,!1,S.loc,2);return R.hoisted=S,R},cache(S,R=!1,M=!1){const D=fs(P.cached.length,S,R,M);return P.cached.push(D),D}};return P.filters=new Set,P}function ws(e,t){const n=$s(e,t);Zn(e,n),t.hoistStatic&&Kl(e,n),t.ssr||Yl(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Yl(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const i=Rs(e);if(i&&i.codegenNode){const s=i.codegenNode;s.type===13&&ni(s,t),e.codegenNode=s}else e.codegenNode=o[0]}else if(o.length>1){let i=64;e.codegenNode=hn(t,n(un),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function kl(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];Me(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,Zn(i,t))}}function Zn(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s<n.length;s++){const r=n[s](e,t);if(r&&(wt(r)?o.push(...r):o.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(En);break;case 5:t.ssr||t.helper(Jn);break;case 9:for(let s=0;s<e.branches.length;s++)Zn(e.branches[s],t);break;case 10:case 11:case 1:case 0:kl(e,t);break}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function zi(e,t){const n=Me(e)?o=>o===e:o=>e.test(o);return(o,i)=>{if(o.type===1){const{props:s}=o;if(o.tagType===3&&s.some(Ki))return;const r=[];for(let a=0;a<s.length;a++){const l=s[a];if(l.type===7&&n(l.name)){s.splice(a,1),a--;const c=t(o,l,i);c&&r.push(c)}}return r}}}const ii="/*@__PURE__*/",Fs=e=>`${Zt[e]}: _${Zt[e]}`;function Jl(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:i="template.vue.html",scopeId:s=null,optimizeImports:r=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:i,scopeId:s,optimizeImports:r,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${Zt[m]}`},push(m,g=-2,v){h.code+=m},indent(){p(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(m){h.push(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as o}from"./
|
|
1
|
+
import{N as o}from"./ge5HoFHn.js";import{c as e,b as l,al as t}from"./nSLZfjDc.js";const s={},c={class:"custom-scroll flex flex-col pr-0 *:border-t *:first:border-t-0 xl:flex-row *:xl:border-t-0 *:xl:border-l *:first:xl:border-l-0"};function f(r,n){return l(),e("div",c,[t(r.$slots,"default")])}const a=o(s,[["render",f]]);export{a as x};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{br as d,u as p,ay as i}from"./
|
|
1
|
+
import{br as d,u as p,ay as i}from"./ge5HoFHn.js";import{d as Z,c as n,b as e,al as u,k as c,h as t,e as o,ak as m,j as M,w as g}from"./nSLZfjDc.js";const f={key:0},L={key:1},k={key:2},v={key:3},w={key:4},H={key:5},x={name:"ScalarIconWarning"},V=Z({...x,props:{label:{},weight:{}},setup(h){const s=h,{bind:r,weight:l}=d(s);return(A,a)=>(e(),n("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},t(r)),[u(A.$slots,"default"),t(l)==="bold"?(e(),n("g",f,[...a[0]||(a[0]=[o("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"},null,-1)])])):t(l)==="duotone"?(e(),n("g",L,[...a[1]||(a[1]=[o("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"},null,-1),o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):t(l)==="fill"?(e(),n("g",k,[...a[2]||(a[2]=[o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"},null,-1)])])):t(l)==="light"?(e(),n("g",v,[...a[3]||(a[3]=[o("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"},null,-1)])])):t(l)==="regular"?(e(),n("g",w,[...a[4]||(a[4]=[o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):t(l)==="thin"?(e(),n("g",H,[...a[5]||(a[5]=[o("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"},null,-1)])])):c("",!0)],16))}}),b=Z({__name:"DataTableHeader",setup(h){const{cx:s}=p();return(r,l)=>(e(),M(i,m({is:"th"},t(s)("items-center font-medium px-2 min-w-0 -outline-offset-1")),{default:g(()=>[u(r.$slots,"default")]),_:3},16))}});export{V as H,b as x};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o}from"./
|
|
1
|
+
import{u as o}from"./nSLZfjDc.js";const c=()=>{const{t:e}=o(),s=i=>{if(!i)return e("notify.error");const r=i.toLowerCase();if(r.includes("wip limit")){const n=i.match(/(\d+)\s+issue/),t=n?n[1]:"1";return e("apiError.wipLimit",{count:t})}return r.includes("cannot skip")||r.includes("cannot move from")?e("apiError.cannotSkip"):r.includes("acceptance criteria required")?e("apiError.acceptanceCriteriaRequired"):r.includes("not found")&&r.includes("issue")?e("apiError.issueNotFound"):r.includes("required")&&r.includes("column")?e("apiError.columnRequired"):r.includes("move")&&r.includes("failed")?e("apiError.moveFailed"):r.includes("save")&&r.includes("failed")?e("apiError.saveFailed"):r.includes("delete")&&r.includes("failed")?e("apiError.deleteFailed"):i};return{translateError:s,getErrorMessage:(i,r)=>{const n=i?.data?.message;if(n)return s(n);const t=i?.message;return t?s(t):r||e("notify.error")}}};export{c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as w}from"./
|
|
1
|
+
import{_ as w}from"./t7k_e5FQ.js";import{_ as x}from"./Amqf1SBE.js";import{d as b,H as I,u as B,x as m,m as C,v as H,c as r,f as v,e as n,h as s,t as o,w as N,b as c,g as S,_ as F}from"./nSLZfjDc.js";import{u as h}from"./C9Q_XE2y.js";const P={class:"prompt-page"},V={class:"card"},A={class:"section-header"},E={class:"column-badge"},G={key:0,class:"loading"},q={key:1,class:"error-message"},D={key:2,class:"empty"},L={key:3,class:"prompt-content"},R={class:"actions"},T=b({__name:"prompt",async setup(U){let t,i;const l=I(),{locale:y}=B(),u=l.params.id,p=l.params.column,{data:a}=([t,i]=m(()=>h(`/api/issues/${u}`,"$cZ6-GFSir3")),t=await t,i(),t),f=C(()=>{if(!a.value)return null;const e={id:a.value.key,title:a.value.title,column:a.value.column_slug};return a.value.priority&&(e.priority=a.value.priority),e}),{data:_,status:g,error:d}=([t,i]=m(()=>h(`/api/columns/${p}/prompt`,{query:{lang:y.value}},"$s9GIcvnBUu")),t=await t,i(),t);return H({title:`Prompt ${p} - ${u} - AutoCode`}),(e,Z)=>{const $=w,k=x;return c(),r("div",P,[v($,{issue:s(f),"active-tab":"history"},null,8,["issue"]),n("div",V,[n("div",A,[n("h2",null,o(e.$t("history.viewPrompt")),1),n("span",E,o(s(p)),1)]),s(g)==="pending"?(c(),r("div",G,o(e.$t("app.loading")),1)):s(d)?(c(),r("div",q,o(s(d).message),1)):s(_)?.content?(c(),r("div",L,[n("pre",null,o(s(_).content),1)])):(c(),r("div",D,o(e.$t("column.noPrompt")),1))]),n("div",R,[v(k,{to:`/issue/${s(u)}/history`,class:"btn-secondary"},{default:N(()=>[S(o(e.$t("nav.back")),1)]),_:1},8,["to"])])])}}}),M=F(T,[["__scopeId","data-v-9385d4f2"]]);export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as D}from"./
|
|
1
|
+
import{_ as D}from"./t7k_e5FQ.js";import{d as E,H as F,r as h,x as v,m as I,n as L,v as N,c as i,f as R,e as t,h as a,t as c,A as x,D as B,E as V,I as O,F as U,q as W,b as m,_ as j}from"./nSLZfjDc.js";import{d as q}from"./C0Rlrcoy.js";import{u as z}from"./BrtBSWOq.js";import{u as J}from"./CZAptABr.js";import{u as y}from"./C9Q_XE2y.js";import{u as P}from"./BStRXLlp.js";import"./Amqf1SBE.js";const Y={class:"issue-comments-page"},G={class:"comments-content card"},K=["placeholder"],Q=["disabled"],X={key:0,class:"loading"},Z={key:1,class:"empty"},ee={key:2,class:"comments-list"},te={class:"comment-header"},se={class:"comment-author"},oe={class:"comment-date"},ae=["innerHTML"],ne=E({__name:"comments",async setup(re){let s,l;const b=F(),{success:g,error:w}=z(),{getErrorMessage:$}=J(),u=b.params.id,o=h(""),d=h(!1),{data:n}=([s,l]=v(()=>y(`/api/issues/${u}`,"$sHdW2Rruhz")),s=await s,l(),s),C=I(()=>{if(!n.value)return null;const e={id:n.value.key,title:n.value.title,column:n.value.column_slug};return n.value.priority&&(e.priority=n.value.priority),e}),{data:p,status:k,refresh:_}=([s,l]=v(()=>y(`/api/issues/${u}/comments`,"$2TYRtwuSoA")),s=await s,l(),s),{lastMessage:S}=P();L(S,e=>{e?.type==="comment"&&e.issueId===u&&_()});const H=e=>new Date(e).toLocaleString(),M=e=>q(e),A=async()=>{if(o.value.trim()){d.value=!0;try{await fetch(`/api/issues/${u}/comments`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:o.value})}),o.value="",g("Comment added"),_()}catch(e){w($(e,"Failed to add comment"))}finally{d.value=!1}}};return N({title:`Comments - ${u} - AutoCode`}),(e,f)=>{const T=D;return m(),i("div",Y,[R(T,{issue:a(C),"active-tab":"comments"},null,8,["issue"]),t("div",G,[t("h2",null,c(e.$t("issue.comments")),1),t("form",{class:"comment-form",onSubmit:x(A,["prevent"])},[B(t("textarea",{"onUpdate:modelValue":f[0]||(f[0]=r=>O(o)?o.value=r:null),class:"form-input comment-input",placeholder:e.$t("issue.addComment"),rows:"3"},null,8,K),[[V,a(o)]]),t("button",{type:"submit",class:"btn btn-primary",disabled:!a(o).trim()||a(d)},c(e.$t("form.save")),9,Q)],32),a(k)==="pending"?(m(),i("div",X,c(e.$t("app.loading")),1)):a(p)?.length?(m(),i("ul",ee,[(m(!0),i(U,null,W(a(p),r=>(m(),i("li",{key:r.id,class:"comment"},[t("div",te,[t("span",se,c(r.author||"User"),1),t("time",oe,c(H(r.createdAt)),1)]),t("div",{class:"comment-body",innerHTML:M(r.content)},null,8,ae)]))),128))])):(m(),i("div",Z,c(e.$t("issue.noComments")),1))])])}}}),fe=j(ne,[["__scopeId","data-v-b988772a"]]);export{fe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as B}from"./t7k_e5FQ.js";import{_ as D}from"./Amqf1SBE.js";import{d as E}from"./C0Rlrcoy.js";import{d as M,H as R,x as k,m as $,v as S,c as e,f as P,e as i,h as r,t as a,F as m,q as b,b as t,k as c,s as j,j as w,w as v,g as H,_ as q}from"./nSLZfjDc.js";import{u as A}from"./C9Q_XE2y.js";const z={class:"issue-history-page"},G={class:"card"},J={class:"section-header"},K={class:"count"},O={key:0,class:"loading"},Q={key:1,class:"error-message"},U={key:2,class:"empty"},W={key:3,class:"history-list"},X={class:"history-main"},Y={key:0,class:"history-from"},Z={key:1,class:"history-arrow"},ss={class:"history-to"},ts=["innerHTML"],os={key:1,class:"history-changes"},es={class:"change-field"},as={class:"change-from"},is={class:"change-to"},rs={key:0,class:"history-actions"},ns={key:1,class:"session-badge"},cs={class:"history-date"},ls=M({__name:"index",async setup(ds){let n,u;const d=R().params.id,{data:l}=([n,u]=k(()=>A(`/api/issues/${d}`,"$Rocr4faAHy")),n=await n,u(),n),I=$(()=>{if(!l.value)return null;const o={id:l.value.key,title:l.value.title,column:l.value.column_slug};return l.value.priority&&(o.priority=l.value.priority),o}),{data:_,status:C,error:p}=([n,u]=k(()=>A(`/api/issues/${d}/history`,"$bELPvGg345")),n=await n,u(),n),L=$(()=>_.value?[..._.value].reverse():[]),x=o=>new Date(o).toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),f=o=>o||"",F=o=>E(o);return S({title:`History - ${d} - AutoCode`}),(o,h)=>{const N=B,g=D;return t(),e("div",z,[P(N,{issue:r(I),"active-tab":"history"},null,8,["issue"]),i("div",G,[i("div",J,[i("h2",null,a(o.$t("issue.history")),1),i("span",K,"("+a(r(_)?.length||0)+")",1)]),r(C)==="pending"?(t(),e("div",O,a(o.$t("app.loading")),1)):r(p)?(t(),e("div",Q,a(r(p).message),1)):r(_)?.length?(t(),e("ul",W,[(t(!0),e(m,null,b(r(L),(s,T)=>(t(),e("li",{key:T,class:"history-item"},[i("div",X,[i("span",{class:j(["history-action",`history-action-${s.action}`])},a(o.$t(`history.action.${s.action}`)),3),s.action!=="edited"?(t(),e(m,{key:0},[s.from?(t(),e("span",Y,a(s.from),1)):c("",!0),s.from?(t(),e("span",Z,"→")):c("",!0),i("span",ss,a(s.to),1),s.reason?(t(),e("div",{key:2,class:"history-reason",innerHTML:F(s.reason)},null,8,ts)):c("",!0)],64)):s.changes?.length?(t(),e("div",os,[(t(!0),e(m,null,b(s.changes,(y,V)=>(t(),e("div",{key:V,class:"history-change-item"},[i("span",es,a(o.$t(`history.field.${y.field}`)),1),i("span",as,a(f(y.from)||"∅"),1),h[0]||(h[0]=i("span",{class:"history-arrow"},"→",-1)),i("span",is,a(f(y.to)||"∅"),1)]))),128))])):c("",!0)]),s.artifactsAvailable?.prompt||s.artifactsAvailable?.terminal?(t(),e("div",rs,[s.artifactsAvailable?.prompt?(t(),w(g,{key:0,to:`/issue/${r(d)}/history/${s.sessionId}/prompt`,class:"btn-action"},{default:v(()=>[H(a(o.$t("history.viewPrompt")),1)]),_:1},8,["to"])):c("",!0),s.artifactsAvailable?.terminal?(t(),w(g,{key:1,to:`/issue/${r(d)}/history/${s.sessionId}/terminal`,class:"btn-action"},{default:v(()=>[H(a(o.$t("history.viewTerminal")),1)]),_:1},8,["to"])):c("",!0)])):c("",!0),s.sessionId?(t(),e("span",ns,a(s.sessionId),1)):c("",!0),i("time",cs,a(x(s.at)),1)]))),128))])):(t(),e("div",U,a(o.$t("issue.noHistory")),1))])])}}}),fs=q(ls,[["__scopeId","data-v-4be073b7"]]);export{fs as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as r}from"./
|
|
1
|
+
import{D as r}from"./ge5HoFHn.js";import{a as s}from"./BAAiS_qy.js";import{d as u,r as i,j as d,b as c,w as p,f,h as C}from"./nSLZfjDc.js";const _=u({__name:"EditSidebarListElement",props:{name:{}},emits:["close","edit"],setup(l,{emit:n}){const m=l,t=n,o=i(m.name);return(V,e)=>(c(),d(s,{onCancel:e[1]||(e[1]=a=>t("close")),onSubmit:e[2]||(e[2]=a=>t("edit",o.value))},{default:p(()=>[f(C(r),{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=a=>o.value=a),autofocus:""},null,8,["modelValue"])]),_:1}))}});export{_ as C};
|