1import{F as _,S as W,T as P,U as O,V as k,W as J,X as $,Y as x,Z as M,M as b,D as H,A as D,$ as q,G as z,Q as F,a0 as G}from"./Dtzot8Jl.js";import"./Cq56b4gm.js";const Z="memory",V=()=>{const t=new Map;return{name:Z,getInstance:()=>t,hasItem(n){return t.has(n)},getItem(n){return t.get(n)??null},getItemRaw(n){return t.get(n)??null},setItem(n,r){t.set(n,r)},setItemRaw(n,r){t.set(n,r)},removeItem(n){t.delete(n)},getKeys(){return[...t.keys()]},clear(){t.clear()},dispose(){t.clear()}}};function Q(t){return!t||typeof t.then!="function"?Promise.resolve(t):t}function p(t,...n){try{return Q(t(...n))}catch(r){return Promise.reject(r)}}function X(t){const n=typeof t;return t===null||n!=="object"&&n!=="function"}function ee(t){const n=Object.getPrototypeOf(t);return!n||n.isPrototypeOf(Object)}function K(t){if(X(t))return String(t);if(ee(t)||Array.isArray(t))return JSON.stringify(t);if(typeof t.toJSON=="function")return K(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}const R="base64:";function te(t){return typeof t=="string"?t:R+ie(t)}function re(t){return typeof t!="string"||!t.startsWith(R)?t:ne(t.slice(R.length))}function ne(t){return globalThis.Buffer?Buffer.from(t,"base64"):Uint8Array.from(globalThis.atob(t),n=>n.codePointAt(0))}function ie(t){return globalThis.Buffer?Buffer.from(t).toString("base64"):globalThis.btoa(String.fromCodePoint(...t))}const se=["has","hasItem","get","getItem","getItemRaw","set","setItem","setItemRaw","del","remove","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function ae(t,n){if(n=E(n),!n)return t;const r={...t};for(const s of se)r[s]=(l="",...u)=>t[s](n+l,...u);return r.getKeys=(s="",...l)=>t.getKeys(n+s,...l).then(u=>u.map(o=>o.slice(n.length))),r.keys=r.getKeys,r.getItems=async(s,l)=>{const u=s.map(m=>typeof m=="string"?n+m:{...m,key:n+m.key});return(await t.getItems(u,l)).map(m=>({key:m.key.slice(n.length),value:m.value}))},r.setItems=async(s,l)=>{const u=s.map(o=>({key:n+o.key,value:o.value,options:o.options}));return t.setItems(u,l)},r}function w(t){return t&&t.split("?")[0]?.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,"")||""}function oe(...t){return w(t.join(":"))}function E(t){return t=w(t),t?t+":":""}function ue(t,n){if(n===void 0)return!0;let r=0,s=t.indexOf(":");for(;s>-1;)r++,s=t.indexOf(":",s+1);return r<=n}function ce(t,n){return n?t.startsWith(n)&&t[t.length-1]!=="$":t[t.length-1]!=="$"}const le="memory",fe=()=>{const t=new Map;return{name:le,getInstance:()=>t,hasItem(n){return t.has(n)},getItem(n){return t.get(n)??null},getItemRaw(n){return t.get(n)??null},setItem(n,r){t.set(n,r)},setItemRaw(n,r){t.set(n,r)},removeItem(n){t.delete(n)},getKeys(){return[...t.keys()]},clear(){t.clear()},dispose(){t.clear()}}};function me(t={}){const n={mounts:{"":t.driver||fe()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(const i of n.mountpoints)if(e.startsWith(i))return{base:i,relativeKey:e.slice(i.length),driver:n.mounts[i]};return{base:"",relativeKey:e,driver:n.mounts[""]}},s=(e,i)=>n.mountpoints.filter(a=>a.startsWith(e)||i&&e.startsWith(a)).map(a=>({relativeBase:e.length>a.length?e.slice(a.length):void 0,mountpoint:a,driver:n.mounts[a]})),l=(e,i)=>{if(n.watching){i=w(i);for(const a of n.watchListeners)a(e,i)}},u=async()=>{if(!n.watching){n.watching=!0;for(const e in n.mounts)n.unwatch[e]=await L(n.mounts[e],l,e)}},o=async()=>{if(n.watching){for(const e in n.unwatch)await n.unwatch[e]();n.unwatch={},n.watching=!1}},m=(e,i,a)=>{const c=new Map,f=h=>{let y=c.get(h.base);return y||(y={driver:h.driver,base:h.base,items:[]},c.set(h.base,y)),y};for(const h of e){const y=typeof h=="string",d=w(y?h:h.key),I=y?void 0:h.value,v=y||!h.options?i:{...i,...h.options},A=r(d);f(A).items.push({key:d,value:I,relativeKey:A.relativeKey,options:v})}return Promise.all([...c.values()].map(h=>a(h))).then(h=>h.flat())},g={hasItem(e,i={}){e=w(e);const{relativeKey:a,driver:c}=r(e);return p(c.hasItem,a,i)},getItem(e,i={}){e=w(e);const{relativeKey:a,driver:c}=r(e);return p(c.getItem,a,i).then(f=>_(f))},getItems(e,i={}){return m(e,i,a=>a.driver.getItems?p(a.driver.getItems,a.items.map(c=>
1({key:c.relativeKey,options:c.options})),i).then(c=>c.map(f=>({key:oe(a.base,f.key),value:_(f.value)}))):Promise.all(a.items.map(c=>p(a.driver.getItem,c.relativeKey,c.options).then(f=>({key:c.key,value:_(f)})))))},getItemRaw(e,i={}){e=w(e);const{relativeKey:a,driver:c}=r(e);return c.getItemRaw?p(c.getItemRaw,a,i):p(c.getItem,a,i).then(f=>re(f))},async setItem(e,i,a={}){if(i===void 0)return g.removeItem(e);e=w(e);const{relativeKey:c,driver:f}=r(e);f.setItem&&(await p(f.setItem,c,K(i),a),f.watch||l("update",e))},async setItems(e,i){await m(e,i,async a=>{if(a.driver.setItems)return p(a.driver.setItems,a.items.map(c=>({key:c.relativeKey,value:K(c.value),options:c.options})),i);a.driver.setItem&&await Promise.all(a.items.map(c=>p(a.driver.setItem,c.relativeKey,K(c.value),c.options)))})},async setItemRaw(e,i,a={}){if(i===void 0)return g.removeItem(e,a);e=w(e);const{relativeKey:c,driver:f}=r(e);if(f.setItemRaw)await p(f.setItemRaw,c,i,a);else if(f.setItem)await p(f.setItem,c,te(i),a);else return;f.watch||l("update",e)},async removeItem(e,i={}){typeof i=="boolean"&&(i={removeMeta:i}),e=w(e);const{relativeKey:a,driver:c}=r(e);c.removeItem&&(await p(c.removeItem,a,i),(i.removeMeta||i.removeMata)&&await p(c.removeItem,a+"$",i),c.watch||l("remove",e))},async getMeta(e,i={}){typeof i=="boolean"&&(i={nativeOnly:i}),e=w(e);const{relativeKey:a,driver:c}=r(e),f=Object.create(null);if(c.getMeta&&Object.assign(f,await p(c.getMeta,a,i)),!i.nativeOnly){const h=await p(c.getItem,a+"$",i).then(y=>_(y));h&&typeof h=="object"&&(typeof h.atime=="string"&&(h.atime=new Date(h.atime)),typeof h.mtime=="string"&&(h.mtime=new Date(h.mtime)),Object.assign(f,h))}return f},setMeta(e,i,a={}){return this.setItem(e+"$",i,a)},removeMeta(e,i={}){return this.removeItem(e+"$",i)},async getKeys(e,i={}){e=E(e);const a=s(e,!0);let c=[];const f=[];let h=!0;for(const d of a){d.driver.flags?.maxDepth||(h=!1);const I=await p(d.driver.getKeys,d.relativeBase,i);for(const v of I){const A=d.mountpoint+w(v);c.some(T=>A.startsWith(T))||f.push(A)}c=[d.mountpoint,...c.filter(v=>!v.startsWith(d.mountpoint))]}const y=i.maxDepth!==void 0&&!h;return f.filter(d=>(!y||ue(d,i.maxDepth))&&ce(d,e))},async clear(e,i={}){e=E(e),await Promise.all(s(e,!1).map(async a=>{if(a.driver.clear)return p(a.driver.clear,a.relativeBase,i);if(a.driver.removeItem){const c=await a.driver.getKeys(a.relativeBase||"",i);return Promise.all(c.map(f=>a.driver.removeItem(f,i)))}}))},async dispose(){await Promise.all(Object.values(n.mounts).map(e=>U(e)))},async watch(e){return await u(),n.watchListeners.push(e),async()=>{n.watchListeners=n.watchListeners.filter(i=>i!==e),n.watchListeners.length===0&&await o()}},async unwatch(){n.watchListeners=[],await o()},mount(e,i){if(e=E(e),e&&n.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(n.mountpoints.push(e),n.mountpoints.sort((a,c)=>c.length-a.length)),n.mounts[e]=i,n.watching&&Promise.resolve(L(i,l,e)).then(a=>{n.unwatch[e]=a}).catch(console.error),g},async unmount(e,i=!0){e=E(e),!(!e||!n.mounts[e])&&(n.watching&&e in n.unwatch&&(n.unwatch[e]?.(),delete n.unwatch[e]),i&&await U(n.mounts[e]),n.mountpoints=n.mountpoints.filter(a=>a!==e),delete n.mounts[e])},getMount(e=""){e=w(e)+":";const i=r(e);return{driver:i.driver,base:i.base}},getMounts(e="",i={}){return e=w(e),s(e,i.parents).map(c=>({driver:c.driver,base:c.mountpoint}))},keys:(e,i={})=>g.getKeys(e,i),get:(e,i={})=>g.getItem(e,i),set:(e,i,a={})=>g.setItem(e,i,a),has:(e,i={})=>g.hasItem(e,i),del:(e,i={})=>g.removeItem(e,i),remove:(e,i={})=>g.removeItem(e,i)};return g}function L(t,n,r){return t.watch?t.watch((s,l)=>n(s,r+l)):()=>{}}async function U(t){typeof t.dispose=="function"&&await p(t.dispose)}function ge(t={}){const n=he(r,t.operators);function r(s,l){return typeof l!="object"||l instanceof RegExp?n.$eq(s,l):Object.keys(l||{}).every(u=>{const o=l[u];if(u.startsWith("$")&&n[u]){const m=n[u];return typeof m=="function"?m(s,o):!1}return r(W(s,u),o)})}return r}function he(t,n={}){return{$match:(r,s)=>t(r,s),$eq:(r,s)=>s instanceof RegExp?s.test(r):r===s,$ne:(r,s)=>s instanceof RegExp?!s.test(r):r!==s,$not:(r,s)=>
1!t(r,s),$and:(r,s)=>(P(s,"$and requires an array as condition"),s.every(l=>t(r,l))),$or:(r,s)=>(P(s,"$or requires an array as condition"),s.some(l=>t(r,l))),$in:(r,s)=>O(s).some(l=>Array.isArray(r)?t(r,{$contains:l}):t(r,l)),$contains:(r,s)=>(r=Array.isArray(r)?r:String(r),O(s).every(l=>r.includes(l))),$icontains:(r,s)=>{if(typeof s!="string")throw new TypeError("$icontains requires a string, use $contains instead");return r=String(r).toLocaleLowerCase(),O(s).every(l=>r.includes(l.toLocaleLowerCase()))},$containsAny:(r,s)=>(P(s,"$containsAny requires an array as condition"),r=Array.isArray(r)?r:String(r),s.some(l=>r.includes(l))),$exists:(r,s)=>s?typeof r<"u":typeof r>"u",$type:(r,s)=>typeof r===String(s),$regex:(r,s)=>{if(!(s instanceof RegExp)){const l=String(s).match(/\/(.*)\/([dgimsuy]*)$/);s=l?.[1]?new RegExp(l[1],l[2]||""):new RegExp(s)}return s.test(String(r||""))},$lt:(r,s)=>r<s,$lte:(r,s)=>r<=s,$gt:(r,s)=>r>s,$gte:(r,s)=>r>=s,...n||{}}}function pe(t){const n=ge(),r=(u,{query:o,before:m,after:g})=>{const e=typeof o=="string"?{_path:o}:o,i=u.findIndex(c=>n(c,e));m=m??1,g=g??1;const a=new Array(m+g).fill(null,0);return i===-1?a:a.map((c,f)=>u[i-m+f+ +(f>=m)]||null)},s=[(u,o)=>{const m=u.result.filter(g=>O(o.where).every(e=>n(g,e)));return{...u,result:m,total:m.length}},(u,o)=>O(o.sort).forEach(m=>J(u.result,m)),function(o,m,g){if(m.surround){let e=r(o.result?.length===1?g:o.result,m.surround);e=$(x(m.without))(e),e=$(M(m.only))(e),o.surround=e}return o}],l=[(u,o)=>{if(o.skip)return{...u,result:u.result.slice(o.skip),skip:o.skip}},(u,o)=>{if(o.limit)return{...u,result:u.result.slice(0,o.limit),limit:o.limit}},function(o,m,g){if(m.dirConfig){const e=o.result[0]?._path||m.where?.find(i=>i._path)?._path;if(typeof e=="string"){const i=g.find(a=>a._path===b(e,"_dir"));i&&(o.dirConfig={_path:i._path,...x(["_"])(i)})}}return o},(u,o)=>({...u,result:$(x(o.without))(u.result)}),(u,o)=>({...u,result:$(M(o.only))(u.result)})];return async u=>{const o=await t(),m=u.params(),g={result:o,limit:0,skip:0,total:o.length},e=s.reduce((a,c)=>c(a,m,o)||a,g);if(m.count)return{result:e.result.length};const i=l.reduce((a,c)=>c(a,m,o)||a,e);return m.first?{...k(["skip","limit","total"])(i),result:i.result[0]}:i}}function N(t){const n=pe(t);return async r=>{r.params().first&&r.withDirConfig();const s=r.params(),l=await n(r);return s.surround?l?.surround:(l?.dirConfig&&(l.result={_path:l.dirConfig?._path,...l.result,_dir:l.dirConfig}),l?.result)}}var C={exports:{}},de=C.exports,Y;function ye(){return Y||(Y=1,(function(t,n){(function(r,s,l){t.exports=l(),t.exports.default=l()})("slugify",de,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","Â¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","Ã":"AE","Ã":"C","Ã":"E","Ã":"E","Ã":"E","Ã":"E","Ã":"I","Ã":"I","Ã":"I","Ã":"I","Ã":"D","Ã":"N","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"U","Ã":"U","Ã":"U","Ã":"U","Ã":"Y","Ã":"TH","Ã":"ss","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","Ã":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ä":"A","Ä":"a","Ä":"A","Ä":"a","Ä":"A","Ä
":"a","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"D","Ä":"d","Ä":"DJ","Ä":"dj","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"E","Ä":"e","Ä":"G","Ä":"g","Ä¢":"G","Ä£":"g","Ĩ":"I","Ä©":"i","Ī":"i","Ä«":"i","Ä®":"I","į":"i","İ":"I","ı":"i","Ķ":"k","Ä·":"k","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Å":"L","Å":"l","Å":"N","Å":"n","Å
":"N","Å":"n","Å":"N","Å":"n","Å":"O","Å":"o","Å":"O","Å":"o","Å":"OE","Å":"oe","Å":"R","Å":"r","Å":"R","Å":"r","Å":"S","Å":"s","Å":"S","Å":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Æ":"E","Æ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Ç":"LJ","Ç":"lj","Ç":"NJ","Ç":"nj","È":"S","È":"s","È":"T","È":"t","É":"e","Ë":"o","Î":"A","Î":"E","Î":"H","Î":"I","Î":"O","Î":"Y","Î":"W","Î":"i","Î":"A","Î":"B","Î":"G","Î":"D","Î":"E","Î":"Z","Î":"H","Î":"8","Î":"I","Î":"K","Î":"L","Î":"M","Î":"N","Î":"3","Î":"O","Î ":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","Î":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","Ï":"p","Ï":"r","Ï":"s","Ï":"s","Ï":"t","Ï
":"y","Ï":"f","Ï":"x","Ï":"ps","Ï":"w","Ï":"i","Ï":"y","Ï":"o","Ï":"y","Ï":"w","Ð":"Yo","Ð":"DJ","Ð":"Ye","Ð":"I","Ð":"Yi","Ð":"J","Ð":"LJ","Ð":"NJ","Ð":"C","Ð":"DZ","Ð":"A","Ð":"B","Ð":"V","Ð":"G","Ð":"D","Ð":"E","Ð":"Zh","Ð":"Z","Ð":"I","Ð":"J","Ð":"K","Ð":"L","Ð":"M","Ð":"N","Ð":"O","Ð":"P","Ð ":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Ð":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","Ñ":"r","Ñ":"s","Ñ":"t","Ñ":"u","Ñ":"f","Ñ
":"h","Ñ":"c","Ñ":"ch","Ñ":"sh","Ñ":"sh","Ñ":"u","Ñ":"y","Ñ":"","Ñ":"e","Ñ":"yu","Ñ":"ya","Ñ":"yo","Ñ":"dj","Ñ":"ye","Ñ":"i","Ñ":"yi","Ñ":"j","Ñ":"lj","Ñ":"nj","Ñ":"c","Ñ":"u","Ñ":"dz","Ò":"G","Ò":"g","Ò":"GH","Ò":"gh","Ò":"KH","Ò":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ó":"AE","Ó":"ae","Ó¨"
1:"OE","Ó©":"oe","Ô±":"A","Ô²":"B","Ô³":"G","Ô´":"D","Ôµ":"E","Ô¶":"Z","Ô·":"E'","Ô¸":"Y'","Ô¹":"T'","Ôº":"JH","Ô»":"I","Ô¼":"L","Ô½":"X","Ô¾":"C'","Ô¿":"K","Õ":"H","Õ":"D'","Õ":"GH","Õ":"TW","Õ":"M","Õ
":"Y","Õ":"N","Õ":"SH","Õ":"CH","Õ":"P","Õ":"J","Õ":"R'","Õ":"S","Õ":"V","Õ":"T","Õ":"R","Õ":"C","Õ":"P'","Õ":"Q'","Õ":"O''","Õ":"F","Ö":"EV","Ø¡":"a","Ø¢":"aa","Ø£":"a","ؤ":"u","Ø¥":"i","ئ":"e","ا":"a","ب":"b","Ø©":"h","ت":"t","Ø«":"th","ج":"j","Ø":"h","Ø®":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","Ø´":"sh","ص":"s","ض":"dh","Ø·":"t","ظ":"z","ع":"a","غ":"gh","Ù":"f","Ù":"q","Ù":"k","Ù":"l","Ù
":"m","Ù":"n","Ù":"h","Ù":"w","Ù":"a","Ù":"y","Ù":"an","Ù":"on","Ù":"en","Ù":"a","Ù":"u","Ù":"e","Ù":"","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù¾":"p","Ú":"ch","Ú":"zh","Ú©":"k","Ú¯":"g","Û":"y","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","฿":"baht","á":"a","á":"b","á":"g","á":"d","á":"e","á":"v","á":"z","á":"t","á":"i","á":"k","á":"l","á":"m","á":"n","á":"o","á":"p","á":"zh","á ":"r","á¡":"s","á¢":"t","á£":"u","á¤":"f","á¥":"k","á¦":"gh","á§":"q","á¨":"sh","á©":"ch","áª":"ts","á«":"dz","á¬":"ts","á":"ch","á®":"kh","á¯":"j","á°":"h","á¹¢":"S","á¹£":"s","áº":"W","áº":"w","áº":"W","áº":"w","áº":"W","áº
":"w","áº":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","áº":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","á»":"E","á»":"e","á»":"E","á»":"e","á»":"E","á»
":"e","á»":"E","á»":"e","á»":"I","á»":"i","á»":"I","á»":"i","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","â":"-","â":"'","â":"'","â":"\\"","â":"\\"","â":"\\"","â ":"+","â¢":"*","â¦":"...","â ":"ecu","â¢":"cruzeiro","â£":"french franc","â¤":"lira","â¥":"mill","â¦":"naira","â§":"peseta","â¨":"rupee","â©":"won","âª":"new shequel","â«":"dong","â¬":"euro","â":"kip","â®":"tugrik","â¯":"drachma","â°":"penny","â±":"peso","â²":"guarani","â³":"austral","â´":"hryvnia","âµ":"cedi","â¸":"kazakhstani tenge","â¹":"indian rupee","âº":"turkish lira","â½":"russian ruble","â¿":"bitcoin","â ":"sm","â¢":"tm","â":"d","â":"delta","â":"sum","â":"infinity","â¥":"love","å
":"yuan","å":"yen","ï·¼":"rial","ﻵ":"laa","ï»·":"laa","ﻹ":"lai","ï»»":"la"}`),s=JSON.parse('{"bg":{"Ð":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","Ñ":"ts","Ñ":"sht","Ñ":"a","Ñ":"y"},"de":{"Ã":"AE","ä":"ae","Ã":"OE","ö":"oe","Ã":"UE","ü":"ue","Ã":"ss","%":"prozent","&":"und","|":"oder","â":"summe","â":"unendlich","â¥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","â£":"francos","â":"suma","â":"infinito","â¥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","â£":"franc","â":"somme","â":"infini","â¥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","â":"soma","£":"libra","â":"infinito","â¥":"amor"},"uk":{"Ð":"Y","и":"y","Ð":"Y","й":"y","Ц":"Ts","Ñ":"ts","Ð¥":"Kh","Ñ
":"kh","Щ":"Shch","Ñ":"shch","Ð":"H","г":"h"},"vi":{"Ä":"D","Ä":"d"},"da":{"Ã":"OE","ø":"oe","Ã
":"AA","Ã¥":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Ã
":"AA","Ã":"AE","Ã":"OE","Ã¥":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Ã
":"AA","Ã":"AE","Ã":"OE","Ã¥":"aa","ä":"ae","ö":"oe"}}');function l(u,o){if(typeof u!="string")throw new Error("slugify: string argument expected");
1o=typeof o=="string"?{replacement:o}:o||{};var m=s[o.locale]||{},g=o.replacement===void 0?"-":o.replacement,e=o.trim===void 0?!0:o.trim,i=u.normalize().split("").reduce(function(a,c){var f=m[c];return f===void 0&&(f=r[c]),f===void 0&&(f=c),f===g&&(f=" "),a+f.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(i=i.replace(/[^A-Za-z0-9\s]/g,"")),e&&(i=i.trim()),i=i.replace(/\s+/g,g),o.lower&&(i=i.toLowerCase()),i}return l.extend=function(u){Object.assign(r,u)},l})})(C)),C.exports}ye();const we=t=>t.split(/[\s-]/g).map(H).join(" ");function ve(t,n){const{navigation:r}=D().public.content;if(r===!1)return[];const s=u=>({...Ae(["title",...r.fields])(u),...Ee(u?.navigation)?u.navigation:{}}),l=t.sort((u,o)=>u._path.localeCompare(o._path)).reduce((u,o)=>{const m=o._path.substring(1).split("/"),g=o._id.split(":").slice(1),e=!!g[g.length-1]?.match(/([1-9][0-9]*\.)?index.md/g),i=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...s(f),...f._draft?{_draft:!0}:{}}),a=i(o);if(e){const f=n[a._path];if(typeof f?.navigation<"u"&&!f?.navigation)return u;if(o._path!=="/"){const h=i(o);a.children.push(h)}f&&Object.assign(a,s(f))}return m.length===1?(u.push(a),u):(m.slice(0,-1).reduce((f,h,y)=>{const d="/"+m.slice(0,y+1).join("/"),I=n[d];if(typeof I?.navigation<"u"&&!I.navigation)return[];let v=f.find(A=>A._path===d);return v||(v={title:we(h),_path:d,_file:o._file,children:[],...I&&s(I)},f.push(v)),v.children},u).push(a),u)},[]);return B(l)}const Ie=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function B(t){t.forEach(r=>{r._file=r._file.split(".").slice(0,-1).join(".")});const n=t.sort((r,s)=>Ie.compare(r._file,s._file));for(const r of n)r.children?.length?B(r.children):delete r.children,delete r._file;return t}function Ae(t){return n=>(n=n||{},t&&t.length?t.filter(r=>typeof n[r]<"u").reduce((r,s)=>Object.assign(r,{[s]:n[s]}),{}):n)}function Ee(t){return Object.prototype.toString.call(t)==="[object Object]"}const Oe=t=>G(t,D().public.content.api.baseURL),_e=ae(me({driver:V()}),"@content");function $e(t){async function n(){const r=new Set(await t.getKeys("cache:")),s=z().getPreviewToken();if(s){const u=await t.getItem(`${s}$`).then(g=>g||{});if(Array.isArray(u.ignoreSources)){const g=u.ignoreSources.map(e=>`cache:${e.trim()}:`);for(const e of r)g.some(i=>e.startsWith(i))&&r.delete(e)}const o=await t.getKeys(`${s}:`),m=await Promise.all(o.map(g=>t.getItem(g)));for(const g of m)r.delete(`cache:${g._id}`),g.__deleted||r.add(`${s}:${g._id}`)}return await Promise.all(Array.from(r).map(u=>t.getItem(u)))}return{storage:t,fetch:N(n),query:r=>q(N(n),{initialParams:r,legacy:!0})}}let j=null,S=null;async function Se(){return S?await S:j||(S=Ke(),j=await S),j}async function Ke(){const t=F(),{content:n}=D().public,r=$e(_e),s=await r.storage.getItem("integrity");if(n.integrity!==+(s||0)){const{contents:l,navigation:u}=await $fetch(Oe(n.integrity?`cache.${n.integrity}.json`:"cache.json"));await Promise.all(l.map(o=>r.storage.setItem(`cache:${o._id}`,o))),await r.storage.setItem("navigation",u),await r.storage.setItem("integrity",n.integrity)}return await t.callHook("content:storage",r.storage),r}async function xe(t){const n=await Se();if(!z().getPreviewToken()&&Object.keys(t||{}).length===0)return n.storage.getItem("navigation");const r=await n.query(t).where({_partial:!1,navigation:{$ne:!1}}).find(),l=(await n.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((u,o)=>{o.title?.toLowerCase()==="dir"&&(o.title=void 0);const m=o._path.split("/").slice(0,-1).join("/")||"/";return u[m]={...o,...o.body},u},{});return ve(r,l)}export{_e as contentStorage,$e as createDB,xe as generateNavigation,Se as useContentDatabase};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.