@nuxt/devtools 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/chunks/analyze-build.mjs +1 -1
  2. package/dist/chunks/module-main.mjs +648 -648
  3. package/dist/chunks/vite-inspect.mjs +1 -1
  4. package/dist/chunks/vscode.mjs +15 -15
  5. package/dist/client/200.html +18 -34
  6. package/dist/client/404.html +18 -34
  7. package/dist/client/_nuxt/__blank-c3ogaker.js +1 -0
  8. package/dist/client/_nuxt/analyze-build-ea1eck8p.js +1 -0
  9. package/dist/client/_nuxt/assets-n3kfhorl.js +16 -0
  10. package/dist/client/_nuxt/builds/latest.json +1 -1
  11. package/dist/client/_nuxt/builds/meta/9a9f67ed-5b9a-4514-bf49-62859c510bf6.json +1 -0
  12. package/dist/client/_nuxt/client-klf75x38.js +1 -0
  13. package/dist/client/_nuxt/code-diff.vue-3ei6zne1.js +8 -0
  14. package/dist/client/_nuxt/code-snippets.vue-jr6ih8m7.js +1 -0
  15. package/dist/client/_nuxt/components-c38lzacq.js +1 -0
  16. package/dist/client/_nuxt/components-tree-ihs546mg.js +1 -0
  17. package/dist/client/_nuxt/composable-item.vue-fyg5hnt4.js +1 -0
  18. package/dist/client/_nuxt/custom-_name_-eeczuiaf.js +1 -0
  19. package/dist/client/_nuxt/default-iofn16rr.js +1 -0
  20. package/dist/client/_nuxt/duration-display.vue-h3qa2740.js +1 -0
  21. package/dist/client/_nuxt/entry.css-bgn3dvs3.css +1 -0
  22. package/dist/client/_nuxt/error-404-m1rb28qo.js +1 -0
  23. package/dist/client/_nuxt/error-404.css-l9hojrit.css +1 -0
  24. package/dist/client/_nuxt/error-500-diual75d.js +1 -0
  25. package/dist/client/_nuxt/error-500.css-jiufalsw.css +1 -0
  26. package/dist/client/_nuxt/error-j0kod4j7.js +9 -0
  27. package/dist/client/_nuxt/filepath-item.vue-gspuql6t.js +1 -0
  28. package/dist/client/_nuxt/full-gbkjzbjn.js +1 -0
  29. package/dist/client/_nuxt/help-fab.vue-hr5z89ai.js +1 -0
  30. package/dist/client/_nuxt/hooks-bmqjn5uk.js +1 -0
  31. package/dist/client/_nuxt/imports-bpqh8uz0.js +1 -0
  32. package/dist/client/_nuxt/index-i6v3sxsq.js +1 -0
  33. package/dist/client/_nuxt/index-kk8qg4i0.js +2 -0
  34. package/dist/client/_nuxt/l4ouzdbv.js +16 -0
  35. package/dist/client/_nuxt/launch-page.vue-o72v57lt.js +1 -0
  36. package/dist/client/_nuxt/modules-hfiy1oig.js +1 -0
  37. package/dist/client/_nuxt/nbadge-nscxg0ea.js +1 -0
  38. package/dist/client/_nuxt/ncheckbox.vue-e9ud9j5x.js +1 -0
  39. package/dist/client/_nuxt/ncode-block.vue-bfbbo3c9.js +2 -0
  40. package/dist/client/_nuxt/ndrawer.vue-mplxtid5.js +1 -0
  41. package/dist/client/_nuxt/ndropdown.vue-e87kxadx.js +1 -0
  42. package/dist/client/_nuxt/nicon-title.vue-g9trlv29.js +1 -0
  43. package/dist/client/_nuxt/nlink.vue-eiz3iwjv.js +1 -0
  44. package/dist/client/_nuxt/nmarkdown.vue-nnge8mex.js +1 -0
  45. package/dist/client/_nuxt/nnavbar.vue-g8533enj.js +1 -0
  46. package/dist/client/_nuxt/none-e5nk9q3m.js +1 -0
  47. package/dist/client/_nuxt/nsection-block-mvrkafth.js +1 -0
  48. package/dist/client/_nuxt/nselect-tabs.vue-fwkap4uo.js +1 -0
  49. package/dist/client/_nuxt/nselect.vue-fw7xtqj5.js +1 -0
  50. package/dist/client/_nuxt/open-graph-mg0wvem5.js +3 -0
  51. package/dist/client/_nuxt/{open-graph.-BQyihv8.css → open-graph.css-np61an3p.css} +1 -1
  52. package/dist/client/_nuxt/overview-dwng171y.js +1 -0
  53. package/dist/client/_nuxt/pages-dw5vn1ay.js +1 -0
  54. package/dist/client/_nuxt/payload-n5bpui5g.js +1 -0
  55. package/dist/client/_nuxt/pinia-hflvu3wk.js +1 -0
  56. package/dist/client/_nuxt/plugins-is0jalvz.js +1 -0
  57. package/dist/client/_nuxt/runtime-configs-j2weq3a8.js +1 -0
  58. package/dist/client/_nuxt/server-route-inputs.vue-f12vix3z.js +1 -0
  59. package/dist/client/_nuxt/server-routes-fukasdvq.js +9 -0
  60. package/dist/client/_nuxt/server-tasks-k1h90jj9.js +1 -0
  61. package/dist/client/_nuxt/settings-bwoka9ty.js +1 -0
  62. package/dist/client/_nuxt/stacktrace-list.vue-ctsox658.js +1 -0
  63. package/dist/client/_nuxt/state-components-3qxyvdiu.js +1 -0
  64. package/dist/client/_nuxt/state-editor.vue-mh0eij72.js +1 -0
  65. package/dist/client/_nuxt/state-modules-fxsj7vyw.js +1 -0
  66. package/dist/client/_nuxt/storage-i7qr12jo.js +1 -0
  67. package/dist/client/_nuxt/terminals-elxq15i6.js +1 -0
  68. package/dist/client/_nuxt/terminals.css-o071tnq5.css +1 -0
  69. package/dist/client/_nuxt/timeline-o2dlglei.js +31 -0
  70. package/dist/client/_nuxt/timeline.css-i7fpg75n.css +1 -0
  71. package/dist/client/_nuxt/unocss-runtime-ks657l4w.js +1 -0
  72. package/dist/client/_nuxt/vendor/json-editor-vue-mdfcgt41.js +124 -0
  73. package/dist/client/_nuxt/vendor/json-editor-vue.css-o0jf01nd.css +1 -0
  74. package/dist/client/_nuxt/vendor/shiki-fpe2sz4h.js +87 -0
  75. package/dist/client/_nuxt/vendor/unocss-mnpxkox6.js +2 -0
  76. package/dist/client/_nuxt/vendor/unocss.css-na153c8v.css +1 -0
  77. package/dist/client/_nuxt/vendor/vis-cum19y28.js +98 -0
  78. package/dist/client/_nuxt/{BMmGYe_n.js → vendor/xterm-h0ftnevm.js} +6 -6
  79. package/dist/client/_nuxt/{terminals.BIEho_Pa.css → vendor/xterm.css-egivkam7.css} +1 -1
  80. package/dist/client/_nuxt/virtual-files-j88ybqgt.js +1 -0
  81. package/dist/client/_nuxt/vue-virtual-scroller.esm-k82i9hy2.js +2 -0
  82. package/dist/client/index.html +18 -34
  83. package/dist/module.json +1 -1
  84. package/dist/runtime/function-metrics-helpers.d.ts +1 -1
  85. package/dist/runtime/function-metrics-helpers.js +1 -1
  86. package/dist/runtime/plugins/view/FrameBox.vue +1 -1
  87. package/dist/runtime/plugins/view/Main.vue +3 -3
  88. package/dist/runtime/plugins/view/client.d.ts +1 -2
  89. package/dist/runtime/plugins/view/client.js +2 -2
  90. package/dist/runtime/plugins/view/state.d.ts +1 -2
  91. package/dist/runtime/plugins/view/utils.d.ts +12 -12
  92. package/dist/runtime/settings.d.ts +1 -1
  93. package/dist/runtime/shared/hooks.d.ts +0 -1
  94. package/dist/runtime/use-nuxt-devtools.d.ts +1 -1
  95. package/dist/runtime/use-nuxt-devtools.js +1 -1
  96. package/dist/runtime/vue-devtools/overlay.js +1 -1
  97. package/package.json +35 -35
  98. package/dist/client/_nuxt/32IlS-eL.js +0 -15
  99. package/dist/client/_nuxt/6ngNN4Yp.js +0 -1
  100. package/dist/client/_nuxt/7oK7PdYH.js +0 -1
  101. package/dist/client/_nuxt/B1veJI6T.js +0 -1
  102. package/dist/client/_nuxt/B3uNdhXb.js +0 -100
  103. package/dist/client/_nuxt/B6E6ObS_.js +0 -8
  104. package/dist/client/_nuxt/BECRlsCL.js +0 -1
  105. package/dist/client/_nuxt/BHh_UM9T.js +0 -1
  106. package/dist/client/_nuxt/BI3hykgO.js +0 -1
  107. package/dist/client/_nuxt/BKeomq25.js +0 -1
  108. package/dist/client/_nuxt/BKukfVLl.js +0 -1
  109. package/dist/client/_nuxt/BLmvGqlk.js +0 -1
  110. package/dist/client/_nuxt/BMbUeBqv.js +0 -74
  111. package/dist/client/_nuxt/BOV_C5BD.js +0 -1
  112. package/dist/client/_nuxt/BYelj_cE.js +0 -1
  113. package/dist/client/_nuxt/BZfs-ost.js +0 -1
  114. package/dist/client/_nuxt/BiRcA7Ly.js +0 -1
  115. package/dist/client/_nuxt/BiWblMbN.js +0 -505
  116. package/dist/client/_nuxt/BiWf_U1D.js +0 -1
  117. package/dist/client/_nuxt/BkwfBuTq.js +0 -1
  118. package/dist/client/_nuxt/BopA0WYG.js +0 -1
  119. package/dist/client/_nuxt/Br6ll-O0.js +0 -1
  120. package/dist/client/_nuxt/BsEGx9wN.js +0 -1
  121. package/dist/client/_nuxt/Bu2gNcUf.js +0 -1
  122. package/dist/client/_nuxt/Bxkoe-BC.js +0 -1
  123. package/dist/client/_nuxt/ByTwm2ax.js +0 -1
  124. package/dist/client/_nuxt/C1fpCDlE.js +0 -1
  125. package/dist/client/_nuxt/C2HmjCtb.js +0 -1
  126. package/dist/client/_nuxt/C8RrL2-P.js +0 -1
  127. package/dist/client/_nuxt/C9bF3W-8.js +0 -1032
  128. package/dist/client/_nuxt/CCJYS4Qc.js +0 -4
  129. package/dist/client/_nuxt/CCXTpRMt.js +0 -1
  130. package/dist/client/_nuxt/CCfUy938.js +0 -2
  131. package/dist/client/_nuxt/CEL3Rl_8.js +0 -1
  132. package/dist/client/_nuxt/CHuuZgn4.js +0 -699
  133. package/dist/client/_nuxt/CIvuwNIv.js +0 -2
  134. package/dist/client/_nuxt/CNzQK24q.js +0 -1
  135. package/dist/client/_nuxt/CO7Eo6nF.js +0 -1
  136. package/dist/client/_nuxt/CTKqK4eG.js +0 -2002
  137. package/dist/client/_nuxt/CUZJ8tqD.js +0 -1
  138. package/dist/client/_nuxt/CWDIGLyg.js +0 -1
  139. package/dist/client/_nuxt/C_n3_iyW.js +0 -16
  140. package/dist/client/_nuxt/C_tLznPO.js +0 -43
  141. package/dist/client/_nuxt/CbViG2Xw.js +0 -74
  142. package/dist/client/_nuxt/CbYhyuC0.js +0 -505
  143. package/dist/client/_nuxt/CoNBQO3e.js +0 -1
  144. package/dist/client/_nuxt/CsTmP73Z.js +0 -1
  145. package/dist/client/_nuxt/CupVZNk8.js +0 -25
  146. package/dist/client/_nuxt/D4C_EO1O.js +0 -9
  147. package/dist/client/_nuxt/D4FLysGE.js +0 -1
  148. package/dist/client/_nuxt/D4V9JMY9.js +0 -1
  149. package/dist/client/_nuxt/D5Dg5B9b.js +0 -1
  150. package/dist/client/_nuxt/D86udNSS.js +0 -1
  151. package/dist/client/_nuxt/DAg81ukK.js +0 -30
  152. package/dist/client/_nuxt/DC8MraHL.js +0 -666
  153. package/dist/client/_nuxt/DDDCUP5E.js +0 -3
  154. package/dist/client/_nuxt/DDMtKJxh.js +0 -1
  155. package/dist/client/_nuxt/DHFOa8tC.js +0 -200
  156. package/dist/client/_nuxt/DHZqFavZ.js +0 -2
  157. package/dist/client/_nuxt/DHsLiygU.js +0 -1
  158. package/dist/client/_nuxt/DJg41Obz.js +0 -1
  159. package/dist/client/_nuxt/DJn5wykB.js +0 -1
  160. package/dist/client/_nuxt/DK4oFTHQ.js +0 -200
  161. package/dist/client/_nuxt/DMjsYTya.js +0 -1
  162. package/dist/client/_nuxt/DOv5BRyJ.js +0 -1
  163. package/dist/client/_nuxt/DajZvwFy.js +0 -1
  164. package/dist/client/_nuxt/Dch3xQiY.js +0 -699
  165. package/dist/client/_nuxt/Di-fSNio.js +0 -1
  166. package/dist/client/_nuxt/DiyNht5f.js +0 -9
  167. package/dist/client/_nuxt/Dm9RYIcI.js +0 -1
  168. package/dist/client/_nuxt/DockxStG.js +0 -1
  169. package/dist/client/_nuxt/DpYuRYxj.js +0 -2072
  170. package/dist/client/_nuxt/DqpvVAaa.js +0 -1
  171. package/dist/client/_nuxt/DrswlxM3.js +0 -1
  172. package/dist/client/_nuxt/DtfHoqTV.js +0 -1
  173. package/dist/client/_nuxt/DvyTQcux.js +0 -1
  174. package/dist/client/_nuxt/J0gvLlTF.js +0 -1
  175. package/dist/client/_nuxt/L3q7etZW.js +0 -1
  176. package/dist/client/_nuxt/Q9LIRUci.js +0 -25
  177. package/dist/client/_nuxt/QxrU7fRC.js +0 -1
  178. package/dist/client/_nuxt/RBAD4-dW.js +0 -1
  179. package/dist/client/_nuxt/T8d8zkkH.js +0 -1
  180. package/dist/client/_nuxt/U0su7k1z.js +0 -1
  181. package/dist/client/_nuxt/UI0GwUC_.js +0 -1
  182. package/dist/client/_nuxt/YWCqik9X.js +0 -98
  183. package/dist/client/_nuxt/_ECCzcZq.js +0 -666
  184. package/dist/client/_nuxt/builds/meta/1766755b-b307-4775-82c4-edb6a4a7e185.json +0 -1
  185. package/dist/client/_nuxt/entry.eFSfOpqI.css +0 -1
  186. package/dist/client/_nuxt/error-404.HYsbWGh9.css +0 -1
  187. package/dist/client/_nuxt/error-500.BwPFg8q2.css +0 -1
  188. package/dist/client/_nuxt/nhLZZe93.js +0 -1
  189. package/dist/client/_nuxt/timeline.BVVcTKn-.css +0 -1
  190. /package/dist/client/_nuxt/{assets.DGT3vQsf.css → assets.css-l0xw7n9m.css} +0 -0
  191. /package/dist/client/_nuxt/{BcJws1i5.js → constants-b32h69zq.js} +0 -0
  192. /package/dist/client/_nuxt/{HelpFab.DHTsX8io.css → help-fab.css-l22fo390.css} +0 -0
  193. /package/dist/client/_nuxt/{NCodeBlock.BJ-XAY5s.css → ncode-block.css-enx2fys6.css} +0 -0
  194. /package/dist/client/_nuxt/{NSectionBlock.Dnwb6MN5.css → nsection-block.css-nz74xks7.css} +0 -0
  195. /package/dist/client/_nuxt/{Blr6EMNg.js → vendor/markdown-it-fvu08dbs.js} +0 -0
  196. /package/dist/client/_nuxt/{virtual-files.CWZEM3J4.css → virtual-files.css-i6taatd1.css} +0 -0
