!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.toStringTag||"@@toStringTag";function u(e,o,a,c){var u=o&&o.prototype instanceof s?o:s,l=Object.create(u.prototype);return t(l,"_invoke",function(e,t,o){var a,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(e,t){return a=e,c=0,u=n,p.n=t,i}};function v(e,t){for(c=e,u=t,r=0;!f&&s&&!o&&r<l.length;r++){var o,a=l[r],v=p.p,m=a[2];e>3?(o=m===t)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=n):a[0]<=v&&((o=e<2&&v<a[1])?(c=0,p.v=t,p.n=a[1]):v<m&&(o=e<3||a[0]>t||t>m)&&(a[4]=e,a[5]=t,p.n=m,c=0))}if(o||e>1)return i;throw f=!0,t}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&v(l,m),c=l,u=m;(r=c<2?n:u)||!f;){a||(c?c<3?(c>1&&(p.n=-1),v(c,u)):p.n=u:p.v=u);try{if(s=2,a){if(c||(o="next"),r=a[o]){if(!(r=r.call(a,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,c<2&&(c=0)}else 1===c&&(r=a.return)&&r.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=n}else if((r=(f=p.n<0)?u:e.call(t,p))!==i)break}catch(r){a=n,c=1,u=r}finally{s=1}}return{value:r,done:f}}}(e,a,c),!0),l}var i={};function s(){}function l(){}function f(){}r=Object.getPrototypeOf;var p=[][a]?r(r([][a]())):(t(r={},a,function(){return this}),r),v=f.prototype=s.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,c,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=f,t(v,"constructor",f),t(f,"constructor",l),l.displayName="GeneratorFunction",t(f,c,"GeneratorFunction"),t(v),t(v,c,"Generator"),t(v,a,function(){return this}),t(v,"toString",function(){return"[object Generator]"}),(e=function(){return{w:u,m:m}})()}function t(e,n,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,n,r,o){function c(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(c("next",0),c("throw",1),c("return",2))},t(e,n,r,o)}function n(e,t,n,r,o,a,c){try{var u=e[a](c),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,o)}System.register(["./index-legacy119.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(t,r){"use strict";var o,a,c,u,i,s,l,f,p,v,m,g,y;return{setters:[function(e){o=e._},function(e){a=e.F,c=e.b},function(e){u=e.c,i=e.w,s=e.r,l=e.q,f=e.aF,p=e.v,v=e.x,m=e.e,g=e.y},function(e){y=e.getLines},null],execute:function(){var r={class:"flex-wrap"};t("default",u({__name:"log",props:{compData:{default:function(){return{type:"scan",endMsg:"扫描结束",logPath:"",successMsg:"修复成功",isClear:!1,completeEvent:null,failMsg:""}}}},emits:["close"],setup:function(t,u){var d=u.expose,b=u.emit,h=t,j=c();i(function(){return h.compData},function(e){O.value=!0,x()});var D=b,w=s("获取中..."),O=s(!0),_=s(null),x=function(){var t,r=(t=e().m(function t(){var n;return e().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,y({num:20,filename:h.compData.logPath});case 1:if(n=e.v,w.value!==n.msg&&(w.value=n.msg),""===h.compData.failMsg||-1===n.msg.indexOf(h.compData.failMsg)){e.n=3;break}if(O.value=!1,!h.compData.completeEvent){e.n=2;break}return T(),h.compData.completeEvent(!1,function(){D("close")}),e.a(2);case 2:return j.error("失败"),T(),e.a(2);case 3:if(-1===n.msg.indexOf(h.compData.endMsg)){e.n=5;break}if(O.value=!1,!h.compData.completeEvent){e.n=4;break}return h.compData.completeEvent(!0,function(){D("close")}),T(),e.a(2);case 4:return"repair"===h.compData.type?(D("close"),j.msg({dangerouslyUseHTMLString:!0,message:"修复完成，请按 Ctrl+F5 刷新缓存，或等待2s自动刷新！",type:"success",duration:2e3}),setTimeout(function(){a(),window.location.reload()},2e3)):"scan"===h.compData.type?j.success("扫描已结束"):(j.success(h.compData.successMsg),D("close")),T(),e.a(2);case 5:-1===n.msg.indexOf(h.compData.endMsg)&&O.value&&(_.value=setTimeout(function(){x()},1500)),n.status||(j.request(n),O.value=!1),e.n=7;break;case 6:e.p=6,e.v,O.value&&x();case 7:return e.a(2)}},t,null,[[0,6]])}),function(){var e=this,r=arguments;return new Promise(function(o,a){var c=t.apply(e,r);function u(e){n(c,o,a,u,i,"next",e)}function i(e){n(c,o,a,u,i,"throw",e)}u(void 0)})});return function(){return r.apply(this,arguments)}}(),T=function(){_.value&&clearTimeout(_.value)};return l(function(){x()}),f(function(){T()}),d({onCancel:function(){h.compData.isClear&&clearTimeout(_.value)}}),function(e,t){var n=o;return p(),v("div",r,[m(n,{class:"h-[40rem] !rounded-none",content:g(w)},null,8,["content"])])}}}))}}})}();
