@nuxt/devtools 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/chunks/module-main.mjs +11 -3
  2. package/dist/chunks/plugin-metrics.mjs +2 -0
  3. package/dist/chunks/vite-inspect.mjs +1 -0
  4. package/dist/chunks/vscode.mjs +2 -1
  5. package/dist/client/200.html +2 -2
  6. package/dist/client/404.html +2 -2
  7. package/dist/client/__inspecting/index.html +2 -2
  8. package/dist/client/_nuxt/Badge.1a9bc0c6.js +1 -0
  9. package/dist/client/_nuxt/CodeSnippets.vue.4e865162.js +1 -0
  10. package/dist/client/_nuxt/ContentDoc.a38c9cb6.js +1 -0
  11. package/dist/client/_nuxt/ContentList.25846cf2.js +1 -0
  12. package/dist/client/_nuxt/ContentNavigation.efe4f108.js +1 -0
  13. package/dist/client/_nuxt/ContentQuery.40c0b232.js +1 -0
  14. package/dist/client/_nuxt/ContentRenderer.c8303114.js +1 -0
  15. package/dist/client/_nuxt/ContentRendererMarkdown.8c14695e.js +1 -0
  16. package/dist/client/_nuxt/ContentSlot.e091c2e8.js +1 -0
  17. package/dist/client/_nuxt/DocumentDrivenEmpty.18123693.js +1 -0
  18. package/dist/client/_nuxt/DocumentDrivenNotFound.ed16cd57.js +1 -0
  19. package/dist/client/_nuxt/DrawerRight.vue.c96ac35e.js +1 -0
  20. package/dist/client/_nuxt/DurationDisplay.vue.d882ace0.js +1 -0
  21. package/dist/client/_nuxt/FilepathItem.vue.41f1b77a.js +1 -0
  22. package/dist/client/_nuxt/HelpFab.vue.36bf5011.js +1 -0
  23. package/dist/client/_nuxt/HelpImportsDirs.17a0339c.js +1 -0
  24. package/dist/client/_nuxt/HelpImportsModules.0f656e6a.js +1 -0
  25. package/dist/client/_nuxt/HelpTip.10f8f400.js +1 -0
  26. package/dist/client/_nuxt/HelpTip.vue.6ef6e4b5.js +1 -0
  27. package/dist/client/_nuxt/HelpTipPerformance.248cac4f.js +1 -0
  28. package/dist/client/_nuxt/LaunchPage.vue.af95bd8e.js +1 -0
  29. package/dist/client/_nuxt/Markdown.84efaf14.js +1 -0
  30. package/dist/client/_nuxt/NCheckbox.vue.c2fcd2eb.js +1 -0
  31. package/dist/client/_nuxt/NCodeBlock.vue.a30ec3a3.js +2 -0
  32. package/dist/client/_nuxt/NIconButton.vue.8bf5e423.js +1 -0
  33. package/dist/client/_nuxt/{NIconTitle.vue.20baf9ca.js → NIconTitle.vue.dc1de8f8.js} +1 -1
  34. package/dist/client/_nuxt/NMarkdown.vue.4afad80d.js +1 -0
  35. package/dist/client/_nuxt/NPanelGrids.e189e2d9.js +1 -0
  36. package/dist/client/_nuxt/NSectionBlock.30b4b4e5.js +1 -0
  37. package/dist/client/_nuxt/NSelect.vue.048cc70e.js +1 -0
  38. package/dist/client/_nuxt/NSwitch.vue.a0591f17.js +1 -0
  39. package/dist/client/_nuxt/NTextInput.vue.7b3bcc54.js +1 -0
  40. package/dist/client/_nuxt/NpmVersionCheck.vue.23de8792.js +1 -0
  41. package/dist/client/_nuxt/NuxtLogo.61744901.js +1 -0
  42. package/dist/client/_nuxt/{PanelLeftRight.vue.9f476475.js → PanelLeftRight.vue.7fa691b7.js} +1 -1
  43. package/dist/client/_nuxt/ProseA.6eb4e9ef.js +1 -0
  44. package/dist/client/_nuxt/ProseBlockquote.6e543efa.js +1 -0
  45. package/dist/client/_nuxt/ProseCode.7f8e5e2a.js +1 -0
  46. package/dist/client/_nuxt/ProseCodeInline.14122108.js +1 -0
  47. package/dist/client/_nuxt/ProseEm.6e89de46.js +1 -0
  48. package/dist/client/_nuxt/ProseH1.56d03309.js +1 -0
  49. package/dist/client/_nuxt/ProseH2.0416a5ef.js +1 -0
  50. package/dist/client/_nuxt/ProseH3.b0819372.js +1 -0
  51. package/dist/client/_nuxt/ProseH4.cbaa5e84.js +1 -0
  52. package/dist/client/_nuxt/ProseH5.aa49daf5.js +1 -0
  53. package/dist/client/_nuxt/ProseH6.443aeb57.js +1 -0
  54. package/dist/client/_nuxt/ProseHr.0680025e.js +1 -0
  55. package/dist/client/_nuxt/ProseImg.ab27c28e.js +1 -0
  56. package/dist/client/_nuxt/ProseLi.682acad3.js +1 -0
  57. package/dist/client/_nuxt/ProseOl.805d891c.js +1 -0
  58. package/dist/client/_nuxt/ProseP.4965522b.js +1 -0
  59. package/dist/client/_nuxt/ProseStrong.8e2379e2.js +1 -0
  60. package/dist/client/_nuxt/ProseTable.12e1b7dc.js +1 -0
  61. package/dist/client/_nuxt/ProseTbody.fa824c1d.js +1 -0
  62. package/dist/client/_nuxt/ProseTd.23a8ea21.js +1 -0
  63. package/dist/client/_nuxt/ProseTh.5305dfa9.js +1 -0
  64. package/dist/client/_nuxt/ProseThead.fe5d5f04.js +1 -0
  65. package/dist/client/_nuxt/ProseTr.5aadde10.js +1 -0
  66. package/dist/client/_nuxt/ProseUl.6bf488f1.js +1 -0
  67. package/dist/client/_nuxt/StateEditor.vue.bbfd7f46.js +1 -0
  68. package/dist/client/_nuxt/__inspecting.b1ac04d0.js +1 -0
  69. package/dist/client/_nuxt/_commonjsHelpers.87174ba5.js +1 -0
  70. package/dist/client/_nuxt/{assets.32f43d91.js → assets.62b6a3a9.js} +3 -3
  71. package/dist/client/_nuxt/client-db.651e30a1.js +1 -0
  72. package/dist/client/_nuxt/components.4599ac44.js +1 -0
  73. package/dist/client/_nuxt/custom-_name_.234877a5.js +1 -0
  74. package/dist/client/_nuxt/default.1fba4512.js +1 -0
  75. package/dist/client/_nuxt/editor.32ed33ad.js +1 -0
  76. package/dist/client/_nuxt/entry.693dcb8a.css +32 -0
  77. package/dist/client/_nuxt/{entry.573eb475.js → entry.75f7a625.js} +103 -103
  78. package/dist/client/_nuxt/error-404.47559066.js +1 -0
  79. package/dist/client/_nuxt/error-500.d45b7d02.js +1 -0
  80. package/dist/client/_nuxt/{error-component.9b2b9ea0.js → error-component.9d585a4e.js} +2 -2
  81. package/dist/client/_nuxt/full.d7db9e10.js +1 -0
  82. package/dist/client/_nuxt/{fuse.esm.dd081c31.js → fuse.esm.852e9cca.js} +1 -1
  83. package/dist/client/_nuxt/hooks.69c89849.js +1 -0
  84. package/dist/client/_nuxt/imports.b43589e2.js +1 -0
  85. package/dist/client/_nuxt/index.5afe666e.js +3 -0
  86. package/dist/client/_nuxt/{index.ce8efa93.js → index.840dc95c.js} +6 -6
  87. package/dist/client/_nuxt/index.a6ef77ff.js +1 -0
  88. package/dist/client/_nuxt/index.b60cb3eb.js +1 -0
  89. package/dist/client/_nuxt/{middleware.8446ef05.js → middleware.20a031d7.js} +1 -1
  90. package/dist/client/_nuxt/modules.b5283ac0.js +1 -0
  91. package/dist/client/_nuxt/none.cff39a5d.js +1 -0
  92. package/dist/client/_nuxt/overview.00099d39.js +1 -0
  93. package/dist/client/_nuxt/pages.b0dfe85b.js +1 -0
  94. package/dist/client/_nuxt/payload.a52d7c8b.js +1 -0
  95. package/dist/client/_nuxt/plugins.054a4753.js +1 -0
  96. package/dist/client/_nuxt/preview.2db228fe.js +1 -0
  97. package/dist/client/_nuxt/query.f8a40424.js +1 -0
  98. package/dist/client/_nuxt/runtime-configs.c3623b7d.js +1 -0
  99. package/dist/client/_nuxt/{server-routes.39ca7aaf.js → server-routes.aeb28db6.js} +3 -3
  100. package/dist/client/_nuxt/settings.a515facb.js +1 -0
  101. package/dist/client/_nuxt/storage.4183ed8b.js +1 -0
  102. package/dist/client/_nuxt/terminals.f68d138a.js +1 -0
  103. package/dist/client/_nuxt/unocss-runtime.50f049ae.js +2 -0
  104. package/dist/client/_nuxt/utils.e261e0da.js +1 -0
  105. package/dist/client/_nuxt/virtual-files.e3d4df65.js +1 -0
  106. package/dist/client/api/_content/cache.1682331104243.json +1 -0
  107. package/dist/client/index.html +2 -2
  108. package/dist/client/modules/assets/index.html +2 -2
  109. package/dist/client/modules/components/index.html +2 -2
  110. package/dist/client/modules/hooks/index.html +2 -2
  111. package/dist/client/modules/imports/index.html +2 -2
  112. package/dist/client/modules/middleware/index.html +2 -2
  113. package/dist/client/modules/modules/index.html +2 -2
  114. package/dist/client/modules/overview/index.html +2 -2
  115. package/dist/client/modules/pages/index.html +2 -2
  116. package/dist/client/modules/payload/index.html +2 -2
  117. package/dist/client/modules/plugins/index.html +2 -2
  118. package/dist/client/modules/runtime-configs/index.html +2 -2
  119. package/dist/client/modules/server-routes/index.html +2 -2
  120. package/dist/client/modules/storage/index.html +2 -2
  121. package/dist/client/modules/terminals/index.html +2 -2
  122. package/dist/client/modules/virtual-files/index.html +2 -2
  123. package/dist/client/settings/index.html +2 -2
  124. package/dist/module.json +1 -1
  125. package/dist/runtime/plugins/devtools.client.mjs +34 -31
  126. package/dist/runtime/plugins/view/Frame.vue +1 -1
  127. package/dist/types.d.ts +2 -0
  128. package/package.json +24 -21
  129. package/dist/client/_nuxt/Badge.18a1faa1.js +0 -1
  130. package/dist/client/_nuxt/CodeSnippets.vue.93d86055.js +0 -1
  131. package/dist/client/_nuxt/DrawerRight.vue.753ffedf.js +0 -1
  132. package/dist/client/_nuxt/DurationDisplay.vue.2e10a9ab.js +0 -1
  133. package/dist/client/_nuxt/FilepathItem.vue.17a1ef3b.js +0 -1
  134. package/dist/client/_nuxt/LaunchPage.vue.d669f6a6.js +0 -1
  135. package/dist/client/_nuxt/NCheckbox.vue.e9f99715.js +0 -1
  136. package/dist/client/_nuxt/NCodeBlock.vue.bac56013.js +0 -2
  137. package/dist/client/_nuxt/NIconButton.vue.dc045a77.js +0 -1
  138. package/dist/client/_nuxt/NMarkdown.vue.04a4db38.js +0 -1
  139. package/dist/client/_nuxt/NPanelGrids.02a70c97.js +0 -1
  140. package/dist/client/_nuxt/NSectionBlock.a11f230b.js +0 -1
  141. package/dist/client/_nuxt/NSelect.vue.ee701084.js +0 -1
  142. package/dist/client/_nuxt/NSwitch.vue.57428898.js +0 -1
  143. package/dist/client/_nuxt/NTextInput.vue.321edbfc.js +0 -1
  144. package/dist/client/_nuxt/NTip.vue.6b28ea49.js +0 -1
  145. package/dist/client/_nuxt/NpmVersionCheck.vue.cf2f92dc.js +0 -1
  146. package/dist/client/_nuxt/NuxtLogo.9393be93.js +0 -1
  147. package/dist/client/_nuxt/StateEditor.vue.780bea4b.js +0 -1
  148. package/dist/client/_nuxt/__inspecting.dca08c99.js +0 -1
  149. package/dist/client/_nuxt/components.cf2ad6d8.js +0 -1
  150. package/dist/client/_nuxt/custom-_name_.02a0e7a4.js +0 -1
  151. package/dist/client/_nuxt/default.15ad6f94.js +0 -1
  152. package/dist/client/_nuxt/editor.21c0f631.js +0 -1
  153. package/dist/client/_nuxt/entry.7a4bae62.css +0 -32
  154. package/dist/client/_nuxt/error-404.362e6f4b.js +0 -1
  155. package/dist/client/_nuxt/error-500.333947d6.js +0 -1
  156. package/dist/client/_nuxt/full.11c5f922.js +0 -1
  157. package/dist/client/_nuxt/hooks.5ac5215b.js +0 -1
  158. package/dist/client/_nuxt/imports.a42ed4e0.js +0 -1
  159. package/dist/client/_nuxt/index.207404a1.js +0 -1
  160. package/dist/client/_nuxt/index.c769634a.js +0 -3
  161. package/dist/client/_nuxt/modules.7af01df4.js +0 -1
  162. package/dist/client/_nuxt/none.a6f40eb7.js +0 -1
  163. package/dist/client/_nuxt/overview.57469504.js +0 -1
  164. package/dist/client/_nuxt/pages.e7c45d03.js +0 -1
  165. package/dist/client/_nuxt/payload.45880f90.js +0 -1
  166. package/dist/client/_nuxt/plugins.c2b464a0.js +0 -1
  167. package/dist/client/_nuxt/runtime-configs.c3bb5842.js +0 -1
  168. package/dist/client/_nuxt/settings.63e9273e.js +0 -1
  169. package/dist/client/_nuxt/storage.997cf777.js +0 -1
  170. package/dist/client/_nuxt/terminals.c017f557.js +0 -1
  171. package/dist/client/_nuxt/unocss-runtime.32a65eb2.js +0 -2
  172. package/dist/client/_nuxt/virtual-files.554fde6c.js +0 -1