@@ -1,4 +0,0 @@
1
- import{_ as W}from"./CIvuwNIv.js";import{d as A,a as B,r as J,as as V,bY as Y,o as Z,h as k,f as G}from"./C_tLznPO.js";function C(){}C.prototype={diff:function(e,o){var r,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=u.callback;typeof u=="function"&&(t=u,u={}),this.options=u;var f=this;function i(c){return t?(setTimeout(function(){t(void 0,c)},0),!0):c}e=this.castInput(e),o=this.castInput(o),e=this.removeEmpty(this.tokenize(e)),o=this.removeEmpty(this.tokenize(o));var s=o.length,l=e.length,d=1,p=s+l;u.maxEditLength&&(p=Math.min(p,u.maxEditLength));var m=(r=u.timeout)!==null&&r!==void 0?r:1/0,h=Date.now()+m,a=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(a[0],o,e,0);if(a[0].oldPos+1>=l&&v+1>=s)return i([{value:this.join(o),count:o.length}]);var g=-1/0,L=1/0;function $(){for(var c=Math.max(g,-d);c<=Math.min(L,d);c+=2){var y=void 0,x=a[c-1],D=a[c+1];x&&(a[c-1]=void 0);var E=!1;if(D){var M=D.oldPos-c;E=D&&0<=M&&M<s}var O=x&&x.oldPos+1<l;if(!E&&!O){a[c]=void 0;continue}if(!O||E&&x.oldPos+1<D.oldPos?y=f.addToPath(D,!0,void 0,0):y=f.addToPath(x,void 0,!0,1),v=f.extractCommon(y,o,e,c),y.oldPos+1>=l&&v+1>=s)return i(H(f,y.lastComponent,o,e,f.useLongestToken));a[c]=y,y.oldPos+1>=l&&(L=Math.min(L,c-1)),v+1>=s&&(g=Math.max(g,c+1))}d++}if(t)(function c(){setTimeout(function(){if(d>p||Date.now()>h)return t();$()||c()},0)})();else for(;d<=p&&Date.now()<=h;){var q=$();if(q)return q}},addToPath:function(e,o,r,u){var t=e.lastComponent;return t&&t.added===o&&t.removed===r?{oldPos:e.oldPos+u,lastComponent:{count:t.count+1,added:o,removed:r,previousComponent:t.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:o,removed:r,previousComponent:t}}},extractCommon:function(e,o,r,u){for(var t=o.length,f=r.length,i=e.oldPos,s=i-u,l=0;s+1<t&&i+1<f&&this.equals(o[s+1],r[i+1]);)s++,i++,l++;return l&&(e.lastComponent={count:l,previousComponent:e.lastComponent}),e.oldPos=i,s},equals:function(e,o){return this.options.comparator?this.options.comparator(e,o):e===o||this.options.ignoreCase&&e.toLowerCase()===o.toLowerCase()},removeEmpty:function(e){for(var o=[],r=0;r<e.length;r++)e[r]&&o.push(e[r]);return o},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function H(n,e,o,r,u){for(var t=[],f;e;)t.push(e),f=e.previousComponent,delete e.previousComponent,e=f;t.reverse();for(var i=0,s=t.length,l=0,d=0;i<s;i++){var p=t[i];if(p.removed){if(p.value=n.join(r.slice(d,d+p.count)),d+=p.count,i&&t[i-1].added){var h=t[i-1];t[i-1]=t[i],t[i]=h}}else{if(!p.added&&u){var m=o.slice(l,l+p.count);m=m.map(function(v,g){var L=r[d+g];return L.length>v.length?L:v}),p.value=n.join(m)}else p.value=n.join(o.slice(l,l+p.count));l+=p.count,p.added||(d+=p.count)}}var a=t[s-1];return s>1&&typeof a.value=="string"&&(a.added||a.removed)&&n.equals("",a.value)&&(t[s-2].value+=a.value,t.pop()),t}var R=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,F=/\S/,N=new C;N.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!F.test(n)&&!F.test(e)};N.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),o=0;o<e.length-1;o++)!e[o+1]&&e[o+2]&&R.test(e[o])&&R.test(e[o+2])&&(e[o]+=e[o+2],e.splice(o+1,2),o--);return e};var I=new C;I.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
2
- `));var e=[],o=n.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var r=0;r<o.length;r++){var u=o[r];r%2&&!this.options.newlineIsToken?e[e.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),e.push(u))}return e};function Q(n,e,o){return I.diff(n,e,o)}var U=new C;U.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var X=new C;X.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function w(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(e){return typeof e}:w=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(n)}var K=Object.prototype.toString,T=new C;T.useLongestToken=!0;T.tokenize=I.tokenize;T.castInput=function(n){var e=this.options,o=e.undefinedReplacement,r=e.stringifyReplacer,u=r===void 0?function(t,f){return typeof f>"u"?o:f}:r;return typeof n=="string"?n:JSON.stringify(z(n,null,null,u),u," ")};T.equals=function(n,e){return C.prototype.equals.call(T,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function z(n,e,o,r,u){e=e||[],o=o||[],r&&(n=r(u,n));var t;for(t=0;t<e.length;t+=1)if(e[t]===n)return o[t];var f;if(K.call(n)==="[object Array]"){for(e.push(n),f=new Array(n.length),o.push(f),t=0;t<n.length;t+=1)f[t]=z(n[t],e,o,r,u);return e.pop(),o.pop(),f}if(n&&n.toJSON&&(n=n.toJSON()),w(n)==="object"&&n!==null){e.push(n),f={},o.push(f);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),t=0;t<i.length;t+=1)s=i[t],f[s]=z(n[s],e,o,r,s);e.pop(),o.pop()}else f=n;return f}var _=new C;_.tokenize=function(n){return n.slice()};_.join=_.removeEmpty=function(n){return n};const b=A({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function o(i,s){const l=Q(i.trim(),s.trim()),d=[],p=[],m=[];for(const h of l){const a=h.value.trimEnd().split(`
3
- `);for(const v of a)h.added?(d.push(m.length),m.push(v)):(h.removed&&p.push(m.length),m.push(v))}return{added:d,removed:p,result:m.join(`
4
- `)}}const r=B(()=>o(e.from,e.to));function u(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,l=>(s++,r.value.added.includes(s-1)?'class="line line-added"':r.value.removed.includes(s-1)?'class="line line-removed"':l))}const t=J();V(f);function f(){const i=Y(t);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const l=W;return Z(),k(l,{ref_key:"elRef",ref:t,code:G(r).result,lang:i.lang,"transform-rendered":u,onLoaded:f},null,8,["code","lang"])}}});export{b as _};
@@ -1 +0,0 @@
1
- import{d as O,ao as ae,bS as oe,P as se,r as U,Q as E,bT as F,aE as le,w as re,aD as ue,a1 as ie,a as de,L as f,M as h,f as t,o as l,h as _,j as u,k as r,i as c,l as M,m as i,F as x,n as A,t as k,G as R,ae as L,v as d,p as z,ay as ce,I as pe,bj as _e,af as me,bU as G,_ as fe,X as ve,a6 as ye,at as ge,A as he,U as ke,aK as be}from"./C_tLznPO.js";import{_ as xe}from"./BiRcA7Ly.js";import{_ as we}from"./Dm9RYIcI.js";import{_ as Ce}from"./BI3hykgO.js";import{e as Ke}from"./B3uNdhXb.js";const Se={class:"h-[48px] flex items-center justify-between gap1 px-3"},Ve={class:"w-full text-sm"},$e=["value"],Ne=["onClick"],Ie=r("div",{"x-divider":""},null,-1),je={key:0,"h-full":"","of-hidden":"",flex:"~ col"},De={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},Ue={class:"flex items-center gap-4"},Me={key:1},Ae=["onKeyup"],Le=r("br",null,null,-1),Be={key:0,op50:""},Pe={key:1},Te=r("code",null,"nitro.storage",-1),qe=r("br",null,null,-1),Ee={"font-bold":""},Fe=r("br",null,null,-1),Re={"text-sm":""},ze=r("br",null,null,-1),Ge=O({__name:"StorageDetails",async setup(Q){let p,g;const w=ae(),C=oe(),K=se(),b=U(""),v=U(""),s=E("storage:current",""),e=U(),y=E("storage:file:state",""),{data:S}=([p,g]=F(()=>G("storageMounts",()=>f.getStorageMounts())),p=await p,g(),p),{data:V,refresh:B}=([p,g]=F(async()=>G("storageKeys",async()=>s.value?await f.getStorageKeys(s.value):[])),p=await p,g(),p),W=C.hook("storage:key:update",async(n,a)=>{if(!(!s.value||n.split(":")[0]!==s.value)&&(await B(),y.value===n)){if(a==="remove")return K.replace({query:{storage:s.value}});await N(y.value)}});le(W),re(s,()=>{B(),y.value=""}),ue(async()=>{if(!y.value){e.value=null;return}N(y.value)}),ie("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&(I(),n.preventDefault())});function $(n){return n.replace(`${s.value}:`,"")}const X=de(()=>V.value?V.value.filter(n=>n.includes(b.value)):[]);async function N(n){const a=await f.getStorageItem(await h(),n);e.value={key:n,updatedKey:$(n),editingKey:!1,content:a,updatedContent:a}}async function H(){if(!v.value||!s.value)return;const n=`${s.value}:${v.value}`;V.value?.includes(n)||await f.setStorageItem(await h(),n,""),K.replace({query:{storage:s.value,key:n}}),v.value=""}async function I(){e.value&&(await f.setStorageItem(await h(),e.value.key,e.value.updatedContent),await N(e.value.key))}async function J(){!e.value||!s.value||(await f.removeStorageItem(await h(),e.value.key),e.value=null)}async function Y(){if(!e.value||!s.value)return;const n=`${s.value}:${e.value.updatedKey}`,a=await h();await f.setStorageItem(a,n,e.value.updatedContent),await f.removeStorageItem(a,e.value.key),K.replace({query:{storage:s.value,key:n}})}return(n,a)=>{const j=fe,Z=xe,D=ve,ee=ye,P=we,T=ge,q=he,te=ke,ne=Ce;return t(s)?(l(),_(te,{key:0,"storage-key":"tab-storage"},{left:u(()=>[r("div",Se,[c(j,{icon:"carbon-chevron-left","ml--1":"",border:!1,onClick:a[0]||(a[0]=o=>s.value="")}),r("div",Ve,[c(Z,{modelValue:t(s),"onUpdate:modelValue":a[1]||(a[1]=o=>M(s)?s.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(l(!0),i(x,null,A(t(S),(o,m)=>(l(),i("option",{key:m,value:m},k(m),9,$e))),128))]),_:1},8,["modelValue"])])]),c(D,{modelValue:t(b),"onUpdate:modelValue":a[2]||(a[2]=o=>M(b)?b.value=o:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(l(!0),i(x,null,A(t(X),o=>(l(),i(x,{key:o},[r("button",{block:"","w-full":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:R(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:m=>y.value=o},k($(o)),11,Ne),Ie],64))),128)),c(D,{modelValue:t(v),"onUpdate:modelValue":a[3]||(a[3]=o=>M(v)?v.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:L(H,["enter"])},null,8,["modelValue"])]),right:u(()=>[t(e)?.key?(l(),i("div",je,[r("div",De,[r("div",Ue,[t(e).editingKey?(l(),_(D,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":a[4]||(a[4]=o=>t(e).updatedKey=o),onKeyup:L(Y,["enter"])},null,8,["modelValue"])):(l(),i("code",Me,[d(k($(t(e).key))+" ",1),c(ee,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:a[5]||(a[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?z("",!0):(l(),_(j,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:R({"border-green":t(e).content!==t(e).updatedContent}),onClick:I},{default:u(()=>[d(" Save ")]),_:1},8,["disabled","class"]))]),r("div",null,[c(j,{n:"red xs",onClick:J},{default:u(()=>[d(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(l(),_(t(Ke),ce({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":a[6]||(a[6]=o=>t(e).updatedContent=o),class:[[t(w)==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):pe((l(),i("textarea",{key:1,"onUpdate:modelValue":a[7]||(a[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:L(_e(I,["ctrl"]),["enter"])},null,40,Ae)),[[me,t(e).updatedContent]])])):(l(),_(q,{key:1},{default:u(()=>[c(T,{px6:"",py4:""},{default:u(()=>[d(" Select one key to start."),Le,d("Learn more about "),c(P,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[d(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(l(),_(q,{key:1},{default:u(()=>[Object.keys(t(S)).length?(l(),i("p",Be," Select one storage to start: ")):(l(),i("p",Pe,[d(" No custom storage defined in "),Te,d("."),qe,d(" Learn more about "),c(P,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[d(" Nitro storage ")]),_:1})])),(l(!0),i(x,null,A(t(S),(o,m)=>(l(),_(T,{key:m,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Oe=>s.value=m},{default:u(()=>[r("span",Ee,k(m),1),Fe,r("span",Re,k(o.driver)+" driver",1),ze,o.base?(l(),_(ne,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):z("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),Ye=O({__name:"storage",setup(Q){return(p,g)=>{const w=Ge,C=be;return l(),_(C,null,{default:u(()=>[c(w)]),_:1})}}});export{Ye as default};
@@ -1,2 +0,0 @@
1
- import{$ as Oe}from"./C_tLznPO.js";function Ee(t){const e=t.length;let n=-1,s,r="";const i=t.charCodeAt(0);for(;++n<e;){if(s=t.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&e===1&&s===45){r+=`\\${t.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const K=Ee;function L(t=[]){return Array.isArray(t)?t:[t]}function I(t){return Array.from(new Set(t))}function te(t,e){return t.reduce((n,s)=>(n.findIndex(i=>e(s,i))===-1&&n.push(s),n),[])}function k(t){return typeof t=="string"}function B(t){return k(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ke(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>B(e)):[t]:[B(t)]}function je(t){return t.filter(([e,n],s)=>{if(e.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function X(t){return t==null?"":je(t).map(([e,n])=>n!=null&&typeof n!="function"?`${e}:${n};`:void 0).filter(Boolean).join("")}function U(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ge(t,e,n=!1){const s=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return U(s)&&U(r)&&Object.keys(r).forEach(o=>{U(s[o])&&U(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=ge(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function G(t){let e,n,s;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(s=t[e])&&typeof s=="object"?G(s):s;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:G(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(s=t[e])&&typeof s=="object"?G(s):s;return n}return t}function Le(t){return k(t[0])}function Pe(t){return k(t[0])}function Fe(t){return typeof t=="function"?{match:t}:t}function ne(t){return t.length===3}function re(t){return t!=null}function Te(){}var ze=Object.defineProperty,Ie=(t,e,n)=>e in t?ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ne=(t,e,n)=>(Ie(t,e+"",n),n);class De{constructor(){Ne(this,"_map",new Map)}get(e,n){const s=this._map.get(e);if(s)return s.get(n)}getFallback(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,s),r.get(n)}set(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,s),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>e(i,n,r)))}}class Re extends Map{getFallback(e,n){const s=this.get(e);return s===void 0?(this.set(e,n),n):s}map(e){const n=[];return this.forEach((s,r)=>{n.push(e(s,r))}),n}flatMap(e){const n=[];return this.forEach((s,r)=>{n.push(...e(s,r))}),n}}var Ve=Object.defineProperty,Be=(t,e,n)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ue=(t,e,n)=>(Be(t,e+"",n),n);class ye extends Set{constructor(e){super(e),Ue(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function Z(t){return t instanceof ye}const H={};function He(t=["-",":"]){const e=t.join("|");return H[e]||(H[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),H[e].lastIndex=0,H[e]}function Ge(t,e=["-",":"],n=5){const s=He(e);let r,i=t.toString();const o=new Set,a=new Map;do r=!1,i=i.replace(s,(u,c,h,y,v)=>{if(!e.includes(h))return u;r=!0,o.add(c+h);const _=v+c.length+h.length+1,g={length:u.length,items:[]};a.set(v,g);for(const p of[...y.matchAll(/\S+/g)]){const M=_+p.index;let m=a.get(M)?.items;m?a.delete(M):m=[{offset:M,length:p[0].length,className:p[0]}];for(const d of m)d.className=d.className==="~"?c:d.className.replace(/^(!?)(.*)/,`$1${c}${h}$2`),g.items.push(d)}return"$".repeat(u.length)}),n-=1;while(r&&n);let l;if(typeof t=="string"){l="";let u=0;for(const[c,h]of a)l+=t.slice(u,c),l+=h.items.map(y=>y.className).join(" "),u=c+h.length;l+=t.slice(u)}else{l=t;for(const[u,c]of a)l.overwrite(u,u+c.length,c.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:a,get expanded(){return l.toString()}}}function We(t,e=["-",":"],n=5){const s=Ge(t,e,n);return typeof t=="string"?s.expanded:t}const se=new Set;function we(t){se.has(t)||(console.warn("[unocss]",t),se.add(t))}const Ye=/[\\:]?[\s'"`;{}]+/g;function qe(t){return t.split(Ye)}const Ke={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return qe(t)}};function Xe(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const W="default",Q="preflights",Ze="shortcuts",Je="imports",Qe={[Je]:-200,[Q]:-100,[Ze]:-10,[W]:0};function ve(t){return L(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function et(t){let e=typeof t=="function"?t():t;if(ie in e)return e;e={...e},Object.defineProperty(e,ie,{value:!0,enumerable:!1});const n=e.shortcuts?ve(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&e.prefix&&(i.prefix=L(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(s),e.rules?.forEach(s)}return e}function be(t){const e=et(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(L).flatMap(be);return[e,...n]}function tt(t){if(t.length===0)return{};const e=[],n=[];let s=!1;for(const r of t)r.pipeline===!1?s=!0:(e.push(r.pipeline?.include??[]),n.push(r.pipeline?.exclude??[]));return{filesystem:I(t.flatMap(r=>r.filesystem??[])),inline:I(t.flatMap(r=>r.inline??[])),plain:I(t.flatMap(r=>r.plain??[])),pipeline:s?!1:{include:I(ae(...e)),exclude:I(ae(...n))}}}function oe(t={},e={}){const n=Object.assign({},e,t),s=te((n.presets||[]).flatMap(L).flatMap(be),(f,w)=>f.name===w.name),r=[...s.filter(f=>f.enforce==="pre"),...s.filter(f=>!f.enforce),...s.filter(f=>f.enforce==="post")],i=[...r,n],o=[...i].reverse(),a=Object.assign({},Qe,...i.map(f=>f.layers));function l(f){return I(i.flatMap(w=>L(w[f]||[])))}const u=l("extractors");let c=o.find(f=>f.extractorDefault!==void 0)?.extractorDefault;c===void 0&&(c=Ke),c&&!u.includes(c)&&u.unshift(c),u.sort((f,w)=>(f.order||0)-(w.order||0));const h=l("rules"),y={},v=h.length,_=h.map((f,w)=>{if(Le(f)){L(f[2]?.prefix||"").forEach(E=>{y[E+f[0]]=[w,f[1],f[2],f]});return}return[w,...f]}).filter(Boolean).reverse();let g=nt(i.map(f=>f.theme));const p=l("extendTheme");for(const f of p)g=f(g)||g;const M={templates:I(i.flatMap(f=>L(f.autocomplete?.templates))),extractors:i.flatMap(f=>L(f.autocomplete?.extractors)).sort((f,w)=>(f.order||0)-(w.order||0)),shorthands:rt(i.map(f=>f.autocomplete?.shorthands||{}))};let m=l("separators");m.length||(m=[":","-"]);const d=l("content"),x=tt(d),S={mergeSelectors:!0,warn:!0,sortLayers:f=>f,...n,blocklist:l("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:g,rulesSize:v,rulesDynamic:_,rulesStaticMap:y,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:M,variants:l("variants").map(Fe).sort((f,w)=>(f.order||0)-(w.order||0)),shortcuts:ve(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:m,details:n.details??n.envMode==="dev",content:x,transformers:te(l("transformers"),(f,w)=>f.name===w.name)};for(const f of i)f?.configResolved?.(S);return S}function nt(t){return t.map(e=>e?G(e):{}).reduce((e,n)=>ge(e,n),{})}function rt(t){return t.reduce((e,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...e,...s}},{})}function ae(...t){return t.flatMap(st)}function st(t){return Array.isArray(t)?t:t?[t]:[]}const it="0.62.3";var ot=Object.defineProperty,at=(t,e,n)=>e in t?ot(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(at(t,typeof e!="symbol"?e+"":e,n),n);const V={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector"};class ct{constructor(e={},n={}){this.userConfig=e,this.defaults=n,R(this,"version",it),R(this,"_cache",new Map),R(this,"config"),R(this,"blocked",new Set),R(this,"parentOrders",new Map),R(this,"events",Xe()),this.config=oe(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=oe(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,s=new Set){const r={original:e,code:e,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(Z(o)&&Z(s))for(const a of o)s.setCount(a,s.getCount(a)+o.getCount(a));else for(const a of o)s.add(a)}return s}makeContext(e,n){const s={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:V,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(e,n){if(this.blocked.has(e))return;const s=`${e}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=e;for(const u of this.config.preprocess)r=u(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,r);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const a=await this.expandShortcut(o.currentSelector,o),l=a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(re);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(e,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:a=!1,extendedInfo:l=!1}=n,u=this.config.outputToCssLayers,c=k(e)?await this.applyExtractors(e,s,l?new ye:new Set):Array.isArray(e)?new Set(e):e;if(o){const S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(f=>typeof f=="function"?f(S):f).forEach(f=>{c.has(f)||c.add(f)})}const h=a?"":`
2
- `,y=new Set([W]),v=l?new Map:new Set,_=new Map;let g={};const p=Array.from(c).map(async S=>{if(v.has(S))return;const f=await this.parseToken(S);if(f!=null){v instanceof Map?v.set(S,{data:f,count:Z(c)?c.getCount(S):-1}):v.add(S);for(const w of f){const A=w[3]||"",E=w[4]?.layer;_.has(A)||_.set(A,[]),_.get(A).push(w),E&&y.add(E)}}});await Promise.all(p),await(async()=>{if(!i)return;const S={generator:this,theme:this.config.theme},f=new Set([]);this.config.preflights.forEach(({layer:w=Q})=>{y.add(w),f.add(w)}),g=Object.fromEntries(await Promise.all(Array.from(f).map(async w=>{const E=(await Promise.all(this.config.preflights.filter(P=>(P.layer||Q)===w).map(async P=>await P.getCSS(S)))).filter(Boolean).join(h);return[w,E]})))})();const M=this.config.sortLayers(Array.from(y).sort((S,f)=>(this.config.layers[S]??0)-(this.config.layers[f]??0)||S.localeCompare(f))),m={},d=(S=W)=>{if(m[S])return m[S];let f=Array.from(_).sort((A,E)=>(this.parentOrders.get(A[0])??0)-(this.parentOrders.get(E[0])??0)||A[0]?.localeCompare(E[0]||"")||0).map(([A,E])=>{const P=E.length,T=E.filter(b=>(b[4]?.layer||W)===S).sort((b,C)=>b[0]-C[0]||(b[4]?.sort||0)-(C[4]?.sort||0)||b[5]?.currentSelector?.localeCompare(C[5]?.currentSelector??"")||b[1]?.localeCompare(C[1]||"")||b[2]?.localeCompare(C[2]||"")||0).map(([,b,C,,O,,j])=>[[[(b&&ut(b,r))??"",O?.sort??0]],C,!!(j??O?.noMerge)]);if(!T.length)return;const z=T.reverse().map(([b,C,O],j)=>{if(!O&&this.config.mergeSelectors)for(let D=j+1;D<P;D++){const F=T[D];if(F&&!F[2]&&(b&&F[0]||b==null&&F[0]==null)&&F[1]===C)return b&&F[0]&&F[0].push(...b),null}const N=b?I(b.sort((D,F)=>D[1]-F[1]||D[0]?.localeCompare(F[0]||"")||0).map(D=>D[0]).filter(Boolean)):[];return N.length?`${N.join(`,${h}`)}{${C}}`:C}).filter(Boolean).reverse().join(h);if(!A)return z;const $=A.split(" $$ ");return`${$.join("{")}{${h}${z}${h}${"}".repeat($.length)}`}).filter(Boolean).join(h);if(i&&(f=[g[S],f].filter(Boolean).join(h)),u&&f){let A=typeof u=="object"?u.cssLayerName?.(S):void 0;A!==null&&(A||(A=S),f=`@layer ${A}{${h}${f}${h}}`)}const w=a?"":`/* layer: ${S} */${h}`;return m[S]=f?w+f:""},x=(S=M,f)=>S.filter(w=>!f?.includes(w)).map(w=>d(w)||"").filter(Boolean).join(h);return{get css(){return x()},layers:M,matched:v,getLayers:x,getLayer:d}}async matchVariants(e,n){const s=new Set,r=[];let i=n||e,o=!0;const a={rawSelector:e,theme:this.config.theme,generator:this};for(;o;){o=!1;for(const l of this.config.variants){if(!l.multiPass&&s.has(l))continue;let u=await l.match(i,a);if(u){if(k(u)){if(u===i)continue;u={matcher:u}}i=u.matcher??i,r.unshift(u),s.add(l),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,r,s]}applyVariants(e,n=e[4],s=e[1]){const i=n.slice().sort((u,c)=>(u.order||0)-(c.order||0)).reduceRight((u,c)=>h=>{const y=c.body?.(h.entries)||h.entries,v=Array.isArray(c.parent)?c.parent:[c.parent,void 0];return(c.handle??pt)({...h,entries:y,selector:c.selector?.(h.selector,y)||h.selector,parent:v[0]||h.parent,parentOrder:v[1]||h.parentOrder,layer:c.layer||h.layer,sort:c.sort||h.sort},u)},u=>u)({prefix:"",selector:ht(s),pseudo:"",entries:e[2]}),{parent:o,parentOrder:a}=i;o!=null&&a!=null&&this.parentOrders.set(o,a);const l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(l);return l}constructCustomCSS(e,n,s){const r=B(n);if(k(r))return r;const{selector:i,entries:o,parent:a}=this.applyVariants([0,s||e.rawSelector,r,void 0,e.variantHandlers]),l=`${i}{${X(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,n,s=!1,r){const[i,o,a]=k(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const l=this.config.rulesStaticMap[o];if(l&&l[1]&&(s||!l[2]?.internal)){this.config.details&&n.rules.push(l[3]);const c=l[0],h=B(l[1]),y=l[2];return k(h)?[[c,h,y]]:[[c,i,h,y,a]]}n.variantHandlers=a;const{rulesDynamic:u}=this.config;for(const[c,h,y,v]of u){if(v?.internal&&!s)continue;let _=o;if(v?.prefix){const m=L(v.prefix);if(r){const d=L(r);if(!m.some(x=>d.includes(x)))continue}else{const d=m.find(x=>o.startsWith(x));if(d==null)continue;_=o.slice(d.length)}}const g=_.match(h);if(!g)continue;let p=await y(g,n);if(!p)continue;if(this.config.details&&n.rules.push([h,y,v]),typeof p!="string")if(Symbol.asyncIterator in p){const m=[];for await(const d of p)d&&m.push(d);p=m}else Symbol.iterator in p&&!Array.isArray(p)&&(p=Array.from(p).filter(re));const M=ke(p).filter(m=>m.length);if(M.length)return M.map(m=>{if(k(m))return[c,m,v];let d=a;for(const x of m)x[0]===V.variants?d=[...L(x[1]),...d]:x[0]===V.parent?d=[{parent:x[1]},...d]:x[0]===V.selector&&(d=[{selector:x[1]},...d]);return[c,i,m,v,d]})}}stringifyUtil(e,n){if(!e)return;if(ne(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:a,noMerge:l}=this.applyVariants(e),u=X(r);if(!u)return;const{layer:c,sort:h,...y}=e[3]??{},v={...y,layer:o??c,sort:a??h};return[e[0],s,u,i,v,this.config.details?n:void 0,l]}async expandShortcut(e,n,s=5){if(s===0)return;const r=this.config.details?a=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(a)}:Te;let i,o;for(const a of this.config.shortcuts){let l=e;if(a[2]?.prefix){const c=L(a[2].prefix).find(h=>e.startsWith(h));if(c==null)continue;l=e.slice(c.length)}if(Pe(a)){if(a[0]===l){i=i||a[2],o=a[1],r(a);break}}else{const u=l.match(a[0]);if(u&&(o=a[1](u,n)),o){i=i||a[2],r(a);break}}}if(o&&(o=L(o).map(a=>k(a)?We(a.trim()).split(/\s+/g):a).flat()),!o){const[a,l]=k(e)?await this.matchVariants(e):e;if(a!==l){const u=await this.expandShortcut(l,n,s-1);u&&(o=u[0].map(c=>k(c)?a.replace(l,c):c))}}if(o)return[(await Promise.all(o.map(async a=>(k(a)?(await this.expandShortcut(a,n,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,n,s,r={layer:this.config.shortcutsLayer}){const i=new Re,o=(await Promise.all(I(s).map(async c=>{const h=k(c)?await this.parseUtil(c,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",B(c),void 0,[]]];return!h&&this.config.warn&&we(`unmatched utility "${c}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((c,h)=>c[0]-h[0]),[a,,l]=e,u=[];for(const c of o){if(ne(c)){u.push([c[0],void 0,c[1],void 0,c[2],n,void 0]);continue}const{selector:h,entries:y,parent:v,sort:_,noMerge:g,layer:p}=this.applyVariants(c,[...c[4],...l],a);i.getFallback(p??r.layer,new De).getFallback(h,v,[[],c[0]])[0].push([y,!!(g??c[3]?.noMerge),_??0])}return u.concat(i.flatMap((c,h)=>c.map(([y,v],_,g)=>{const p=(m,d,x)=>{const S=Math.max(...x.map(w=>w[1])),f=x.map(w=>w[0]);return(m?[f.flat(1)]:f).map(w=>{const A=X(w);if(A)return[v,_,A,g,{...r,noMerge:d,sort:S,layer:h},n,void 0]})};return[[y.filter(([,m])=>m).map(([m,,d])=>[m,d]),!0],[y.filter(([,m])=>!m).map(([m,,d])=>[m,d]),!1]].map(([m,d])=>[...p(!1,d,m.filter(([x])=>x.some(S=>S[0]===V.shortcutsNoMerge))),...p(!0,d,m.filter(([x])=>x.every(S=>S[0]!==V.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(n=>Array.isArray(n)?n[0]:n).some(n=>typeof n=="function"?n(e):k(n)?n===e:n.test(e))}getBlocked(e){const n=this.config.blocklist.find(s=>{const r=Array.isArray(s)?s[0]:s;return typeof r=="function"?r(e):k(r)?r===e:r.test(e)});return n?Array.isArray(n)?n:[n,void 0]:void 0}}function lt(t,e){return new ct(t,e)}const Se=/\s\$\$\s+/g;function ft(t){return Se.test(t)}function ut(t,e){return ft(t)?t.replace(Se,e?` ${e} `:" "):e?`${e} ${t}`:t}const ce=/^\[(.+?)(~?=)"(.*)"\]$/;function ht(t){return ce.test(t)?t.replace(ce,(e,n,s,r)=>`[${K(n)}${s}"${K(r)}"]`):`.${K(t)}`}function pt(t,e){return e(t)}var le={};const dt=Object.freeze({left:0,top:0,width:16,height:16}),Y=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xe=Object.freeze({...dt,...Y}),mt=Object.freeze({...xe,body:"",hidden:!1}),gt=Object.freeze({width:null,height:null}),$e=Object.freeze({...gt,...Y});function yt(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function fe(t,e){const n=yt(t,e);for(const s in mt)s in Y?s in t&&!(s in n)&&(n[s]=Y[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function wt(t,e){const n=t.icons,s=t.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=s[o]&&s[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function ue(t,e,n){const s=t.icons,r=t.aliases||Object.create(null);let i={};function o(a){i=fe(s[a]||r[a],i)}return o(e),n.forEach(o),fe(t,i)}function vt(t,e){if(t.icons[e])return ue(t,e,[]);const n=wt(t,[e])[e];return n?ue(t,e,n):null}const bt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,St=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function q(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(bt);if(s===null||!s.length)return t;const r=[];let i=s.shift(),o=St.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*e*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function xt(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const r=t.indexOf(">",s),i=t.indexOf("</"+e);if(r===-1||i===-1)break;const o=t.indexOf(">",i);if(o===-1)break;n+=t.slice(r+1,i).trim(),t=t.slice(0,s).trim()+t.slice(o+1)}return{defs:n,content:t}}function $t(t,e){return t?"<defs>"+t+"</defs>"+e:e}function _t(t,e,n){const s=xt(t);return $t(s.defs,e+s.content+n)}const ee=t=>t==="unset"||t==="undefined"||t==="none";function Ct(t,e){const n={...xe,...t},s={...$e,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(g=>{const p=[],M=g.hFlip,m=g.vFlip;let d=g.rotate;M?m?d+=2:(p.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),p.push("scale(-1 1)"),r.top=r.left=0):m&&(p.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),p.push("scale(1 -1)"),r.top=r.left=0);let x;switch(d<0&&(d-=Math.floor(d/4)*4),d=d%4,d){case 1:x=r.height/2+r.top,p.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:p.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:x=r.width/2+r.left,p.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}d%2===1&&(r.left!==r.top&&(x=r.left,r.left=r.top,r.top=x),r.width!==r.height&&(x=r.width,r.width=r.height,r.height=x)),p.length&&(i=_t(i,'<g transform="'+p.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=r.width,u=r.height;let c,h;o===null?(h=a===null?"1em":a==="auto"?u:a,c=q(h,l/u)):(c=o==="auto"?l:o,h=a===null?q(c,u/l):a==="auto"?u:a);const y={},v=(g,p)=>{ee(p)||(y[g]=p.toString())};v("width",c),v("height",h);const _=[r.left,r.top,l,u];return y.viewBox=_.join(" "),{attributes:y,viewBox:_,body:i}}function At(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Mt(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),At(e)}function Ot(t){return t.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}const Et=/\swidth\s*=\s*["']([\w.]+)["']/,kt=/\sheight\s*=\s*["']([\w.]+)["']/,J=/<svg\s+/;function jt(t,e,n){const s=t.slice(0,t.indexOf(">")),r=(i,o)=>{const a=o.exec(s),l=a!=null,u=e[i];return!u&&!ee(u)&&(typeof n=="number"?n>0&&(e[i]=q(a?.[1]??"1em",n)):a&&(e[i]=a[1])),l};return[r("width",Et),r("height",kt)]}async function _e(t,e,n,s,r,i){const{scale:o,addXmlNs:a=!1}=s??{},{additionalProps:l={},iconCustomizer:u}=s?.customizations??{},c=await r?.()??{};await u?.(e,n,c),Object.keys(l).forEach(g=>{const p=l[g];p!=null&&(c[g]=p)}),i?.(c);const[h,y]=jt(t,c,o);a&&(!t.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const v=Object.keys(c).map(g=>g==="width"&&h||g==="height"&&y?null:`${g}="${c[g]}"`).filter(g=>g!=null);if(v.length&&(t=t.replace(J,`<svg ${v.join(" ")} `)),s){const{defaultStyle:g,defaultClass:p}=s;p&&!t.includes("class=")&&(t=t.replace(J,`<svg class="${p}" `)),g&&!t.includes("style=")&&(t=t.replace(J,`<svg style="${g}" `))}const _=s?.usedProps;return _&&(Object.keys(l).forEach(g=>{const p=c[g];p!=null&&(_[g]=p)}),typeof c.width<"u"&&c.width!==null&&(_.width=c.width),typeof c.height<"u"&&c.height!==null&&(_.height=c.height)),t}async function he(t,e,n,s){let r;try{if(typeof t=="function")r=await t(n);else{const i=t[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${e}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,e,n):r,r.startsWith("<svg")?await _e(s?.customizations?.trimCustomSvg===!0?Ot(r):r,e,n,s,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function Ce(t,e,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=vt(t,o),r){let a={...$e};typeof i=="function"&&(r=Object.assign({},r),a=i(a,r,`${e}:${o}`)??a);const{attributes:{width:l,height:u,...c},body:h}=Ct(r,a),y=s?.scale;return await _e(`<svg >${h}</svg>`,e,o,s,()=>({...c}),v=>{const _=(g,p)=>{const M=v[g];let m;if(!ee(M)){if(M)return;typeof y=="number"?y&&(m=q(p??"1em",y)):m=p}m?v[g]=m:delete v[g]};_("width",l),_("height",u)})}}const Ae=async(t,e,n)=>{const s=n?.customCollections?.[t];if(s)if(typeof s=="function"){let r;try{r=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(r){if(typeof r=="string")return await he(()=>r,t,e,n);if("icons"in r){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await Ce(r,t,i,n)}}}else return await he(s,t,e,n)};function Lt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Pt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];const Ft=Lt(Pt),Tt=3;function zt(t){return(e={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,collections:o,extraProperties:a={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:c,layer:h="icons",unit:y,processor:v}=e,_=It(),g={addXmlNs:!0,scale:n,customCollections:o,autoInstall:u,cwd:c,warn:void 0,customizations:{...l,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(M,m,d){await l.iconCustomizer?.(M,m,d),y&&(d.width||(d.width=`${n}${y}`),d.height||(d.height=`${n}${y}`))}}};let p;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async M=>{let[m,d,x=s]=M,S="",f="",w;p=p||await t(e);const A={};if(d.includes(":"))[S,f]=d.split(":"),w=await p(S,f,{...g,usedProps:A});else{const T=d.split(/-/g);for(let z=Tt;z>=1&&(S=T.slice(0,z).join("-"),f=T.slice(z).join("-"),w=await p(S,f,{...g,usedProps:A}),!w);z--);}if(!w){i&&!_.isESLint&&we(`failed to load icon "${m}"`);return}let E;const P=`url("data:image/svg+xml;utf8,${Mt(w)}")`;return x==="auto"&&(x=w.includes("currentColor")?"mask":"bg"),x==="mask"?E={"--un-icon":P,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...A}:E={background:`${P} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...A},v?.(E,{collection:S,icon:f,svg:w,mode:x}),E},{layer:h,prefix:r}]]}}}function Me(t,e){const n=new Map;function s(r){if(Ft.includes(r))return n.has(r)||n.set(r,t(`${e}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,i,o)=>{let a=await Ae(r,i,o);if(a)return a;const l=await s(r);if(l){const u=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Ce(l,r,u,o)}return a}}function It(){const t=typeof process<"u"&&process.stdout&&!process.versions.deno,e=t&&!!le.VSCODE_CWD,n=t&&!!le.ESLINT;return{isNode:t,isVSCode:e,isESLint:n}}function Nt(t){return Me(Oe,t)}const Dt=zt(async t=>{const e=t?.customFetch,n=t?.cdn;return e&&n?Me(e,n):n?Nt(n):Ae});function Rt(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function pe(t){return t.charAt(0).toUpperCase()+t.slice(1)}function de(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var me=["Webkit","Moz","ms"];function Vt(t){const e={};function n(s){const r=e[s];if(r)return r;let i=Rt(s);if(i!=="filter"&&i in t)return e[s]=de(i);i=pe(i);for(let o=0;o<me.length;o++){const a=`${me[o]}${i}`;if(a in t)return e[s]=de(pe(a))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Bt(t){return t.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}function Ut(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,s=()=>n.documentElement,r=e.__unocss||{},i=Object.assign({},t,r.runtime),o=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=L(o.postprocess)).unshift(Vt(n.createElement("div").style)),i.configResolved?.(r,o);const l=lt(r,o),u=$=>i.inject?i.inject($):s().prepend($),c=()=>i.rootElement?i.rootElement():n.body,h=new Map;let y=!0;const v=new Set;let _,g,p=[];const M=()=>new Promise($=>{p.push($),g!=null&&clearTimeout(g),g=setTimeout(()=>x().then(()=>{const b=p;p=[],b.forEach(C=>C())}),0)});function m($,b=!1){if($.nodeType!==1)return;const C=$;C.hasAttribute(a)&&C.removeAttribute(a),b&&C.querySelectorAll(`[${a}]`).forEach(O=>{O.removeAttribute(a)})}function d($,b){let C=h.get($);if(!C)if(C=n.createElement("style"),C.setAttribute("data-unocss-runtime-layer",$),h.set($,C),b==null)u(C);else{const O=d(b),j=O.parentNode;j?j.insertBefore(C,O.nextSibling):u(C)}return C}async function x(){const $=[...v],b=await l.generate($);return b.layers.reduce((O,j)=>(d(j,O).innerHTML=b.getLayer(j)??"",j),void 0),$.filter(O=>!b.matched.has(O)).forEach(O=>v.delete(O)),{...b,getStyleElement:O=>h.get(O),getStyleElements:()=>h}}async function S($){const b=v.size;await l.applyExtractors($,void 0,v),b!==v.size&&await M()}async function f($=c()){const b=$&&$.outerHTML;b&&(await S(`${b} ${Bt(b)}`),m(s()),m($,!0))}const w=new MutationObserver($=>{y||$.forEach(async b=>{if(b.target.nodeType!==1)return;const C=b.target;for(const O of h)if(C===O[1])return;if(b.type==="childList")b.addedNodes.forEach(async O=>{if(O.nodeType!==1)return;const j=O;_&&!_(j)||(await S(j.outerHTML),m(j))});else{if(_&&!_(C))return;if(b.attributeName!==a){const O=Array.from(C.attributes).map(N=>N.value?`${N.name}="${N.value}"`:N.name).join(" "),j=`<${C.tagName.toLowerCase()} ${O}>`;await S(j)}m(C)}})});let A=!1;function E(){if(A)return;const $=i.observer?.target?i.observer.target():c();$&&(w.observe($,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),A=!0)}function P(){i.bypassDefined&&Ht(l.blocked),f(),E()}function T(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",P):P()}const z=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract($){k($)||($.forEach(b=>v.add(b)),$=""),await S($)},extractAll:f,inspect($){_=$},toggleObserver($){$===void 0?y=!y:y=!!$,!A&&!y&&T()},update:x,presets:e.__unocss_runtime?.presets??{}};i.ready?.(z)!==!1&&(y=!1,T())}function Ht(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),t.add(r))})}catch{continue}}return t}Ut({defaults:{presets:[Dt({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
@@ -1 +0,0 @@
1
- import{_ as x}from"./DJn5wykB.js";import{d as $,o as e,m as r,F as b,n as B,h as f,j as a,aa as w,ay as F,k as S,am as O,a as k,a2 as V,f as o,i as n,p as u,v as j,I as E,_ as P}from"./C_tLznPO.js";import{_ as R}from"./DqpvVAaa.js";import{_ as A}from"./BOV_C5BD.js";import"./BkwfBuTq.js";import"./B3uNdhXb.js";import"./B1veJI6T.js";const G={key:0,flex:"~ col gap-1"},H={key:1,mt2:"",px4:"",italic:"",op35:""},K=$({__name:"StateGroup",props:{state:{},revision:{},prefix:{default:""}},setup(m){return(t,s)=>{const c=x;return e(),r("div",null,[t.state&&Object.keys(t.state).length>0?(e(),r("div",G,[(e(!0),r(b,null,B(t.state,(l,i)=>(e(),f(c,{key:i,revision:t.revision,state:l,name:i.startsWith(t.prefix)?i.slice(t.prefix.length):i},{actions:a(_=>[w(t.$slots,"actions",F({ref_for:!0},_))]),_:2},1032,["revision","state","name"]))),128))])):(e(),r("div",H," No data "))])}}}),T={class:"markdown-body"},I=S("h1",null,"State & Async Data",-1),L=S("p",null,"// TODO",-1),W=[I,L],q={__name:"payload",setup(m,{expose:t}){return t({frontmatter:{}}),(c,l)=>(e(),r("div",T,W))}},z=q,J={key:0},ot=$({__name:"payload",setup(m){const t=O(),s=k(()=>t.value?.nuxt.payload),c=k(()=>t.value?.revision.value);async function l(i){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",i)}return(i,_)=>{const v=K,d=R,h=P,g=x,D=z,C=A,N=V("tooltip");return e(),r(b,null,[o(t)?(e(),r("div",J,[n(d,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[n(v,{state:o(s).state,revision:o(c),prefix:"$s"},null,8,["state","revision"])]),_:1}),n(d,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[n(h,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:_[0]||(_[0]=y=>l())},{default:a(()=>[j(" Re-fetch all data ")]),_:1})]),default:a(()=>[n(v,{state:o(s).data,revision:o(c)},{actions:a(({isOpen:y,name:p})=>[y&&p?E((e(),f(h,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",border:!1,onClick:M=>l([p])},null,8,["title","onClick"])),[[N,`Re-fetch '${p}'`,void 0,{bottom:!0}]]):u("",!0)]),_:1},8,["state","revision"])]),_:1}),o(s).functions&&Object.keys(o(s).functions).length?(e(),f(d,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[n(g,{"ml--6":"",state:o(s).functions,revision:o(c)},null,8,["state","revision"])]),_:1})):u("",!0)])):u("",!0),n(C,null,{default:a(()=>[n(D)]),_:1})],64)}}});export{ot as default};