const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BO40Wv73.js","./vue-BfodOvnP.js"])))=>i.map(i=>d[i]);
var R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&w(o,t,e[t]);if(v)for(var t of v(e))P.call(e,t)&&w(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(p){s(p)}},n=a=>{try{i(t.throw(a))}catch(p){s(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as y}from"./monaco-editor-B5WqzYTl.js";import{useRoute as V}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{h as g,p as T,o as k,l as B,_ as D,u as I,A as O,n as L}from"./Editor-_84wgCQz-ClJHNWEl.js";import{a as S,n as E,l as q,E as z}from"./utils-D2Sd6tKP.js";import{q as H}from"./@vueuse-vmN9qs5b.js";import{d as K,ay as A,e as N,K as b,O as j,P as F,o as G,h as J}from"./vue-BfodOvnP.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const pe=K({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(T(E)),s=([e,t]=A(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=k({loading:q,notify:E,useTitle:H,alert:S,access:s==null?void 0:s.access}),n=s?([e,t]=A(()=>new z(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=B({mode:D.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>y(()=>import("./vue-BfodOvnP.js").then(m=>m.az),[],import.meta.url),VueRouter:()=>y(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),h=V(),u=N(),l=J();return p(()=>f(null,null,function*(){const m=yield I(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(O),r.use(a),u.value=yield a.getRenderComponent(h.params.id.toString(),C=>{L(r,h,C)}))})),(m,r)=>u.value?(G(),b(F(u.value),{key:0})):j("",!0)})}});export{pe as default};
