@vitejs/devtools-rolldown 0.0.0-alpha.32 → 0.0.0-alpha.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/dirs.mjs +1 -3
  2. package/dist/index.mjs +144 -431
  3. package/dist/nitro.json +1 -1
  4. package/dist/public/200.html +1 -1
  5. package/dist/public/404.html +1 -1
  6. package/dist/public/_nuxt/28OcTI2e2.js +1 -0
  7. package/dist/public/_nuxt/7JITT7Lv.js +1 -0
  8. package/dist/public/_nuxt/7Sa9VFur.js +1 -0
  9. package/dist/public/_nuxt/B5KEqWuS.js +1 -0
  10. package/dist/public/_nuxt/B7Uzi9u5.js +3 -0
  11. package/dist/public/_nuxt/B91g3LoS.js +1 -0
  12. package/dist/public/_nuxt/BAH7Ften.js +1 -0
  13. package/dist/public/_nuxt/BAiFz_-P2.js +1 -0
  14. package/dist/public/_nuxt/BLYeE3ho.js +1 -0
  15. package/dist/public/_nuxt/BO4gZbVl.js +1 -0
  16. package/dist/public/_nuxt/BaYNXXCt.js +1 -0
  17. package/dist/public/_nuxt/Bdtk5UYE.js +1 -0
  18. package/dist/public/_nuxt/BnNq-Z_V.js +1 -0
  19. package/dist/public/_nuxt/Bpozzw1A.js +1 -0
  20. package/dist/public/_nuxt/BrE3R8vW.js +1 -0
  21. package/dist/public/_nuxt/CB-NGWfo.js +1 -0
  22. package/dist/public/_nuxt/CDw62R4I.js +1 -0
  23. package/dist/public/_nuxt/CQTlMuLw.js +1 -0
  24. package/dist/public/_nuxt/CYor1418.js +1 -0
  25. package/dist/public/_nuxt/CvoV-A9Y.js +1 -0
  26. package/dist/public/_nuxt/CyP4eEAT.js +1 -0
  27. package/dist/public/_nuxt/CzK_iMhR.js +2 -0
  28. package/dist/public/_nuxt/D63F5Z8a.js +1 -0
  29. package/dist/public/_nuxt/D6aQCUZx2.js +1 -0
  30. package/dist/public/_nuxt/D7AbeHTq.js +1 -0
  31. package/dist/public/_nuxt/DHg88w8Z.js +1 -0
  32. package/dist/public/_nuxt/DOpxmm79.js +12 -0
  33. package/dist/public/_nuxt/DV7TRE8i.js +1 -0
  34. package/dist/public/_nuxt/DaLz16aP.js +2 -0
  35. package/dist/public/_nuxt/{DataVirtualList.BMBI8CMU.css → DataVirtualList.lGV_3v2U.css} +1 -1
  36. package/dist/public/_nuxt/DkEU1LAY.js +1 -0
  37. package/dist/public/_nuxt/DoxsY2al.js +1 -0
  38. package/dist/public/_nuxt/DrHs6mcp.js +1 -0
  39. package/dist/public/_nuxt/DvWFi_Ii2.js +1 -0
  40. package/dist/public/_nuxt/DyswZ8iG.js +1 -0
  41. package/dist/public/_nuxt/Y4YMtQtL.js +1 -0
  42. package/dist/public/_nuxt/_session_.BcWOaqe_.css +1 -0
  43. package/dist/public/_nuxt/bSvnGjgQ2.js +1 -0
  44. package/dist/public/_nuxt/builds/latest.json +1 -1
  45. package/dist/public/_nuxt/builds/meta/74b7fb54-18a3-4ed3-aa42-c12c389e8a64.json +1 -0
  46. package/dist/public/_nuxt/{entry.DQK1Fncc.css → entry.DAebTvdU.css} +1 -1
  47. package/dist/public/_nuxt/error-404.DlglkSik.css +1 -0
  48. package/dist/public/_nuxt/error-500.BbJeK9S9.css +1 -0
  49. package/dist/public/_nuxt/hXXIFrrE.js +1 -0
  50. package/dist/public/_nuxt/p7Mpv4Xd2.js +1 -0
  51. package/dist/public/_nuxt/wmMbYO2d.js +1 -0
  52. package/dist/public/index.html +1 -1
  53. package/package.json +59 -21
  54. package/dist/public/_nuxt/6TUvuKw-.js +0 -1
  55. package/dist/public/_nuxt/B9ATRPQ7.js +0 -1
  56. package/dist/public/_nuxt/B9O9mwcz.js +0 -1
  57. package/dist/public/_nuxt/BYYOuuQ8.js +0 -1
  58. package/dist/public/_nuxt/Bb89bWCj.js +0 -1
  59. package/dist/public/_nuxt/Bjj8tBzd.js +0 -1
  60. package/dist/public/_nuxt/BlOp-aa0.js +0 -1
  61. package/dist/public/_nuxt/By3-Oigm.js +0 -1
  62. package/dist/public/_nuxt/C3g8Qo0F.js +0 -1
  63. package/dist/public/_nuxt/C4ZBTBfN.js +0 -1
  64. package/dist/public/_nuxt/C56jC-Rb.js +0 -1
  65. package/dist/public/_nuxt/CBrsTh9c.js +0 -1
  66. package/dist/public/_nuxt/CMcxTY2l.js +0 -1
  67. package/dist/public/_nuxt/CavFgEiy.js +0 -1
  68. package/dist/public/_nuxt/Ckamtj1Q.js +0 -1
  69. package/dist/public/_nuxt/Cs9u2aM3.js +0 -1
  70. package/dist/public/_nuxt/D1SGgpeJ.js +0 -1
  71. package/dist/public/_nuxt/D4Jp6GBh.js +0 -1
  72. package/dist/public/_nuxt/D68gMgDN.js +0 -33
  73. package/dist/public/_nuxt/D8SB5Fj6.js +0 -1
  74. package/dist/public/_nuxt/DG5LouYQ.js +0 -1
  75. package/dist/public/_nuxt/DGPFtmYw.js +0 -1
  76. package/dist/public/_nuxt/DKKnluDw.js +0 -1
  77. package/dist/public/_nuxt/DTB_fvd1.js +0 -1
  78. package/dist/public/_nuxt/Daqw8s3u.js +0 -1
  79. package/dist/public/_nuxt/DdkVNznP.js +0 -1
  80. package/dist/public/_nuxt/DicSvcoI.js +0 -2
  81. package/dist/public/_nuxt/DmCbLhAV.js +0 -1
  82. package/dist/public/_nuxt/Dy45_BSj.js +0 -1
  83. package/dist/public/_nuxt/EoT68z9_.js +0 -1
  84. package/dist/public/_nuxt/OLyU6pOh.js +0 -1
  85. package/dist/public/_nuxt/Vyw3NrOX.js +0 -1
  86. package/dist/public/_nuxt/_session_.BXMlcDmB.css +0 -1
  87. package/dist/public/_nuxt/builds/meta/64b3b8a7-2713-4a0b-a273-f1b096d1de48.json +0 -1
  88. package/dist/public/_nuxt/error-404.2Q-XfgR7.css +0 -1
  89. package/dist/public/_nuxt/error-500.3QnkDFAn.css +0 -1
  90. package/dist/public/_nuxt/hK0Xv1bA.js +0 -1
  91. package/dist/public/_nuxt/vcHT-ufV.js +0 -1
  92. package/dist/public/_nuxt/zkWX764r.js +0 -4
  93. /package/dist/public/_nuxt/{C3MbbcWQ.js → BUwCbG2W.js} +0 -0
  94. /package/dist/public/_nuxt/{2NHbZxRd.js → DoJ6DaKu.js} +0 -0
  95. /package/dist/public/_nuxt/{BmEqTRfc.js → qIAw3Eg02.js} +0 -0
