1var wt=Object.defineProperty;var Oe=n=>{throw TypeError(n)};var bt=(n,e,t)=>e in n?wt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var S=(n,e,t)=>bt(n,typeof e!="symbol"?e+"":e,t),ye=(n,e,t)=>e.has(n)||Oe("Cannot "+t);var p=(n,e,t)=>(ye(n,e,"read from private field"),t?t.call(n):e.get(n)),M=(n,e,t)=>e.has(n)?Oe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),A=(n,e,t,i)=>(ye(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t),F=(n,e,t)=>(ye(n,e,"access private method"),t);import{d as xt,u as re,r as Et,a as At,b as Ge,c as ie,o as Tt,_ as St,e as Rt,f as ee,n as Ct,F as _t,g as N,h as ce,i as ke,w as Le,T as Ie,j as De,k as te,t as jt,l as Pt,m as $t,p as Mt,q as Nt,s as Je,v as Ot,x as kt,y as Lt,z as It}from"./DQ0EmJAu.js";import{loadDatabaseAdapter as Z}from"./DdIAmlz3.js";import{r as Dt}from"./BjqVAMZO.js";const Wt={nuxt:{}},zt=xt(Wt);function Ze(){const n=re();return n._appConfig||(n._appConfig=Et(zt)),n._appConfig}const Vt={key:0},Ft={key:0},qt={id:"__preview_loader"},Ht=At({__name:"ContentPreviewMode",props:{previewToken:{type:String,required:!0},api:{type:String,required:!0},initializePreview:{type:Function,required:!0}},setup(n){const e=n,t=["__nuxt_preview","__preview_enabled"],i=re(),o=Ge(),s=ie(!0),r=ie(!1),a=ie(!1),c=ie("");let l;const u=async()=>{De("previewToken").value="",window.sessionStorage.removeItem("previewToken"),window.sessionStorage.removeItem("previewAPI"),await o.replace({query:{preview:void 0}}),window.location.reload()},g=async d=>{await e.initializePreview(d),De("previewToken").value&&(a.value=!0,await o.replace({query:{}}),i.callHook("nuxt-content:preview:ready"),window.parent&&window.self!==window.parent&&l.disconnect())};return Tt(async()=>{l=(await St(()=>import("./RqoUCiIh.js"),[],import.meta.url)).connect(`${e.api}/preview`,{transports:["websocket","polling"],auth:{token:e.previewToken}});let m;l.on("connect",()=>{m=setTimeout(()=>{a.value||(m=setTimeout(()=>{c.value="Preview sync timed out",a.value=!1},3e4),l.emit("draft:requestSync"))},3e4)});const y=()=>{m&&(clearTimeout(m),m=null)};l.on("draft:sync",async h=>{if(y(),!h){try{await $fetch("api/projects/preview/sync",{baseURL:e.api,method:"POST",params:{token:e.previewToken}}),l.once("draft:ready",()=>{l.emit("draft:requestSync")})}catch(f){switch(y(),f.response.status){case 404:c.value="Preview draft not found",a.value=!1;break;default:c.value="An error occurred while syncing preview",a.value=!1}}return}g(h)}),l.on("draft:unauthorized",()=>{y(),c.value="Unauthorized preview",a.value=!1}),l.on("disconnect",()=>{y()}),document.body.classList.add(...t)}),Rt(()=>{document.body.classList.remove(...t)}),(d,m)=>(te(),ee("div",null,[s.value?(te(),ee("div",{key:0,id:"__nuxt_preview",class:Ct({__preview_ready:a.value,__preview_refreshing:r.value})},[a.value?(te(),ee(_t,{key:0},[m[0]||(m[0]=N("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M50.0016 71.0999h29.2561c.9293.0001 1.8422-.241 2.6469-.6992.8047-.4582 1.4729-1.1173 1.9373-1.9109.4645-.7936.7088-1.6939.7083-2.6102-.0004-.9162-.2455-1.8163-.7106-2.6095L64.192 29.713c-.4644-.7934-1.1325-1.4523-1.937-1.9105-.8046-.4581-1.7173-.6993-2.6463-.6993-.9291 0-1.8418.2412-2.6463.6993-.8046.4582-1.4726 1.1171-1.937 1.9105l-5.0238 8.5861-9.8224-16.7898c-.4648-.7934-1.1332-1.4522-1.938-1.9102-.8047-.4581-1.7176-.6992-2.6468-.6992-.9292 0-1.842.2411-2.6468.6992-.8048.458-1.4731 1.1168-1.9379 1.9102L6.56062 63.2701c-.46512.7932-.71021 1.6933-.71061 2.6095-.00041.9163.24389 1.8166.70831 2.6102.46443.7936 1.1326 1.4527 1.93732 1.9109.80473.4582 1.71766.6993 2.64686.6992h18.3646c7.2763 0 12.6422-3.1516 16.3345-9.3002l8.9642-15.3081 4.8015-8.1925 14.4099 24.6083H54.8058l-4.8042 8.1925ZM29.2077 62.899l-12.8161-.0028L35.603 30.0869l9.5857 16.4047-6.418 10.9645c-2.4521 3.9894-5.2377 5.4429-9.563 5.4429Z",fill:"currentColor"})],-1)),m[1]||(m[1]=N("span",null,"Preview enabled",-1)),N("button",{onClick:u}," Close ")],64)):ce("",!0)],2)):ce("",!0),ke(Ie,{name:"preview-loading"},{default:Le(()=>[s.value&&!a.value&&!c.value?(te(),ee("div",Vt,[m[4]||(m[4]=N("div",{id:"__preview_background"},null,-1)),N("div",{id:"__preview_loader"},[m[2]||(m[2]=N("svg",{id:"__preview_loading_icon",width:"32",height:"32",viewBox:"0 0 24 24"},[N("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 0 0 4.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 0 1-15.357-2m15.357 2H15"})],-1)),m[3]||(m[3]=N("p",null,"Initializing the preview...",-1)),N("button",{onClick:u}," Cancel ")])])):ce("",!0)]),_:1}),ke(Ie,{name:"preview-loading"},{default:Le(()=>[c.value?(te(),ee("div",Ft,[m[5]||(m[5]=N("div",{id:"__preview_background"},null,-1)),N("div",qt,[N("p",null,jt(c.value),1),N("button",{onClick:u}," Exit preview ")])])):ce("",!0)]),_:1})]))}}),Bt=Pt(Ht,[["__scopeId","data-v-6a63256e"]]),Ut=/^[A-Za-z]:\//;function ge(n=""){return n&&n.replace(/\\/g,"/").replace(Ut,e=>e.toUpperCase())}const Xt=/^[/\\]{2}/,Kt=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Ye=/^[A-Za-z]:$/,Gt=/.(\.[^./]+|\.)$/,Jt=/^[/\\]|^[a-zA-Z]:[/\\]/,Zt=function(n){if(n.length===0)return".";n=ge(n);const e=n.match(Xt),t=Ee(n),i=n[n.length-1]==="/";return n=Yt(n,!t),n.length===0?t?"/":i?"./":".":(i&&(n+="/"),Ye.test(n)&&(n+="/"),e?t?`//${n}`:`//./${n}`:t&&!Ee(n)?`/${n}`:n)},Qe=function(...n){let e="";for(const t of n)if(t)if(e.length>0){const i=e[e.length-1]==="/",o=t[0]==="/";i&&o?e+=t.slice(1):e+=i||o?t:`/${t}`}else e+=t;return Zt(e)};function Yt(n,e){let t="",i=0,o=-1,s=0,r=null;for(let a=0;a<=n.length;++a){if(a<n.length)r=n[a];else{if(r==="/")break;r="/"}if(r==="/"){if(!(o===a-1||s===1))if(s===2){if(t.length<2||i!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){const c=t.lastIndexOf("/");c===-1?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),o=a,s=0;continue}else if(t.length>0){t="",i=0,o=a,s=0;continue}}e&&(t+=t.length>0?"/..":"..",i=2)}else t.length>0?t+=`/${n.slice(o+1,a)}`:t=n.slice(o+1,a),i=a-o-1;o=a,s=0}else r==="."&&s!==-1?++s:s=-1}return t}const Ee=function(n){return Kt.test(n)},Qt=function(n){if(n==="..")return"";const e=Gt.exec(ge(n));return e&&e[1]||""},et=function(n){const e=ge(n).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Ye.test(e[0])&&(e[0]+="/"),e.join("/")||(Ee(n)?"/":".")},en=function(n,e){const t=ge(n).split("/");let i="";for(let o=t.length-1;o>=0;o--){const s=t[o];if(s){i=s;break}}return e&&i.endsWith(e)?i.slice(0,-e.length):i},tn=function(n){var o,s;const e=((s=(o=Jt.exec(n))==null?void 0:o[0])==null?void 0:s.replace(/\\/g,"/"))||"",t=en(n),i=Qt(t);return{root:e,dir:et(n),base:t,ext:i,name:t.slice(0,t.length-i.length)}},V={appConfig:"app.config.ts",appConfigV4:"app/app.config.ts",nuxtConfig:"nuxt.config.ts"};function ue(n){return n!=null&&n.startsWith("content/")?n.split("/").slice(1).join("/"):$t(n)}function ve(n){const e=ue(n);return Qe(et(e),tn(e).name)}function nn(n=[],e,t){const i=[...e||[]],o=[...t||[]],s=JSON.parse(JSON.stringify(n));for(const a of i)if(a.new)s.push({path:a.path,parsed:a.parsed});else if(a.oldPath)if(o.splice(o.findIndex(l=>l.path===a.oldPath),1),i.find(l=>l.path===a.oldPath))s.push({path:a.path,parsed:a.parsed});else{const l=s.find(u=>u.path===a.oldPath);l&&(l.path=a.path,a.parsed?l.parsed=a.parsed:a.pathMeta&&["_file","_path","_id","_locale"].forEach(u=>{l.parsed[u]=a.pathMeta[u]}))}else{const c=s.find(l=>l.path===a.path);c?Object.assign(c,{path:a.path,parsed:a.parsed}):s.push({path:a.path,parsed:a.parsed})}for(const a of o)s.splice(s.findIndex(c=>c.path===a.path),1);const r=new Intl.Collator(void 0,{numeric:!0});return s.sort((a,c)=>r.compare(a.path,c.path)),s}const sn=Mt((n,e,t)=>{if(Array.isArray(n[e])&&Array.isArray(t))return n[e]=t,!0}),on=n=>{let e;return t=>(e||(e=n()),e)};function tt(n,e){for(const t in n){const i=e[t];t in e||delete n[t],i!==null&&typeof i=="object"&&tt(n[t],e[t])}}function nt(n,e){for(const t in e){const i=e[t];i!==null&&typeof i=="object"?Array.isArray(i)&&Array.isArray(n[t])?n[t]=i:(n[t]=n[t]||{},nt(n[t],i)):n[t]=i}}function it(n){const[e,...t]=n.include.includes("*")?n.include.split("*"):["",n.include];return{fixed:e||"",dynamic:"*"+t.join("*")}}const st=(n,e,t)=>{const{fixed:i}=it(t),o=n.parsed._path.substring(i.length),s=Qe((t==null?void 0:t.prefix)||"",o),r={id:n.parsed._id,stem:n.parsed._stem,meta:{},extension:n.parsed._extension,path:s},a=e.schema.definitions[e.name].properties;
1return Object.keys(n.parsed).forEach(c=>{c in a?r[c]=n.parsed[c]:r.meta[c]=n.parsed[c]}),r};function rn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var we,We;function an(){if(We)return we;We=1,we=n;function n(i,o,s){i instanceof RegExp&&(i=e(i,s)),o instanceof RegExp&&(o=e(o,s));var r=t(i,o,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+i.length,r[1]),post:s.slice(r[1]+o.length)}}function e(i,o){var s=o.match(i);return s?s[0]:null}n.range=t;function t(i,o,s){var r,a,c,l,u,g=s.indexOf(i),d=s.indexOf(o,g+1),m=g;if(g>=0&&d>0){if(i===o)return[g,d];for(r=[],c=s.length;m>=0&&!u;)m==g?(r.push(m),g=s.indexOf(i,m+1)):r.length==1?u=[r.pop(),d]:(a=r.pop(),a<c&&(c=a,l=d),d=s.indexOf(o,m+1)),m=g<d&&g>=0?g:d;r.length&&(u=[c,l])}return u}return we}var be,ze;function cn(){if(ze)return be;ze=1;var n=an();be=u;var e="\0SLASH"+Math.random()+"\0",t="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function r(f){return parseInt(f,10)==f?parseInt(f,10):f.charCodeAt(0)}function a(f){return f.split("\\\\").join(e).split("\\{").join(t).split("\\}").join(i).split("\\,").join(o).split("\\.").join(s)}function c(f){return f.split(e).join("\\").split(t).join("{").split(i).join("}").split(o).join(",").split(s).join(".")}function l(f){if(!f)return[""];var v=[],b=n("{","}",f);if(!b)return f.split(",");var w=b.pre,j=b.body,O=b.post,E=w.split(",");E[E.length-1]+="{"+j+"}";var I=l(O);return O.length&&(E[E.length-1]+=I.shift(),E.push.apply(E,I)),v.push.apply(v,E),v}function u(f){return f?(f.substr(0,2)==="{}"&&(f="\\{\\}"+f.substr(2)),h(a(f),!0).map(c)):[]}function g(f){return"{"+f+"}"}function d(f){return/^-?0\d/.test(f)}function m(f,v){return f<=v}function y(f,v){return f>=v}function h(f,v){var b=[],w=n("{","}",f);if(!w)return[f];var j=w.pre,O=w.post.length?h(w.post,!1):[""];if(/\$$/.test(w.pre))for(var E=0;E<O.length;E++){var I=j+"{"+w.body+"}"+O[E];b.push(I)}else{var ft=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(w.body),Ce=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(w.body),ae=ft||Ce,dt=w.body.indexOf(",")>=0;if(!ae&&!dt)return w.post.match(/,.*\}/)?(f=w.pre+"{"+w.body+i+w.post,h(f)):[f];var P;if(ae)P=w.body.split(/\.\./);else if(P=l(w.body),P.length===1&&(P=h(P[0],!1).map(g),P.length===1))return O.map(function(vt){return w.pre+P[0]+vt});var U;if(ae){var _e=r(P[0]),je=r(P[1]),gt=Math.max(P[0].length,P[1].length),Pe=P.length==3?Math.abs(r(P[2])):1,$e=m,mt=je<_e;mt&&(Pe*=-1,$e=y);var yt=P.some(d);U=[];for(var Q=_e;$e(Q,je);Q+=Pe){var D;if(Ce)D=String.fromCharCode(Q),D==="\\"&&(D="");else if(D=String(Q),yt){var Me=gt-D.length;if(Me>0){var Ne=new Array(Me+1).join("0");Q<0?D="-"+Ne+D.slice(1):D=Ne+D}}U.push(D)}}else{U=[];for(var X=0;X<P.length;X++)U.push.apply(U,h(P[X],!1))}for(var X=0;X<U.length;X++)for(var E=0;E<O.length;E++){var I=j+U[X]+O[E];(!v||ae||I)&&b.push(I)}}return b}return be}var ln=cn();const pn=rn(ln),hn=1024*64,fe=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>hn)throw new TypeError("pattern is too long")},un={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ne=n=>n.replace(/[[\]\\-]/g,"\\$&"),fn=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ve=n=>n.join(""),dn=(n,e)=>{const t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");const i=[],o=[];let s=t+1,r=!1,a=!1,c=!1,l=!1,u=t,g="";e:for(;s<n.length;){const h=n.charAt(s);if((h==="!"||h==="^")&&s===t+1){l=!0,s++;continue}if(h==="]"&&r&&!c){u=s+1;break}if(r=!0,h==="\\"&&!c){c=!0,s++;continue}if(h==="["&&!c){for(const[f,[v,b,w]]of Object.entries(un))if(n.startsWith(f,s)){if(g)return["$.",!1,n.length-t,!0];s+=f.length,w?o.push(v):i.push(v),a=a||b;continue e}}if(c=!1,g){h>
1g?i.push(ne(g)+"-"+ne(h)):h===g&&i.push(ne(h)),g="",s++;continue}if(n.startsWith("-]",s+1)){i.push(ne(h+"-")),s+=2;continue}if(n.startsWith("-",s+1)){g=h,s+=2;continue}i.push(ne(h)),s++}if(u<s)return["",!1,0,!1];if(!i.length&&!o.length)return["$.",!1,n.length-t,!0];if(o.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!l){const h=i[0].length===2?i[0].slice(-1):i[0];return[fn(h),!1,u-t,!1]}const d="["+(l?"^":"")+Ve(i)+"]",m="["+(l?"":"^")+Ve(o)+"]";return[i.length&&o.length?"("+d+"|"+m+")":i.length?d:m,a,u-t,!0]},se=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),gn=new Set(["!","?","+","*","@"]),Fe=n=>gn.has(n),mn="(?!(?:^|/)\\.\\.?(?:$|/))",le="(?!\\.)",yn=new Set(["[","."]),vn=new Set(["..","."]),wn=new Set("().*{}+?[]^$\\!"),bn=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Re="[^/]",qe=Re+"*?",He=Re+"+?";var R,C,z,x,T,q,K,H,W,G,oe,J,ot,B,pe,Ae,rt;const $=class ${constructor(e,t,i={}){M(this,J);S(this,"type");M(this,R);M(this,C);M(this,z,!1);M(this,x,[]);M(this,T);M(this,q);M(this,K);M(this,H,!1);M(this,W);M(this,G);M(this,oe,!1);this.type=e,e&&A(this,C,!0),A(this,T,t),A(this,R,p(this,T)?p(p(this,T),R):this),A(this,W,p(this,R)===this?i:p(p(this,R),W)),A(this,K,p(this,R)===this?[]:p(p(this,R),K)),e==="!"&&!p(p(this,R),H)&&p(this,K).push(this),A(this,q,p(this,T)?p(p(this,T),x).length:0)}get hasMagic(){if(p(this,C)!==void 0)return p(this,C);for(const e of p(this,x))if(typeof e!="string"&&(e.type||e.hasMagic))return A(this,C,!0);return p(this,C)}toString(){return p(this,G)!==void 0?p(this,G):this.type?A(this,G,this.type+"("+p(this,x).map(e=>String(e)).join("|")+")"):A(this,G,p(this,x).map(e=>String(e)).join(""))}push(...e){for(const t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof $&&p(t,T)===this))throw new Error("invalid part: "+t);p(this,x).push(t)}}toJSON(){var t;const e=this.type===null?p(this,x).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...p(this,x).map(i=>i.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===p(this,R)||p(p(this,R),H)&&((t=p(this,T))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(p(this,R)===this)return!0;if(!((t=p(this,T))!=null&&t.isStart()))return!1;if(p(this,q)===0)return!0;const e=p(this,T);for(let i=0;i<p(this,q);i++){const o=p(e,x)[i];if(!(o instanceof $&&o.type==="!"))return!1}return!0}isEnd(){var t,i,o;if(p(this,R)===this||((t=p(this,T))==null?void 0:t.type)==="!")return!0;if(!((i=p(this,T))!=null&&i.isEnd()))return!1;if(!this.type)return(o=p(this,T))==null?void 0:o.isEnd();const e=p(this,T)?p(p(this,T),x).length:0;return p(this,q)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){const t=new $(this.type,e);for(const i of p(this,x))t.copyIn(i);return t}static fromGlob(e,t={}){var o;const i=new $(null,void 0,t);return F(o=$,B,pe).call(o,e,i,0,t),i}toMMPattern(){if(this!==p(this,R))return p(this,R).toMMPattern();const e=this.toString(),[t,i,o,s]=this.toRegExpSource();if(!(o||p(this,C)||p(this,W).nocase&&!p(this,W).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;const a=(p(this,W).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return p(this,W)}toRegExpSource(e){var c;const t=e??!!p(this,W).dot;if(p(this,R)===this&&F(this,J,ot).call(this),!this.type){const l=this.isStart()&&this.isEnd(),u=p(this,x).map(y=>{var w;const[h,f,v,b]=typeof y=="string"?F(w=$,B,rt).call(w,y,p(this,C),l):y.toRegExpSource(e);return A(this,C,p(this,C)||v),A(this,z,p(this,z)||b),h}).join("");let g="";if(this.isStart()&&typeof p(this,x)[0]=="string"&&!(p(this,x).length===1&&vn.has(p(this,x)[0]))){const h=yn,f=t&&h.has(u.charAt(0))||u.startsWith("\\.")&&h.has(u.charAt(2))||u.startsWith("\\.\\.")&&h.has(u.charAt(4)),v=!t&&!e&&h.has(u.charAt(0));g=f?mn:v?le:""}let d="";return this.isEnd()&&p(p(this,R),H)&&((c=p(this,T))==null?void 0:c.type)==="!"&&(d="(?:$|\\/)"),[g+u+d,se(u),A(this,C,!!p(this,C)),p(this,z)]}const i=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let s=F(this,J,Ae).call(this,t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const l=this.toString();return A(this,x,[l]),this.type=null,A(this,C,void 0),[l,se(this.toString()),!1,!1]}let r=!i||e||t||!le?"":F(this,J,Ae).call(this,!0);r===s&&(r=""),r&&(s=`(?:${s})(?:${r})*?`);let a="";
1if(this.type==="!"&&p(this,oe))a=(this.isStart()&&!t?le:"")+He;else{const l=this.type==="!"?"))"+(this.isStart()&&!t&&!e?le:"")+qe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&r?")":this.type==="*"&&r?")?":`)${this.type}`;a=o+s+l}return[a,se(s),A(this,C,!!p(this,C)),p(this,z)]}};R=new WeakMap,C=new WeakMap,z=new WeakMap,x=new WeakMap,T=new WeakMap,q=new WeakMap,K=new WeakMap,H=new WeakMap,W=new WeakMap,G=new WeakMap,oe=new WeakMap,J=new WeakSet,ot=function(){if(this!==p(this,R))throw new Error("should only call on root");if(p(this,H))return this;this.toString(),A(this,H,!0);let e;for(;e=p(this,K).pop();){if(e.type!=="!")continue;let t=e,i=p(t,T);for(;i;){for(let o=p(t,q)+1;!i.type&&o<p(i,x).length;o++)for(const s of p(e,x)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(p(i,x)[o])}t=i,i=p(t,T)}}return this},B=new WeakSet,pe=function(e,t,i,o){var m,y;let s=!1,r=!1,a=-1,c=!1;if(t.type===null){let h=i,f="";for(;h<e.length;){const v=e.charAt(h++);if(s||v==="\\"){s=!s,f+=v;continue}if(r){h===a+1?(v==="^"||v==="!")&&(c=!0):v==="]"&&!(h===a+2&&c)&&(r=!1),f+=v;continue}else if(v==="["){r=!0,a=h,c=!1,f+=v;continue}if(!o.noext&&Fe(v)&&e.charAt(h)==="("){t.push(f),f="";const b=new $(v,t);h=F(m=$,B,pe).call(m,e,b,h,o),t.push(b);continue}f+=v}return t.push(f),h}let l=i+1,u=new $(null,t);const g=[];let d="";for(;l<e.length;){const h=e.charAt(l++);if(s||h==="\\"){s=!s,d+=h;continue}if(r){l===a+1?(h==="^"||h==="!")&&(c=!0):h==="]"&&!(l===a+2&&c)&&(r=!1),d+=h;continue}else if(h==="["){r=!0,a=l,c=!1,d+=h;continue}if(Fe(h)&&e.charAt(l)==="("){u.push(d),d="";const f=new $(h,u);u.push(f),l=F(y=$,B,pe).call(y,e,f,l,o);continue}if(h==="|"){u.push(d),d="",g.push(u),u=new $(null,t);continue}if(h===")")return d===""&&p(t,x).length===0&&A(t,oe,!0),u.push(d),d="",t.push(...g,u),l;d+=h}return t.type=null,A(t,C,void 0),A(t,x,[e.substring(i-1)]),l},Ae=function(e){return p(this,x).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");const[i,o,s,r]=t.toRegExpSource(e);return A(this,z,p(this,z)||r),i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},rt=function(e,t,i=!1){let o=!1,s="",r=!1;for(let a=0;a<e.length;a++){const c=e.charAt(a);if(o){o=!1,s+=(wn.has(c)?"\\":"")+c;continue}if(c==="\\"){a===e.length-1?s+="\\\\":o=!0;continue}if(c==="["){const[l,u,g,d]=dn(e,a);if(g){s+=l,r=r||u,a+=g-1,t=t||d;continue}}if(c==="*"){i&&e==="*"?s+=He:s+=qe,t=!0;continue}if(c==="?"){s+=Re,t=!0;continue}s+=bn(c)}return[s,se(e),!!t,r]},M($,B);let de=$;const xn=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var xe={};const _=(n,e,t={})=>(fe(e),!t.nocomment&&e.charAt(0)==="#"?!1:new me(e,t).match(n)),En=/^\*+([^+@!?\*\[\(]*)$/,An=n=>e=>!e.startsWith(".")&&e.endsWith(n),Tn=n=>e=>e.endsWith(n),Sn=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),Rn=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),Cn=/^\*+\.\*+$/,_n=n=>!n.startsWith(".")&&n.includes("."),jn=n=>n!=="."&&n!==".."&&n.includes("."),Pn=/^\.\*+$/,$n=n=>n!=="."&&n!==".."&&n.startsWith("."),Mn=/^\*+$/,Nn=n=>n.length!==0&&!n.startsWith("."),On=n=>n.length!==0&&n!=="."&&n!=="..",kn=/^\?+([^+@!?\*\[\(]*)?$/,Ln=([n,e=""])=>{const t=at([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},In=([n,e=""])=>{const t=ct([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},Dn=([n,e=""])=>{const t=ct([n]);return e?i=>t(i)&&i.endsWith(e):t},Wn=([n,e=""])=>{const t=at([n]);return e?i=>t(i)&&i.endsWith(e):t},at=([n])=>{const e=n.length;return t=>t.length===e&&!t.startsWith(".")},ct=([n])=>{const e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},lt=typeof process=="object"&&process?typeof xe=="object"&&xe&&xe.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Be={win32:{sep:"\\"},posix:{sep:"/"}},zn=lt==="win32"?Be.win32.sep:Be.posix.sep;_.sep=zn;const L=Symbol("globstar **");_.GLOBSTAR=L;const Vn="[^/]",Fn=Vn+"*?",qn="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Hn="(?:(?!(?:\\/|^)\\.).)*?",Bn=(n,e={})=>t=>_(t,n,e);_.filter=Bn;const k=(n,e={})=>Object.assign({},n,e),Un=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return _;const e=_;return Object.assign((i,o,s={})=>e(i,o,k(n,s)),{Minimatch:class extends e.Minimatch{constructor(o,s={}){super(o,k(n,s))}static defaults(o){return e.defaults(k(n,o)).Minimatch}},AST:class extends e.AST{constructor(o,s,r={}){super(o,s,k(n,r))}static fromGlob(o,s={}){return e.AST.fromGlob(o,k(n,s))}},unescape:(i,o={})=>e.unescape(i,k(n,o)),escape:(i,o={})=>e.escape(i,k(n,o)),filter:(i,o={})=>e.filter(i,k(n,o)),defaults:i=>e.defaults(k(n,i)),makeRe:(i,o={})=>e.makeRe(i,k(n,o)),braceExpand:(i,o={})=>e.braceExpand(i,k(n,o)),match:(i,o,s={})=>e.match(i,o,k(n,s)),sep:e.sep,GLOBSTAR:L})};_.defaults=Un;const pt=(n,e={})=>(fe(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:pn(n));_.braceExpand=pt;const Xn=(n,e={})=>new me(n,e).makeRe();_.makeRe=Xn;const Kn=(n,e,t={})=>{const i=new me(e,t);return n=n.filter(o=>
1i.match(o)),i.options.nonull&&!n.length&&n.push(e),n};_.match=Kn;const Ue=/[?*]|[+@!]\(.*?\)|\[|\]/,Gn=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class me{constructor(e,t={}){S(this,"options");S(this,"set");S(this,"pattern");S(this,"windowsPathsNoEscape");S(this,"nonegate");S(this,"negate");S(this,"comment");S(this,"empty");S(this,"preserveMultipleSlashes");S(this,"partial");S(this,"globSet");S(this,"globParts");S(this,"nocase");S(this,"isWindows");S(this,"platform");S(this,"windowsNoMagicRoot");S(this,"regexp");fe(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||lt,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let o=this.globParts.map((s,r,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){const c=s[0]===""&&s[1]===""&&(s[2]==="?"||!Ue.test(s[2]))&&!Ue.test(s[3]),l=/^[a-z]:/i.test(s[0]);if(c)return[...s.slice(0,4),...s.slice(4).map(u=>this.parse(u))];if(l)return[s[0],...s.slice(1).map(u=>this.parse(u))]}return s.map(c=>this.parse(c))});if(this.debug(this.pattern,o),this.set=o.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const r=this.set[s];r[0]===""&&r[1]===""&&this.globParts[s][2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])&&(r[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let o=0;o<e[i].length;o++)e[i][o]==="**"&&(e[i][o]="*");const{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){let o=i;for(;t[o+1]==="**";)o++;o!==i&&t.splice(i,o-i)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((i,o)=>{const s=i[i.length-1];return o==="**"&&s==="**"?i:o===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(o),i)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let o=1;o<e.length-1;o++){const s=e[o];o===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(o,1),o--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){const o=e[i-1];o&&o!=="."&&o!==".."&&o!=="**"&&(t=!0,e.splice(i-1,2),i-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let i of e){let o=-1;for(;(o=i.indexOf("**",o+1))!==-1;){let r=o;for(;i[r+1]==="**";)r++;r>o&&i.splice(o+1,r-o);let a=i[o+1];const c=i[o+2],l=i[o+3];if(a!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;t=!0,i.splice(o,1);const u=i.slice(0);u[o]="**",e.push(u),o--}if(!this.preserveMultipleSlashes){for(let r=1;r<i.length-1;r++){const a=i[r];r===1&&a===""&&i[0]===""||(a==="."||a==="")&&(t=!0,i.splice(r,1),r--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(t=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const r=i[s-1];if(r&&r!=="."&&r!==".."&&r!=="**"){t=!0;const c=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...c),i.length===0&&i.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let i=t+1;i<e.length;i++){const o=this.partsMatch(e[t],e[i],!this.preserveMultipleSlashes);if(o){e[t]=[],e[i]=o;break}}return e.filter(t=>t.length)}partsMatch(e,t,i=!1){let o=0,s=0,r=[],a="";for(;o<e.length&&s<t.length;)if(e[o]===t[s])r.push(a==="b"?t[s]:e[o]),o++,s++;else if(i&&e[o]==="**"&&t[s]===e[o+1])r.push(e[o]),o++;else if(i&&t[s]==="**"&&e[o]===t[s+1])r.push(t[s]),s++;else if(e[o]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(a==="b")return!1;a="a",r.push(e[o]),o++,s++}
1else if(t[s]==="*"&&e[o]&&(this.options.dot||!e[o].startsWith("."))&&e[o]!=="**"){if(a==="a")return!1;a="b",r.push(t[s]),o++,s++}else return!1;return e.length===t.length&&r}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=!1,i=0;for(let o=0;o<e.length&&e.charAt(o)==="!";o++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}matchOne(e,t,i=!1){const o=this.options;if(this.isWindows){const h=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),f=!h&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),w=f?3:h?0:void 0,j=b?3:v?0:void 0;if(typeof w=="number"&&typeof j=="number"){const[O,E]=[e[w],t[j]];O.toLowerCase()===E.toLowerCase()&&(t[j]=O,j>w?t=t.slice(j):w>j&&(e=e.slice(w)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var r=0,a=0,c=e.length,l=t.length;r<c&&a<l;r++,a++){this.debug("matchOne loop");var u=t[a],g=e[r];if(this.debug(t,u,g),u===!1)return!1;if(u===L){this.debug("GLOBSTAR",[t,u,g]);var d=r,m=a+1;if(m===l){for(this.debug("** at the end");r<c;r++)if(e[r]==="."||e[r]===".."||!o.dot&&e[r].charAt(0)===".")return!1;return!0}for(;d<c;){var y=e[d];if(this.debug(` 2globstar while`,e,d,t,m,y),this.matchOne(e.slice(d),t.slice(m),i))return this.debug("globstar found match!",d,c,y),!0;if(y==="."||y===".."||!o.dot&&y.charAt(0)==="."){this.debug("dot detected!",e,d,t,m);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(i&&(this.debug(` 3>>> no match, partial?`,e,d,t,m),d===c))}let h;if(typeof u=="string"?(h=g===u,this.debug("string match",u,g,h)):(h=u.test(g),this.debug("pattern match",u,g,h)),!h)return!1}if(r===c&&a===l)return!0;if(r===c)return i;if(a===l)return r===c-1&&e[r]==="";throw new Error("wtf?")}braceExpand(){return pt(this.pattern,this.options)}parse(e){fe(e);const t=this.options;if(e==="**")return L;if(e==="")return"";let i,o=null;(i=e.match(Mn))?o=t.dot?On:Nn:(i=e.match(En))?o=(t.nocase?t.dot?Rn:Sn:t.dot?Tn:An)(i[1]):(i=e.match(kn))?o=(t.nocase?t.dot?In:Ln:t.dot?Dn:Wn)(i):(i=e.match(Cn))?o=t.dot?jn:_n:(i=e.match(Pn))&&(o=$n);const s=de.fromGlob(e,this.options).toMMPattern();return o&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:o}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,i=t.noglobstar?Fn:t.dot?qn:Hn,o=new Set(t.nocase?["i"]:[]);let s=e.map(c=>{const l=c.map(u=>{if(u instanceof RegExp)for(const g of u.flags.split(""))o.add(g);return typeof u=="string"?Gn(u):u===L?L:u._src});return l.forEach((u,g)=>{const d=l[g+1],m=l[g-1];u!==L||m===L||(m===void 0?d!==void 0&&d!==L?l[g+1]="(?:\\/|"+i+"\\/)?"+d:l[g]=i:d===void 0?l[g-1]=m+"(?:\\/|"+i+")?":d!==L&&(l[g-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,l[g+1]=L))}),l.filter(u=>u!==L).join("/")}).join("|");const[r,a]=e.length>1?["(?:",")"]:["",""];s="^"+r+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;const i=this.options;this.isWindows&&(e=e.split("\\").join("/"));const o=this.slashSplit(e);this.debug(this.pattern,"split",o);const s=this.set;this.debug(this.pattern,"set",s);let r=o[o.length-1];if(!r)for(let a=o.length-2;!r&&a>=0;a--)r=o[a];for(let a=0;a<s.length;a++){const c=s[a];let l=o;if(i.matchBase&&c.length===1&&(l=[r]),this.matchOne(l,c,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return _.defaults(e).Minimatch}}_.AST=de;_.Minimatch=me;_.escape=xn;_.unescape=se;function Jn(n){const e=new Set([n.id?"id":void 0,n.title?"title":void 0,...Object.keys(n).sort()].filter(Boolean));return Array.from(e)}const he=(n,e)=>{let t;return{collection:Object.values(e).find(o=>{if(!o.source||o.source.length===0)return;
3const s=ue(n);return(s==="/"?["index.yml","index.yaml","index.md","index.json"]:[s]).some(a=>(t=o.source.find(c=>_(a,c.include)),t))}),matchedSource:t}},Zn=(n,e)=>{let t;return{collection:Object.values(e).find(o=>{if(!(!o.source||o.source.length===0))return t=o.source.find(s=>{if(!n.startsWith(s.prefix))return;if(n==="/")return["index.yml","index.yaml","index.md","index.json"].some(u=>o.source.find(g=>_(u,g.include)));const r=n.substring(s.prefix.length),{fixed:a}=it(s),c=Nt(a,r),l=s.include.replace(/\.[^/.]+$/,"");return _(c,l)}),t}),matchedSource:t}};function ht(n,e){const t=Qn(n,e);let i=0;return`INSERT INTO ${n.tableName} VALUES (${"?, ".repeat(t.length).slice(0,-2)})`.replace(/\?/g,()=>t[i++])}function Yn(n,e,t){const i=ut(n,e),o=ht(n,t);return`${i}; ${o}`}function ut(n,e){return`DELETE FROM ${n.tableName} WHERE stem = '${e}';`}function Xe(n,e,t){return`SELECT * FROM ${n.tableName} WHERE ${e} = '${t}';`}function Qn(n,e){const t=[],i=n.schema.definitions[n.name].properties;return Jn(i).forEach(s=>{const r=i[s],a=r.type,c=r.default!==void 0?r.default:"NULL",l=typeof e[s]<"u"?e[s]:c;n.fields[s]==="json"?t.push(`'${JSON.stringify(l).replace(/'/g,"''")}'`):["string","enum"].includes(a)?t.push(`'${String(l).replace(/\n/g,"\\n").replace(/'/g,"''")}'`):t.push(l)}),t}const ei=["https://nuxt.studio","https://dev.nuxt.studio"],Y={content:{name:"content",pascalName:"Content",tableName:"_content_content",source:[{_resolved:!0,prefix:"/",include:"**/*.md",cwd:"/home/runner/work/nawazishali.github.io/nawazishali.github.io/content"}],type:"page",fields:{id:"string",stem:"string",extension:"string",meta:"json",path:"string",title:"string",description:"string",seo:"json",body:"json",navigation:"json"},schema:{$ref:"#/definitions/content",definitions:{content:{type:"object",properties:{id:{type:"string"},stem:{type:"string"},extension:{type:"string",enum:["md","yaml","yml","json","csv","xml"]},meta:{type:"object",additionalProperties:{}},path:{type:"string"},title:{type:"string"},description:{type:"string"},seo:{allOf:[{type:"object",properties:{title:{type:"string"},description:{type:"string"}}},{type:"object",additionalProperties:{}}],default:{}},body:{type:"object",properties:{type:{type:"string"},children:{},toc:{}},required:["type"],additionalProperties:!1},navigation:{anyOf:[{type:"boolean"},{type:"object",properties:{title:{type:"string"},description:{type:"string"},icon:{type:"string"}},required:["title","description","icon"],additionalProperties:!1}],default:!0}},required:["id","stem","extension","meta","path","title","description","body"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},tableDefinition:`CREATE TABLE IF NOT EXISTS _content_content (id TEXT PRIMARY KEY, "title" VARCHAR, "body" TEXT, "description" VARCHAR, "extension" VARCHAR, "meta" TEXT, "navigation" TEXT DEFAULT true, "path" VARCHAR, "seo" TEXT DEFAULT '{}', "stem" VARCHAR);`},blogs:{name:"blogs",pascalName:"Blogs",tableName:"_content_blogs",source:[{_resolved:!0,prefix:"/",include:"**/*.md",cwd:"/home/runner/work/nawazishali.github.io/nawazishali.github.io/content"}],type:"page",fields:{id:"string",stem:"string",extension:"string",meta:"json",path:"string",title:"string",description:"string",seo:"json",body:"json",navigation:"json"},schema:{$ref:"#/definitions/blogs",definitions:{blogs:{type:"object",properties:{id:{type:"string"},stem:{type:"string"},extension:{type:"string",enum:["md","yaml","yml","json","csv","xml"]},meta:{type:"object",additionalProperties:{}},path:{type:"string"},title:{type:"string"},description:{type:"string"},seo:{allOf:[{type:"object",properties:{title:{type:"string"},description:{type:"string"}}},{type:"object",additionalProperties:{}}],default:{}},body:{type:"object",properties:{type:{type:"string"},children:{},toc:{}},required:["type"],additionalProperties:!1},navigation:{anyOf:[{type:"boolean"},{type:"object",properties:{title:{type:"string"},description:{type:"string"},icon:{type:"string"}},required:["title","description","icon"],additionalProperties:!1}],default:!0}},required:["id","stem","extension","meta","path","title","description","body"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},tableDefinition:`CREATE TABLE IF NOT EXISTS _content_blogs (id TEXT PRIMARY KEY, "title" VARCHAR, "body" TEXT, "description" VARCHAR, "extension" VARCHAR, "meta" TEXT, "navigation" TEXT DEFAULT true, "path" VARCHAR, "seo" TEXT DEFAULT '{}', "stem" VARCHAR);`},projects:{name:"projects",pascalName:"Projects",tableName:"_content_projects",source:[{_resolved:!0,prefix:"/data/projects",include:"data/projects/**.json",cwd:"/home/runner/work/nawazishali.github.io/nawazishali.github.io/content"}],type:"data",fields:{id:"string",stem:"string",extension:"string",meta:"json",name:"string",description:"string",invlovement:"string",Job:"string",imageUrl:"string",builtWith:"json",link:"string"},schema:{$ref:"#/definitions/projects",definitions:{projects:{type:"object",properties:{id:{type:"string"},stem:{type:"string"},extension:{type:"string",enum:["md","yaml","yml","json","csv","xml"]},meta:{type:"object",additionalProperties:{}},name:{type:"string"},description:{type:"string"},invlovement:{type:"string"},Job:{type:"string"},imageUrl:{type:"string"},builtWith:{type:"array",items:{type:"string"}},link:{type:"string"}},required:["id","stem","extension","meta","name","description","invlovement","Job","imageUrl","builtWith","link"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},tableDefinition:'CREATE TABLE IF NOT EXISTS _content_projects (id TEXT PRIMARY KEY, "Job" VARCHAR, "builtWith" TEXT, "description" VARCHAR, "extension" VARCHAR, "imageUrl" VARCHAR, "invlovement" VARCHAR, "link" VARCHAR, "meta" TEXT, "name" VARCHAR, "stem" VARCHAR);'},info:{name:"info",pascalName:"Info",tableName:"_content_info",type:"data",fields:{},schema:{$ref:"#/definitions/info",definitions:{info:{type:"object",properties:{id:{type:"string"},version:{type:"string"}},required:["id","version"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},tableDefinition:'CREATE TABLE IF NOT EXISTS _content_info (id TEXT PRIMARY KEY, "version" VARCHAR);'}},Te=ie(!1),Ke=on(()=>JSON.parse(JSON.stringify(Ze()))),ti=async n=>
3{const e=nn(n.files,n.additions,n.deletions),t=e.filter(o=>![V.appConfig,V.appConfigV4,V.nuxtConfig].includes(o.path));for(const o of Object.values(Y))await Z(o.name).exec(o.tableDefinition);for(const o of t)await ni(Y,o);const i=e.find(o=>[V.appConfig,V.appConfigV4].includes(o.path));i&&Se(i.parsed),Dt(),Te.value=!0},ni=async(n,e)=>{const{collection:t,matchedSource:i}=he(e.path,n);if(!t){console.warn(`Content Preview: collection not found for file: ${e.path}, skipping insertion.`);return}const o=Z(t.name),s=st(e,t,i),r=ht(t,s);await o.exec(r)},Se=n=>{const e=re(),t=It(e,Ze);nt(t,sn(n||{},Ke)),n||tt(t,Ke)};function pi(){const n=Je().public.preview||{},e=window.sessionStorage.getItem("previewToken"),t=document.createElement("div");t.id="__nuxt_preview_wrapper",document.body.appendChild(t),Ot(Bt,{previewToken:e,api:window.sessionStorage.getItem("previewAPI")||(n==null?void 0:n.api),initializePreview:ti}).mount(t)}function hi(){const n=re(),e=Je().public.preview;if(!window.parent||window.self===window.parent)return;
3const t=Ge(),i=kt();window.addEventListener("keydown",s=>{(s.metaKey||s.ctrlKey||s.altKey||s.shiftKey)&&window.parent.postMessage({type:"nuxt-content:preview:keydown",payload:{key:s.key,metaKey:s.metaKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,altKey:s.altKey}},"*")}),window.addEventListener("message",async s=>{var m;if(!Te.value)return;const r=((m=e==null?void 0:e.iframeMessagingAllowedOrigins)==null?void 0:m.split(",").map(y=>y.trim()))||[];if(!["http://localhost:3000",...ei,...r].includes(s.origin))return;const{type:a,payload:c={},navigate:l}=s.data||{};switch(a){case"nuxt-content:editor:file-selected":{await u(c.path);break}case"nuxt-content:editor:file-changed":case"nuxt-content:editor:media-changed":{const{additions:y=[],deletions:h=[]}=c;for(const f of y)await g(f,l);for(const f of h)await d(f.path);ii();break}case"nuxt-content:config:file-changed":{const{additions:y=[],deletions:h=[]}=c,f=y.find(b=>[V.appConfig,V.appConfigV4].includes(b.path));f&&Se(f==null?void 0:f.parsed),h.find(b=>[V.appConfig,V.appConfigV4].includes(b.path))&&Se(void 0)}}async function u(y){if(!y)return;const{collection:h}=he(ue(y),Y);if(!h){console.warn(`Content Preview: collection not found for file: ${y}, skipping navigation.`);return}if(h.type!=="page")return;const f=Z(h.name),v=ve(y),b=Xe(h,"stem",v),w=await f.first(b);if(!w||!w.path)return;const j=t.resolve(w.path);!j||!j.matched||j.matched.length===0||w.path!==i.path&&t.push(w.path)}async function g(y,h){const{collection:f,matchedSource:v}=he(y.path,Y);if(!f){console.warn(`Content Preview: collection not found for file: ${y.path}, skipping update.`);return}const b=ve(y.path),w=st({path:y.path,parsed:y.parsed},f,v),j=Yn(f,b,w);if(await Z(f.name).exec(j),f.type!=="page"||!y.pathRoute)return;const E=Lt(y.pathRoute);if(h&&E!==i.path){const I=t.resolve(E);if(!I||!I.matched||I.matched.length===0)return;t.push(E)}}async function d(y){const{collection:h}=he(ue(y),Y);if(!h){console.warn(`Content Preview: collection not found for file: ${y}, skipping deletion.`);return}const f=ve(y),v=ut(h,f);await Z(h.name).exec(v)}});async function o(){if(!Te.value)return;const s=i.path,{collection:r}=Zn(s,Y);(!r||r.type!=="page")&&window.sendNavigateMessageInPreview(s,!1);const a=Z(r.name),c=Xe(r,"path",s),l=await a.first(c);window.sendNavigateMessageInPreview(s,!!(l!=null&&l.path))}n.hook("page:finish",()=>{o()}),n.hook("nuxt-content:preview:ready",()=>{window.parent.postMessage({type:"nuxt-content:preview:ready"},"*")}),window.sendNavigateMessageInPreview=(s,r)=>{window.parent.postMessage({type:"nuxt-content:preview:navigate",payload:{path:s,navigate:r}},"*")}}async function ii(){await re().hooks.callHookParallel("app:data:refresh")}export{hi as initIframeCommunication,pi as mountPreviewUI};
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.