!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:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(t,o,i,u){var a=o&&o.prototype instanceof l?o:l,f=Object.create(a.prototype);return n(f,"_invoke",function(t,n,o){var i,u,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,u=0,a=e,p.n=n,c}};function v(t,n){for(u=t,a=n,r=0;!s&&l&&!o&&r<f.length;r++){var o,i=f[r],v=p.p,d=i[2];t>3?(o=d===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=t<2&&v<i[1])?(u=0,p.v=n,p.n=i[1]):v<d&&(o=t<3||i[0]>n||n>d)&&(i[4]=t,i[5]=n,p.n=d,u=0))}if(o||t>1)return c;throw s=!0,n}return function(o,f,d){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&v(f,d),u=f,a=d;(r=u<2?e:a)||!s;){i||(u?u<3?(u>1&&(p.n=-1),v(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((r=(s=p.n<0)?a:t.call(n,p))!==c)break}catch(r){i=e,u=1,a=r}finally{l=1}}return{value:r,done:s}}}(t,i,u),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),v=s.prototype=l.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,n(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=s,n(v,"constructor",s),n(s,"constructor",f),f.displayName="GeneratorFunction",n(s,u,"GeneratorFunction"),n(v),n(v,u,"Generator"),n(v,i,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:a,m:d}})()}function n(t,e,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}n=function(t,e,r,o){function u(e,r){n(t,e,function(t){return this._invoke(e,r,t)})}e?i?i(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(u("next",0),u("throw",1),u("return",2))},n(t,e,r,o)}function e(t,n,e,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void e(t)}a.done?n(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise(function(o,i){var u=t.apply(n,r);function a(t){e(u,o,i,a,c,"next",t)}function c(t){e(u,o,i,a,c,"throw",t)}a(void 0)})}}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./useStore-legacy4.js?v=1761009159","./site-legacy.js?v=1761009159"],function(n,e){"use strict";var o,i,u,a,c,l,f,s,p,v,d,y,m,b,h,g,x,j,w,_;return{setters:[function(t){o=t.aK,i=t.P,u=t.k,a=t.$},function(t){c=t.r,l=t.c,f=t.q,s=t.H,p=t.v,v=t.x,d=t.I,y=t.y,m=t.e,b=t.Q,h=t.B,g=t.C,x=t.G},function(t){j=t.u},function(t){w=t.getContentIndex,_=t.setContentIndex}],execute:function(){var e=j().siteInfo,O=c(""),k=c(!1),G=function(){var n=r(t().m(function n(){var r,i,u;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return k.value=!0,t.p=1,t.n=2,w({id:e.value.id});case 2:r=t.v,i=r.data,O.value=i.split(",").join("\n"),t.n=4;break;case 3:t.p=3,u=t.v,o(u);case 4:return t.p=4,k.value=!1,t.f(4);case 5:return t.a(2)}},n,null,[[1,3,4,5]])}));return function(){return n.apply(this,arguments)}}(),P=function(){var n=r(t().m(function n(){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i({loading:"正在保存默认文档，请稍后...",request:_({id:e.value.id,Index:O.value.split("\n").join(",")}),message:!0});case 1:t.v.status&&G();case 2:return t.a(2)}},n)}));return function(){return n.apply(this,arguments)}}(),S={class:"flex items-end mb-[12px]"};n("_",l({__name:"index",setup:function(t,n){var e=n.expose;return f(G),e({init:G}),function(t,n){var e=u,r=x,o=a,i=s("bt-loading");return p(),v("div",null,[d((p(),v("div",S,[m(e,{modelValue:y(O),"onUpdate:modelValue":n[0]||(n[0]=function(t){return b(O)?O.value=t:null}),type:"textarea",resize:"none",rows:12,width:"42rem",class:"!w-42rem",placeholder:"请输入内容"},null,8,["modelValue"]),m(r,{type:"primary",class:"!ml-[12px]",onClick:y(P)},{default:h(function(){return n[1]||(n[1]=[g(" 保存 ",-1)])}),_:1,__:[1]},8,["onClick"])])),[[i,y(k)],[i,"正在加载中，请稍后...","title"]]),m(o,{options:[{content:"默认文档，每行一个，优先级由上至下"}],class:"ml-[20px] mt-[20px]"})])}}}))}}})}();
