@nuxt/devtools-nightly 0.0.0 → 2.0.0-beta.0-28940205.5b566fb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +129 -0
- package/cli.mjs +2 -0
- package/dist/chunks/analyze-build.mjs +58 -0
- package/dist/chunks/module-main.mjs +2044 -0
- package/dist/chunks/plugin-metrics.mjs +68 -0
- package/dist/chunks/timeline.mjs +73 -0
- package/dist/chunks/vite-inspect.mjs +61 -0
- package/dist/chunks/vscode.mjs +195 -0
- package/dist/chunks/vue-devtools.mjs +30 -0
- package/dist/chunks/vue-inspector.mjs +15 -0
- package/dist/client/200.html +20 -0
- package/dist/client/404.html +20 -0
- package/dist/client/_nuxt/__blank-n15vnpb5.js +1 -0
- package/dist/client/_nuxt/analyze-build-kcwmvlyl.js +1 -0
- package/dist/client/_nuxt/assets-ivvrbi3q.js +16 -0
- package/dist/client/_nuxt/assets.css-hmxl533k.css +1 -0
- package/dist/client/_nuxt/b6bfxrb8.js +17 -0
- package/dist/client/_nuxt/builds/latest.json +1 -0
- package/dist/client/_nuxt/builds/meta/b8bbfd27-5704-4be8-a606-01af93c734ef.json +1 -0
- package/dist/client/_nuxt/client-c9f80qsp.js +1 -0
- package/dist/client/_nuxt/code-diff.vue-bhijg81q.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-i4e657wf.js +1 -0
- package/dist/client/_nuxt/components-krpx1826.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-kwpzi9u7.js +1 -0
- package/dist/client/_nuxt/constants-b32h69zq.js +1 -0
- package/dist/client/_nuxt/custom-_name_-cepykbos.js +1 -0
- package/dist/client/_nuxt/default-mk5axw1k.js +1 -0
- package/dist/client/_nuxt/duration-display.vue-kqe6a4wx.js +1 -0
- package/dist/client/_nuxt/entry.css-nqz5coc9.css +1 -0
- package/dist/client/_nuxt/error-404-lp8coab3.js +1 -0
- package/dist/client/_nuxt/error-404.css-b3x40x40.css +1 -0
- package/dist/client/_nuxt/error-500-d4b6gi3u.js +1 -0
- package/dist/client/_nuxt/error-500.css-hilpkhd4.css +1 -0
- package/dist/client/_nuxt/error-ojb7cn7v.js +9 -0
- package/dist/client/_nuxt/filepath-item.vue-b829sn9l.js +1 -0
- package/dist/client/_nuxt/full-j8mngb76.js +1 -0
- package/dist/client/_nuxt/help-fab.css-ms50khsu.css +1 -0
- package/dist/client/_nuxt/help-fab.vue-gtlaa6k2.js +1 -0
- package/dist/client/_nuxt/hooks-htmew7il.js +1 -0
- package/dist/client/_nuxt/imports-18kqq3am.js +1 -0
- package/dist/client/_nuxt/index-dl6nn7ct.js +2 -0
- package/dist/client/_nuxt/index-e7wrzeix.js +1 -0
- package/dist/client/_nuxt/launch-page.vue-iyi310zf.js +1 -0
- package/dist/client/_nuxt/modules-hdu1ikfi.js +1 -0
- package/dist/client/_nuxt/nbadge-fktngirm.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-fs1yhvat.js +1 -0
- package/dist/client/_nuxt/ncode-block.css-c9cb29at.css +1 -0
- package/dist/client/_nuxt/ncode-block.vue-gy1ero5j.js +2 -0
- package/dist/client/_nuxt/ndrawer.vue-cjxfdzsk.js +1 -0
- package/dist/client/_nuxt/ndropdown.vue-fe8ybtb0.js +1 -0
- package/dist/client/_nuxt/nicon-title.vue-ouqsubn7.js +1 -0
- package/dist/client/_nuxt/nlink.vue-jafnipxp.js +1 -0
- package/dist/client/_nuxt/nmarkdown.vue-hygash5x.js +1 -0
- package/dist/client/_nuxt/nnavbar.vue-d5x8tq5w.js +1 -0
- package/dist/client/_nuxt/none-i3w61o4x.js +1 -0
- package/dist/client/_nuxt/nsection-block-ivkmhmn9.js +1 -0
- package/dist/client/_nuxt/nsection-block.css-e7kbjm7k.css +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-sw71szzx.js +1 -0
- package/dist/client/_nuxt/nselect.vue-mkp3umn0.js +1 -0
- package/dist/client/_nuxt/open-graph-i5rptgvl.js +3 -0
- package/dist/client/_nuxt/open-graph.css-e21qzmvj.css +1 -0
- package/dist/client/_nuxt/overview-jzek603r.js +1 -0
- package/dist/client/_nuxt/pages-mhjzw1eo.js +1 -0
- package/dist/client/_nuxt/payload-kjhui3c5.js +1 -0
- package/dist/client/_nuxt/pinia-jy0feqo2.js +1 -0
- package/dist/client/_nuxt/plugins-d2vnj57a.js +1 -0
- package/dist/client/_nuxt/render-tree-malxu5t7.js +1 -0
- package/dist/client/_nuxt/runtime-configs-c8u0cuv7.js +1 -0
- package/dist/client/_nuxt/server-route-inputs.vue-dfs3eezs.js +1 -0
- package/dist/client/_nuxt/server-routes-ea89bftg.js +9 -0
- package/dist/client/_nuxt/server-tasks-guw0x7eh.js +1 -0
- package/dist/client/_nuxt/settings-nr7x6wel.js +1 -0
- package/dist/client/_nuxt/stacktrace-list.vue-cfyme80n.js +1 -0
- package/dist/client/_nuxt/state-components-f29eyhzi.js +1 -0
- package/dist/client/_nuxt/state-editor.vue-nd6tb0dn.js +1 -0
- package/dist/client/_nuxt/state-modules-gh2s62ky.js +1 -0
- package/dist/client/_nuxt/storage-d1qa6fff.js +1 -0
- package/dist/client/_nuxt/terminals-igsxvm6w.js +1 -0
- package/dist/client/_nuxt/terminals.css-mejv43xm.css +1 -0
- package/dist/client/_nuxt/timeline-lm6kcwsd.js +31 -0
- package/dist/client/_nuxt/timeline.css-lhkpu01p.css +1 -0
- package/dist/client/_nuxt/unocss-runtime-jzfgcoxk.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-gi2fewby.js +3818 -0
- package/dist/client/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css +1 -0
- package/dist/client/_nuxt/vendor/markdown-it-fvu08dbs.js +16 -0
- package/dist/client/_nuxt/vendor/shiki-bnvxb5wv.js +147 -0
- package/dist/client/_nuxt/vendor/unocss-3uirpnla.js +2 -0
- package/dist/client/_nuxt/vendor/unocss.css-mhvipxpl.css +1 -0
- package/dist/client/_nuxt/vendor/vis-dlwijd5n.js +98 -0
- package/dist/client/_nuxt/vendor/xterm-dbpzgj7s.js +9 -0
- package/dist/client/_nuxt/vendor/xterm.css-egmhki83.css +32 -0
- package/dist/client/_nuxt/virtual-files-jzsbborg.js +1 -0
- package/dist/client/_nuxt/virtual-files.css-gqpg2wnb.css +1 -0
- package/dist/client/_nuxt/vue-virtual-scroller.esm-hx1s7s1b.js +2 -0
- package/dist/client/index.html +20 -0
- package/dist/client/nuxt.svg +3 -0
- package/dist/dirs.d.mts +7 -0
- package/dist/dirs.d.ts +7 -0
- package/dist/dirs.mjs +28 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +9 -0
- package/dist/module.d.ts +9 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +6 -0
- package/dist/runtime/auth/index.html +76 -0
- package/dist/runtime/function-metrics-helpers.d.ts +3 -0
- package/dist/runtime/function-metrics-helpers.js +69 -0
- package/dist/runtime/nitro/inline.d.ts +3 -0
- package/dist/runtime/nitro/inline.js +6 -0
- package/dist/runtime/plugins/devtools.client.d.ts +2 -0
- package/dist/runtime/plugins/devtools.client.js +56 -0
- package/dist/runtime/plugins/devtools.server.d.ts +2 -0
- package/dist/runtime/plugins/devtools.server.js +7 -0
- package/dist/runtime/plugins/view/FrameBox.vue +167 -0
- package/dist/runtime/plugins/view/Main.vue +422 -0
- package/dist/runtime/plugins/view/client.d.ts +12 -0
- package/dist/runtime/plugins/view/client.js +332 -0
- package/dist/runtime/plugins/view/state.d.ts +5 -0
- package/dist/runtime/plugins/view/state.js +17 -0
- package/dist/runtime/plugins/view/utils.d.ts +31 -0
- package/dist/runtime/plugins/view/utils.js +156 -0
- package/dist/runtime/settings.d.ts +4 -0
- package/dist/runtime/settings.js +2 -0
- package/dist/runtime/shared/hooks.d.ts +2 -0
- package/dist/runtime/shared/hooks.js +33 -0
- package/dist/runtime/use-nuxt-devtools.d.ts +8 -0
- package/dist/runtime/use-nuxt-devtools.js +23 -0
- package/dist/runtime/vue-devtools/overlay.d.ts +1 -0
- package/dist/runtime/vue-devtools/overlay.js +8 -0
- package/dist/shared/devtools-nightly.2a48a9e5.d.mts +62 -0
- package/dist/shared/devtools-nightly.2a48a9e5.d.ts +62 -0
- package/dist/shared/devtools-nightly.5ac54dae.mjs +121 -0
- package/dist/types.d.mts +42 -0
- package/dist/types.d.ts +42 -0
- package/dist/types.mjs +1 -0
- package/package.json +123 -2
- package/types.d.ts +1 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const Xe=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ze=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,et=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function tt(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){nt(e);return}return t}function nt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function rt(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const s=n.toLowerCase();if(s==="true")return!0;if(s==="false")return!1;if(s==="undefined")return;if(s==="null")return null;if(s==="nan")return Number.NaN;if(s==="infinity")return Number.POSITIVE_INFINITY;if(s==="-infinity")return Number.NEGATIVE_INFINITY}if(!et.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Xe.test(e)||Ze.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,tt)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const st=/#/g,ot=/&/g,it=/\//g,at=/=/g,ue=/\+/g,ct=/%5e/gi,lt=/%60/gi,ft=/%7c/gi,ut=/%20/gi;function ht(e){return encodeURI(""+e).replace(ft,"|")}function ae(e){return ht(typeof e=="string"?e:JSON.stringify(e)).replace(ue,"%2B").replace(ut,"+").replace(st,"%23").replace(ot,"%26").replace(lt,"`").replace(ct,"^").replace(it,"%2F")}function ee(e){return ae(e).replace(at,"%3D")}function J(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pt(e){return J(e.replace(ue," "))}function dt(e){return J(e.replace(ue," "))}function mt(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const r=pt(s[1]);if(r==="__proto__"||r==="constructor")continue;const i=dt(s[2]||"");t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function gt(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ee(e)}=${ae(n)}`).join("&"):`${ee(e)}=${ae(t)}`:ee(e)}function yt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>gt(t,e[t])).filter(Boolean).join("&")}const wt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,bt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,St=/^([/\\]\s*){2,}[^/\\]/,vt=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Et=/\/$|\/\?|\/#/,$t=/^\.?\//;function he(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?wt.test(e):bt.test(e)||(t.acceptRelative?St.test(e):!1)}function Xn(e){return!!e&&vt.test(e)}function ce(e="",t){return t?Et.test(e):e.endsWith("/")}function Pe(e="",t){if(!t)return(ce(e)?e.slice(0,-1):e)||"/";if(!ce(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");r>=0&&(n=e.slice(0,r),s=e.slice(r));const[i,...l]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(l.length>0?`?${l.join("?")}`:"")+s}function le(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ce(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");if(r>=0&&(n=e.slice(0,r),s=e.slice(r),!n))return s;const[i,...l]=n.split("?");return i+"/"+(l.length>0?`?${l.join("?")}`:"")+s}function At(e=""){return e.startsWith("/")}function me(e=""){return At(e)?e:"/"+e}function Ct(e,t){if(Ie(t)||he(e))return e;const n=Pe(t);return e.startsWith(n)?e:Rt(n,e)}function Zn(e,t){if(Ie(t))return e;const n=Pe(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function xt(e,t){const n=Ot(e),s={...mt(n.search),...t};return n.search=yt(s),jt(n)}function Ie(e){return!e||e==="/"}function _t(e){return e&&e!=="/"}function Rt(e,...t){let n=e||"";for(const s of t.filter(r=>_t(r)))if(n){const r=s.replace($t,"");n=le(n)+r}else n=s;return n}function er(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),s=[];let r=0;for(const l of n)if(!(!l||l==="/")){for(const[a,c]of l.split(t).entries())if(!(!c||c===".")){if(c===".."){if(s.length===1&&he(s[0]))continue;s.pop(),r--;continue}if(a===1&&s[s.length-1]?.endsWith(":/")){s[s.length-1]+="/"+c;continue}s.push(c),r++}}let i=s.join("/");return r>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*r)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function tr(e,t,n={}){return n.trailingSlash||(e=le(e),t=le(t)),n.leadingSlash||(e=me(e),t=me(t)),n.encoding||(e=J(e),t=J(t)),e===t}const Ne=Symbol.for("ufo:protocolRelative");function Ot(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,u,m=""]=n;return{protocol:u.toLowerCase(),pathname:m,href:u+m,auth:"",host:"",search:"",hash:""}}if(!he(e,{acceptRelative:!0}))return ge(e);const[,s="",r,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,l="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:f,hash:o}=ge(a);return{protocol:s.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:l,pathname:c,search:f,hash:o,[Ne]:!s}}function ge(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function jt(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",r=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Ne]?(e.protocol||"")+"//":"")+r+i+t+n+s}class Tt extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Mt(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(s)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",l=`${r}: ${i}${t?` ${t}`:""}`,a=new Tt(l,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[f]}});return a}const kt=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ye(e="GET"){return kt.has(e.toUpperCase())}function Lt(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Pt=new Set(["image/svg","application/xml","application/xhtml","application/html"]),It=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Nt(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return It.test(t)?"json":Pt.has(t)||t.startsWith("text/")?"text":"blob"}function Ft(e,t,n,s){const r=Dt(t?.headers??e?.headers,n?.headers,s);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:r}}function Dt(e,t,n){if(!t)return new n(e);const s=new n(t);if(e)for(const[r,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))s.set(r,i);return s}async function U(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const zt=new Set([408,409,425,429,500,502,503,504]),qt=new Set([101,204,205,304]);function Fe(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let o;typeof a.options.retry=="number"?o=a.options.retry:o=ye(a.options.method)?0:1;const u=a.response&&a.response.status||500;if(o>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(u):zt.has(u))){const m=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return m>0&&await new Promise(p=>setTimeout(p,m)),i(a.request,{...a.options,retry:o-1})}}const f=Mt(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,i),f}const i=async function(c,f={}){const o={request:c,options:Ft(c,f,e.defaults,n),response:void 0,error:void 0};o.options.method&&(o.options.method=o.options.method.toUpperCase()),o.options.onRequest&&await U(o,o.options.onRequest),typeof o.request=="string"&&(o.options.baseURL&&(o.request=Ct(o.request,o.options.baseURL)),o.options.query&&(o.request=xt(o.request,o.options.query),delete o.options.query),"query"in o.options&&delete o.options.query,"params"in o.options&&delete o.options.params),o.options.body&&ye(o.options.method)&&(Lt(o.options.body)?(o.options.body=typeof o.options.body=="string"?o.options.body:JSON.stringify(o.options.body),o.options.headers=new n(o.options.headers||{}),o.options.headers.has("content-type")||o.options.headers.set("content-type","application/json"),o.options.headers.has("accept")||o.options.headers.set("accept","application/json")):("pipeTo"in o.options.body&&typeof o.options.body.pipeTo=="function"||typeof o.options.body.pipe=="function")&&("duplex"in o.options||(o.options.duplex="half")));let u;if(!o.options.signal&&o.options.timeout){const p=new s;u=setTimeout(()=>{const b=new Error("[TimeoutError]: The operation was aborted due to timeout");b.name="TimeoutError",b.code=23,p.abort(b)},o.options.timeout),o.options.signal=p.signal}try{o.response=await t(o.request,o.options)}catch(p){return o.error=p,o.options.onRequestError&&await U(o,o.options.onRequestError),await r(o)}finally{u&&clearTimeout(u)}if((o.response.body||o.response._bodyInit)&&!qt.has(o.response.status)&&o.options.method!=="HEAD"){const p=(o.options.parseResponse?"json":o.options.responseType)||Nt(o.response.headers.get("content-type")||"");switch(p){case"json":{const b=await o.response.text(),g=o.options.parseResponse||rt;o.response._data=g(b);break}case"stream":{o.response._data=o.response.body||o.response._bodyInit;break}default:o.response._data=await o.response[p]()}}return o.options.onResponse&&await U(o,o.options.onResponse),!o.options.ignoreResponseError&&o.response.status>=400&&o.response.status<600?(o.options.onResponseError&&await U(o,o.options.onResponseError),await r(o)):o.response},l=async function(c,f){return(await i(c,f))._data};return l.raw=i,l.native=(...a)=>t(...a),l.create=(a={},c={})=>Fe({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),l}const Q=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Vt=Q.fetch?(...e)=>Q.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Ut=Q.Headers,Bt=Q.AbortController,Wt=Fe({fetch:Vt,Headers:Ut,AbortController:Bt}),Ht=Wt,H="default",fe="preflights",Gt="shortcuts",Jt="imports",Qt={[Jt]:-200,[fe]:-100,[Gt]:-10,[H]:0},Kt=/[\\:]?[\s'"`;{}]+/g;function Yt(e){return e.split(Kt)}const Xt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Yt(e)}};function k(e=[]){return Array.isArray(e)?e:[e]}function F(e){return Array.from(new Set(e))}function we(e,t){return e.reduce((n,s)=>(n.findIndex(i=>t(s,i))===-1&&n.push(s),n),[])}function T(e){return typeof e=="string"}class De extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,n){return this._map.set(t,n),super.add(t)}}function te(e){return e instanceof De}function Zt(e){const t=e.length;let n=-1,s,r="";const i=e.charCodeAt(0);for(;++n<t;){if(s=e.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&&t===1&&s===45){r+=`\\${e.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=e.charAt(n);continue}r+=`\\${e.charAt(n)}`}return r}const ne=Zt;function en(e){return typeof e=="function"?{match:e}:e}function be(e){return e.length===3}function re(e){return e!=null}function tn(){}class nn{_map=new Map;get(t,n){const s=this._map.get(t);if(s)return s.get(n)}getFallback(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.has(n)||r.set(n,s),r.get(n)}set(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.set(n,s),this}has(t,n){return this._map.get(t)?.has(n)}delete(t,n){return this._map.get(t)?.delete(n)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>t(i,n,r)))}}class rn extends Map{getFallback(t,n){const s=this.get(t);return s===void 0?(this.set(t,n),n):s}map(t){const n=[];return this.forEach((s,r)=>{n.push(t(s,r))}),n}flatMap(t){const n=[];return this.forEach((s,r)=>{n.push(...t(s,r))}),n}}function q(e){return T(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function sn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>q(t)):[e]:[q(e)]}function on(e){return e.filter(([t,n],s)=>{if(t.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(e[r][0]===t&&e[r][1]===n)return!1;return!0})}function se(e){return e==null?"":on(e).map(([t,n])=>n!=null&&typeof n!="function"?`${t}:${n};`:void 0).filter(Boolean).join("")}function B(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ze(e,t,n=!1){const s=e,r=t;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return B(s)&&B(r)&&Object.keys(r).forEach(l=>{B(s[l])&&B(r[l])||Array.isArray(s[l])&&Array.isArray(r[l])?i[l]=ze(s[l],r[l],n):Object.assign(i,{[l]:r[l]})}),i}function G(e){let t,n,s;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(s=e[t])&&typeof s=="object"?G(s):s;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(s=e[t])&&typeof s=="object"?G(s):s;return n}return e}function an(e){return T(e[0])}function cn(e){return T(e[0])}const W={};function ln(e=["-",":"]){const t=e.join("|");return W[t]||(W[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[t].lastIndex=0,W[t]}function fn(e,t=["-",":"],n=5){const s=ln(t);let r,i=e.toString();const l=new Set,a=new Map;do r=!1,i=i.replace(s,(f,o,u,m,p)=>{if(!t.includes(u))return f;r=!0,l.add(o+u);const b=p+o.length+u.length+1,g={length:f.length,items:[]};a.set(p,g);for(const y of[...m.matchAll(/\S+/g)]){const R=b+y.index;let S=a.get(R)?.items;S?a.delete(R):S=[{offset:R,length:y[0].length,className:y[0]}];for(const v of S)v.className=v.className==="~"?o:v.className.replace(/^(!?)(.*)/,`$1${o}${u}$2`),g.items.push(v)}return"$".repeat(f.length)}),n-=1;while(r&&n);let c;if(typeof e=="string"){c="";let f=0;for(const[o,u]of a)c+=e.slice(f,o),c+=u.items.map(m=>m.className).join(" "),f=o+u.length;c+=e.slice(f)}else{c=e;for(const[f,o]of a)c.overwrite(f,f+o.length,o.items.map(u=>u.className).join(" "))}return{prefixes:Array.from(l),hasChanged:r,groupsByOffset:a,get expanded(){return c.toString()}}}function un(e,t=["-",":"],n=5){const s=fn(e,t,n);return typeof e=="string"?s.expanded:e}const Se=new Set;function qe(e){Se.has(e)||(console.warn("[unocss]",e),Se.add(e))}function Ve(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const ve="_uno_resolved";async function hn(e){let t=typeof e=="function"?await e():await e;if(ve in t)return t;t={...t},Object.defineProperty(t,ve,{value:!0,enumerable:!1});const n=t.shortcuts?Ve(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&t.prefix&&(i.prefix=k(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(s),t.rules?.forEach(s)}return t}async function Ue(e){const t=await hn(e);if(!t.presets)return[t];const n=(await Promise.all((t.presets||[]).flatMap(k).flatMap(Ue))).flat();return[t,...n]}function pn(e){if(e.length===0)return{};const t=[],n=[];let s=!1;const r=[],i=[],l=[];for(const c of e){if(c.pipeline===!1){s=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&n.push(c.pipeline.exclude);c.filesystem&&r.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&l.push(c.plain)}const a={pipeline:s?!1:{include:F($e(...t)),exclude:F($e(...n))}};return r.length&&(a.filesystem=F(r.flat())),i.length&&(a.inline=F(i.flat())),l.length&&(a.plain=F(l.flat())),a}async function Ee(e={},t={}){const n=Object.assign({},t,e),s=we((await Promise.all((n.presets||[]).flatMap(k).flatMap(Ue))).flat(),(d,h)=>d.name===h.name),r=[...s.filter(d=>d.enforce==="pre"),...s.filter(d=>!d.enforce),...s.filter(d=>d.enforce==="post")],i=[...r,n],l=[...i].reverse(),a=Object.assign({},Qt,...i.map(d=>d.layers));function c(d){return F(i.flatMap(h=>k(h[d]||[])))}const f=c("extractors");let o=l.find(d=>d.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Xt),o&&!f.includes(o)&&f.unshift(o),f.sort((d,h)=>(d.order||0)-(h.order||0));const u=c("rules"),m={},p=u.length,b=u.filter(d=>an(d)?(k(d[2]?.prefix||"").forEach(w=>{m[w+d[0]]=d}),!1):!0).reverse();let g=dn(i.map(d=>d.theme));const y=c("extendTheme");for(const d of y)g=d(g)||g;const R={templates:F(i.flatMap(d=>k(d.autocomplete?.templates))),extractors:i.flatMap(d=>k(d.autocomplete?.extractors)).sort((d,h)=>(d.order||0)-(h.order||0)),shorthands:mn(i.map(d=>d.autocomplete?.shorthands||{}))};let S=c("separators");S.length||(S=[":","-"]);const v=c("content"),A=pn(v),C={mergeSelectors:!0,warn:!0,sortLayers:d=>d,...n,blocklist:c("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:g,rules:u,rulesSize:p,rulesDynamic:b,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:R,variants:c("variants").map(en).sort((d,h)=>(d.order||0)-(h.order||0)),shortcuts:Ve(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:S,details:n.details??n.envMode==="dev",content:A,transformers:we(c("transformers"),(d,h)=>d.name===h.name)};for(const d of i)d?.configResolved?.(C);return C}function dn(e){return e.map(t=>t?G(t):{}).reduce((t,n)=>ze(t,n),{})}function mn(e){return e.reduce((t,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...t,...s}},{})}function $e(...e){return e.flatMap(gn)}function gn(e){return Array.isArray(e)?e:e?[e]:[]}const yn="0.65.4";function wn(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}const z={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"};class pe{constructor(t={},n={}){this.userConfig=t,this.defaults=n}version=yn;events=wn();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},n={}){const s=new pe(t,n);return s.config=await Ee(s.userConfig,s.defaults),s.events.emit("config",s.config),s}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Ee(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,s=new Set){const r={original:t,code:t,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const l=await i.extract?.(r);if(l)if(te(l)&&te(s))for(const a of l)s.setCount(a,s.getCount(a)+l.getCount(a));else for(const a of l)s.add(a)}return s}makeContext(t,n){const s={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:z,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(t,n){if(this.blocked.has(t))return;const s=`${t}${n?` ${n}`:""}`;if(this.cache.has(s))return this.cache.get(s);let r=t;for(const c of this.config.preprocess)r=c(t);if(this.isBlocked(r)){this.blocked.add(t),this.cache.set(s,null);return}const i=await this.matchVariants(t,r);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(s,null);return}const l=async c=>{const f=this.makeContext(t,[n||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);const o=await this.expandShortcut(f.currentSelector,f);return o?await this.stringifyShortcuts(f.variantMatch,f,o[0],o[1]):(await this.parseUtil(f.variantMatch,f))?.map(m=>this.stringifyUtil(m,f)).filter(re)},a=(await Promise.all(i.map(c=>l(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(s,a),a;this.cache.set(s,null)}async generate(t,n={}){const{id:s,scope:r,preflights:i=!0,safelist:l=!0,minify:a=!1,extendedInfo:c=!1}=n,f=T(t)?await this.applyExtractors(t,s,c?new De:new Set):Array.isArray(t)?new Set(t):t;if(l){const h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(w=>typeof w=="function"?w(h):w).forEach(w=>{f.has(w)||f.add(w)})}const o=a?"":`
|
|
2
|
+
`,u=new Set([H]),m=c?new Map:new Set,p=new Map;let b={};const g=Array.from(f).map(async h=>{if(m.has(h))return;const w=await this.parseToken(h);if(w!=null){m instanceof Map?m.set(h,{data:w,count:te(f)?f.getCount(h):-1}):m.add(h);for(const E of w){const L=E[3]||"",P=E[4]?.layer;p.has(L)||p.set(L,[]),p.get(L).push(E),P&&u.add(P)}}});await Promise.all(g),await(async()=>{if(!i)return;const h={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:E=fe})=>{u.add(E),w.add(E)}),b=Object.fromEntries(await Promise.all(Array.from(w).map(async E=>{const P=(await Promise.all(this.config.preflights.filter(I=>(I.layer||fe)===E).map(async I=>await I.getCSS(h)))).filter(Boolean).join(o);return[E,P]})))})();const y=this.config.sortLayers(Array.from(u).sort((h,w)=>(this.config.layers[h]??0)-(this.config.layers[w]??0)||h.localeCompare(w))),R={},S=this.config.outputToCssLayers,v=h=>{let w=h;return typeof S=="object"&&(w=S.cssLayerName?.(h)),w===null?null:w??h},A=(h=H)=>{if(R[h])return R[h];let w=Array.from(p).sort((P,I)=>(this.parentOrders.get(P[0])??0)-(this.parentOrders.get(I[0])??0)||P[0]?.localeCompare(I[0]||"")||0).map(([P,I])=>{const $=I.length,_=I.filter(x=>(x[4]?.layer||H)===h).sort((x,M)=>x[0]-M[0]||(x[4]?.sort||0)-(M[4]?.sort||0)||x[5]?.currentSelector?.localeCompare(M[5]?.currentSelector??"")||x[1]?.localeCompare(M[1]||"")||x[2]?.localeCompare(M[2]||"")||0).map(([,x,M,,V,,X])=>[[[(x&&vn(x,r))??"",V?.sort??0]],M,!!(X??V?.noMerge)]);if(!_.length)return;const O=_.reverse().map(([x,M,V],X)=>{if(!V&&this.config.mergeSelectors)for(let D=X+1;D<$;D++){const N=_[D];if(N&&!N[2]&&(x&&N[0]||x==null&&N[0]==null)&&N[1]===M)return x&&N[0]&&N[0].push(...x),null}const Z=x?F(x.sort((D,N)=>D[1]-N[1]||D[0]?.localeCompare(N[0]||"")||0).map(D=>D[0]).filter(Boolean)):[];return Z.length?`${Z.join(`,${o}`)}{${M}}`:M}).filter(Boolean).reverse().join(o);if(!P)return O;const j=P.split(" $$ ");return`${j.join("{")}{${o}${O}${o}${"}".repeat(j.length)}`}).filter(Boolean).join(o);i&&(w=[b[h],w].filter(Boolean).join(o));let E;S&&w&&(E=v(h),E!==null&&(w=`@layer ${E}{${o}${w}${o}}`));const L=a?"":`/* layer: ${h}${E&&E!==h?`, alias: ${E}`:""} */${o}`;return R[h]=w?L+w:""},C=(h=y,w)=>{const E=h.filter(L=>!w?.includes(L));return[S&&E.length>0?`@layer ${E.map(v).filter(re).join(", ")};`:void 0,...E.map(L=>A(L)||"")].filter(Boolean).join(o)};return{get css(){return C()},layers:y,matched:m,getLayers:C,getLayer:A,setLayer:async(h,w)=>{const E=await w(A(h));return R[h]=E,E}}}async matchVariants(t,n){const s={rawSelector:t,theme:this.config.theme,generator:this},r=async i=>{let l=!0;const[,,a,c]=i;for(;l;){l=!1;const f=i[1];for(const o of this.config.variants){if(!o.multiPass&&c.has(o))continue;let u=await o.match(f,s);if(u){if(T(u)){if(u===f)continue;u={matcher:u}}if(Array.isArray(u)){if(!u.length)continue;if(u.length===1)u=u[0];else{if(o.multiPass)throw new Error("multiPass can not be used together with array return variants");const m=u.map(p=>{const b=p.matcher??f,g=[p,...a],y=new Set(c);return y.add(o),[i[0],b,g,y]});return(await Promise.all(m.map(p=>r(p)))).flat()}}i[1]=u.matcher??f,a.unshift(u),c.add(o),l=!0;break}}if(!l)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await r([t,n||t,[],new Set])}applyVariants(t,n=t[4],s=t[1]){const i=n.slice().sort((f,o)=>(f.order||0)-(o.order||0)).reduceRight((f,o)=>u=>{const m=o.body?.(u.entries)||u.entries,p=Array.isArray(o.parent)?o.parent:[o.parent,void 0];return(o.handle??$n)({...u,entries:m,selector:o.selector?.(u.selector,m)||u.selector,parent:p[0]||u.parent,parentOrder:p[1]||u.parentOrder,layer:o.layer||u.layer,sort:o.sort||u.sort},f)},f=>f)({prefix:"",selector:En(s),pseudo:"",entries:t[2]}),{parent:l,parentOrder:a}=i;l!=null&&a!=null&&this.parentOrders.set(l,a);const c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:l,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const f of this.config.postprocess)f(c);return c}constructCustomCSS(t,n,s){const r=q(n);if(T(r))return r;const{selector:i,entries:l,parent:a}=this.applyVariants([0,s||t.rawSelector,r,void 0,t.variantHandlers]),c=`${i}{${se(l)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,n,s=!1,r){const i=T(t)?await this.matchVariants(t):[t],l=async([c,f,o])=>{this.config.details&&(n.rules=n.rules??[]);const u=this.config.rulesStaticMap[f];if(u&&u[1]&&(s||!u[2]?.internal)){n.generator.activatedRules.add(u),this.config.details&&n.rules.push(u);const p=this.config.rules.indexOf(u),b=q(u[1]),g=u[2];return T(b)?[[p,b,g]]:[[p,c,b,g,o]]}n.variantHandlers=o;const{rulesDynamic:m}=this.config;for(const p of m){const[b,g,y]=p;if(y?.internal&&!s)continue;let R=f;if(y?.prefix){const C=k(y.prefix);if(r){const d=k(r);if(!C.some(h=>d.includes(h)))continue}else{const d=C.find(h=>f.startsWith(h));if(d==null)continue;R=f.slice(d.length)}}const S=R.match(b);if(!S)continue;let v=await g(S,n);if(!v)continue;if(n.generator.activatedRules.add(p),this.config.details&&n.rules.push(p),typeof v!="string")if(Symbol.asyncIterator in v){const C=[];for await(const d of v)d&&C.push(d);v=C}else Symbol.iterator in v&&!Array.isArray(v)&&(v=Array.from(v).filter(re));const A=sn(v).filter(C=>C.length);if(A.length){const C=this.config.rules.indexOf(p);return A.map(d=>{if(T(d))return[C,d,y];let h=o,w=y;for(const E of d)E[0]===z.variants?h=[...k(E[1]),...h]:E[0]===z.parent?h=[{parent:E[1]},...h]:E[0]===z.selector?h=[{selector:E[1]},...h]:E[0]===z.layer?h=[{layer:E[1]},...h]:E[0]===z.sort&&(w={...w,sort:E[1]});return[C,c,d,w,h]})}}},a=(await Promise.all(i.map(c=>l(c)))).flat().filter(c=>!!c);if(a.length)return a}stringifyUtil(t,n){if(!t)return;if(be(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:l,sort:a,noMerge:c}=this.applyVariants(t),f=se(r);if(!f)return;const{layer:o,sort:u,...m}=t[3]??{},p={...m,layer:l??o,sort:a??u};return[t[0],s,f,i,p,this.config.details?n:void 0,c]}async expandShortcut(t,n,s=5){if(s===0)return;const r=this.config.details?f=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(f)}:tn;let i,l,a,c;for(const f of this.config.shortcuts){let o=t;if(f[2]?.prefix){const m=k(f[2].prefix).find(p=>t.startsWith(p));if(m==null)continue;o=t.slice(m.length)}if(cn(f)){if(f[0]===o){i=i||f[2],l=f[1],r(f);break}}else{const u=o.match(f[0]);if(u&&(l=f[1](u,n)),l){i=i||f[2],r(f);break}}}if(l&&(a=F(k(l).filter(T).map(f=>un(f.trim()).split(/\s+/g)).flat()),c=k(l).filter(f=>!T(f)).map(f=>({handles:[],value:f}))),!l){const f=T(t)?await this.matchVariants(t):[t];for(const o of f){const[u,m,p]=o;if(u!==m){const b=await this.expandShortcut(m,n,s-1);b&&(a=b[0].filter(T).map(g=>u.replace(m,g)),c=b[0].filter(g=>!T(g)).map(g=>({handles:[...g.handles,...p],value:g.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(k(a).map(async f=>(await this.expandShortcut(f,n,s-1))?.[0]||[f])),c].flat(2).filter(f=>!!f),i]}async stringifyShortcuts(t,n,s,r={layer:this.config.shortcutsLayer}){const i=new rn,l=(await Promise.all(F(s).map(async o=>{const u=T(o)?await this.parseUtil(o,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",q(o.value),void 0,o.handles]];return!u&&this.config.warn&&qe(`unmatched utility "${o}" in shortcut "${t[1]}"`),u||[]}))).flat(1).filter(Boolean).sort((o,u)=>o[0]-u[0]),[a,,c]=t,f=[];for(const o of l){if(be(o)){f.push([o[0],void 0,o[1],void 0,o[2],n,void 0]);continue}const{selector:u,entries:m,parent:p,sort:b,noMerge:g,layer:y}=this.applyVariants(o,[...o[4],...c],a);i.getFallback(y??r.layer,new nn).getFallback(u,p,[[],o[0]])[0].push([m,!!(g??o[3]?.noMerge),b??0])}return f.concat(i.flatMap((o,u)=>o.map(([m,p],b,g)=>{const y=(S,v,A)=>{const C=Math.max(...A.map(h=>h[1])),d=A.map(h=>h[0]);return(S?[d.flat(1)]:d).map(h=>{const w=se(h);if(w)return[p,b,w,g,{...r,noMerge:v,sort:C,layer:u},n,void 0]})};return[[m.filter(([,S])=>S).map(([S,,v])=>[S,v]),!0],[m.filter(([,S])=>!S).map(([S,,v])=>[S,v]),!1]].map(([S,v])=>[...y(!1,v,S.filter(([A])=>A.some(C=>C[0]===z.shortcutsNoMerge))),...y(!0,v,S.filter(([A])=>A.every(C=>C[0]!==z.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(n=>Array.isArray(n)?n[0]:n).some(n=>typeof n=="function"?n(t):T(n)?n===t:n.test(t))}getBlocked(t){const n=this.config.blocklist.find(s=>{const r=Array.isArray(s)?s[0]:s;return typeof r=="function"?r(t):T(r)?r===t:r.test(t)});return n?Array.isArray(n)?n:[n,void 0]:void 0}}async function bn(e,t){return await pe.create(e,t)}const Be=/\s\$\$\s+/g;function Sn(e){return Be.test(e)}function vn(e,t){return Sn(e)?e.replace(Be,t?` ${t} `:" "):t?`${t} ${e}`:e}const Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function En(e){return Ae.test(e)?e.replace(Ae,(t,n,s,r)=>`[${ne(n)}${s}"${ne(r)}"]`):`.${ne(e)}`}function $n(e,t){return t(e)}var Ce={};const An=Object.freeze({left:0,top:0,width:16,height:16}),K=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),We=Object.freeze({...An,...K}),Cn=Object.freeze({...We,body:"",hidden:!1}),xn=Object.freeze({width:null,height:null}),He=Object.freeze({...xn,...K});function _n(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function xe(e,t){const n=_n(e,t);for(const s in Cn)s in K?s in e&&!(s in n)&&(n[s]=K[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Rn(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function i(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const a=s[l]&&s[l].parent,c=a&&i(a);c&&(r[l]=[a].concat(c))}return r[l]}return t.forEach(i),r}function _e(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let i={};function l(a){i=xe(s[a]||r[a],i)}return l(t),n.forEach(l),xe(e,i)}function On(e,t){if(e.icons[t])return _e(e,t,[]);const n=Rn(e,[t])[t];return n?_e(e,t,n):null}const jn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Tn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Y(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(jn);if(s===null||!s.length)return e;const r=[];let i=s.shift(),l=Tn.test(i);for(;;){if(l){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*t*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");l=!l}}function Mn(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const r=e.indexOf(">",s),i=e.indexOf("</"+t);if(r===-1||i===-1)break;const l=e.indexOf(">",i);if(l===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,s).trim()+e.slice(l+1)}return{defs:n,content:e}}function kn(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Ln(e,t,n){const s=Mn(e);return kn(s.defs,t+s.content+n)}const de=e=>e==="unset"||e==="undefined"||e==="none";function Pn(e,t){const n={...We,...e},s={...He,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(g=>{const y=[],R=g.hFlip,S=g.vFlip;let v=g.rotate;R?S?v+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):S&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let A;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:A=r.height/2+r.top,y.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:A=r.width/2+r.left,y.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}v%2===1&&(r.left!==r.top&&(A=r.left,r.left=r.top,r.top=A),r.width!==r.height&&(A=r.width,r.width=r.height,r.height=A)),y.length&&(i=Ln(i,'<g transform="'+y.join(" ")+'">',"</g>"))});const l=s.width,a=s.height,c=r.width,f=r.height;let o,u;l===null?(u=a===null?"1em":a==="auto"?f:a,o=Y(u,c/f)):(o=l==="auto"?c:l,u=a===null?Y(o,f/c):a==="auto"?f:a);const m={},p=(g,y)=>{de(y)||(m[g]=y.toString())};p("width",o),p("height",u);const b=[r.left,r.top,c,f];return m.viewBox=b.join(" "),{attributes:m,viewBox:b,body:i}}function In(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Re(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),In(t)}function Nn(e){return e.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 Fn=/\swidth\s*=\s*["']([\w.]+)["']/,Dn=/\sheight\s*=\s*["']([\w.]+)["']/,oe=/<svg\s+/;function zn(e,t,n){const s=e.slice(0,e.indexOf(">")),r=(i,l)=>{const a=l.exec(s),c=a!=null,f=t[i];return!f&&!de(f)&&(typeof n=="number"?n>0&&(t[i]=Y(a?.[1]??"1em",n)):a&&(t[i]=a[1])),c};return[r("width",Fn),r("height",Dn)]}async function Ge(e,t,n,s,r,i){const{scale:l,addXmlNs:a=!1}=s??{},{additionalProps:c={},iconCustomizer:f}=s?.customizations??{},o=await r?.()??{};await f?.(t,n,o),Object.keys(c).forEach(g=>{const y=c[g];y!=null&&(o[g]=y)}),i?.(o);const[u,m]=zn(e,o,l);a&&(!e.includes("xmlns=")&&!o.xmlns&&(o.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!o["xmlns:xlink"]&&(o["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const p=Object.keys(o).map(g=>g==="width"&&u||g==="height"&&m?null:`${g}="${o[g]}"`).filter(g=>g!=null);if(p.length&&(e=e.replace(oe,`<svg ${p.join(" ")} `)),s){const{defaultStyle:g,defaultClass:y}=s;y&&!e.includes("class=")&&(e=e.replace(oe,`<svg class="${y}" `)),g&&!e.includes("style=")&&(e=e.replace(oe,`<svg style="${g}" `))}const b=s?.usedProps;return b&&(Object.keys(c).forEach(g=>{const y=o[g];y!=null&&(b[g]=y)}),typeof o.width<"u"&&o.width!==null&&(b.width=o.width),typeof o.height<"u"&&o.height!==null&&(b.height=o.height)),e}async function Oe(e,t,n,s){let r;try{if(typeof e=="function")r=await e(n);else{const i=e[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${t}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:l}=s?.customizations??{};return r=typeof l=="function"?await l(r,t,n):r,r.startsWith("<svg")?await Ge(s?.customizations?.trimCustomSvg===!0?Nn(r):r,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),r)}}async function Je(e,t,n,s){let r;const{customize:i}=s?.customizations??{};for(const l of n)if(r=On(e,l),r){let a={...He};typeof i=="function"&&(r=Object.assign({},r),a=i(a,r,`${t}:${l}`)??a);const{attributes:{width:c,height:f,...o},body:u}=Pn(r,a),m=s?.scale;return await Ge(`<svg >${u}</svg>`,t,l,s,()=>({...o}),p=>{const b=(g,y)=>{const R=p[g];let S;if(!de(R)){if(R)return;typeof m=="number"?m&&(S=Y(y??"1em",m)):S=y}S?p[g]=S:delete p[g]};b("width",c),b("height",f)})}}const Qe=async(e,t,n)=>{const s=n?.customCollections?.[e];if(s)if(typeof s=="function"){let r;try{r=await s(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await Oe(()=>r,e,t,n);if("icons"in r){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Je(r,e,i,n)}}}else return await Oe(s,e,t,n)};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ie,je;function Vn(){return je||(je=1,ie=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","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","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","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","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","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"]),ie}var Un=Vn();const Ke=qn(Un),Bn=3;function Wn(e){return(t={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,iconifyCollectionsNames:l,collections:a,extraProperties:c={},customizations:f={},autoInstall:o=!1,collectionsNodeResolvePath:u,layer:m="icons",unit:p,processor:b}=t,g=Hn(),y={addXmlNs:!0,scale:n,customCollections:a,autoInstall:o,cwd:u,warn:void 0,customizations:{...f,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(S,v,A){await f.iconCustomizer?.(S,v,A),p&&(A.width||(A.width=`${n}${p}`),A.height||(A.height=`${n}${p}`))}}};let R;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Re,parseIconWithLoader:Te},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async S=>{let[v,A,C=s]=S;R=R||await e(t);const d={},h=await Te(A,R,{...y,usedProps:d},l);if(!h){i&&!g.isESLint&&qe(`failed to load icon "${v}"`);return}let w;const E=`url("data:image/svg+xml;utf8,${Re(h.svg)}")`;return C==="auto"&&(C=h.svg.includes("currentColor")?"mask":"bg"),C==="mask"?w={"--un-icon":E,"-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",...d}:w={background:`${E} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...d},b?.(w,{...h,icon:h.name,mode:C}),w},{layer:m,prefix:r}]]}}}function Ye(e,t){const n=new Map;function s(r){if(Ke.includes(r))return n.has(r)||n.set(r,e(`${t}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,i,l)=>{let a=await Qe(r,i,l);if(a)return a;const c=await s(r);if(c){const f=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Je(c,r,f,l)}return a}}function Hn(){const e=typeof process<"u"&&process.stdout&&!process.versions.deno,t=e&&!!Ce.VSCODE_CWD,n=e&&!!Ce.ESLINT;return{isNode:e,isVSCode:t,isESLint:n}}async function Te(e,t,n={},s=[]){let r="",i="",l;const a=new Set([...Ke,...s,...Object.keys(n.customCollections||{})]);if(e.includes(":")){if([r,i]=e.split(":"),!a.has(r))return;l=await t(r,i,n)}else{const c=e.split(/-/g);for(let f=Bn;f>=1&&(r=c.slice(0,f).join("-"),!(!!a.has(r)&&(i=c.slice(f).join("-"),l=await t(r,i,n),l)));f--);}if(l)return{collection:r,name:i,svg:l}}function Gn(e){return Ye(Ht,e)}const nr=Wn(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?Ye(t,n):n?Gn(n):Qe});function Jn(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function Me(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ke(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Le=["Webkit","Moz","ms"];function Qn(e){const t={};function n(s){const r=t[s];if(r)return r;let i=Jn(s);if(i!=="filter"&&i in e)return t[s]=ke(i);i=Me(i);for(let l=0;l<Le.length;l++){const a=`${Le[l]}${i}`;if(a in e)return t[s]=ke(Me(a))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Kn(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function rr(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,n=window.document,s=()=>n.documentElement,r=t.__unocss||{},i=Object.assign({},e,r.runtime),l=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(l.postprocess=k(l.postprocess)).unshift(Qn(n.createElement("div").style)),i.configResolved?.(r,l);const c=await bn(r,l),f=$=>i.inject?i.inject($):s().prepend($),o=()=>i.rootElement?i.rootElement():n.body,u=new Map;let m=!0;const p=new Set;let b,g,y=[];const R=()=>new Promise($=>{y.push($),g!=null&&clearTimeout(g),g=setTimeout(()=>A().then(()=>{const _=y;y=[],_.forEach(O=>O())}),0)});function S($,_=!1){if($.nodeType!==1)return;const O=$;O.hasAttribute(a)&&O.removeAttribute(a),_&&O.querySelectorAll(`[${a}]`).forEach(j=>{j.removeAttribute(a)})}function v($,_){let O=u.get($);if(!O)if(O=n.createElement("style"),O.setAttribute("data-unocss-runtime-layer",$),u.set($,O),_==null)f(O);else{const j=v(_),x=j.parentNode;x?x.insertBefore(O,j.nextSibling):f(O)}return O}async function A(){const $=[...p],_=await c.generate($);return _.layers.reduce((j,x)=>(v(x,j).innerHTML=_.getLayer(x)??"",x),void 0),$.filter(j=>!_.matched.has(j)).forEach(j=>p.delete(j)),{..._,getStyleElement:j=>u.get(j),getStyleElements:()=>u}}async function C($){const _=p.size;await c.applyExtractors($,void 0,p),_!==p.size&&await R()}async function d($=o()){const _=$&&$.outerHTML;_&&(await C(`${_} ${Kn(_)}`),S(s()),S($,!0))}const h=new MutationObserver($=>{m||$.forEach(async _=>{if(_.target.nodeType!==1)return;const O=_.target;for(const j of u)if(O===j[1])return;if(_.type==="childList")_.addedNodes.forEach(async j=>{if(j.nodeType!==1)return;const x=j;b&&!b(x)||(await C(x.outerHTML),S(x))});else{if(b&&!b(O))return;if(_.attributeName!==a){const j=Array.from(O.attributes).map(M=>M.value?`${M.name}="${M.value}"`:M.name).join(" "),x=`<${O.tagName.toLowerCase()} ${j}>`;await C(x)}S(O)}})});let w=!1;function E(){if(w)return;const $=i.observer?.target?i.observer.target():o();$&&(h.observe($,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),w=!0)}function L(){i.bypassDefined&&Yn(c.blocked),d(),E()}function P(){n.readyState==="loading"?t.addEventListener("DOMContentLoaded",L):L()}const I=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract($){T($)||($.forEach(_=>p.add(_)),$=""),await C($)},extractAll:d,inspect($){b=$},toggleObserver($){$===void 0?m=!m:m=!!$,!w&&!m&&P()},update:A,presets:t.__unocss_runtime?.presets??{}};i.ready?.(I)!==!1&&(m=!1,P())}function Yn(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const n=document.styleSheets[t];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)),e.add(r))})}catch{continue}}return e}export{Ht as $,Rt as a,Pe as b,Zn as c,rt as d,tr as e,le as f,rr as g,he as h,Xn as i,er as j,nr as k,mt as p,xt as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:after,:before{border-color:var(--un-default-border-color, #e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content: ""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}
|