@@ -0,0 +1 @@
1
+ import{k as a,y as n,o as r,e as l,m as e,t as s,l as d,w as c,M as p,H as f,af as m,ag as x}from"./entry.75f7a625.js";const h=t=>(m("data-v-bf1556d5"),t=t(),x(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=h(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],y=["textContent"],w={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,y),e("div",w,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-bf1556d5"]]);export{z as default};
@@ -0,0 +1 @@
1
+ import{k as i,y as a,o as r,e as n,m as e,t as s,af as l,ag as d}from"./entry.75f7a625.js";const c=t=>(l("data-v-583914b6"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-583914b6"]]);export{w as default};
@@ -1,3 +1,3 @@
1
- import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.573eb475.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
1
+ import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.75f7a625.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
2
2
  `).splice(1).map(e=>({text:e.replace("webpack:/","").replace(".vue",".js").trim(),internal:e.includes("node_modules")&&!e.includes(".cache")||e.includes("internal")||e.includes("new Promise")})).map(e=>`<span class="stack${e.internal?" internal":""}">${e.text}</span>`).join(`
3
- `);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.362e6f4b.js"),["./error-404.362e6f4b.js","./entry.573eb475.js","./entry.7a4bae62.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.333947d6.js"),["./error-500.333947d6.js","./entry.573eb475.js","./entry.7a4bae62.css","./error-500.12a2683b.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
3
+ `);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.47559066.js"),["./error-404.47559066.js","./entry.75f7a625.js","./entry.693dcb8a.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.d45b7d02.js"),["./error-500.d45b7d02.js","./entry.75f7a625.js","./entry.693dcb8a.css","./error-500.12a2683b.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
@@ -0,0 +1 @@
1
+ import{k as o,o as t,e as s,p as r}from"./entry.75f7a625.js";const c={},n={"h-full":"","of-auto":""};function a(e,l){return t(),s("div",n,[r(e.$slots,"default")])}const _=o(c,[["render",a]]);export{_ as default};
@@ -1 +1 @@
1
- import{_ as ut}from"./NTextInput.vue.321edbfc.js";import{a as ft,o as dt,h as gt,f as pt,K as j,z as Q,i as mt}from"./entry.573eb475.js";const Mt={flex:"~ gap4"},oe=ft({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){function s(n){t("update:search",n.target.value)}return(n,r)=>{const i=ut;return dt(),gt("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:Q([{p4:!e.noPadding}])},[pt("div",Mt,[j(n.$slots,"search",{},()=>[mt(i,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:Q({"px-5 py-2":!e.noPadding}),value:e.search,onInput:s},null,8,["class","value"])]),j(n.$slots,"actions")]),j(n.$slots,"default")],2)}}});function I(e){return Array.isArray?Array.isArray(e):nt(e)==="[object Array]"}const xt=1/0;function _t(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-xt?"-0":t}function Et(e){return e==null?"":_t(e)}function E(e){return typeof e=="string"}function et(e){return typeof e=="number"}function yt(e){return e===!0||e===!1||It(e)&&nt(e)=="[object Boolean]"}function st(e){return typeof e=="object"}function It(e){return st(e)&&e!==null}function m(e){return e!=null}function K(e){return!e.trim().length}function nt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const St="Incorrect 'index' type",At=e=>`Invalid value for key ${e}`,wt=e=>`Pattern length exceeds max of ${e}.`,bt=e=>`Missing ${e} property in key`,Lt=e=>`Property 'weight' in key '${e}' must be a positive integer`,X=Object.prototype.hasOwnProperty;class Rt{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let r=rt(n);s+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rt(e){let t=null,s=null,n=null,r=1,i=null;if(E(e)||I(e))n=e,t=J(e),s=B(e);else{if(!X.call(e,"name"))throw new Error(bt("name"));const c=e.name;if(n=c,X.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(Lt(c));t=J(c),s=B(c),i=e.getFn}return{path:t,id:s,weight:r,src:n,getFn:i}}function J(e){return I(e)?e:e.split(".")}function B(e){return I(e)?e.join("."):e}function Nt(e,t){let s=[],n=!1;const r=(i,c,o)=>{if(m(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!m(h))return;if(o===c.length-1&&(E(h)||et(h)||yt(h)))s.push(Et(h));else if(I(h)){n=!0;for(let l=0,f=h.length;l<f;l+=1)r(h[l],c,o+1)}else c.length&&r(h,c,o+1)}};return r(e,E(t)?t.split("."):t,0),n?s:s[0]}const $t={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},kt={isCaseSensitive:!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},vt={location:0,threshold:.6,distance:100},Ot={useExtendedSearch:!1,getFn:Nt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var u={...kt,...$t,...vt,...Ot};const Ct=/[^ ]+/g;function Tt(e=1,t=3){const s=new Map,n=Math.pow(10,t);return{get(r){const i=r.match(Ct).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*e),o=parseFloat(Math.round(c*n)/n);return s.set(i,o),o},clear(){s.clear()}}}class Y{constructor({getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){this.norm=Tt(s,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,E(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();E(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(t,s){return t[this._keysMap[s]]}size(){return this.records.length}_addString(t,s){if(!m(t)||K(t))return;let n={v:t,i:s,n:this.norm.get(t)};this.records.push(n)}_addObject(t,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let c=r.getFn?r.getFn(t):this.getFn(t,r.path);if(m(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(m(l))if(E(l)&&!K(l)){let f={v:l,i:h,n:this.norm.get(l)};o.push(f)}else I(l)&&l.forEach((f,d)=>{a.push({nestedArrIndex:d,value:f})})}n.$[i]=o}else if(E(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};n.$[i]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function it(e,t,{getFn:s=u.getFn,fieldNormWeight:n=u.fieldNormWeight}={}){const r=new Y({getFn:s,fieldNormWeight:n});return r.setKeys(e.map(rt)),r.setSources(t),r.create(),r}function Ft(e,{getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){const{keys:n,records:r}=e,i=new Y({getFn:t,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function C(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:r=u.distance,ignoreLocation:i=u.ignoreLocation}={}){const c=t/e.length;if(i)return c;const o=Math.abs(n-s);return r?c+o/r:o?1:c}function Pt(e=[],t=u.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let c=e.length;i<c;i+=1){let o=e[i];o&&n===-1?n=i:!o&&n!==-1&&(r=i-1,r-n+1>=t&&s.push([n,r]),n=-1)}return e[i-1]&&i-n>=t&&s.push([n,i-1]),s}const R=32;function jt(e,t,s,{location:n=u.location,distance:r=u.distance,threshold:i=u.threshold,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,includeMatches:a=u.includeMatches,ignoreLocation:h=u.ignoreLocation}={}){if(t.length>R)throw new Error(wt(R));const l=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=i,p=d;const M=o>1||a,b=M?Array(f):[];let y;for(;(y=e.indexOf(t,p))>-1;){let x=C(t,{currentLocation:y,expectedLocation:d,distance:r,ignoreLocation:h});if(g=Math.min(x,g),p=y+l,M){let S=0;for(;S<l;)b[y+S]=1,S+=1}}p=-1;let N=[],L=1,v=l+f;const lt=1<<l-1;for(let x=0;x<l;x+=1){let S=0,A=v;for(;S<A;)C(t,{errors:x,currentLocation:d+A,expectedLocation:d,distance:r,ignoreLocation:h})<=g?S=A:v=A,A=Math.floor((v-S)/2+S);v=A;let G=Math.max(1,d-A+1),P=c?f:Math.min(d+A,f)+l,$=Array(P+2);$[P+1]=(1<<x)-1;for(let _=P;_>=G;_-=1){let O=_-1,U=s[e.charAt(O)];if(M&&(b[O]=+!!U),$[_]=($[_+1]<<1|1)&U,x&&($[_]|=(N[_+1]|N[_])<<1|1|N[_+1]),$[_]&lt&&(L=C(t,{errors:x,currentLocation:O,expectedLocation:d,distance:r,ignoreLocation:h}),L<=g)){if(g=L,p=O,p<=d)break;G=Math.max(1,2*d-p)}}if(C(t,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:h})>g)break;N=$}const F={isMatch:p>=0,score:Math.max(.001,L)};if(M){const x=Pt(b,o);x.length?a&&(F.indices=x):F.isMatch=!1}return F}function Kt(e){let t={};for(let s=0,n=e.length;s<n;s+=1){const r=e.charAt(s);t[r]=(t[r]||0)|1<<n-s-1}return t}class ct{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:Kt(d),startIndex:g})},f=this.pattern.length;if(f>R){let d=0;const g=f%R,p=f-g;for(;d<p;)l(this.pattern.substr(d,R),d),d+=R;if(g){const M=f-R;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,t.length-1]]),p}const{location:r,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],f=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:b})=>{const{isMatch:y,score:N,indices:L}=jt(t,p,M,{location:r+b,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:n,ignoreLocation:h});y&&(d=!0),f+=N,y&&L&&(l=[...l,...L])});let g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=l),g}}class w{constructor(t){this.pattern=t}static isMultiMatch(t){return Z(t,this.multiRegex)}static isSingleMatch(t){return Z(t,this.singleRegex)}search(){}}function Z(e,t){const s=e.match(t);return s?s[1]:null}class Bt extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Dt extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Wt extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class zt extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Vt extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ht extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class ot extends w{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){super(t),this._bitapSearch=new ct(t,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class at extends w{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let s=0,n;const r=[],i=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const D=[Bt,at,Wt,zt,Ht,Vt,Dt,ot],q=D.length,Yt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Gt="|";function Ut(e,t={}){return e.split(Gt).map(s=>{let n=s.trim().split(Yt).filter(i=>i&&!!i.trim()),r=[];for(let i=0,c=n.length;i<c;i+=1){const o=n[i];let a=!1,h=-1;for(;!a&&++h<q;){const l=D[h];let f=l.isMultiMatch(o);f&&(r.push(new l(f,t)),a=!0)}if(!a)for(h=-1;++h<q;){const l=D[h];let f=l.isSingleMatch(o);if(f){r.push(new l(f,t));break}}}return r})}const Qt=new Set([ot.type,at.type]);class Xt{constructor(t,{isCaseSensitive:s=u.isCaseSensitive,includeMatches:n=u.includeMatches,minMatchCharLength:r=u.minMatchCharLength,ignoreLocation:i=u.ignoreLocation,findAllMatches:c=u.findAllMatches,location:o=u.location,threshold:a=u.threshold,distance:h=u.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?t:t.toLowerCase(),this.query=Ut(this.pattern,this.options)}static condition(t,s){return s.useExtendedSearch}searchIn(t){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let f=0,d=l.length;f<d;f+=1){const g=l[f],{isMatch:p,indices:M,score:b}=g.search(t);if(p){if(i+=1,o+=b,n){const y=g.constructor.type;Qt.has(y)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let f={isMatch:!0,score:o/i};return n&&(f.indices=c),f}}return{isMatch:!1,score:1}}}const W=[];function Jt(...e){W.push(...e)}function z(e,t){for(let s=0,n=W.length;s<n;s+=1){let r=W[s];if(r.condition(e,t))return new r(e,t)}return new ct(e,t)}const T={AND:"$and",OR:"$or"},V={PATH:"$path",PATTERN:"$val"},H=e=>!!(e[T.AND]||e[T.OR]),Zt=e=>!!e[V.PATH],qt=e=>!I(e)&&st(e)&&!H(e),tt=e=>({[T.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ht(e,t,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const c=Zt(r);if(!c&&i.length>1&&!H(r))return n(tt(r));if(qt(r)){const a=c?r[V.PATH]:i[0],h=c?r[V.PATTERN]:r[a];if(!E(h))throw new Error(At(a));const l={keyId:B(a),pattern:h};return s&&(l.searcher=z(h,t)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=r[a];I(h)&&h.forEach(l=>{o.children.push(n(l))})}),o};return H(e)||(e=tt(e)),n(e)}function te(e,{ignoreFieldNorm:t=u.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:c})=>{const o=r?r.weight:null;n*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(t?1:i))}),s.score=n})}function ee(e,t){const s=e.matches;t.matches=[],m(s)&&s.forEach(n=>{if(!m(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let c={indices:r,value:i};n.key&&(c.key=n.key.src),n.idx>-1&&(c.refIndex=n.idx),t.matches.push(c)})}function se(e,t){t.score=e.score}function ne(e,t,{includeMatches:s=u.includeMatches,includeScore:n=u.includeScore}={}){const r=[];return s&&r.push(ee),n&&r.push(se),e.map(i=>{const{idx:c}=i,o={item:t[c],refIndex:c};return r.length&&r.forEach(a=>{a(i,o)}),o})}class k{constructor(t,s={},n){this.options={...u,...s},this.options.useExtendedSearch,this._keyStore=new Rt(this.options.keys),this.setCollection(t,n)}setCollection(t,s){if(this._docs=t,s&&!(s instanceof Y))throw new Error(St);this._myIndex=s||it(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){m(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=E(t)?E(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return te(a,{ignoreFieldNorm:o}),i&&a.sort(c),et(s)&&s>-1&&(a=a.slice(0,s)),ne(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(t){const s=z(t,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&r.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),r}_searchLogical(t){const s=ht(t,this.options),n=(o,a,h)=>{if(!o.children){const{keyId:f,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let f=0,d=o.children.length;f<d;f+=1){const g=o.children[f],p=n(g,a,h);if(p.length)l.push(...p);else if(o.operator===T.AND)return[]}return l},r=this._myIndex.records,i={},c=[];return r.forEach(({$:o,i:a})=>{if(m(o)){let h=n(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(t){const s=z(t,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:c,i:o})=>{if(!m(c))return;let a=[];n.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:t,value:s,searcher:n}){if(!m(s))return[];let r=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=n.searchIn(i);a&&r.push({score:h,key:t,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=n.searchIn(i);o&&r.push({score:a,key:t,value:i,norm:c,indices:h})}return r}}k.version="6.6.2";k.createIndex=it;k.parseIndex=Ft;k.config=u;k.parseQuery=ht;Jt(Xt);export{k as F,oe as _};
1
+ import{_ as ut}from"./NTextInput.vue.7b3bcc54.js";import{a as ft,o as dt,e as gt,m as pt,p as j,N as Q,l as mt}from"./entry.75f7a625.js";const Mt={flex:"~ gap4"},oe=ft({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){function s(n){t("update:search",n.target.value)}return(n,r)=>{const i=ut;return dt(),gt("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:Q([{p4:!e.noPadding}])},[pt("div",Mt,[j(n.$slots,"search",{},()=>[mt(i,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:Q({"px-5 py-2":!e.noPadding}),value:e.search,onInput:s},null,8,["class","value"])]),j(n.$slots,"actions")]),j(n.$slots,"default")],2)}}});function I(e){return Array.isArray?Array.isArray(e):nt(e)==="[object Array]"}const xt=1/0;function _t(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-xt?"-0":t}function Et(e){return e==null?"":_t(e)}function E(e){return typeof e=="string"}function et(e){return typeof e=="number"}function yt(e){return e===!0||e===!1||It(e)&&nt(e)=="[object Boolean]"}function st(e){return typeof e=="object"}function It(e){return st(e)&&e!==null}function m(e){return e!=null}function B(e){return!e.trim().length}function nt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const St="Incorrect 'index' type",At=e=>`Invalid value for key ${e}`,wt=e=>`Pattern length exceeds max of ${e}.`,bt=e=>`Missing ${e} property in key`,Lt=e=>`Property 'weight' in key '${e}' must be a positive integer`,X=Object.prototype.hasOwnProperty;class Rt{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let r=rt(n);s+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rt(e){let t=null,s=null,n=null,r=1,i=null;if(E(e)||I(e))n=e,t=J(e),s=K(e);else{if(!X.call(e,"name"))throw new Error(bt("name"));const c=e.name;if(n=c,X.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(Lt(c));t=J(c),s=K(c),i=e.getFn}return{path:t,id:s,weight:r,src:n,getFn:i}}function J(e){return I(e)?e:e.split(".")}function K(e){return I(e)?e.join("."):e}function Nt(e,t){let s=[],n=!1;const r=(i,c,o)=>{if(m(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!m(h))return;if(o===c.length-1&&(E(h)||et(h)||yt(h)))s.push(Et(h));else if(I(h)){n=!0;for(let l=0,f=h.length;l<f;l+=1)r(h[l],c,o+1)}else c.length&&r(h,c,o+1)}};return r(e,E(t)?t.split("."):t,0),n?s:s[0]}const $t={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},kt={isCaseSensitive:!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},vt={location:0,threshold:.6,distance:100},Ot={useExtendedSearch:!1,getFn:Nt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var u={...kt,...$t,...vt,...Ot};const Ct=/[^ ]+/g;function Tt(e=1,t=3){const s=new Map,n=Math.pow(10,t);return{get(r){const i=r.match(Ct).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*e),o=parseFloat(Math.round(c*n)/n);return s.set(i,o),o},clear(){s.clear()}}}class Y{constructor({getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){this.norm=Tt(s,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,E(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();E(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(t,s){return t[this._keysMap[s]]}size(){return this.records.length}_addString(t,s){if(!m(t)||B(t))return;let n={v:t,i:s,n:this.norm.get(t)};this.records.push(n)}_addObject(t,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let c=r.getFn?r.getFn(t):this.getFn(t,r.path);if(m(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(m(l))if(E(l)&&!B(l)){let f={v:l,i:h,n:this.norm.get(l)};o.push(f)}else I(l)&&l.forEach((f,d)=>{a.push({nestedArrIndex:d,value:f})})}n.$[i]=o}else if(E(c)&&!B(c)){let o={v:c,n:this.norm.get(c)};n.$[i]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function it(e,t,{getFn:s=u.getFn,fieldNormWeight:n=u.fieldNormWeight}={}){const r=new Y({getFn:s,fieldNormWeight:n});return r.setKeys(e.map(rt)),r.setSources(t),r.create(),r}function Ft(e,{getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){const{keys:n,records:r}=e,i=new Y({getFn:t,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function C(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:r=u.distance,ignoreLocation:i=u.ignoreLocation}={}){const c=t/e.length;if(i)return c;const o=Math.abs(n-s);return r?c+o/r:o?1:c}function Pt(e=[],t=u.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let c=e.length;i<c;i+=1){let o=e[i];o&&n===-1?n=i:!o&&n!==-1&&(r=i-1,r-n+1>=t&&s.push([n,r]),n=-1)}return e[i-1]&&i-n>=t&&s.push([n,i-1]),s}const R=32;function jt(e,t,s,{location:n=u.location,distance:r=u.distance,threshold:i=u.threshold,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,includeMatches:a=u.includeMatches,ignoreLocation:h=u.ignoreLocation}={}){if(t.length>R)throw new Error(wt(R));const l=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=i,p=d;const M=o>1||a,b=M?Array(f):[];let y;for(;(y=e.indexOf(t,p))>-1;){let x=C(t,{currentLocation:y,expectedLocation:d,distance:r,ignoreLocation:h});if(g=Math.min(x,g),p=y+l,M){let S=0;for(;S<l;)b[y+S]=1,S+=1}}p=-1;let N=[],L=1,v=l+f;const lt=1<<l-1;for(let x=0;x<l;x+=1){let S=0,A=v;for(;S<A;)C(t,{errors:x,currentLocation:d+A,expectedLocation:d,distance:r,ignoreLocation:h})<=g?S=A:v=A,A=Math.floor((v-S)/2+S);v=A;let G=Math.max(1,d-A+1),P=c?f:Math.min(d+A,f)+l,$=Array(P+2);$[P+1]=(1<<x)-1;for(let _=P;_>=G;_-=1){let O=_-1,U=s[e.charAt(O)];if(M&&(b[O]=+!!U),$[_]=($[_+1]<<1|1)&U,x&&($[_]|=(N[_+1]|N[_])<<1|1|N[_+1]),$[_]&lt&&(L=C(t,{errors:x,currentLocation:O,expectedLocation:d,distance:r,ignoreLocation:h}),L<=g)){if(g=L,p=O,p<=d)break;G=Math.max(1,2*d-p)}}if(C(t,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:h})>g)break;N=$}const F={isMatch:p>=0,score:Math.max(.001,L)};if(M){const x=Pt(b,o);x.length?a&&(F.indices=x):F.isMatch=!1}return F}function Bt(e){let t={};for(let s=0,n=e.length;s<n;s+=1){const r=e.charAt(s);t[r]=(t[r]||0)|1<<n-s-1}return t}class ct{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:Bt(d),startIndex:g})},f=this.pattern.length;if(f>R){let d=0;const g=f%R,p=f-g;for(;d<p;)l(this.pattern.substr(d,R),d),d+=R;if(g){const M=f-R;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,t.length-1]]),p}const{location:r,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],f=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:b})=>{const{isMatch:y,score:N,indices:L}=jt(t,p,M,{location:r+b,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:n,ignoreLocation:h});y&&(d=!0),f+=N,y&&L&&(l=[...l,...L])});let g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=l),g}}class w{constructor(t){this.pattern=t}static isMultiMatch(t){return Z(t,this.multiRegex)}static isSingleMatch(t){return Z(t,this.singleRegex)}search(){}}function Z(e,t){const s=e.match(t);return s?s[1]:null}class Kt extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Dt extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Wt extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class zt extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Vt extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ht extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class ot extends w{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){super(t),this._bitapSearch=new ct(t,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class at extends w{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let s=0,n;const r=[],i=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const D=[Kt,at,Wt,zt,Ht,Vt,Dt,ot],q=D.length,Yt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Gt="|";function Ut(e,t={}){return e.split(Gt).map(s=>{let n=s.trim().split(Yt).filter(i=>i&&!!i.trim()),r=[];for(let i=0,c=n.length;i<c;i+=1){const o=n[i];let a=!1,h=-1;for(;!a&&++h<q;){const l=D[h];let f=l.isMultiMatch(o);f&&(r.push(new l(f,t)),a=!0)}if(!a)for(h=-1;++h<q;){const l=D[h];let f=l.isSingleMatch(o);if(f){r.push(new l(f,t));break}}}return r})}const Qt=new Set([ot.type,at.type]);class Xt{constructor(t,{isCaseSensitive:s=u.isCaseSensitive,includeMatches:n=u.includeMatches,minMatchCharLength:r=u.minMatchCharLength,ignoreLocation:i=u.ignoreLocation,findAllMatches:c=u.findAllMatches,location:o=u.location,threshold:a=u.threshold,distance:h=u.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?t:t.toLowerCase(),this.query=Ut(this.pattern,this.options)}static condition(t,s){return s.useExtendedSearch}searchIn(t){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let f=0,d=l.length;f<d;f+=1){const g=l[f],{isMatch:p,indices:M,score:b}=g.search(t);if(p){if(i+=1,o+=b,n){const y=g.constructor.type;Qt.has(y)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let f={isMatch:!0,score:o/i};return n&&(f.indices=c),f}}return{isMatch:!1,score:1}}}const W=[];function Jt(...e){W.push(...e)}function z(e,t){for(let s=0,n=W.length;s<n;s+=1){let r=W[s];if(r.condition(e,t))return new r(e,t)}return new ct(e,t)}const T={AND:"$and",OR:"$or"},V={PATH:"$path",PATTERN:"$val"},H=e=>!!(e[T.AND]||e[T.OR]),Zt=e=>!!e[V.PATH],qt=e=>!I(e)&&st(e)&&!H(e),tt=e=>({[T.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ht(e,t,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const c=Zt(r);if(!c&&i.length>1&&!H(r))return n(tt(r));if(qt(r)){const a=c?r[V.PATH]:i[0],h=c?r[V.PATTERN]:r[a];if(!E(h))throw new Error(At(a));const l={keyId:K(a),pattern:h};return s&&(l.searcher=z(h,t)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=r[a];I(h)&&h.forEach(l=>{o.children.push(n(l))})}),o};return H(e)||(e=tt(e)),n(e)}function te(e,{ignoreFieldNorm:t=u.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:c})=>{const o=r?r.weight:null;n*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(t?1:i))}),s.score=n})}function ee(e,t){const s=e.matches;t.matches=[],m(s)&&s.forEach(n=>{if(!m(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let c={indices:r,value:i};n.key&&(c.key=n.key.src),n.idx>-1&&(c.refIndex=n.idx),t.matches.push(c)})}function se(e,t){t.score=e.score}function ne(e,t,{includeMatches:s=u.includeMatches,includeScore:n=u.includeScore}={}){const r=[];return s&&r.push(ee),n&&r.push(se),e.map(i=>{const{idx:c}=i,o={item:t[c],refIndex:c};return r.length&&r.forEach(a=>{a(i,o)}),o})}class k{constructor(t,s={},n){this.options={...u,...s},this.options.useExtendedSearch,this._keyStore=new Rt(this.options.keys),this.setCollection(t,n)}setCollection(t,s){if(this._docs=t,s&&!(s instanceof Y))throw new Error(St);this._myIndex=s||it(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){m(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=E(t)?E(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return te(a,{ignoreFieldNorm:o}),i&&a.sort(c),et(s)&&s>-1&&(a=a.slice(0,s)),ne(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(t){const s=z(t,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&r.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),r}_searchLogical(t){const s=ht(t,this.options),n=(o,a,h)=>{if(!o.children){const{keyId:f,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let f=0,d=o.children.length;f<d;f+=1){const g=o.children[f],p=n(g,a,h);if(p.length)l.push(...p);else if(o.operator===T.AND)return[]}return l},r=this._myIndex.records,i={},c=[];return r.forEach(({$:o,i:a})=>{if(m(o)){let h=n(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(t){const s=z(t,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:c,i:o})=>{if(!m(c))return;let a=[];n.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:t,value:s,searcher:n}){if(!m(s))return[];let r=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=n.searchIn(i);a&&r.push({score:h,key:t,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=n.searchIn(i);o&&r.push({score:a,key:t,value:i,norm:c,indices:h})}return r}}k.version="6.6.2";k.createIndex=it;k.parseIndex=Ft;k.config=u;k.parseQuery=ht;Jt(Xt);export{k as F,oe as _};
@@ -0,0 +1 @@
1
+ import{_ as S}from"./DurationDisplay.vue.d882ace0.js";import{a as H,R as C,h as b,o as _,e as x,m as e,M as d,N as p,u as s,F as y,r as B,t as u,a4 as F,l as m,aJ as T,Z as D,c as V,w as $,f as z}from"./entry.75f7a625.js";import{_ as E}from"./NSectionBlock.30b4b4e5.js";import{_ as I}from"./HelpFab.vue.36bf5011.js";import"./NIconTitle.vue.dc1de8f8.js";import"./ContentRenderer.c8303114.js";import"./ContentRendererMarkdown.8c14695e.js";import"./index.a6ef77ff.js";import"./preview.2db228fe.js";import"./NIconButton.vue.8bf5e423.js";import"./query.f8a40424.js";import"./index.5afe666e.js";import"./utils.e261e0da.js";const L={"w-full":""},M={border:"b base"},O={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},R={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},j={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},J={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},P={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},Z={"text-sm":""},q={"ws-nowrap":""},G={"text-sm":""},K={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-center":"","text-sm":""},U={"w-0":"","text-right":"","text-sm":""},W=H({__name:"HooksTable",props:{hooks:null},setup(f){const i=f,a=C("duration"),r=C("asc"),k={duration:(o,t)=>(t.duration??1/0)-(o.duration??1/0),name:(o,t)=>o.name.localeCompare(t.name),listener:(o,t)=>t.listeners-o.listeners,start:(o,t)=>t.start-o.start,executions:(o,t)=>t.executions.length-o.executions.length},g=b(()=>i.hooks.map(o=>o.start).sort((o,t)=>o-t)),h=b(()=>{const o=k[a.value],t=[...i.hooks].sort(o);return r.value==="desc"&&t.reverse(),t});function l(o){const t=o.split(":");return t.length===1?"":`${t[0]}:`}function w(o){const t=o.split(":");return t.length===1?o:t.slice(1).join(":")}function N(o){let t=0;for(let n=0;n<o.length;n++)t=o.charCodeAt(n)+((t<<5)-t);return`hsl(${t%360}, 65%, 50%)`}function c(o){a.value===o?r.value=r.value==="asc"?"desc":"asc":a.value=o}return(o,t)=>{const v=S;return _(),x("table",L,[e("thead",M,[e("tr",null,[e("th",O,[e("button",{onClick:t[0]||(t[0]=n=>c("start"))},[d(" Order "),e("div",{"ml--1":"","text-xs":"",class:p([s(a)==="start"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",R,[e("button",{onClick:t[1]||(t[1]=n=>c("name"))},[d(" Hook name "),e("div",{"ml--1":"","text-xs":"",class:p([s(a)==="name"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",j,[e("button",{onClick:t[2]||(t[2]=n=>c("listener"))},[d(" Listeners "),e("div",{"ml--1":"","text-xs":"",class:p([s(a)==="listener"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",A,[e("button",{onClick:t[3]||(t[3]=n=>c("executions"))},[d(" Executions "),e("div",{"ml--1":"","text-xs":"",class:p([s(a)==="executions"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",J,[e("button",{onClick:t[4]||(t[4]=n=>c("duration"))},[d(" Duration "),e("div",{"ml--1":"","text-xs":"",class:p([s(a)==="duration"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),e("tbody",null,[(_(!0),x(y,null,B(s(h),n=>(_(),x("tr",{key:n.name,border:"b dashed transparent hover:base"},[e("td",P,u(s(g).indexOf(n.start)),1),e("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:N(l(n.name))})},[e("code",Z,u(l(n.name)),1)],4),e("td",q,[e("code",G,u(w(n.name)),1)]),e("td",K,u(n.listeners),1),e("td",Q,u(n.executions.length+1),1),e("td",U,[m(v,{duration:n.duration},null,8,["duration"])])]))),128))])])}}}),pt=H({__name:"hooks",setup(f){const i=T(),a=D(),r=b(()=>a.value?.getClientHooksMetrics());return(k,g)=>{const h=W,l=E,w=I;return _(),x(y,null,[e("div",null,[s(r)?.length?(_(),V(l,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${s(r).length}`,padding:"pl4 pr6"},{default:$(()=>[m(h,{hooks:s(r)},null,8,["hooks"])]),_:1},8,["description"])):z("",!0),m(l,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${s(i).length}`,padding:"pl4 pr6"},{default:$(()=>[m(h,{hooks:s(i)},null,8,["hooks"])]),_:1},8,["description"])]),m(w,{path:"/hooks"})],64)}}});export{pt as default};
@@ -0,0 +1 @@
1
+ import{_ as B}from"./NSwitch.vue.a0591f17.js";import{F,_ as L}from"./fuse.esm.852e9cca.js";import{_ as V}from"./FilepathItem.vue.41f1b77a.js";import{_ as X}from"./NMarkdown.vue.4afad80d.js";import{a as D,h as v,U as z,o as e,c as f,w as _,m as l,f as b,l as h,u as t,M as S,e as c,F as C,t as $,r as w,N as j,a2 as P,K as R,R as A,b as H,ax as K,j as q,i as G,ab as N}from"./entry.75f7a625.js";import{u as J,o as O}from"./editor.32ed33ad.js";import{C as U,D as T}from"./constants.126da185.js";import{_ as Q}from"./NSectionBlock.30b4b4e5.js";import{_ as W}from"./HelpFab.vue.36bf5011.js";import"./NTextInput.vue.7b3bcc54.js";import"./NIconTitle.vue.dc1de8f8.js";import"./ContentRenderer.c8303114.js";import"./ContentRendererMarkdown.8c14695e.js";import"./index.a6ef77ff.js";import"./preview.2db228fe.js";import"./NIconButton.vue.8bf5e423.js";import"./query.f8a40424.js";import"./index.5afe666e.js";import"./utils.e261e0da.js";const Y={"hover:text-primary":""},Z={key:0,"text-primary":""},tt={"max-w-100":""},et={px4:"",py3:"","text-sm":""},ot={flex:"~ gap2",n:"primary xs"},at={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},nt={"text-sm":""},st=l("span",{op50:""},"It has been referenced ",-1),it={"text-primary":""},rt=l("span",{op50:""}," times by:",-1),mt={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":""},lt={key:1,"text-sm":"",op50:""},pt=D({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(p){const n=p,y=J(),m=v(()=>n.item.as||n.item.name),d=v(()=>n.metadata?.injectionUsage?.[m.value]?.count||0),r=v(()=>n.metadata?.injectionUsage?.[m.value]?.moduleIds||[]),x=v(()=>{if(n.item.meta?.docsUrl)return n.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(n.item.from))return U.nuxt[n.item.name];if(n.item.from==="vue")return U.vue[n.item.name]});return(I,o)=>{const a=X,s=P,k=V,M=z("VDropdown");return e(),f(M,{disabled:!n.metadata},{popper:_(()=>[l("div",tt,[l("div",et,[p.item.meta?.description?(e(),f(a,{key:0,tag:"div",pb3:"","text-sm":"",markdown:p.item.meta.description},null,8,["markdown"])):b("",!0),l("div",ot,[h(s,{icon:"carbon-copy",onClick:o[0]||(o[0]=u=>t(y)(t(m)))},{default:_(()=>[S(" Copy ")]),_:1}),p.filepath?(e(),f(s,{key:0,icon:"carbon-code",onClick:o[1]||(o[1]=u=>p.filepath&&("openInEditor"in I?I.openInEditor:t(O))(p.filepath))},{default:_(()=>[S(" Source ")]),_:1})):b("",!0),t(x)?(e(),f(s,{key:1,icon:"carbon-catalog",to:t(x),target:"_blank"},{default:_(()=>[S(" Docs ")]),_:1},8,["to"])):b("",!0)])]),l("div",at,[t(d)?(e(),c(C,{key:0},[l("div",nt,[st,l("strong",it,$(t(d)),1),rt]),l("div",mt,[(e(!0),c(C,null,w(t(r),u=>(e(),f(k,{key:u,filepath:u},null,8,["filepath"]))),128))])],64)):(e(),c("div",lt," Not in use via auto import. "))])])]),default:_(()=>[l("button",Y,[l("code",{rounded:"","bg-gray:5":"",px2:"",py1:"","font-mono":"","text-sm":"",class:j(p.metadata&&!t(d)?"op30 hover:op100":"")},[S($(t(m))+" ",1),t(d)?(e(),c("sup",Z,"x"+$(t(d)),1)):b("",!0)],2)])]),_:1},8,["disabled"])}}}),ut={flex:"~ wrap gap2",p2:"",pl4:""},ct=D({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(p){return(n,y)=>{const m=V,d=pt;return e(),c("div",null,[(e(!0),c(C,null,w(p.map.entries(),([r,x])=>(e(),c("div",{key:r},[h(m,{filepath:r,op50:"","hover:underline":""},null,8,["filepath"]),l("div",ut,[(e(!0),c(C,null,w(x,I=>(e(),f(d,{key:I.as,item:I,metadata:p.metadata,filepath:r.match(/^[\w@]/)?void 0:r},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),dt={key:0,relative:"","h-full":"","of-auto":""},_t={key:0},Ut=D({__name:"imports",setup(p){const n=R(),y=A(!1),m=A(""),d=H(),r=v(()=>d.value?.metadata),x=v(()=>d.value?.imports.filter(a=>a.as||a.name).sort((a,s)=>(a.as||a.name).localeCompare(s.as||s.name))||[]),I=v(()=>new F(x.value,{keys:["from","as","name"]})),o=v(()=>{const a=new Map,s=new Map,k=new Map;let M=m.value?I.value.search(m.value).map(i=>i.item):x.value;y.value&&r.value&&(M=M.filter(i=>(i.as||i.name)in r.value.injectionUsage));const u={user:0,lib:0,builtin:0};return M.forEach(i=>{const g=K(i.from)?q(G(i.from))?k:s:a;g.has(i.from)||g.set(i.from,[]),g.get(i.from).push(i),u[g===a?"user":g===s?"lib":"builtin"]++}),{user:a,lib:s,builtin:k,count:u}});return(a,s)=>{const k=B,M=L,u=ct,i=Q,g=W;return e(),c(C,null,[t(n)?(e(),c("div",dt,[h(M,{search:t(m),"onUpdate:search":s[1]||(s[1]=E=>N(m)?m.value=E:null),pb2:""},{default:_(()=>[t(r)?(e(),c("div",_t,[h(k,{modelValue:t(y),"onUpdate:modelValue":s[0]||(s[0]=E=>N(y)?y.value=E:null),n:"primary sm"},{default:_(()=>[S(" Show used only ")]),_:1},8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),t(o).user.size?(e(),f(i,{key:0,open:t(o).count.user<=("DETAILS_MAX_ITEMS"in a?a.DETAILS_MAX_ITEMS:t(T)),icon:"carbon-function",text:"User composables",description:`${t(o).count.user} composables from ${t(o).user.size} modules`},{default:_(()=>[h(u,{map:t(o).user,root:t(n).rootDir,metadata:t(r)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),t(o).builtin.size?(e(),f(i,{key:1,open:t(o).count.builtin<=("DETAILS_MAX_ITEMS"in a?a.DETAILS_MAX_ITEMS:t(T)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${t(o).count.builtin} composables`},{default:_(()=>[h(u,{map:t(o).builtin,root:t(n).rootDir,metadata:t(r)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),t(o).lib.size?(e(),f(i,{key:2,open:t(o).count.lib<=("DETAILS_MAX_ITEMS"in a?a.DETAILS_MAX_ITEMS:t(T)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${t(o).count.lib} composables from ${t(o).lib.size} packages`},{default:_(()=>[h(u,{map:t(o).lib,root:t(n).rootDir,metadata:t(r)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),h(g,{path:"/imports"})],64)}}});export{Ut as default};
@@ -0,0 +1,3 @@
1
+ const C={ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1};function U(n,r={}){r={...C,...r};const s=m(r);return s.dispatch(n),s.toString()}function m(n){const r=[];let s=[];const t=e=>{r.push(e)};return{toString(){return r.join("")},getContext(){return s},dispatch(e){return n.replacer&&(e=n.replacer(e)),this["_"+(e===null?"null":typeof e)](e)},_object(e){if(e&&typeof e.toJSON=="function")return this._object(e.toJSON());const o=/\[object (.*)]/i,a=Object.prototype.toString.call(e),u=o.exec(a),i=u?u[1].toLowerCase():"unknown:["+a.toLowerCase()+"]";let l=null;if((l=s.indexOf(e))>=0)return this.dispatch("[CIRCULAR:"+l+"]");if(s.push(e),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(e))return t("buffer:"),t(e.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this["_"+i]?this["_"+i](e):n.ignoreUnknown||this._unkown(e,i);else{let c=Object.keys(e);n.unorderedObjects&&(c=c.sort()),n.respectType!==!1&&!B(e)&&c.splice(0,0,"prototype","__proto__","letructor"),n.excludeKeys&&(c=c.filter(function(f){return!n.excludeKeys(f)})),t("object:"+c.length+":");for(const f of c)this.dispatch(f),t(":"),n.excludeValues||this.dispatch(e[f]),t(",")}},_array(e,o){if(o=typeof o<"u"?o:n.unorderedArrays!==!1,t("array:"+e.length+":"),!o||e.length<=1){for(const i of e)this.dispatch(i);return}const a=[],u=e.map(i=>{const l=m(n);return l.dispatch(i),a.push(l.getContext()),l.toString()});return s=[...s,...a],u.sort(),this._array(u,!1)},_date(e){return t("date:"+e.toJSON())},_symbol(e){return t("symbol:"+e.toString())},_unkown(e,o){if(t(o),!!e&&(t(":"),e&&typeof e.entries=="function"))return this._array(Array.from(e.entries()),!0)},_error(e){return t("error:"+e.toString())},_boolean(e){return t("bool:"+e.toString())},_string(e){t("string:"+e.length+":"),t(e.toString())},_function(e){t("fn:"),B(e)?this.dispatch("[native]"):this.dispatch(e.toString()),n.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(e.name)),n.respectFunctionProperties&&this._object(e)},_number(e){return t("number:"+e.toString())},_xml(e){return t("xml:"+e.toString())},_null(){return t("Null")},_undefined(){return t("Undefined")},_regexp(e){return t("regex:"+e.toString())},_uint8array(e){return t("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray(e){return t("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array(e){return t("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array(e){return t("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array(e){return t("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array(e){return t("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array(e){return t("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array(e){return t("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array(e){return t("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer(e){return t("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url(e){return t("url:"+e.toString())},_map(e){t("map:");const o=[...e];return this._array(o,n.unorderedSets!==!1)},_set(e){t("set:");const o=[...e];return this._array(o,n.unorderedSets!==!1)},_file(e){return t("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob(){if(n.ignoreUnknown)return t("[blob]");throw new Error(`Hashing Blob objects is currently not supported
2
+ Use "options.replacer" or "options.ignoreUnknown"
3
+ `)},_domwindow(){return t("domwindow")},_bigint(e){return t("bigint:"+e.toString())},_process(){return t("process")},_timer(){return t("timer")},_pipe(){return t("pipe")},_tcp(){return t("tcp")},_udp(){return t("udp")},_tty(){return t("tty")},_statwatcher(){return t("statwatcher")},_securecontext(){return t("securecontext")},_connection(){return t("connection")},_zlib(){return t("zlib")},_context(){return t("context")},_nodescript(){return t("nodescript")},_httpparser(){return t("httpparser")},_dataview(){return t("dataview")},_signal(){return t("signal")},_fsevent(){return t("fsevent")},_tlswrap(){return t("tlswrap")}}}function B(n){return typeof n!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code]\s+}$/i.exec(Function.prototype.toString.call(n))!=null}class y{constructor(r,s){r=this.words=r||[],this.sigBytes=s!==void 0?s:r.length*4}toString(r){return(r||j).stringify(this)}concat(r){if(this.clamp(),this.sigBytes%4)for(let s=0;s<r.sigBytes;s++){const t=r.words[s>>>2]>>>24-s%4*8&255;this.words[this.sigBytes+s>>>2]|=t<<24-(this.sigBytes+s)%4*8}else for(let s=0;s<r.sigBytes;s+=4)this.words[this.sigBytes+s>>>2]=r.words[s>>>2];return this.sigBytes+=r.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new y([...this.words])}}const j={stringify(n){const r=[];for(let s=0;s<n.sigBytes;s++){const t=n.words[s>>>2]>>>24-s%4*8&255;r.push((t>>>4).toString(16),(t&15).toString(16))}return r.join("")}},H={stringify(n){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=[];for(let t=0;t<n.sigBytes;t+=3){const e=n.words[t>>>2]>>>24-t%4*8&255,o=n.words[t+1>>>2]>>>24-(t+1)%4*8&255,a=n.words[t+2>>>2]>>>24-(t+2)%4*8&255,u=e<<16|o<<8|a;for(let i=0;i<4&&t*8+i*6<n.sigBytes*8;i++)s.push(r.charAt(u>>>6*(3-i)&63))}return s.join("")}},N={parse(n){const r=n.length,s=[];for(let t=0;t<r;t++)s[t>>>2]|=(n.charCodeAt(t)&255)<<24-t%4*8;return new y(s,r)}},O={parse(n){return N.parse(unescape(encodeURIComponent(n)))}};class F{constructor(){this._minBufferSize=0,this.blockSize=512/32,this.reset()}reset(){this._data=new y,this._nDataBytes=0}_append(r){typeof r=="string"&&(r=O.parse(r)),this._data.concat(r),this._nDataBytes+=r.sigBytes}_doProcessBlock(r,s){}_process(r){let s,t=this._data.sigBytes/(this.blockSize*4);r?t=Math.ceil(t):t=Math.max((t|0)-this._minBufferSize,0);const e=t*this.blockSize,o=Math.min(e*4,this._data.sigBytes);if(e){for(let a=0;a<e;a+=this.blockSize)this._doProcessBlock(this._data.words,a);s=this._data.words.splice(0,e),this._data.sigBytes-=o}return new y(s,o)}}class L extends F{update(r){return this._append(r),this._process(),this}finalize(r){r&&this._append(r)}}const M=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],R=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],p=[];class P extends L{constructor(){super(),this.reset()}reset(){super.reset(),this._hash=new y([...M])}_doProcessBlock(r,s){const t=this._hash.words;let e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],f=t[7];for(let h=0;h<64;h++){if(h<16)p[h]=r[s+h]|0;else{const d=p[h-15],z=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,_=p[h-2],A=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;p[h]=z+p[h-7]+A+p[h-16]}const w=i&l^~i&c,S=e&o^e&a^o&a,b=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),x=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),g=f+x+w+R[h]+p[h],k=b+S;f=c,c=l,l=i,i=u+g|0,u=a,a=o,o=e,e=g+k|0}t[0]=t[0]+e|0,t[1]=t[1]+o|0,t[2]=t[2]+a|0,t[3]=t[3]+u|0,t[4]=t[4]+i|0,t[5]=t[5]+l|0,t[6]=t[6]+c|0,t[7]=t[7]+f|0}finalize(r){super.finalize(r);const s=this._nDataBytes*8,t=this._data.sigBytes*8;return this._data.words[t>>>5]|=128<<24-t%32,this._data.words[(t+64>>>9<<4)+14]=Math.floor(s/4294967296),this._data.words[(t+64>>>9<<4)+15]=s,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function T(n){return new P().finalize(n).toString(H)}function W(n,r={}){const s=typeof n=="string"?n:U(n,r);return T(s).slice(0,10)}export{W as h};