!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 n,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function c(t,o,i,a){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return e(s,"_invoke",function(t,e,o){var i,a,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(t,e){return i=t,a=0,c=n,p.n=e,u}};function v(t,e){for(a=t,c=e,r=0;!f&&l&&!o&&r<s.length;r++){var o,i=s[r],v=p.p,b=i[2];t>3?(o=b===e)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=v&&((o=t<2&&v<i[1])?(a=0,p.v=e,p.n=i[1]):v<b&&(o=t<3||i[0]>e||e>b)&&(i[4]=t,i[5]=e,p.n=b,a=0))}if(o||t>1)return u;throw f=!0,e}return function(o,s,b){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&v(s,b),a=s,c=b;(r=a<2?n:c)||!f;){i||(a?a<3?(a>1&&(p.n=-1),v(a,c)):p.n=c:p.v=c);try{if(l=2,i){if(a||(o="next"),r=i[o]){if(!(r=r.call(i,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,a<2&&(a=0)}else 1===a&&(r=i.return)&&r.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=n}else if((r=(f=p.n<0)?c:t.call(e,p))!==u)break}catch(r){i=n,a=1,c=r}finally{l=1}}return{value:r,done:f}}}(t,i,a),!0),s}var u={};function l(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(e(r={},i,function(){return this}),r),v=f.prototype=l.prototype=Object.create(p);function b(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,e(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=f,e(v,"constructor",f),e(f,"constructor",s),s.displayName="GeneratorFunction",e(f,a,"GeneratorFunction"),e(v),e(v,a,"Generator"),e(v,i,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:b}})()}function e(t,n,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}e=function(t,n,r,o){function a(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?i?i(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},e(t,n,r,o)}function n(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}System.register(["./base-lib-legacy.js?v=1761009159","./firewall-legacy.js?v=1761009159","./useMethod-legacy6.js?v=1761009159","./utils-lib-legacy.js?v=1761009159"],function(e,r){"use strict";var o,i,a,c,u,l,s,f,p,v,b,y,d,g;return{setters:[function(t){o=t.c,i=t.r,a=t.v,c=t.x,u=t.ba,l=t.z,s=t.e,f=t.B,p=t.C,v=t.G},function(t){b=t.C},function(t){y=t.h},function(t){d=t.p,g=t.b}],execute:function(){var r={class:"flex flex-col w-[55rem]"},m={class:"flex justify-center py-4"};e("_",o({__name:"index",setup:function(e){var o=g(),h=i(!1),w=function(){var e,r=(e=t().m(function e(){var n,r;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,d({title:"迁移防火墙数据",content:"即将迁移防火墙数据，firewalld/ufw会重载，iptables规则可能会清理，请确认持久化了iptables规则后再操作），是否继续操作？",confirmText:"确认",cancelText:"取消"});case 1:return h.value=!0,t.n=2,b();case 2:n=t.v,(r=n.data)&&r.status&&setTimeout(function(){y(r.task_id)},500),o.request(r);case 3:return t.p=3,h.value=!1,t.f(3);case 4:return t.a(2)}},e,null,[[0,,3,4]])}),function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)})});return function(){return r.apply(this,arguments)}}();return function(t,e){var n=v;return a(),c("div",r,[e[1]||(e[1]=u('<div class="mb-5"><div class="flex items-center mb-3"><i class="svgtofont-el-question-filled !text-iconLarge text-warning mr-2"></i><span class="text-warning text-subtitleLarge font-bold">检测到需要迁移旧的防火墙到新的服务中</span></div><ul class="list-disc pl-5"><li class="text-base mb-2">仅对面板的防火墙功能进行迁移，不会影响系统防火墙（firewall/ufw）已有的规则将会被保留</li><li class="text-base mb-2">如果使用过iptables命令行添加过的非持久化的规则将会丢失！请注意持久化或保存iptables规则</li></ul></div>',1)),l("div",m,[s(n,{type:"primary",loading:h.value,onClick:w},{default:f(function(){return e[0]||(e[0]=[p("立即迁移",-1)])}),_:1,__:[0]},8,["loading"])])])}}}))}}})}();
