!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(t,o,u,a){var i=o&&o.prototype instanceof s?o:s,l=Object.create(i.prototype);return n(l,"_invoke",function(t,n,o){var u,a,i,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return u=t,a=0,i=e,p.n=n,c}};function y(t,n){for(a=t,i=n,r=0;!f&&s&&!o&&r<l.length;r++){var o,u=l[r],y=p.p,v=u[2];t>3?(o=v===n)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=e):u[0]<=y&&((o=t<2&&y<u[1])?(a=0,p.v=n,p.n=u[1]):y<v&&(o=t<3||u[0]>n||n>v)&&(u[4]=t,u[5]=n,p.n=v,a=0))}if(o||t>1)return c;throw f=!0,n}return function(o,l,v){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,v),a=l,i=v;(r=a<2?e:i)||!f;){u||(a?a<3?(a>1&&(p.n=-1),y(a,i)):p.n=i:p.v=i);try{if(s=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=e}else if((r=(f=p.n<0)?i:t.call(n,p))!==c)break}catch(r){u=e,a=1,i=r}finally{s=1}}return{value:r,done:f}}}(t,u,a),!0),l}var c={};function s(){}function l(){}function f(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(n(r={},u,function(){return this}),r),y=f.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,n(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t}return l.prototype=f,n(y,"constructor",f),n(f,"constructor",l),l.displayName="GeneratorFunction",n(f,a,"GeneratorFunction"),n(y),n(y,a,"Generator"),n(y,u,function(){return this}),n(y,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:v}})()}function n(t,e,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}n=function(t,e,r,o){function a(e,r){n(t,e,function(t){return this._invoke(e,r,t)})}e?u?u(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},n(t,e,r,o)}function e(t,n,e,r,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void e(t)}i.done?n(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise(function(o,u){var a=t.apply(n,r);function i(t){e(a,o,u,i,c,"next",t)}function c(t){e(a,o,u,i,c,"throw",t)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy115.js?v=1761009159","./site-legacy.js?v=1761009159","./useStore-legacy4.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./ace-legacy.js?v=1761009159"],function(n,e){"use strict";var o,u,a,i,c,s,l,f,p,y,v,d,g,m,h,b,j,_,w,S,x;return{setters:[function(t){o=t.P,u=t.$,a=t.b},function(t){i=t.c,c=t.r,s=t.q,l=t.H,f=t.v,p=t.x,y=t.z,v=t.I,d=t.y,g=t.e,m=t.Q,h=t.B,b=t.C,j=t.G},function(t){_=t.B},function(t){w=t.saveConfFile,S=t.getConfFile},function(t){x=t.u},null,null],execute:function(){n("default",i({__name:"index",setup:function(n){var e=x().siteInfo,i=a(),O=c(!1),C=c("");c("");var G=c([{content:"此处为运行配置文件,若您不了解配置规则,请勿随意修改."}]),P=function(){var n=r(t().m(function n(){var r,u;return t().w(function(t){for(;;)switch(t.n){case 0:return r={data:JSON.stringify({name:e.value.name,data:C.value})},t.n=1,o({loading:"正在保存内容，请稍候...",request:w(r),data:{msg:String,status:Boolean}});case 1:u=t.v,i.msg({dangerouslyUseHTMLString:!0,message:u.msg,type:u.status?"success":"error",duration:u.status?2e3:0,showClose:!u.status}),u.status&&T();case 2:return t.a(2)}},n)}));return function(){return n.apply(this,arguments)}}(),T=function(){var n=r(t().m(function n(){var r;return t().w(function(t){for(;;)switch(t.n){case 0:r={data:JSON.stringify({name:e.value.name})},o({loading:O,request:S(r),data:{data:[String,C]}});case 1:return t.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();return s(function(){T()}),function(t,n){var e=_,r=j,o=u,a=l("bt-loading");return f(),p("div",null,[n[2]||(n[2]=y("span",{class:"my-[4px] text-secondary"},"提示：Ctrl+F 搜索关键字，Ctrl+H 查找替换",-1)),v(g(e,{class:"!h-[54rem] my-[12px]",modelValue:d(C),"onUpdate:modelValue":n[0]||(n[0]=function(t){return m(C)?C.value=t:null}),id:"runContent",request:!1,onSave:P},null,8,["modelValue"]),[[a,d(O)]]),y("div",null,[g(r,{type:"primary",onClick:P},{default:h(function(){return n[1]||(n[1]=[b("保存",-1)])}),_:1,__:[1]})]),g(o,{options:d(G),"list-style":"none",class:"ml-[20px] mt-[20px]"},null,8,["options"])])}}}))}}})}();
