Evan Feenstra
4 years ago
34 changed files with 359 additions and 106 deletions
@ -1,13 +1,19 @@ |
|||
// import * as Sphinx from '../../../sphinx-bot'
|
|||
import * as Sphinx from 'sphinx-bot' |
|||
// import * as SphinxBot from '../../../sphinx-bot'
|
|||
import * as SphinxBot from 'sphinx-bot' |
|||
import * as MotherBot from './mother' |
|||
import {Msg} from '../network/interfaces' |
|||
|
|||
function init(){ |
|||
MotherBot.init() |
|||
} |
|||
|
|||
function emit(content, chatUUID){ |
|||
Sphinx._emit('message',{content,chatUUID}) |
|||
function builtinBotEmit(msg:Msg){ |
|||
SphinxBot._emit('message', <SphinxBot.Message>{ |
|||
channel:{ |
|||
id: msg.chat.uuid, |
|||
}, |
|||
content: msg.message.content |
|||
}) |
|||
} |
|||
|
|||
export {init,emit,MotherBot} |
|||
export {init,builtinBotEmit} |
|||
|
@ -0,0 +1,55 @@ |
|||
import * as Sphinx from 'sphinx-bot' |
|||
import { finalAction } from '../controllers/actions' |
|||
import { models } from '../models' |
|||
import * as path from 'path' |
|||
const msg_types = Sphinx.MSG_TYPE |
|||
|
|||
const constants = require(path.join(__dirname, '../../config/constants.json')) |
|||
|
|||
export function init() { |
|||
|
|||
const client = new Sphinx.Client() |
|||
client.login('_', finalAction) |
|||
|
|||
client.on(msg_types.MESSAGE, async (message: Sphinx.Message) => { |
|||
const arr = message.content.split(' ') |
|||
if (arr.length < 2) return |
|||
if (arr[0]!=='/welcome') return |
|||
const cmd = arr[1] |
|||
|
|||
switch (cmd) { |
|||
|
|||
case 'setmessage': |
|||
if (arr.length < 3) return |
|||
console.log("setmsg", arr[2]) |
|||
const chat = await models.Chat.findOne({where:{uuid:message.channel.id}}) |
|||
if(!chat) return |
|||
const chatBot = await models.ChatBot.findOne({where:{ |
|||
chatID: chat.id, botPrefix:'/welcome', botType:constants.bot_types.builtin |
|||
}}) |
|||
if(!chatBot) return |
|||
await chatBot.update({meta:arr[2]}) |
|||
const resEmbed = new Sphinx.MessageEmbed() |
|||
.setAuthor('WelcomeBot') |
|||
.setDescription('Your welcome message has been updated') |
|||
message.channel.send({ embed:resEmbed }) |
|||
return |
|||
|
|||
default: |
|||
const embed = new Sphinx.MessageEmbed() |
|||
.setAuthor('WelcomeBot') |
|||
.setTitle('Bot Commands:') |
|||
.addFields([ |
|||
{ name: 'Set welcome message', value: '/welcome setmessage {MESSAGE}' }, |
|||
{ name: 'Help', value: '/welcome help' } |
|||
]) |
|||
.setThumbnail(botSVG) |
|||
message.channel.send({ embed }) |
|||
return |
|||
} |
|||
}) |
|||
} |
|||
|
|||
const botSVG = `<svg viewBox="64 64 896 896" height="12" width="12" color="white">
|
|||
<path d="M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" /> |
|||
</svg>` |
@ -0,0 +1,35 @@ |
|||
import { Table, Column, Model } from 'sequelize-typescript'; |
|||
|
|||
/* |
|||
TRIBE OWNER - bots installed as "contacts" in a tribe |
|||
*/ |
|||
|
|||
@Table({tableName: 'sphinx_chat_members', underscored: true, indexes:[ |
|||
{unique:true, fields:['chat_id','bot_uuid']} |
|||
]}) |
|||
export default class ChatBot extends Model<ChatBot> { |
|||
|
|||
@Column |
|||
chatId: number |
|||
|
|||
@Column |
|||
botUuid: string |
|||
|
|||
@Column |
|||
botType: number |
|||
|
|||
@Column |
|||
botPrefix: string |
|||
|
|||
@Column |
|||
botMakerPubkey: string |
|||
|
|||
@Column |
|||
meta: string // for saved preferences for local bots
|
|||
|
|||
@Column |
|||
createdAt: Date |
|||
|
|||
@Column |
|||
updatedAt: Date |
|||
} |
@ -1,15 +1,19 @@ |
|||
"use strict"; |
|||
Object.defineProperty(exports, "__esModule", { value: true }); |
|||
// import * as Sphinx from '../../../sphinx-bot'
|
|||
const Sphinx = require("sphinx-bot"); |
|||
// import * as SphinxBot from '../../../sphinx-bot'
|
|||
const SphinxBot = require("sphinx-bot"); |
|||
const MotherBot = require("./mother"); |
|||
exports.MotherBot = MotherBot; |
|||
function init() { |
|||
MotherBot.init(); |
|||
} |
|||
exports.init = init; |
|||
function emit(content, chatUUID) { |
|||
Sphinx._emit('message', { content, chatUUID }); |
|||
function builtinBotEmit(msg) { |
|||
SphinxBot._emit('message', { |
|||
channel: { |
|||
id: msg.chat.uuid, |
|||
}, |
|||
content: msg.message.content |
|||
}); |
|||
} |
|||
exports.emit = emit; |
|||
exports.builtinBotEmit = builtinBotEmit; |
|||
//# sourceMappingURL=index.js.map
|
@ -1 +1 @@ |
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../api/bots/index.ts"],"names":[],"mappings":";;AAAA,gDAAgD;AAChD,qCAAoC;AACpC,sCAAqC;AAUnB,8BAAS;AAR3B,SAAS,IAAI;IACT,SAAS,CAAC,IAAI,EAAE,CAAA;AACpB,CAAC;AAMO,oBAAI;AAJZ,SAAS,IAAI,CAAC,OAAO,EAAE,QAAQ;IAC3B,MAAM,CAAC,KAAK,CAAC,SAAS,EAAC,EAAC,OAAO,EAAC,QAAQ,EAAC,CAAC,CAAA;AAC9C,CAAC;AAEY,oBAAI"} |
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../api/bots/index.ts"],"names":[],"mappings":";;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AAGrC,SAAS,IAAI;IACT,SAAS,CAAC,IAAI,EAAE,CAAA;AACpB,CAAC;AAWO,oBAAI;AATZ,SAAS,cAAc,CAAC,GAAO;IAC3B,SAAS,CAAC,KAAK,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AAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,wBAAwB,EAAE;oBAC9D,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE;iBACrC,CAAC;qBACD,YAAY,CAAC,MAAM,CAAC,CAAA;gBACvB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;SAClC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA9BD,oBA8BC;AAED,MAAM,MAAM,GAAG;;OAER,CAAA"} |
@ -1 +1,65 @@ |
|||
"use strict"; |
|||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { |
|||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } |
|||
return new (P || (P = Promise))(function (resolve, reject) { |
|||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } |
|||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } |
|||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } |
|||
step((generator = generator.apply(thisArg, _arguments || [])).next()); |
|||
}); |
|||
}; |
|||
Object.defineProperty(exports, "__esModule", { value: true }); |
|||
const Sphinx = require("sphinx-bot"); |
|||
const actions_1 = require("../controllers/actions"); |
|||
const models_1 = require("../models"); |
|||
const path = require("path"); |
|||
const msg_types = Sphinx.MSG_TYPE; |
|||
const constants = require(path.join(__dirname, '../../config/constants.json')); |
|||
function init() { |
|||
const client = new Sphinx.Client(); |
|||
client.login('_', actions_1.finalAction); |
|||
client.on(msg_types.MESSAGE, (message) => __awaiter(this, void 0, void 0, function* () { |
|||
const arr = message.content.split(' '); |
|||
if (arr.length < 2) |
|||
return; |
|||
if (arr[0] !== '/welcome') |
|||
return; |
|||
const cmd = arr[1]; |
|||
switch (cmd) { |
|||
case 'setmessage': |
|||
if (arr.length < 3) |
|||
return; |
|||
console.log("setmsg", arr[2]); |
|||
const chat = yield models_1.models.Chat.findOne({ where: { uuid: message.channel.id } }); |
|||
if (!chat) |
|||
return; |
|||
const chatBot = yield models_1.models.ChatBot.findOne({ where: { |
|||
chatID: chat.id, botPrefix: '/welcome', botType: constants.bot_types.builtin |
|||
} }); |
|||
if (!chatBot) |
|||
return; |
|||
yield chatBot.update({ meta: arr[2] }); |
|||
const resEmbed = new Sphinx.MessageEmbed() |
|||
.setAuthor('WelcomeBot') |
|||
.setDescription('Your welcome message has been updated'); |
|||
message.channel.send({ embed: resEmbed }); |
|||
return; |
|||
default: |
|||
const embed = new Sphinx.MessageEmbed() |
|||
.setAuthor('WelcomeBot') |
|||
.setTitle('Bot Commands:') |
|||
.addFields([ |
|||
{ name: 'Set welcome message', value: '/welcome setmessage {MESSAGE}' }, |
|||
{ name: 'Help', value: '/welcome help' } |
|||
]) |
|||
.setThumbnail(botSVG); |
|||
message.channel.send({ embed }); |
|||
return; |
|||
} |
|||
})); |
|||
} |
|||
exports.init = init; |
|||
const botSVG = `<svg viewBox="64 64 896 896" height="12" width="12" color="white">
|
|||
<path d="M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" /> |
|||
</svg>`; |
|||
//# sourceMappingURL=welcome.js.map
|
@ -1 +1 @@ |
|||
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../../api/bots/welcome.ts"],"names":[],"mappings":""} |
|||
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../../api/bots/welcome.ts"],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;IACjC,gCAAgC;IAEhC,oCAAoC;IACpC,yCAAyC;AAC3C,CAAC;AATD,gCASC;AAED,SAAsB,iBAAiB,CAAC,OAAO;;QAC7C,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;QACnC,yCAAyC;QACzC,4CAA4C;QAC5C,mCAAmC;QAEnC,mDAAmD;QAEnD,0CAA0C;IAC5C,CAAC;CAAA;AATD,8CASC;AAED,oEAAoE;AAEpE,SAAsB,aAAa,CAAC,OAAO;;QACzC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;CAAA;AAFD,sCAEC;AAED,SAAsB,aAAa,CAAC,OAAO;;QACzC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;CAAA;AAFD,sCAEC"} |
@ -1 +1 @@ |
|||
{"version":3,"file":"bot.js","sourceRoot":"","sources":["../../../../api/models/ts/bot.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAGtE,IAAqB,GAAG,GAAxB,MAAqB,GAAI,SAAQ,4BAAU;CA2B1C,CAAA;AApBC;IALC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;KACb,CAAC;;+BACQ;AAGV;IADC,6BAAM;;iCACK;AAGZ;IADC,6BAAM;;iCACK;AAGZ;IADC,6BAAM;;mCACO;AAGd;IADC,6BAAM;;oCACQ;AAGf;IADC,6BAAM;8BACI,IAAI;sCAAA;AAGf;IADC,6BAAM;8BACI,IAAI;sCAAA;AAzBI,GAAG;IADvB,4BAAK,CAAC,EAAC,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GAChC,GAAG,CA2BvB;kBA3BoB,GAAG"} |
|||
{"version":3,"file":"bot.js","sourceRoot":"","sources":["../../../../api/models/ts/bot.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAEtE;;EAEE;AAGF,IAAqB,GAAG,GAAxB,MAAqB,GAAI,SAAQ,4BAAU;CA2B1C,CAAA;AApBC;IALC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;KACb,CAAC;;+BACQ;AAGV;IADC,6BAAM;;iCACK;AAGZ;IADC,6BAAM;;iCACK;AAGZ;IADC,6BAAM;;mCACO;AAGd;IADC,6BAAM;;oCACQ;AAGf;IADC,6BAAM;8BACI,IAAI;sCAAA;AAGf;IADC,6BAAM;8BACI,IAAI;sCAAA;AAzBI,GAAG;IADvB,4BAAK,CAAC,EAAC,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GAChC,GAAG,CA2BvB;kBA3BoB,GAAG"} |
@ -1 +1 @@ |
|||
{"version":3,"file":"botMember.js","sourceRoot":"","sources":["../../../../api/models/ts/botMember.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAG5D,IAAqB,SAAS,GAA9B,MAAqB,SAAU,SAAQ,4BAAgB;CAiBtD,CAAA;AAdC;IADC,6BAAM;;+CACa;AAGpB;IADC,6BAAM;;4CACU;AAGjB;IADC,6BAAM;;2CACS;AAGhB;IADC,6BAAM;8BACI,IAAI;4CAAA;AAGf;IADC,6BAAM;8BACI,IAAI;4CAAA;AAfI,SAAS;IAD7B,4BAAK,CAAC,EAAC,SAAS,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GACvC,SAAS,CAiB7B;kBAjBoB,SAAS"} |
|||
{"version":3,"file":"botMember.js","sourceRoot":"","sources":["../../../../api/models/ts/botMember.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAE5D;;EAEE;AAGF,IAAqB,SAAS,GAA9B,MAAqB,SAAU,SAAQ,4BAAgB;CAiBtD,CAAA;AAdC;IADC,6BAAM;;+CACa;AAGpB;IADC,6BAAM;;4CACU;AAGjB;IADC,6BAAM;;2CACS;AAGhB;IADC,6BAAM;8BACI,IAAI;4CAAA;AAGf;IADC,6BAAM;8BACI,IAAI;4CAAA;AAfI,SAAS;IAD7B,4BAAK,CAAC,EAAC,SAAS,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GACvC,SAAS,CAiB7B;kBAjBoB,SAAS"} |
@ -0,0 +1,56 @@ |
|||
"use strict"; |
|||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
|||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
|||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); |
|||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
|||
return c > 3 && r && Object.defineProperty(target, key, r), r; |
|||
}; |
|||
var __metadata = (this && this.__metadata) || function (k, v) { |
|||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); |
|||
}; |
|||
Object.defineProperty(exports, "__esModule", { value: true }); |
|||
const sequelize_typescript_1 = require("sequelize-typescript"); |
|||
/* |
|||
TRIBE OWNER - bots installed as "contacts" in a tribe |
|||
*/ |
|||
let ChatBot = class ChatBot extends sequelize_typescript_1.Model { |
|||
}; |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", Number) |
|||
], ChatBot.prototype, "chatId", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", String) |
|||
], ChatBot.prototype, "botUuid", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", Number) |
|||
], ChatBot.prototype, "botType", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", String) |
|||
], ChatBot.prototype, "botPrefix", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", String) |
|||
], ChatBot.prototype, "botMakerPubkey", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", String) |
|||
], ChatBot.prototype, "meta", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", Date) |
|||
], ChatBot.prototype, "createdAt", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", Date) |
|||
], ChatBot.prototype, "updatedAt", void 0); |
|||
ChatBot = __decorate([ |
|||
sequelize_typescript_1.Table({ tableName: 'sphinx_chat_members', underscored: true, indexes: [ |
|||
{ unique: true, fields: ['chat_id', 'bot_uuid'] } |
|||
] }) |
|||
], ChatBot); |
|||
exports.default = ChatBot; |
|||
//# sourceMappingURL=chatBot.js.map
|
@ -0,0 +1 @@ |
|||
{"version":3,"file":"chatBot.js","sourceRoot":"","sources":["../../../../api/models/ts/chatBot.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAE5D;;EAEE;AAKF,IAAqB,OAAO,GAA5B,MAAqB,OAAQ,SAAQ,4BAAc;CAyBlD,CAAA;AAtBC;IADC,6BAAM;;uCACO;AAGd;IADC,6BAAM;;wCACQ;AAGf;IADC,6BAAM;;wCACQ;AAGf;IADC,6BAAM;;0CACU;AAGjB;IADC,6BAAM;;+CACe;AAGtB;IADC,6BAAM;;qCACK;AAGZ;IADC,6BAAM;8BACI,IAAI;0CAAA;AAGf;IADC,6BAAM;8BACI,IAAI;0CAAA;AAxBI,OAAO;IAH3B,4BAAK,CAAC,EAAC,SAAS,EAAE,qBAAqB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAC;YACnE,EAAC,MAAM,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,SAAS,EAAC,UAAU,CAAC,EAAC;SAC7C,EAAC,CAAC;GACkB,OAAO,CAyB3B;kBAzBoB,OAAO"} |
@ -1 +1 @@ |
|||
{"version":3,"file":"chatMember.js","sourceRoot":"","sources":["../../../../api/models/ts/chatMember.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAK5D,IAAqB,UAAU,GAA/B,MAAqB,UAAW,SAAQ,4BAAiB;CAmCxD,CAAA;AAhCC;IADC,6BAAM;;0CACO;AAGd;IADC,6BAAM;;6CACU;AAGjB;IADC,6BAAM;;wCACK;AAGZ;IADC,6BAAM;;8CACW;AAGlB;IADC,6BAAM;;iDACc;AAGrB;IADC,6BAAM;8BACK,IAAI;8CAAA;AAGhB;IADC,6BAAM;;0CACO;AAGd;IADC,6BAAM;;uCACK;AAGZ;IADC,6BAAM;;6CACU;AAGjB;IADC,6BAAM;;kDACe;AAGtB;IADC,6BAAM;;2CACQ;AAjCI,UAAU;IAH9B,4BAAK,CAAC,EAAC,SAAS,EAAE,qBAAqB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAC;YACnE,EAAC,MAAM,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,SAAS,EAAC,YAAY,CAAC,EAAC;SAC/C,EAAC,CAAC;GACkB,UAAU,CAmC9B;kBAnCoB,UAAU"} |
|||
{"version":3,"file":"chatMember.js","sourceRoot":"","sources":["../../../../api/models/ts/chatMember.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAK5D,IAAqB,UAAU,GAA/B,MAAqB,UAAW,SAAQ,4BAAiB;CAuBxD,CAAA;AApBC;IADC,6BAAM;;0CACO;AAGd;IADC,6BAAM;;6CACU;AAGjB;IADC,6BAAM;;wCACK;AAGZ;IADC,6BAAM;;8CACW;AAGlB;IADC,6BAAM;;iDACc;AAGrB;IADC,6BAAM;8BACK,IAAI;8CAAA;AAGhB;IADC,6BAAM;;0CACO;AArBK,UAAU;IAH9B,4BAAK,CAAC,EAAC,SAAS,EAAE,qBAAqB,EAAE,WAAW,EAAE,IAAI,EAAE,OAA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