@@ -0,0 +1 @@
1
+ import{C as e,K as t,L as n,O as r,S as i,Tt as a,Wt as o,X as s,Z as c,b as l,ct as u,et as d,j as f,k as p,m,nt as h,x as g,y as _}from"./B7Uzi9u5.js";import{S as v}from"./DyswZ8iG.js";import{c as y}from"./CvoV-A9Y.js";import{r as b}from"./CB-NGWfo.js";import{n as x}from"#entry";import{t as S}from"./CQTlMuLw.js";import{r as C,t as w}from"./CYor1418.js";import{r as T}from"./D7AbeHTq.js";import{t as E}from"./Bdtk5UYE.js";var D=[`title`],O={key:0,flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=f({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1},basic:{type:Boolean,default:!1}},setup(n){let s=n,f=v(),m=_(()=>Array.isArray(s.chunk.imports)?s.chunk.imports.length:s.chunk.imports),h=_(()=>Array.isArray(s.chunk.modules)?s.chunk.modules.length:s.chunk.modules);return(s,_)=>(t(),g(d(n.link?a(S):`div`),{to:n.link?typeof n.link==`string`?n.link:{path:a(f).path,query:{chunk:n.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:u(()=>[l(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${n.chunk.chunk_id}`},[c(s.$slots,`icon`,{},()=>[_[0]||=l(`div`,{"i-ph-shapes-duotone":``},null,-1)]),l(`div`,null,o(n.chunk.name||`[unnamed]`),1),p(C,{text:n.chunk.reason},null,8,[`text`]),c(s.$slots,`left-after`)],8,D),_[3]||=l(`div`,{"flex-auto":``},null,-1),n.basic?i(``,!0):(t(),e(`div`,O,[l(`span`,k,`#`+o(n.chunk.chunk_id),1),l(`div`,{flex:`~ gap-1 items-center`,title:`${m.value} imports`},[_[1]||=l(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),r(` `+o(m.value),1)],8,A),l(`div`,{flex:`~ gap-1 items-center`,title:`${h.value} modules`},[_[2]||=l(`div`,{"i-ph-package-duotone":``},null,-1),r(` `+o(h.value),1)],8,j)])),c(s.$slots,`default`)]),_:3},8,[`to`]))}}),N=Object.assign(M,{__name:`ChunksBaseInfo`}),P={flex:`~ gap-2 items-center`},F=f({__name:`BaseInfo`,props:{asset:{}},setup(n){return(r,i)=>{let a=T;return t(),e(`div`,P,[i[0]||=l(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),l(`div`,null,o(n.asset.filename),1),p(a,{bytes:n.asset.size,"text-sm":``},null,8,[`bytes`]),p(C,{text:n.asset.type},null,8,[`text`])])}}}),I=Object.assign(F,{__name:`AssetsBaseInfo`}),L={relative:``},R={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},z=f({__name:`ExpandableContainer`,props:n({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(n){let r=n,o=h(n,`count`),s=o.value,u=_(()=>r.list.slice(0,o.value));return(d,f)=>(t(),e(`div`,L,[c(d.$slots,`default`,{items:u.value}),n.list.length>o.value?(t(),e(`div`,R,[l(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:f[0]||=e=>o.value=Math.round(o.value+a(s))},[f[2]||=l(`div`,{"i-ri:arrow-down-double-line":``},null,-1),f[3]||=l(`span`,null,`More`,-1),p(E,{prefix:`+`,number:Math.min(Math.round(a(s)),r.list.length-o.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),l(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:f[1]||=e=>o.value=r.list.length},[f[4]||=l(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),f[5]||=l(`span`,null,`All`,-1),p(E,{number:r.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):i(``,!0)]))}}),B=Object.assign(z,{__name:`DisplayExpandableContainer`}),V={key:0,"i-ph-file-duotone":``},H={key:1,"i-ph-lightning-duotone":``},U=f({__name:`Imports`,props:{imports:{}},setup(n){return(r,a)=>{let o=N,c=B;return t(),g(c,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:n.imports},{default:u(({items:n})=>[(t(!0),e(m,null,s(n,(n,r)=>(t(),e(m,{key:r},[n?(t(),g(o,{key:0,chunk:n,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:u(()=>[n.kind===`import-statement`?(t(),e(`div`,V)):i(``,!0),n.kind===`dynamic-import`?(t(),e(`div`,H)):i(``,!0)]),"left-after":u(()=>[p(C,{text:n.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):i(``,!0)],64))),128))]),_:1},8,[`list`])}}}),W=Object.assign(U,{__name:`ChunksImports`}),G={flex:`~ col gap-3`},K={key:1,"text-sm":``,op50:``,flex:`~ items-center`,title:`Total size of imports`},q={open:`true`},J={open:`true`},Y={op50:``},X={key:0,open:`true`},Z={op50:``},Q={key:1,open:`true`},$={op50:``},ee=f({__name:`ChunkDetails`,props:{chunk:{},session:{},showDetails:{type:Boolean,default:!0},chunks:{}},setup(n){let d=n,f=_(()=>{let e=new Map;for(let t of d.session.modulesList)e.set(t.id,t);return e});function h(e){return e.reduce((e,t)=>{let n=f.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let E=_(()=>h(d.chunk.modules)),D=v(),O=b(),{state:k,isLoading:A}=y(async()=>{if(!d.chunks)return await O.value.call(`vite:rolldown:get-chunks-graph`,{session:d.session.id})},null),j=_(()=>d.chunks||k.value),M=_(()=>d.chunk.imports.map(e=>{let t=j.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0,size:h(t?.modules||[])}})),P=_(()=>j.value?.filter(e=>e.imports.some(e=>e.chunk_id===d.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===d.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(d,f)=>{let h=T,_=N,v=I,y=S,b=w,O=B,k=x,j=W;return t(),e(`div`,G,[p(_,{chunk:n.chunk},{"left-after":u(()=>[n.chunk.is_initial?(t(),g(C,{key:0,text:`initial`})):i(``,!0),p(h,{bytes:E.value,"text-sm":``,title:`Chunk size`},null,8,[`bytes`]),M.value.length?(t(),e(`div`,K,[f[0]||=r(` (`,-1),p(h,{bytes:M.value.reduce((e,t)=>e+t.size,0)},null,8,[`bytes`]),f[1]||=r(`) `,-1)])):i(``,!0)]),default:u(()=>[c(d.$slots,`default`)]),_:3},8,[`chunk`]),n.showDetails?(t(),e(m,{key:0},[l(`details`,q,[f[2]||=l(`summary`,{op50:``},` Assets `,-1),p(y,{border:`~ base rounded-lg`,px2:``,mt2:``,py1:``,"min-w-fit":``,flex:`~`,to:{path:a(D).path,query:{asset:n.chunk.asset?.filename}}},{default:u(()=>[p(v,{asset:{...n.chunk.asset,type:`asset`}},null,8,[`asset`])]),_:1},8,[`to`])]),l(`details`,J,[l(`summary`,Y,[l(`span`,null,`Modules (`+o(n.chunk.modules.length)+`)`,1)]),p(O,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:n.chunk.modules},{default:u(({items:r})=>[(t(!0),e(m,null,s(r,e=>(t(),g(b,{id:e,key:e,session:n.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])]),a(A)?(t(),g(k,{key:0})):(t(),e(m,{key:1},[n.chunk.imports.length?(t(),e(`details`,X,[l(`summary`,Z,[l(`span`,null,`Imports (`+o(n.chunk.imports.length)+`)`,1)]),p(j,{imports:M.value},null,8,[`imports`])])):i(``,!0),P.value.length?(t(),e(`details`,Q,[l(`summary`,$,[l(`span`,null,`Importers (`+o(P.value.length)+`)`,1)]),p(j,{imports:P.value},null,8,[`imports`])])):i(``,!0)],64))],64)):i(``,!0)])}}}),te=Object.assign(ee,{__name:`DataChunkDetails`});export{N as i,B as n,I as r,te as t};
@@ -0,0 +1,2 @@
1
+ import{$ as e,C as t,Ht as n,K as r,N as i,P as a,Q as o,R as s,S as c,Tt as l,Ut as u,Vt as d,Wt as f,X as p,Y as m,Z as h,b as g,bt as _,ct as v,et as y,ht as b,j as x,k as S,lt as C,m as w,q as T,tt as ee,ut as te,x as E,z as ne}from"./B7Uzi9u5.js";import{V as re}from"./DyswZ8iG.js";import{h as ie}from"./CvoV-A9Y.js";function D(e){return Array.isArray?Array.isArray(e):fe(e)===`[object Array]`}var ae=1/0;function oe(e){if(typeof e==`string`)return e;let t=e+``;return t==`0`&&1/e==-ae?`-0`:t}function se(e){return e==null?``:oe(e)}function O(e){return typeof e==`string`}function ce(e){return typeof e==`number`}function le(e){return e===!0||e===!1||de(e)&&fe(e)==`[object Boolean]`}function ue(e){return typeof e==`object`}function de(e){return ue(e)&&e!==null}function k(e){return e!=null}function A(e){return!e.trim().length}function fe(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var pe=`Incorrect 'index' type`,me=e=>`Invalid value for key ${e}`,he=e=>`Pattern length exceeds max of ${e}.`,ge=e=>`Missing ${e} property in key`,_e=e=>`Property 'weight' in key '${e}' must be a positive integer`,ve=Object.prototype.hasOwnProperty,ye=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=be(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function be(e){let t=null,n=null,r=null,i=1,a=null;if(O(e)||D(e))r=e,t=xe(e),n=j(e);else{if(!ve.call(e,`name`))throw Error(ge(`name`));let o=e.name;if(r=o,ve.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(_e(o));t=xe(o),n=j(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function xe(e){return D(e)?e:e.split(`.`)}function j(e){return D(e)?e.join(`.`):e}function Se(e,t){let n=[],r=!1,i=(e,t,a)=>{if(k(e))if(!t[a])n.push(e);else{let o=e[t[a]];if(!k(o))return;if(a===t.length-1&&(O(o)||ce(o)||le(o)))n.push(se(o));else if(D(o)){r=!0;for(let e=0,n=o.length;e<n;e+=1)i(o[e],t,a+1)}else t.length&&i(o,t,a+1)}};return i(e,O(t)?t.split(`.`):t,0),r?n:n[0]}var Ce={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},we={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Te={location:0,threshold:.6,distance:100},Ee={useExtendedSearch:!1,getFn:Se,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},M={...we,...Ce,...Te,...Ee},De=/[^ ]+/g;function Oe(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(De).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var N=class{constructor({getFn:e=M.getFn,fieldNormWeight:t=M.fieldNormWeight}={}){this.norm=Oe(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,O(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();O(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!k(e)||A(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(k(i)){if(D(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:n,value:r}=t.pop();if(k(r))if(O(r)&&!A(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else D(r)&&r.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}n.$[r]=e}else if(O(i)&&!A(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}};function ke(e,t,{getFn:n=M.getFn,fieldNormWeight:r=M.fieldNormWeight}={}){let i=new N({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(be)),i.setSources(t),i.create(),i}function Ae(e,{getFn:t=M.getFn,fieldNormWeight:n=M.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new N({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function P(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=M.distance,ignoreLocation:a=M.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(r-n);return i?o+s/i:s?1:o}function je(e=[],t=M.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var F=32;function Me(e,t,n,{location:r=M.location,distance:i=M.distance,threshold:a=M.threshold,findAllMatches:o=M.findAllMatches,minMatchCharLength:s=M.minMatchCharLength,includeMatches:c=M.includeMatches,ignoreLocation:l=M.ignoreLocation}={}){if(t.length>F)throw Error(he(F));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=s>1||c,g=h?Array(d):[],_;for(;(_=e.indexOf(t,m))>-1;){let e=P(t,{currentLocation:_,expectedLocation:f,distance:i,ignoreLocation:l});if(p=Math.min(e,p),m=_+u,h){let e=0;for(;e<u;)g[_+e]=1,e+=1}}m=-1;let v=[],y=1,b=u+d,x=1<<u-1;for(let r=0;r<u;r+=1){let a=0,s=b;for(;a<s;)P(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:i,ignoreLocation:l})<=p?a=s:b=s,s=Math.floor((b-a)/2+a);b=s;let c=Math.max(1,f-s+1),_=o?d:Math.min(f+s,d)+u,S=Array(_+2);S[_+1]=(1<<r)-1;for(let a=_;a>=c;--a){let o=a-1,s=n[e.charAt(o)];if(h&&(g[o]=+!!s),S[a]=(S[a+1]<<1|1)&s,r&&(S[a]|=(v[a+1]|v[a])<<1|1|v[a+1]),S[a]&x&&(y=P(t,{errors:r,currentLocation:o,expectedLocation:f,distance:i,ignoreLocation:l}),y<=p)){if(p=y,m=o,m<=f)break;c=Math.max(1,2*f-m)}}if(P(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;v=S}let S={isMatch:m>=0,score:Math.max(.001,y)};if(h){let e=je(g,s);e.length?c&&(S.indices=e):S.isMatch=!1}return S}function Ne(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var I=String.prototype.normalize?(e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``)):(e=>e),Pe=class{constructor(e,{location:t=M.location,threshold:n=M.threshold,distance:r=M.distance,includeMatches:i=M.includeMatches,findAllMatches:a=M.findAllMatches,minMatchCharLength:o=M.minMatchCharLength,isCaseSensitive:s=M.isCaseSensitive,ignoreDiacritics:c=M.ignoreDiacritics,ignoreLocation:l=M.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?I(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ne(e),startIndex:t})},d=this.pattern.length;if(d>F){let e=0,t=d%F,n=d-t;for(;e<n;)u(this.pattern.substr(e,F),e),e+=F;if(t){let e=d-F;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?I(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=Me(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&(u=[...u,...g])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=u),p}},L=class{constructor(e){this.pattern=e}static isMultiMatch(e){return Fe(e,this.multiRegex)}static isSingleMatch(e){return Fe(e,this.singleRegex)}search(){}};function Fe(e,t){let n=e.match(t);return n?n[1]:null}var Ie=class extends L{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Le=class extends L{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Re=class extends L{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},ze=class extends L{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Be=class extends L{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},Ve=class extends L{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},He=class extends L{constructor(e,{location:t=M.location,threshold:n=M.threshold,distance:r=M.distance,includeMatches:i=M.includeMatches,findAllMatches:a=M.findAllMatches,minMatchCharLength:o=M.minMatchCharLength,isCaseSensitive:s=M.isCaseSensitive,ignoreDiacritics:c=M.ignoreDiacritics,ignoreLocation:l=M.ignoreLocation}={}){super(e),this._bitapSearch=new Pe(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Ue=class extends L{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:a?0:1,indices:r}}},R=[Ie,Ue,Re,ze,Ve,Be,Le,He],We=R.length,Ge=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ke=`|`;function qe(e,t={}){return e.split(Ke).map(e=>{let n=e.trim().split(Ge).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<We;){let e=R[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<We;){let e=R[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var Je=new Set([He.type,Ue.type]),Ye=class{constructor(e,{isCaseSensitive:t=M.isCaseSensitive,ignoreDiacritics:n=M.ignoreDiacritics,includeMatches:r=M.includeMatches,minMatchCharLength:i=M.minMatchCharLength,ignoreLocation:a=M.ignoreLocation,findAllMatches:o=M.findAllMatches,location:s=M.location,threshold:c=M.threshold,distance:l=M.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?I(e):e,this.pattern=e,this.query=qe(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?I(e):e;let a=0,o=[],s=0;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:c,indices:l,score:u}=r.search(e);if(c){if(a+=1,s+=u,n){let e=r.constructor.type;Je.has(e)?o=[...o,...l]:o.push(l)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}},z=[];function Xe(...e){z.push(...e)}function B(e,t){for(let n=0,r=z.length;n<r;n+=1){let r=z[n];if(r.condition(e,t))return new r(e,t)}return new Pe(e,t)}var V={AND:`$and`,OR:`$or`},H={PATH:`$path`,PATTERN:`$val`},U=e=>!!(e[V.AND]||e[V.OR]),Ze=e=>!!e[H.PATH],Qe=e=>!D(e)&&ue(e)&&!U(e),$e=e=>({[V.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function et(e,t,{auto:n=!0}={}){let r=e=>{let i=Object.keys(e),a=Ze(e);if(!a&&i.length>1&&!U(e))return r($e(e));if(Qe(e)){let r=a?e[H.PATH]:i[0],o=a?e[H.PATTERN]:e[r];if(!O(o))throw Error(me(r));let s={keyId:j(r),pattern:o};return n&&(s.searcher=B(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];D(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return U(e)||(e=$e(e)),r(e)}function tt(e,{ignoreFieldNorm:t=M.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),e.score=n})}function nt(e,t){let n=e.matches;t.matches=[],k(n)&&n.forEach(e=>{if(!k(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function rt(e,t){t.score=e.score}function it(e,t,{includeMatches:n=M.includeMatches,includeScore:r=M.includeScore}={}){let i=[];return n&&i.push(nt),r&&i.push(rt),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var W=class{constructor(e,t={},n){this.options={...M,...t},this.options.useExtendedSearch,this._keyStore=new ye(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof N))throw Error(pe);this._myIndex=t||ke(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){k(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,r=this._docs.length;n<r;n+=1){let i=this._docs[n];e(i,n)&&(this.removeAt(n),--n,--r,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:n,includeScore:r,shouldSort:i,sortFn:a,ignoreFieldNorm:o}=this.options,s=O(e)?O(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return tt(s,{ignoreFieldNorm:o}),i&&s.sort(a),ce(t)&&t>-1&&(s=s.slice(0,t)),it(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=B(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:e,i:n,n:i})=>{if(!k(e))return;let{isMatch:a,score:o,indices:s}=t.searchIn(e);a&&r.push({item:e,idx:n,matches:[{score:o,value:e,norm:i,indices:s}]})}),r}_searchLogical(e){let t=et(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return a&&a.length?[{idx:r,item:t,matches:a}]:[]}let i=[];for(let a=0,o=e.children.length;a<o;a+=1){let o=e.children[a],s=n(o,t,r);if(s.length)i.push(...s);else if(e.operator===V.AND)return[]}return i},r=this._myIndex.records,i={},a=[];return r.forEach(({$:e,i:r})=>{if(k(e)){let o=n(t,e,r);o.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},a.push(i[r])),o.forEach(({matches:e})=>{i[r].matches.push(...e)}))}}),a}_searchObjectList(e){let t=B(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:e,i:r})=>{if(!k(e))return;let a=[];n.forEach((n,r)=>{a.push(...this._findMatches({key:n,value:e[r],searcher:t}))}),a.length&&i.push({idx:r,item:e,matches:a})}),i}_findMatches({key:e,value:t,searcher:n}){if(!k(t))return[];let r=[];if(D(t))t.forEach(({v:t,i,n:a})=>{if(!k(t))return;let{isMatch:o,score:s,indices:c}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c})}return r}};W.version=`7.1.0`,W.createIndex=ke,W.parseIndex=Ae,W.config=M,W.parseQuery=et,Xe(Ye);var at={flex:`col gap-2`,"max-w-90vw":``,"min-w-30vw":``,border:`~ base rounded-xl`,"bg-glass":``},ot={key:0,class:`flex items-center`},st=[`title`],ct=[`checked`,`onChange`],lt={"text-sm":``},ut=[`title`],dt={key:0,op75:``,"i-ph-selection-slash-duotone":``},ft={key:1,op75:``,"i-ph-selection-plus-duotone":``},pt=x({__name:`SearchPanel`,props:{rules:{},modelValue:{default:()=>({search:``,selected:null})},selectedContainerClass:{default:``}},emits:[`update:modelValue`],setup(e,{emit:n}){let i=e,a=ie(i,`modelValue`,n);function o(e){let{modelValue:t}=i;return t?.selected?t.selected.includes(e.name):!0}function s(e){let{rules:t}=i;a?.value?.selected||(a.value.selected=t.map(e=>e.name)),a.value.selected.includes(e.name)?a.value.selected=a.value.selected.filter(t=>t!==e.name):a.value.selected.push(e.name),a?.value?.selected.length===i.rules.length&&(a.value.selected=null)}function u(){a?.value?.selected?.length===i.rules.length?a.value.selected=null:a?.value?.selected==null?a.value.selected=[]:a.value.selected=i.rules.map(e=>e.name).filter(e=>!a.value.selected?.includes(e))}function m(){a?.value?.selected?.length===0?a.value.selected=null:a.value.selected=[]}return(n,i)=>(r(),t(`div`,at,[h(n.$slots,`search`,{},()=>[e.modelValue.search===!1?c(``,!0):(r(),t(`div`,ot,[C(g(`input`,{"onUpdate:modelValue":i[0]||=e=>l(a).search=e,p2:``,px4:``,"w-full":``,style:{outline:`none`},placeholder:`Search`},null,512),[[re,l(a).search]]),h(n.$slots,`search-end`)]))]),e.rules.length?(r(),t(`div`,{key:0,class:d(e.selectedContainerClass),flex:`~ gap-2 wrap`,p2:``,border:`t base`},[(r(!0),t(w,null,p(e.rules,e=>(r(),t(`label`,{key:e.name,border:`~ base rounded-md`,px2:``,py1:``,flex:`~ items-center gap-1`,"select-none":``,title:e.description,class:d(o(e)?`bg-active`:`grayscale op50`)},[g(`input`,{type:`checkbox`,mr1:``,checked:o(e),onChange:t=>s(e)},null,40,ct),g(`div`,{class:d(e.icon),"icon-catppuccin":``},null,2),g(`div`,lt,f(e.description||e.name),1)],10,st))),128)),g(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:`Reverse Selection`,onClick:u},[...i[1]||=[g(`div`,{op75:``,"i-ph-selection-background-duotone":``},null,-1)]]),g(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:l(a).selected?.length===0?`Select All`:`Unselect All`,onClick:m},[l(a).selected?.length===0?(r(),t(`div`,dt)):(r(),t(`div`,ft))],8,ut)],2)):c(``,!0),h(n.$slots,`default`)]))}}),mt=Object.assign(pt,{__name:`DataSearchPanel`});function ht(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var G;function K(){K.init||(K.init=!0,G=ht()!==-1)}var q={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){K(),ne(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,G&&this.$el.appendChild(e),e.data=`about:blank`,G||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!G&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},gt=te(`data-v-b329ee4c`);m(`data-v-b329ee4c`);var _t={class:`resize-observer`,tabindex:`-1`};T(),q.render=gt((e,t,n,i,a,o)=>(r(),E(`div`,_t))),q.__scopeId=`data-v-b329ee4c`,q.__file=`src/components/ResizeObserver.vue`;function J(e){"@babel/helpers - typeof";return J=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},J(e)}function vt(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bt(e,t,n){return t&&yt(e.prototype,t),n&&yt(e,n),e}function xt(e){return St(e)||Ct(e)||wt(e)||Tt()}function St(e){if(Array.isArray(e))return Y(e)}function Ct(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function wt(e,t){if(e){if(typeof e==`string`)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}}function Y(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tt(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Et(e){return typeof e==`function`?{callback:e}:e}function Dt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(o){if(a=[...arguments].slice(1),!(r&&o===i)){var s=n.leading;typeof s==`function`&&(s=s(o,i)),(!r||o!==i)&&s&&e.apply(void 0,[o].concat(xt(a))),i=o,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[o].concat(xt(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function Ot(e,t){if(e===t)return!0;if(J(e)===`object`){for(var n in e)if(!Ot(e[n],t[n]))return!1;return!0}return!1}var kt=function(){function e(t,n,r){vt(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return bt(e,[{key:`createObserver`,value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Et(e),this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var r=(this.options.throttleOptions||{}).leading;this.callback=Dt(this.callback,this.options.throttle,{leading:function(e){return r===`both`||r===`visible`&&e||r===`hidden`&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var r=e.find(function(e){return e.isIntersecting});r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}},this.options.intersection),ne(function(){n.observer&&n.observer.observe(n.el)})}}},{key:`destroyObserver`,value:function(){this.observer&&=(this.observer.disconnect(),null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:`threshold`,get:function(){return this.options.intersection&&typeof this.options.intersection.threshold==`number`?this.options.intersection.threshold:0}}]),e}();function At(e,t,n){var r=t.value;r&&(typeof IntersectionObserver>`u`?console.warn(`[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill`):e._vue_visibilityState=new kt(e,r,n))}function jt(e,t,n){var r=t.value,i=t.oldValue;if(!Ot(r,i)){var a=e._vue_visibilityState;if(!r){Mt(e);return}a?a.createObserver(r,n):At(e,{value:r},n)}}function Mt(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Nt={beforeMount:At,updated:jt,unmounted:Mt};function Pt(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}var Ft={itemsLimit:1e3},It=/(auto|scroll)/;function Lt(e,t){return e.parentNode===null?t:Lt(e.parentNode,t.concat([e]))}var X=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},Rt=function(e){return X(e,`overflow`)+X(e,`overflow-y`)+X(e,`overflow-x`)},zt=function(e){return It.test(Rt(e))};function Bt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Lt(e.parentNode,[]),n=0;n<t.length;n+=1)if(zt(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Z(e){"@babel/helpers - typeof";return Z=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Z(e)}var Vt={items:{type:Array,required:!0},keyField:{type:String,default:`id`},direction:{type:String,default:`vertical`,validator:function(e){return[`vertical`,`horizontal`].includes(e)}},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`}};function Ht(){return this.items.length&&Z(this.items[0])!==`object`}var Q=!1;if(typeof window<`u`){Q=!1;try{var Ut=Object.defineProperty({},`passive`,{get:function(){Q=!0}});window.addEventListener(`test`,null,Ut)}catch{}}var Wt=0,$={name:`RecycleScroller`,components:{ResizeObserver:q},directives:{ObserveVisibility:Nt},props:{...Vt,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:`size`},typeField:{type:String,default:`type`},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`},listClass:{type:[String,Object,Array],default:``},itemClass:{type:[String,Object,Array],default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scroll-start`,`scroll-end`],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){let e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize,i=1e4,a=0,o;for(let s=0,c=t.length;s<c;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:Ht,itemIndexByKey(){let{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`)},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){let e=this.$_lastUpdateScrollPosition;typeof e==`number`&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){let a=_({item:n,position:0,nr:b({id:Wt++,index:t,used:!0,key:r,type:i})});return e.push(a),a},unuseView(e,t=!1){let n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit(`resize`),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;let e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;let{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit(`visible`),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit(`hidden`))},updateVisibleItems(e,t=!1){let n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,c=this.items,l=c.length,u=this.sizes,d=this.$_views,f=this.$_unusedViews,p=this.pool,m=this.itemIndexByKey,h,g,_,v,y;if(!l)h=g=v=y=_=0;else if(this.$_prerender)h=v=0,g=y=Math.min(this.prerender,c.length),_=null;else{let e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),n===null&&t<a||t<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=e.start;let i=this.buffer;e.start-=i,e.end+=i;let o=0;if(this.$refs.before&&(o=this.$refs.before.scrollHeight,e.start-=o),this.$refs.after){let t=this.$refs.after.scrollHeight;e.end+=t}if(n===null){let t,n=0,r=l-1,i=~~(l/2),a;do a=i,t=u[i].accumulator,t<e.start?n=i:i<l-1&&u[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),h=i,_=u[l-1].accumulator,g=i;g<l&&u[g].accumulator<e.end;g++);for(g===-1?g=c.length-1:(g++,g>l&&(g=l)),v=h;v<l&&o+u[v].accumulator<e.start;v++);for(y=v;y<l&&o+u[y].accumulator<e.end;y++);}else{h=~~(e.start/n*r);let t=h%r;h-=t,g=Math.ceil(e.end/n*r),v=Math.max(0,Math.floor((e.start-o)/n*r)),y=Math.floor((e.end-o)/n*r),h<0&&(h=0),g>l&&(g=l),v<0&&(v=0),y>l&&(y=l),_=Math.ceil(l/r)*n}}g-h>Ft.itemsLimit&&this.itemsLimitError(),this.totalSize=_;let b,x=h<=this.$_endIndex&&g>=this.$_startIndex;if(x)for(let t=0,n=p.length;t<n;t++)b=p[t],b.nr.used&&(e&&(b.nr.index=m[b.item[s]]),(b.nr.index==null||b.nr.index<h||b.nr.index>=g)&&this.unuseView(b));let S=x?null:new Map,C,w,T;for(let e=h;e<g;e++){C=c[e];let t=s?C[s]:C;if(t==null)throw Error(`Key is ${t} on item (keyField is '${s}')`);if(b=d.get(t),!n&&!u[e].size){b&&this.unuseView(b);continue}w=C[o];let a=f.get(w),l=!1;if(!b)x?b=a&&a.length?a.pop():this.addView(p,e,C,t,w):(T=S.get(w)||0,(!a||T>=a.length)&&(b=this.addView(p,e,C,t,w),this.unuseView(b,!0),a=f.get(w)),b=a[T],S.set(w,T+1)),d.delete(b.nr.key),b.nr.used=!0,b.nr.index=e,b.nr.key=t,b.nr.type=w,d.set(t,b),l=!0;else if(!b.nr.used&&(b.nr.used=!0,l=!0,a)){let e=a.indexOf(b);e!==-1&&a.splice(e,1)}b.item=C,l&&(e===c.length-1&&this.$emit(`scroll-end`),e===0&&this.$emit(`scroll-start`)),n===null?(b.position=u[e-1].accumulator,b.offset=0):(b.position=Math.floor(e/r)*n,b.offset=e%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit(`update`,h,g,v,y),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=Bt(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){let{$el:e,direction:t}=this,n=t===`vertical`,r;if(this.pageMode){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=-(n?t.top:t.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),r={start:a,end:a+o}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener(`scroll`,this.handleScroll,Q?{passive:!0}:!1),this.listenerTarget.addEventListener(`resize`,this.handleResize)},removeListeners(){this.listenerTarget&&=(this.listenerTarget.removeEventListener(`scroll`,this.handleScroll),this.listenerTarget.removeEventListener(`resize`,this.handleResize),null)},scrollToItem(e){let t,n=this.gridItems||1;t=this.itemSize===null?e>0?this.sizes[e-1].accumulator:0:Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){let t=this.direction===`vertical`?{scroll:`scrollTop`,start:`top`}:{scroll:`scrollLeft`,start:`left`},n,r,i;if(this.pageMode){let a=Bt(this.$el),o=a.tagName===`HTML`?0:a[t.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+c}else n=this.$el,r=t.scroll,i=e;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,this.$el),console.log(`Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.`)}),Error(`Rendered items limit reached`)},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}},Gt={key:0,ref:`before`,class:`vue-recycle-scroller__slot`},Kt={key:1,ref:`after`,class:`vue-recycle-scroller__slot`};function qt(n,i,a,l,f,m){let g=o(`ResizeObserver`),_=e(`observe-visibility`);return C((r(),t(`div`,{class:d([`vue-recycle-scroller`,{ready:f.ready,"page-mode":a.pageMode,[`direction-${n.direction}`]:!0}]),onScrollPassive:i[0]||=(...e)=>m.handleScroll&&m.handleScroll(...e)},[n.$slots.before?(r(),t(`div`,Gt,[h(n.$slots,`before`)],512)):c(`v-if`,!0),(r(),E(y(a.listTag),{ref:`wrapper`,style:u({[n.direction===`vertical`?`minHeight`:`minWidth`]:f.totalSize+`px`}),class:d([`vue-recycle-scroller__item-wrapper`,a.listClass])},{default:v(()=>[(r(!0),t(w,null,p(f.pool,e=>(r(),E(y(a.itemTag),s({key:e.nr.id,style:f.ready?{transform:`translate${n.direction===`vertical`?`Y`:`X`}(${e.position}px) translate${n.direction===`vertical`?`X`:`Y`}(${e.offset}px)`,width:a.gridItems?`${n.direction===`vertical`&&a.itemSecondarySize||a.itemSize}px`:void 0,height:a.gridItems?`${n.direction===`horizontal`&&a.itemSecondarySize||a.itemSize}px`:void 0}:null,class:[`vue-recycle-scroller__item-view`,[a.itemClass,{hover:!a.skipHover&&f.hoverKey===e.nr.key}]]},ee(a.skipHover?{}:{mouseenter:()=>{f.hoverKey=e.nr.key},mouseleave:()=>{f.hoverKey=null}})),{default:v(()=>[h(n.$slots,`default`,{item:e.item,index:e.nr.index,active:e.nr.used})]),_:2},1040,[`style`,`class`]))),128)),h(n.$slots,`empty`)]),_:3},8,[`style`,`class`])),n.$slots.after?(r(),t(`div`,Kt,[h(n.$slots,`after`)],512)):c(`v-if`,!0),S(g,{onNotify:m.handleResize},null,8,[`onNotify`])],34)),[[_,m.handleVisibilityChange]])}$.render=qt,$.__file=`src/components/RecycleScroller.vue`;var Jt={name:`DynamicScroller`,components:{RecycleScroller:$},provide(){return typeof ResizeObserver<`u`&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(let t of e)if(t.target&&t.target.$_vs_onResize){let e,n;if(t.borderBoxSize){let r=t.borderBoxSize[0];e=r.inlineSize,n=r.blockSize}else e=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,e,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Vt,minItemSize:{type:[Number,String],required:!0}},emits:[`resize`,`visible`],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Ht,itemsWithSize(){let e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){let a=t[o],s=r?o:a[n],c=i[s];c===void 0&&!this.$_undefinedMap[s]&&(c=0),e.push({item:a,id:s,size:c})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){let n=this.$el.scrollTop,r=0,i=0,a=Math.min(e.length,t.length);for(let o=0;o<a&&!(r>=n);o++)r+=t[o].size||this.minItemSize,i+=e[o].size||this.minItemSize;let o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=Pt()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit(`resize`)},onScrollerVisible(){this.$_events.emit(`vscroll:update`,{force:!1}),this.$emit(`visible`)},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit(`vscroll:update`,{force:!0})},scrollToItem(e){let t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){let n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;let e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Yt(e,t,a,c,l,u){let d=o(`RecycleScroller`);return r(),E(d,s({ref:`scroller`,items:u.itemsWithSize,"min-item-size":a.minItemSize,direction:e.direction,"key-field":`id`,"list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:u.onScrollerResize,onVisible:u.onScrollerVisible}),{default:v(({item:t,index:r,active:a})=>[h(e.$slots,`default`,n(i({item:t.item,index:r,active:a,itemWithSize:t})))]),before:v(()=>[h(e.$slots,`before`)]),after:v(()=>[h(e.$slots,`after`)]),empty:v(()=>[h(e.$slots,`empty`)]),_:3},16,[`items`,`min-item-size`,`direction`,`list-tag`,`item-tag`,`onResize`,`onVisible`])}Jt.render=Yt,Jt.__file=`src/components/DynamicScroller.vue`;var Xt={name:`DynamicScrollerItem`,inject:[`vscrollData`,`vscrollParent`,`vscrollResizeObserver`],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:`div`}},emits:[`resize`],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:`updateWatchData`,id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){let n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(let e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on(`vscroll:update`,this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off(`vscroll:update`,this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch(`item`,()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&=(this.$_watchData(),null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){let e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applyWidthHeight(e,t)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){let n=~~(this.vscrollParent.direction===`vertical`?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit(`resize`,this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||=(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,!0))},unobserveSize(){this.vscrollResizeObserver&&(this.$_sizeObserved&&=(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,!1))},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return a(this.tag,this.$slots.default())}};Xt.__file=`src/components/DynamicScrollerItem.vue`;var Zt=x({__name:`DataVirtualList`,props:{items:{},keyProp:{}},setup(e){return(t,n)=>(r(),E(l(Jt),{items:e.items,"min-item-size":30,"key-field":e.keyProp,"page-mode":``},{default:v(({item:n,active:r,index:i})=>[S(l(Xt),{item:n,active:r,"data-index":i},{default:v(()=>[h(t.$slots,`default`,s({key:n[e.keyProp]},{item:n,index:i,active:r}))]),_:2},1032,[`item`,`active`,`data-index`])]),_:3},8,[`items`,`key-field`]))}});export{mt as n,W as r,Zt as t};
@@ -1 +1 @@
1
- .vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;display:block;height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}
1
+ .vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}
@@ -0,0 +1 @@
1
+ import{C as e,K as t,P as n,Vt as r,j as i,y as a}from"./B7Uzi9u5.js";import{s as o,t as s}from"./CDw62R4I.js";var c=[`title`],l=i({__name:`FileIcon`,props:{filename:{}},setup(n){let i=n,s=a(()=>o(i.filename));return(n,i)=>(t(),e(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:r([s.value.icon])},null,10,c))}}),u=Object.assign(l,{__name:`DisplayFileIcon`}),d=i({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(e){return()=>{let t=e.path.split(/([?/&:=])/g),r=`path`,i=t.map(()=>[]),a=t.map(()=>[]),o=t.map(e=>n(`span`,{class:``},e)),c=new Set;return t.forEach((n,l)=>{if(n===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(n)||n===`/`?i[l]?.push(`op50`):(n===`node_modules`||n===`dist`||n===`lib`||/^\.\w/.test(n))&&i[l]?.push(`op60`),n===`node_modules`&&e.minimal)for(let e=0;e<l+2;e++)c.add(e);if(n===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),n===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(t[l-1])}`),i[l]?.push(`op50`)),t[l-2]===`node_modules`&&!n.startsWith(`.`)){let e=`color: ${s(t[l])}`;a[l]?.push(e),n.startsWith(`@`)&&(a[l+1]?.push(e),a[l+2]?.push(e))}}r===`query`&&(n===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):n===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),n===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):t[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{u as n,d as t};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,Vt as n,Wt as r,Z as i,b as a,ct as o,j as s,x as c,y as l}from"./B7Uzi9u5.js";function u(e,t){let n=[];return n=e==null?[``,`-`]:e<1?[`<1`,`ms`]:e<1e3?[e.toFixed(0),`ms`]:e<1e3*60?[(e/1e3).toFixed(1),`s`]:[(e/1e3/60).toFixed(1),`min`],t?n.join(` `):n}var d={"ml-0.4":``,"text-xs":``,op75:``},f=s({__name:`DisplayNumberWithUnit`,props:{number:{},unit:{}},setup(n){return(o,s)=>(t(),e(`div`,null,[i(o.$slots,`default`),a(`span`,null,r(n.number),1),a(`span`,d,r(n.unit),1)]))}}),p=s({__name:`DisplayDuration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(e){let r=e,a=l(()=>{if(r.duration!=null)return r.unit===`ns`?r.duration/1e3:r.duration});function s(e){return!r.color||e==null?``:(e*=r.factor,e<1?`op50`:e>1e4?`color-scale-critical`:e>1e3?`color-scale-high`:e>500?`color-scale-medium`:e>200?`color-scale-low`:`color-scale-neutral`)}let d=l(()=>u(a.value));return(e,r)=>(t(),c(f,{class:n(s(a.value)),number:d.value[0],unit:d.value[1]},{default:o(()=>[i(e.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`]))}});export{u as n,p as t};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,O as n,S as r,Tt as i,Vt as a,Wt as o,X as s,b as c,ct as l,et as u,j as d,k as f,m as p,st as m,x as h,y as g,yt as _}from"./B7Uzi9u5.js";import"./DyswZ8iG.js";import{i as v,r as y}from"./CB-NGWfo.js";import{t as b}from"./CQTlMuLw.js";import{t as x}from"./Y4YMtQtL.js";import{r as S,t as C}from"./CYor1418.js";import{t as w}from"./BO4gZbVl.js";import{t as T}from"./BaYNXXCt.js";var E={flex:`~ col gap-2`},D={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},O={"font-mono":``,"font-sm":``},k={key:0,flex:`~ gap-1 items-center`},A={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``},j=d({__name:`SessionSelector`,props:{sessionMode:{},sessions:{},selectedSessionIds:{},selectedSessions:{}},emits:[`select`],setup(d,{emit:m}){let _=d,v=m;function y(e){return T(e.meta.inputs[0]?.filename??``,e.meta.cwd).path}let x=g(()=>{let e=_.selectedSessions?.[0];return e?y(e):``});function j(e){return x.value&&x.value!==y(e)}function M(e){_.sessionMode===`compare`&&!j(e)&&v(`select`,e)}return(m,g)=>{let _=C;return t(),e(`div`,E,[(t(!0),e(p,null,s(d.sessions,s=>(t(),e(`div`,{key:s.id,flex:`~ row gap-2`,relative:``},[(t(),h(u(d.sessionMode===`list`?i(b):`div`),{to:`/session/${s.id}`,border:`~ rounded-md`,class:a(d.sessionMode===`list`?[`hover:bg-active`,`border-base`]:[d.selectedSessionIds.includes(s.id)?`border-active`:`border-base`,j(s)||d.selectedSessions.length===2&&!d.selectedSessionIds.includes(s.id)?`op50`:`hover:bg-active`]),flex:`~ col gap-1`,px4:``,py3:``,"w-full":``,onClick:e=>M(s)},{default:l(()=>[c(`div`,D,[g[0]||=c(`div`,{"i-ph-hash-duotone":``},null,-1),n(` `+o(s.id),1)]),c(`div`,O,o(s.meta.cwd),1),s.meta.inputs[0]?(t(),e(`div`,k,[f(_,{id:s.meta.inputs[0].filename,cwd:s.meta.cwd},null,8,[`id`,`cwd`]),f(S,{text:s.meta.inputs[0].name||`entry`},null,8,[`text`]),s.meta.inputs.length>1?(t(),e(`span`,A,` +`+o(s.meta.inputs.length-1),1)):r(``,!0)])):r(``,!0),f(w,{timestamp:s.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1032,[`to`,`class`,`onClick`]))]))),128))])}}}),M=Object.assign(j,{__name:`PanelSessionSelector`}),N={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``,relative:``},P={key:0,op50:``},F={key:1,op50:``},I={relative:``,flex:`~ col gap3 items-center`},L={key:2,fixed:``,"top-5":``,"right-5":``,flex:`~ col gap2`},R={flex:`~ row justify-around`,w20:``,h8:``,border:`~ base rounded-8`,"of-hidden":``},z=[`title`,`onClick`],B={key:3,fixed:``,"bottom-5":``,"right-5":``,border:`~ base rounded-2`,w100:``,"max-lg:w85":``,"bg-glass":``,"z-panel-content":``},V={flex:`~ justify-center`,p2:``},H={key:1,op80:``,"text-sm":``},U=d({__name:`index`,async setup(u){let d,S,C=_(`list`),w=[{label:`Session List`,icon:`i-ph-list-bullets-duotone`,value:`list`},{label:`Session Compare`,icon:`i-ph-git-diff-duotone`,value:`compare`}],T=_([]),E=g(()=>T.value.map(e=>e.id).sort()),D=g(()=>T.value.toSorted((e,t)=>e.timestamp-t.timestamp).map((e,t)=>({...e,createdAt:new Date(e.timestamp),title:t===0?`Session A`:`Session B`}))),O=y(),k=([d,S]=m(()=>O.value.call(`vite:rolldown:list-sessions`)),d=await d,S(),d);function A(e){E.value.includes(e.id)?T.value=T.value.filter(t=>t.id!==e.id):T.value=[...T.value,e]}return(u,d)=>{let m=v,g=M,_=x,y=b;return t(),e(`div`,N,[f(m),i(k).length?(t(),e(`p`,P,o(C.value===`list`?`Select a build session to get started:`:`Select 2 build sessions to compare:`),1)):(t(),e(`p`,F,` No sessions yet, run a build to get started. `)),c(`div`,I,[f(g,{"session-mode":C.value,sessions:i(k),"selected-session-ids":E.value,"selected-sessions":T.value,onSelect:A},null,8,[`session-mode`,`sessions`,`selected-session-ids`,`selected-sessions`])]),i(k).length?(t(),e(`div`,L,[c(`div`,R,[(t(),e(p,null,s(w,e=>c(`button`,{key:e.value,title:e.label,"flex-1":``,op50:``,flex:`~ items-center justify-center`,class:a({"bg-active text-base op100!":C.value===e.value}),hover:`bg-active text-base op100!`,onClick:t=>C.value=e.value},[c(`span`,{class:a([e.icon,`text-sm`])},null,2)],10,z)),64))])])):r(``,!0),T.value.length>0&&C.value===`compare`?(t(),e(`div`,B,[f(_,{sessions:D.value,class:`flex-col gap0 [&>div]:border-none! [&>first-child]:border-b!`},null,8,[`sessions`]),c(`div`,V,[T.value.length===2?(t(),h(y,{key:0,tag:`button`,to:`/compare/${E.value.join(`,`)}`,"btn-action":``,"rounded-8":``,"text-3":``,flex:`~ justify-center`,w30:``,h8:``},{default:l(()=>[...d[0]||=[n(` Compare `,-1)]]),_:1},8,[`to`])):(t(),e(`div`,H,` Select one more session to compare. `))])])):r(``,!0)])}}});export{U as default};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,Tt as n,Wt as r,b as i,ct as a,j as o,k as s,y as c,yt as l}from"./B7Uzi9u5.js";import{C as u,S as d}from"./DyswZ8iG.js";import{g as f,v as p}from"./CvoV-A9Y.js";import{t as m}from"./CQTlMuLw.js";import{i as h,l as g,o as _}from"./CDw62R4I.js";import{n as v,r as y,t as b}from"./DaLz16aP.js";import{t as x}from"./BLYeE3ho.js";import{n as S,t as C}from"./qIAw3Eg02.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=o({__name:`FlatList`,props:{plugins:{}},setup(o){let c=d();return(l,u)=>{let d=x,f=m;return t(),e(`div`,w,[s(b,{items:o.plugins,"key-prop":`plugin_id`},{default:a(({item:e})=>[i(`div`,T,[s(f,{to:{path:n(c).path,query:{plugin:e.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:a(()=>[i(`div`,E,` #`+r(e.plugin_id),1),i(`span`,D,[s(d,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),k=Object.assign(O,{__name:`PluginsFlatList`}),A={relative:``,"max-h-screen":``,"of-hidden":``},j={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},M={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},N={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},P={op50:``},F=o({__name:`plugins`,props:{session:{}},setup(n){let a=n,o=d(),m=u(),b=l({search:o.query.search||``,selected:o.query.plugin_types?S(o.query.plugin_types):null}),x=c(()=>[..._.filter(e=>a.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=c(()=>{let e=a.session?.meta?.plugins;return b.value.selected&&(e=e.filter(e=>{let t=g(e.name);return b.value.selected.includes(t.name)})),e}),T=f(()=>w.value,()=>new y(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=c(()=>b.value.search?T.value.search(b.value.search).map(e=>e.item):w.value);return p(b.value,e=>{let t={...o.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(a,o)=>{let c=v,l=k;return t(),e(`div`,A,[i(`div`,j,[s(c,{modelValue:b.value,"onUpdate:modelValue":o[0]||=e=>b.value=e,rules:x.value},null,8,[`modelValue`,`rules`])]),i(`div`,M,[s(l,{plugins:E.value??[]},null,8,[`plugins`]),i(`div`,N,[i(`span`,P,r(E.value.length)+` of `+r(n.session?.meta?.plugins?.length||0),1)])])])}}});export{F as default};
@@ -0,0 +1 @@
1
+ import{At as e,Bt as t,Dt as n,Et as r,F as i,Ft as a,Gt as o,I as s,It as c,J as l,Lt as u,Mt as d,Nt as f,Ot as p,P as m,Pt as h,Rt as g,St as ee,T as _,Tt as v,_t as y,at as b,bt as te,f as ne,i as x,j as S,jt as C,kt as w,p as T,v as re,w as ie,xt as ae,y as E,yt as oe,z as se,zt as ce}from"./B7Uzi9u5.js";var le=void 0,D=typeof window<`u`&&window.trustedTypes;if(D)try{le=D.createPolicy(`vue`,{createHTML:e=>e})}catch{}var ue=le?e=>le.createHTML(e):e=>e,de=`http://www.w3.org/2000/svg`,fe=`http://www.w3.org/1998/Math/MathML`,O=typeof document<`u`?document:null,k=O&&O.createElement(`template`),pe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?O.createElementNS(de,e):t===`mathml`?O.createElementNS(fe,e):n?O.createElement(e,{is:n}):O.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>O.createTextNode(e),createComment:e=>O.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>O.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{k.innerHTML=ue(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=k.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},A=`transition`,j=`animation`,M=Symbol(`_vtc`),me={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},he=p({},T,me),ge=(e=>(e.displayName=`Transition`,e.props=he,e))((e,{slots:t})=>m(ne,ve(e),t)),N=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},_e=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function ve(e){let t={};for(let n in e)n in me||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=ye(i),g=h&&h[0],ee=h&&h[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:te,onBeforeAppear:ne=_,onAppear:x=v,onAppearCancelled:S=y}=t,C=(e,t,n,r)=>{e._enterCancelled=r,F(e,t?u:s),F(e,t?l:o),n&&n()},w=(e,t)=>{e._isLeaving=!1,F(e,d),F(e,m),F(e,f),t&&t()},T=e=>(t,n)=>{let i=e?x:v,o=()=>C(t,e,n);N(i,[t,o]),xe(()=>{F(t,e?c:a),P(t,e?u:s),_e(i)||Ce(t,r,g,o)})};return p(t,{onBeforeEnter(e){N(_,[e]),P(e,a),P(e,o)},onBeforeAppear(e){N(ne,[e]),P(e,c),P(e,l)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>w(e,t);P(e,d),e._enterCancelled?(P(e,f),De(e)):(De(e),P(e,f)),xe(()=>{e._isLeaving&&(F(e,d),P(e,m),_e(b)||Ce(e,r,ee,n))}),N(b,[e,n])},onEnterCancelled(e){C(e,!1,void 0,!0),N(y,[e])},onAppearCancelled(e){C(e,!0,void 0,!0),N(S,[e])},onLeaveCancelled(e){w(e),N(te,[e])}})}function ye(e){if(e==null)return null;if(a(e))return[be(e.enter),be(e.leave)];{let t=be(e);return[t,t]}}function be(e){return o(e)}function P(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[M]||(e[M]=new Set)).add(t)}function F(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[M];n&&(n.delete(t),n.size||(e[M]=void 0))}function xe(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Se=0;function Ce(e,t,n,r){let i=e._endId=++Se,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=we(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function we(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${A}Delay`),a=r(`${A}Duration`),o=Te(i,a),s=r(`${j}Delay`),c=r(`${j}Duration`),l=Te(s,c),u=null,d=0,f=0;t===A?o>0&&(u=A,d=o,f=a.length):t===j?l>0&&(u=j,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?A:j:null,f=u?u===A?a.length:c.length:0);let p=u===A&&/\b(?:transform|all)(?:,|$)/.test(r(`${A}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Te(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ee(t)+Ee(e[n])))}function Ee(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function De(e){return(e?e.ownerDocument:document).body.offsetHeight}function Oe(e,t,n){let r=e[M];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ke=Symbol(`_vod`),Ae=Symbol(`_vsh`),je={name:`show`,beforeMount(e,{value:t},{transition:n}){e[ke]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Me(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Me(e,!0),r.enter(e)):r.leave(e,()=>{Me(e,!1)}):Me(e,t))},beforeUnmount(e,{value:t}){Me(e,t)}};function Me(e,t){e.style.display=t?e[ke]:`none`,e[Ae]=!t}var Ne=Symbol(``),Pe=/(?:^|;)\s*display\s*:/;function Fe(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t)if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Le(r,t,``)}else for(let e in t)n[e]??Le(r,e,``);for(let e in n)e===`display`&&(a=!0),Le(r,e,n[e])}else if(i){if(t!==n){let e=r[Ne];e&&(n+=`;`+e),r.cssText=n,a=Pe.test(n)}}else t&&e.removeAttribute(`style`);ke in e&&(e[ke]=a?r.display:``,e[Ae]&&(r.display=`none`))}var Ie=/\s*!important$/;function Le(e,t,n){if(d(n))n.forEach(n=>Le(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Be(e,t);Ie.test(n)?e.setProperty(w(r),n.replace(Ie,``),`important`):e[r]=n}}var Re=[`Webkit`,`Moz`,`ms`],ze={};function Be(e,t){let i=ze[t];if(i)return i;let a=r(t);if(a!==`filter`&&a in e)return ze[t]=a;a=n(a);for(let n=0;n<Re.length;n++){let r=Re[n]+a;if(r in e)return ze[t]=r}return t}var Ve=`http://www.w3.org/1999/xlink`;function He(t,n,r,i,a,o=u(n)){i&&n.startsWith(`xlink:`)?r==null?t.removeAttributeNS(Ve,n.slice(6,n.length)):t.setAttributeNS(Ve,n,r):r==null||o&&!e(r)?t.removeAttribute(n):t.setAttribute(n,o?``:ce(r)?String(r):r)}function Ue(t,n,r,i,a){if(n===`innerHTML`||n===`textContent`){r!=null&&(t[n]=n===`innerHTML`?ue(r):r);return}let o=t.tagName;if(n===`value`&&o!==`PROGRESS`&&!o.includes(`-`)){let e=o===`OPTION`?t.getAttribute(`value`)||``:t.value,i=r==null?t.type===`checkbox`?`on`:``:String(r);(e!==i||!(`_value`in t))&&(t.value=i),r??t.removeAttribute(n),t._value=r;return}let s=!1;if(r===``||r==null){let i=typeof t[n];i===`boolean`?r=e(r):r==null&&i===`string`?(r=``,s=!0):i===`number`&&(r=0,s=!0)}try{t[n]=r}catch{}s&&t.removeAttribute(a||n)}function I(e,t,n,r){e.addEventListener(t,n,r)}function We(e,t,n,r){e.removeEventListener(t,n,r)}var Ge=Symbol(`_vei`);function Ke(e,t,n,r,i=null){let a=e[Ge]||(e[Ge]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Je(t);r?I(e,n,a[t]=Qe(r,i),s):o&&(We(e,n,o,s),a[t]=void 0)}}var qe=/(?:Once|Passive|Capture)$/;function Je(e){let t;if(qe.test(e)){t={};let n;for(;n=e.match(qe);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):w(e.slice(2)),t]}var Ye=0,Xe=Promise.resolve(),Ze=()=>Ye||=(Xe.then(()=>Ye=0),Date.now());function Qe(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;re($e(e,n.value),t,5,[e])};return n.value=e,n.attached=Ze(),n}function $e(e,t){if(d(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var et=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tt=(e,t,n,i,a,o)=>{let s=a===`svg`;t===`class`?Oe(e,i,s):t===`style`?Fe(e,n,i):c(t)?h(t)||Ke(e,t,n,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):nt(e,t,i,s))?(Ue(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&He(e,t,i,s,o,t!==`value`)):e._isVueCE&&(rt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(i)))?Ue(e,r(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),He(e,t,i,s))};function nt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&et(t)&&f(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return et(t)&&g(n)?!1:t in e}function rt(e,t){let n=e._def.props;if(!n)return!1;let i=r(t);return Array.isArray(n)?n.some(e=>r(e)===i):Object.keys(n).some(e=>r(e)===i)}var it=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>C(t,e):t};function at(e){e.target.composing=!0}function ot(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var st=Symbol(`_assign`);function ct(e,n,r){return n&&(e=e.trim()),r&&(e=t(e)),e}var lt={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[st]=it(i);let a=r||i.props&&i.props.type===`number`;I(e,t?`change`:`input`,t=>{t.target.composing||e[st](ct(e.value,n,a))}),(n||a)&&I(e,`change`,()=>{e.value=ct(e.value,n,a)}),t||(I(e,`compositionstart`,at),I(e,`compositionend`,ot),I(e,`change`,ot))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:n,oldValue:r,modifiers:{lazy:i,trim:a,number:o}},s){if(e[st]=it(s),e.composing)return;let c=(o||e.type===`number`)&&!/^0\d/.test(e.value)?t(e.value):e.value,l=n??``;c!==l&&(document.activeElement===e&&e.type!==`range`&&(i&&n===r||a&&e.value.trim()===l)||(e.value=l))}},ut=[`ctrl`,`shift`,`alt`,`meta`],dt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>ut.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=dt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},pt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},mt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=w(n.key);if(t.some(e=>e===r||pt[e]===r))return e(n)}))},ht=p({patchProp:tt},pe),gt,_t=!1;function vt(){return gt||=_(ht)}function yt(){return gt=_t?gt:ie(ht),_t=!0,gt}var bt=((...e)=>{let t=vt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ct(e);if(!r)return;let i=t._component;!f(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,St(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),xt=((...e)=>{let t=yt().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Ct(e);if(t)return n(t,!0,St(t))},t});function St(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ct(e){return g(e)?document.querySelector(e):e}var wt=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Tt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Et=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Dt(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Ot(e);return}return t}function Ot(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function kt(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!Et.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(wt.test(e)||Tt.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Dt)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var At=/#/g,jt=/&/g,Mt=/\//g,Nt=/=/g,Pt=/\?/g,Ft=/\+/g,It=/%5e/gi,Lt=/%60/gi,Rt=/%7c/gi,zt=/%20/gi,Bt=/%2f/gi,Vt=/%252f/gi;function Ht(e){return encodeURI(``+e).replace(Rt,`|`)}function Ut(e){return Ht(typeof e==`string`?e:JSON.stringify(e)).replace(Ft,`%2B`).replace(zt,`+`).replace(At,`%23`).replace(jt,`%26`).replace(Lt,"`").replace(It,`^`).replace(Mt,`%2F`)}function Wt(e){return Ut(e).replace(Nt,`%3D`)}function Gt(e){return Ht(e).replace(At,`%23`).replace(Pt,`%3F`).replace(Vt,`%2F`).replace(jt,`%26`).replace(Ft,`%2B`)}function L(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function Kt(e){return L(e.replace(Bt,`%252F`))}function qt(e){return L(e.replace(Ft,` `))}function Jt(e){return L(e.replace(Ft,` `))}function Yt(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=qt(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Jt(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Xt(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Wt(e)}=${Ut(t)}`).join(`&`):`${Wt(e)}=${Ut(t)}`:Wt(e)}function Zt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Xt(t,e[t])).filter(Boolean).join(`&`)}var Qt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,$t=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,en=/^([/\\]\s*){2,}[^/\\]/,tn=/^[\s\0]*(blob|data|javascript|vbscript):$/i,nn=/\/$|\/\?|\/#/,rn=/^\.?\//;function R(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Qt.test(e):$t.test(e)||(t.acceptRelative?en.test(e):!1)}function an(e){return!!e&&tn.test(e)}function on(e=``,t){return t?nn.test(e):e.endsWith(`/`)}function z(e=``,t){if(!t)return(on(e)?e.slice(0,-1):e)||`/`;if(!on(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function sn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(on(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function cn(e,t){if(dn(t)||R(e))return e;let n=z(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return pn(n,e)}function ln(e,t){if(dn(t))return e;let n=z(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function un(e,t){let n=_n(e);return n.search=Zt({...Yt(n.search),...t}),yn(n)}function dn(e){return!e||e===`/`}function fn(e){return e&&e!==`/`}function pn(e,...t){let n=e||``;for(let e of t.filter(e=>fn(e)))if(n){let t=e.replace(rn,``);n=sn(n)+t}else n=e;return n}function mn(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&R(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function hn(e,t){return L(z(e))===L(z(t))}var gn=Symbol.for(`ufo:protocolRelative`);function _n(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!R(e,{acceptRelative:!0}))return t?_n(t+e):vn(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=vn(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[gn]:!r}}function vn(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function yn(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[gn]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function bn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function xn(e,t,n=`.`,r){if(!bn(t))return xn(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:bn(a)&&bn(i[t])?i[t]=xn(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Sn(e){return(...t)=>t.reduce((t,n)=>xn(t,n,``,e),{})}var Cn=Sn();function wn(e,t){try{return t in e}catch{return!1}}var Tn=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:An(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=kn(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function En(e){if(typeof e==`string`)return new Tn(e);if(Dn(e))return e;let t=new Tn(e.message??e.statusMessage??``,{cause:e.cause||e});if(wn(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=An(e.statusCode,t.statusCode):e.status&&(t.statusCode=An(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;kn(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Dn(e){return e?.constructor?.__h3_error__===!0}var On=/[^\u0009\u0020-\u007E]/g;function kn(e=``){return e.replace(On,``)}function An(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var jn=Symbol(`layout-meta`),Mn=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var B=()=>x()?.$router,Nn=()=>i()?s(Mn,x()._route):x()._route;function Pn(e){return e}var Fn=()=>{try{if(x()._processingMiddleware)return!0}catch{return!1}return!1},In=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Ln(e):B().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=R(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&an(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=Fn();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=_n(e);return{path:t,...n&&{query:Yt(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=B(),s=x();if(i)return s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let c=typeof e==`string`?Rn(e):e;return t?.replace?o.replace(c):o.push(c)};function Ln(e){return un(e.path||``,e.query||{})+(e.hash||``)}function Rn(e){let t=_n(e);return Gt(Kt(t.pathname))+t.search+t.hash}var zn=`__nuxt_error`,Bn=()=>ee(x().payload,`error`),Vn=e=>{let t=Wn(e);try{let e=Bn();x().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Hn=async(e={})=>{let t=x(),n=Bn();t.callHook(`app:error:cleared`,e),e.redirect&&await B().replace(e.redirect),n.value=void 0},Un=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Wn=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=En(e);return Object.defineProperty(t,zn,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t},V=typeof document<`u`;function Gn(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Kn(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Gn(e.default)}var H=Object.assign;function qn(e,t){let n={};for(let r in t){let i=t[r];n[r]=W(i)?i.map(e):e(i)}return n}var U=()=>{},W=Array.isArray;function Jn(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var G=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Yn=Symbol(``);G.MATCHER_NOT_FOUND,G.NAVIGATION_GUARD_REDIRECT,G.NAVIGATION_ABORTED,G.NAVIGATION_CANCELLED,G.NAVIGATION_DUPLICATED;function K(e,t){return H(Error(),{type:e,[Yn]:!0},t)}function q(e,t){return e instanceof Error&&Yn in e&&(t==null||!!(e.type&t))}var Xn=Symbol(``),Zn=Symbol(``),Qn=Symbol(``),$n=Symbol(``),er=Symbol(``),tr=/#/g,nr=/&/g,rr=/\//g,ir=/=/g,ar=/\?/g,or=/\+/g,sr=/%5B/g,cr=/%5D/g,lr=/%5E/g,ur=/%60/g,dr=/%7B/g,fr=/%7C/g,pr=/%7D/g,mr=/%20/g;function hr(e){return e==null?``:encodeURI(``+e).replace(fr,`|`).replace(sr,`[`).replace(cr,`]`)}function gr(e){return hr(e).replace(dr,`{`).replace(pr,`}`).replace(lr,`^`)}function _r(e){return hr(e).replace(or,`%2B`).replace(mr,`+`).replace(tr,`%23`).replace(nr,`%26`).replace(ur,"`").replace(dr,`{`).replace(pr,`}`).replace(lr,`^`)}function vr(e){return _r(e).replace(ir,`%3D`)}function yr(e){return hr(e).replace(tr,`%23`).replace(ar,`%3F`)}function br(e){return yr(e).replace(rr,`%2F`)}function xr(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Sr=/\/$/,Cr=e=>e.replace(Sr,``);function wr(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=jr(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:xr(o)}}function Tr(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Er(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Dr(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&J(t.matched[r],n.matched[i])&&Or(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Or(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!kr(e[n],t[n]))return!1;return!0}function kr(e,t){return W(e)?Ar(e,t):W(t)?Ar(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ar(e,t){return W(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function jr(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Y={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Mr=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Nr=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Pr(e){if(!e)if(V){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Cr(e)}var Fr=/^[^#]+#/;function Ir(e,t){return e.replace(Fr,`#`)+t}function Lr(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Rr=()=>({left:window.scrollX,top:window.scrollY});function zr(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Lr(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Br(e,t){return(history.state?history.state.position-t:-1)+e}var Vr=new Map;function Hr(e,t){Vr.set(e,t)}function Ur(e){let t=Vr.get(e);return Vr.delete(e),t}function Wr(e){return typeof e==`string`||e&&typeof e==`object`}function Gr(e){return typeof e==`string`||typeof e==`symbol`}function Kr(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(or,` `),i=r.indexOf(`=`),a=xr(i<0?r:r.slice(0,i)),o=i<0?null:xr(r.slice(i+1));if(a in t){let e=t[a];W(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function qr(e){let t=``;for(let n in e){let r=e[n];if(n=vr(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(W(r)?r.map(e=>e&&_r(e)):[r&&_r(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Jr(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=W(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Yr(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(K(G.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Wr(e)?c(K(G.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Xr(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Gn(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Kn(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Zr(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>J(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>J(e,s))||i.push(s))}return[n,r,i]}var Qr=()=>location.protocol+`//`+location.host;function $r(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Er(n,``)}return Er(n,e)+r+i}function ei(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=$r(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Mr.pop,direction:u?u>0?Nr.forward:Nr.back:Nr.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(H({},e.state,{scroll:Rr()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function ti(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Rr():null}}function ni(e){let{history:t,location:n}=window,r={value:$r(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Qr()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,H({},t.state,ti(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=H({},i.value,t.state,{forward:e,scroll:Rr()});a(o.current,o,!0),a(e,H({},ti(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ri(e){e=Pr(e);let t=ni(e),n=ei(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=H({location:``,base:e,go:r,createHref:Ir.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function ii(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ri(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),ai={type:Z.Static,value:``},oi=/[a-zA-Z0-9_]/;function si(e){if(!e)return[[]];if(e===`/`)return[[ai]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:oi.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ci=`[^/]+?`,li={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),ui=/[.+*?^${}()[\]/\\]/g;function di(e,t){let n=H({},li,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(ui,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ci;if(u!==ci){s+=$.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(W(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=W(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function fi(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function pi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=fi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(mi(r))return 1;if(mi(i))return-1}return i.length-r.length}function mi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var hi={strict:!1,end:!0,sensitive:!1};function gi(e,t,n){let r=H(di(si(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function _i(e,t){let n=[],r=new Map;t=Jn(hi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=yi(e);s.aliasOf=r&&r.record;let l=Jn(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(yi(H({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=gi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!xi(d)&&o(e.name)),Ti(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:U}function o(e){if(Gr(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ci(e,n);n.splice(t,0,e),e.record.name&&!xi(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw K(G.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=H(vi(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&vi(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw K(G.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=H({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Si(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function vi(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function yi(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:bi(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function bi(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function xi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Si(e){return e.reduce((e,t)=>H(e,t.meta),{})}function Ci(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;pi(e,t[i])<0?r=i:n=i+1}let i=wi(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function wi(e){let t=e;for(;t=t.parent;)if(Ti(t)&&pi(e,t)===0)return t}function Ti({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ei(e){let t=s(Qn),n=s($n),r=E(()=>{let n=v(e.to);return t.resolve(n)}),i=E(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(J.bind(null,i));if(o>-1)return o;let s=ji(e[t-2]);return t>1&&ji(i)===s&&a[a.length-1].path!==s?a.findIndex(J.bind(null,e[t-2])):o}),a=E(()=>i.value>-1&&Ai(n.params,r.value.params)),o=E(()=>i.value>-1&&i.value===n.matched.length-1&&Or(n.params,r.value.params));function c(n={}){if(ki(n)){let n=t[v(e.replace)?`replace`:`push`](v(e.to)).catch(U);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:E(()=>r.value.href),isActive:a,isExactActive:o,navigate:c}}function Di(e){return e.length===1?e[0]:e}var Oi=S({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ei,setup(e,{slots:t}){let n=y(Ei(e)),{options:r}=s(Qn),i=E(()=>({[Mi(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Mi(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Di(t.default(n));return e.custom?r:m(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ki(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ai(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!W(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ji(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Mi=(e,t,n)=>e??t??n,Ni=S({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=s(er),i=E(()=>e.route||r.value),a=s(Zn,0),o=E(()=>{let e=v(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),c=E(()=>i.value.matched[o.value]);l(Zn,E(()=>o.value+1)),l(Xn,c),l(er,i);let u=oe();return b(()=>[u.value,c.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!J(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=c.value,s=o&&o.components[a];if(!s)return Pi(n.default,{Component:s,route:r});let l=o.props[a],d=m(s,H({},l?l===!0?r.params:typeof l==`function`?l(r):l:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:u}));return Pi(n.default,{Component:d,route:r})||d}}});function Pi(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Fi=Ni;function Ii(e){let t=_i(e.routes,e),n=e.parseQuery||Kr,r=e.stringifyQuery||qr,i=e.history,a=Yr(),o=Yr(),s=Yr(),c=ae(Y),l=Y;V&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=qn.bind(null,e=>``+e),d=qn.bind(null,br),f=qn.bind(null,xr);function p(e,n){let r,i;return Gr(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function ee(e,a){if(a=H({},a||c.value),typeof e==`string`){let r=wr(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return H(r,o,{params:f(o.params),hash:xr(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=H({},e,{path:wr(n,e.path,a.path).path});else{let t=H({},e.params);for(let e in t)t[e]??delete t[e];o=H({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Tr(r,H({},e,{hash:gr(l),path:s.path})),m=i.createHref(p);return H({fullPath:p,hash:l,query:r===qr?Jr(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function _(e){return typeof e==`string`?wr(n,e,c.value.path):H({},e)}function y(e,t){if(l!==e)return K(G.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return S(e)}function ne(e){return b(H(_(e),{replace:!0}))}function x(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=_(i):{path:i},i.params={}),H({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function S(e,t){let n=l=ee(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=x(n,i);if(u)return S(H(_(u),{state:typeof u==`object`?H({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Dr(r,i,n)&&(f=K(G.NAVIGATION_DUPLICATED,{to:d,from:i}),O(i,i,!0,!1)),(f?Promise.resolve(f):T(d,i)).catch(e=>q(e)?q(e,G.NAVIGATION_GUARD_REDIRECT)?e:fe(e):ue(e,d,i)).then(e=>{if(e){if(q(e,G.NAVIGATION_GUARD_REDIRECT))return S(H({replace:s},_(e.to),{state:typeof e.to==`object`?H({},a,e.to.state):a,force:o}),t||d)}else e=ie(d,i,!0,s,a);return re(d,i,e),e})}function C(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=A.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function T(e,t){let n,[r,i,s]=Zr(e,t);n=Xr(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let c=C.bind(null,e,t);return n.push(c),M(n).then(()=>{n=[];for(let r of a.list())n.push(X(r,e,t));return n.push(c),M(n)}).then(()=>{n=Xr(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(c),M(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(W(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(c),M(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Xr(s,`beforeRouteEnter`,e,t,w),n.push(c),M(n))).then(()=>{n=[];for(let r of o.list())n.push(X(r,e,t));return n.push(c),M(n)}).catch(e=>q(e,G.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function re(e,t,n){s.list().forEach(r=>w(()=>r(e,t,n)))}function ie(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Y,l=V?history.state:{};n&&(r||s?i.replace(e.fullPath,H({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,O(e,t,n,s),fe()}let E;function oe(){E||=i.listen((e,t,n)=>{if(!j.listening)return;let r=ee(e),a=x(r,j.currentRoute.value);if(a){S(H(a,{replace:!0,force:!0}),r).catch(U);return}l=r;let o=c.value;V&&Hr(Br(o.fullPath,n.delta),Rr()),T(r,o).catch(e=>q(e,G.NAVIGATION_ABORTED|G.NAVIGATION_CANCELLED)?e:q(e,G.NAVIGATION_GUARD_REDIRECT)?(S(H(_(e.to),{force:!0}),r).then(e=>{q(e,G.NAVIGATION_ABORTED|G.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Mr.pop&&i.go(-1,!1)}).catch(U),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ue(e,r,o))).then(e=>{e||=ie(r,o,!1),e&&(n.delta&&!q(e,G.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Mr.pop&&q(e,G.NAVIGATION_ABORTED|G.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),re(r,o,e)}).catch(U)})}let ce=Yr(),le=Yr(),D;function ue(e,t,n){fe(e);let r=le.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function de(){return D&&c.value!==Y?Promise.resolve():new Promise((e,t)=>{ce.add([e,t])})}function fe(e){return D||(D=!e,oe(),ce.list().forEach(([t,n])=>e?n(e):t()),ce.reset()),e}function O(t,n,r,i){let{scrollBehavior:a}=e;if(!V||!a)return Promise.resolve();let o=!r&&Ur(Br(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return se().then(()=>a(t,n,o)).then(e=>e&&zr(e)).catch(e=>ue(e,t,n))}let k=e=>i.go(e),pe,A=new Set,j={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:ee,options:e,push:b,replace:ne,go:k,back:()=>k(-1),forward:()=>k(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:le.add,isReady:de,install(e){e.component(`RouterLink`,Oi),e.component(`RouterView`,Fi),e.config.globalProperties.$router=j,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>v(c)}),V&&!pe&&c.value===Y&&(pe=!0,b(i.location).catch(e=>{}));let t={};for(let e in Y)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Qn,j),e.provide($n,te(t)),e.provide(er,c);let n=e.unmount;A.add(e),e.unmount=function(){A.delete(e),A.size<1&&(l=Y,E&&E(),E=null,c.value=Y,pe=!1,D=!1),n()}}};function M(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return j}var Li=(e,t)=>({default:()=>e?m(ge,e===!0?{}:e,t):t.default?.()}),Ri=/(:\w+)\([^)]+\)/g,zi=/(:\w+)[?+*]/g,Bi=/:\w+/g;function Vi(e){let t=e?.meta.key??e.path.replace(Ri,`$1`).replace(zi,`$1`).replace(Bi,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Hi(e,t){return e===t||t===Y?!1:Vi(e)===Vi(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}var Ui={scrollBehavior(e,t,n){let r=x(),i=B().options?.scrollBehaviorType??`auto`;if(e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Wi(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;let a=r._runningTransition?`page:transition:finish`:`page:loading:end`;return new Promise(o=>{if(t===Y){o(Gi(e,t,n,i));return}r.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>o(Gi(e,t,n,i)))})})}};function Wi(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function Gi(e,t,n,r){if(n)return n;let i=Hi(e,t);return e.hash?{el:e.hash,top:Wi(e.hash),behavior:i?r:`instant`}:{left:0,top:0}}var Ki={hashMode:!1,scrollBehaviorType:`auto`,...Ui},qi=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Ji=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Yi=e=>{let t=x();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{qi(()=>e())}):qi(()=>e())};function Xi(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function Zi(e,t=B()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>Zi(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n)));i.push(n)}await Promise.all(i)}export{pn as A,xt as B,B as C,R as D,Cn as E,ln as F,je as H,z as I,kt as L,cn as M,un as N,hn as O,sn as P,ge as R,Nn as S,Mn as T,mt as U,lt as V,ft as W,Bn as _,qi as a,In as b,Fi as c,ri as d,Y as f,Vn as g,Un as h,Ji as i,Yt as j,mn as k,Ii as l,Wn as m,Zi as n,Ki as o,Hn as p,Yi as r,Li as s,Xi as t,ii as u,Pn as v,jn as w,Ln as x,Rn as y,bt as z};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,Wt as n,X as r,b as i,j as a,m as o}from"./B7Uzi9u5.js";var s={flex:`~ gap5`,"w-full":``,border:`b base`,pb3:``},c={"font-mono":``},l={"font-mono":``},u=[`datetime`],d=a({__name:`SessionMeta`,props:{sessions:{}},setup(a){return(d,f)=>(t(),e(`div`,s,[(t(!0),e(o,null,r(a.sessions,r=>(t(),e(`div`,{key:r.id,"flex-1":``,border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_140px_2fr] max-lg:cols-[max-content_80px_2fr] gap-2 items-center`},[f[0]||=i(`div`,{class:`i-ph-hash-duotone`},null,-1),i(`div`,null,n(r.title),1),i(`div`,c,[i(`span`,null,n(r.id),1)]),f[1]||=i(`div`,{class:`i-ph-clock-duotone`},null,-1),f[2]||=i(`div`,null,` Created At `,-1),i(`div`,l,[i(`time`,{datetime:r.createdAt.toISOString()},n(r.createdAt.toLocaleString()),9,u)])]))),128))]))}}),f=Object.assign(d,{__name:`CompareSessionMeta`});export{f as t};
@@ -0,0 +1 @@
1
+ .diff-added{background-color:color-mix(in srgb, var(--colors-green-400) 15%, transparent) /* oklch(79.2% 0.209 151.711) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-added{background-color:color-mix(in oklab, var(--colors-green-400) 15%, transparent) /* oklch(79.2% 0.209 151.711) */;}}.diff-removed{background-color:color-mix(in srgb, var(--colors-red-400) 15%, transparent) /* oklch(70.4% 0.191 22.216) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-removed{background-color:color-mix(in oklab, var(--colors-red-400) 15%, transparent) /* oklch(70.4% 0.191 22.216) */;}}.diff-added-inline{background-color:color-mix(in srgb, var(--colors-green-400) 30%, transparent) /* oklch(79.2% 0.209 151.711) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-added-inline{background-color:color-mix(in oklab, var(--colors-green-400) 30%, transparent) /* oklch(79.2% 0.209 151.711) */;}}.diff-removed-inline{background-color:color-mix(in srgb, var(--colors-red-400) 30%, transparent) /* oklch(70.4% 0.191 22.216) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-removed-inline{background-color:color-mix(in oklab, var(--colors-red-400) 30%, transparent) /* oklch(70.4% 0.191 22.216) */;}}.module-flow-splitter>.splitpanes__splitter:before{background-color:transparent}.splitpanes__splitter{pointer-events:auto}
@@ -0,0 +1 @@
1
+ import{C as e,K as t,S as n,Tt as r,Wt as i,X as a,b as o,ct as s,j as c,k as l,m as u,x as d}from"./B7Uzi9u5.js";import{S as f}from"./DyswZ8iG.js";import{c as p}from"./CvoV-A9Y.js";import{r as m}from"./CB-NGWfo.js";import{n as h,o as g}from"#entry";import"./CQTlMuLw.js";import{r as _,t as v}from"./CYor1418.js";import{t as y}from"./BO4gZbVl.js";import{t as b}from"./BLYeE3ho.js";var x={key:0},S={key:2},C={op50:``},w={key:3},T=[`textContent`],E=[`textContent`],D=c({__name:`RawEventsTable`,props:{events:{},fields:{default:()=>[`event_id`,`action`,`module_id`,`plugin_name`,`timestamp`,`content`,`*`]},session:{}},setup(c){let f=c;function p(e,t){let n=new Set(t);return n.has(`content`)&&n.add(`content`),n.has(`plugin_name`)&&n.add(`plugin_index`),Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))}function m(e){return e.action===`HookLoadCallEnd`||e.action===`HookTransformCallStart`||e.action===`HookTransformCallEnd`?e.content:null}return(h,D)=>{let O=v,k=b;return t(),e(u,null,[c.events.length?n(``,!0):(t(),e(`div`,x,[...D[0]||=[o(`div`,{p5:``,italic:``},` No events found `,-1)]])),o(`table`,null,[o(`tbody`,null,[(t(!0),e(u,null,a(f.events,h=>(t(),e(`tr`,{key:h.event_id},[(t(!0),e(u,null,a(f.fields,a=>(t(),e(`td`,{key:a,px2:``},[a===`module_id`?(t(),d(O,{key:0,id:`module_id`in h?h.module_id:``,session:c.session},null,8,[`id`,`session`])):a===`action`?(t(),d(_,{key:1,text:h.action},null,8,[`text`])):a===`plugin_name`&&`plugin_name`in h?(t(),e(`div`,S,[l(k,{"font-mono":``,name:h.plugin_name},null,8,[`name`]),o(`code`,C,`#`+i(h.plugin_id),1)])):a===`event_id`?(t(),e(`div`,w,i(h.event_id),1)):a===`content`&&m(h)?(t(),d(r(g),{key:4},{popper:s(()=>[o(`pre`,{p1:``,"text-sm":``,textContent:i(m(h))},null,8,T)]),default:s(()=>[D[1]||=o(`div`,{"i-ph-code":``},null,-1)]),_:2},1024)):a===`timestamp`&&`timestamp`in h?(t(),d(y,{key:5,"text-sm":``,timestamp:h.timestamp},null,8,[`timestamp`])):a===`*`?(t(),e(`pre`,{key:6,"text-sm":``,textContent:i(p(h,c.fields))},null,8,E)):n(``,!0)]))),128))]))),128))])])],64)}}}),O=Object.assign(D,{__name:`DataRawEventsTable`}),k={key:1},A=c({__name:`raw`,props:{session:{}},setup(i){let a=i,s=m(),c=f().query,g=p(async()=>await s.value.call(`vite:rolldown:get-module-raw-events`,{session:a.session.id,module:c.module}),{events:[]});return(a,s)=>{let c=h,f=O;return t(),e(u,null,[r(g).isLoading?(t(),d(c,{key:0})):n(``,!0),o(`div`,null,[r(g).isReady?(t(),d(f,{key:0,events:r(g).state.value.events,session:i.session},null,8,[`events`,`session`])):(t(),e(`div`,k,[l(c)]))])],64)}}});export{A as default};
@@ -1 +1 @@
1
- {"id":"64b3b8a7-2713-4a0b-a273-f1b096d1de48","timestamp":1771385384239}
1
+ {"id":"74b7fb54-18a3-4ed3-aa42-c12c389e8a64","timestamp":1773204919880}
@@ -0,0 +1 @@
1
+ {"id":"74b7fb54-18a3-4ed3-aa42-c12c389e8a64","timestamp":1773204919880,"prerendered":[]}