Surge_by_SukkaW/Dist/chunks/ruleset.iYH0XOC1.cjs
SukkaW d354c5e988
Some checks are pending
Build / Build (push) Waiting to run
Build / Diff output (push) Blocked by required conditions
Build / Deploy to Cloudflare Pages (push) Blocked by required conditions
Build / Deploy to GitHub and GitLab (push) Blocked by required conditions
Chore: maintainance
2025-02-07 17:52:36 +08:00

59 lines
1.7 KiB
JavaScript

'use strict';const base=require('./base.C13YY5P3.cjs');var ruleset = {};var hasRequiredRuleset;
function requireRuleset () {
if (hasRequiredRuleset) return ruleset;
hasRequiredRuleset = 1;
(function (exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
ClashOnlyRulesetOutput: function() {
return ClashOnlyRulesetOutput;
},
RulesetOutput: function() {
return RulesetOutput;
},
SurgeOnlyRulesetOutput: function() {
return SurgeOnlyRulesetOutput;
}
});
const _clash = /*@__PURE__*/ base.c();
const _singbox = /*@__PURE__*/ base.f();
const _surge = /*@__PURE__*/ base.e();
const _base = /*@__PURE__*/ base.b();
class RulesetOutput extends _base.FileOutput {
constructor(span, id, type){
super(span, id);
this.strategies = [
new _surge.SurgeRuleSet(type),
new _clash.ClashClassicRuleSet(type),
new _singbox.SingboxSource(type)
];
}
}
class SurgeOnlyRulesetOutput extends _base.FileOutput {
constructor(span, id, type, overrideOutputDir){
super(span, id);
this.strategies = [
new _surge.SurgeRuleSet(type, overrideOutputDir)
];
}
}
class ClashOnlyRulesetOutput extends _base.FileOutput {
constructor(span, id, type){
super(span, id);
this.strategies = [
new _clash.ClashClassicRuleSet(type)
];
}
}
} (ruleset));
return ruleset;
}exports.r=requireRuleset;