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