2020-12-01 20:06:49 +01:00
|
|
|
package sql
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
"fmt"
|
|
|
|
log "github.com/Sirupsen/logrus"
|
|
|
|
"github.com/ansible-semaphore/semaphore/db"
|
|
|
|
"github.com/ansible-semaphore/semaphore/util"
|
|
|
|
"github.com/go-gorp/gorp/v3"
|
|
|
|
_ "github.com/go-sql-driver/mysql" // imports mysql driver
|
|
|
|
"github.com/gobuffalo/packr"
|
2021-08-24 17:20:34 +02:00
|
|
|
_ "github.com/lib/pq"
|
2020-12-01 20:06:49 +01:00
|
|
|
"github.com/masterminds/squirrel"
|
2022-02-03 08:05:13 +01:00
|
|
|
"reflect"
|
2020-12-01 20:06:49 +01:00
|
|
|
"regexp"
|
2021-08-24 17:20:34 +02:00
|
|
|
"strconv"
|
|
|
|
"strings"
|
2020-12-01 20:06:49 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type SqlDb struct {
|
|
|
|
sql *gorp.DbMap
|
|
|
|
}
|
|
|
|
|
|
|
|
var initialSQL = `
|
|
|
|
create table ` + "`migrations`" + ` (
|
|
|
|
` + "`version`" + ` varchar(255) not null primary key,
|
|
|
|
` + "`upgraded_date`" + ` datetime null,
|
|
|
|
` + "`notes`" + ` text null
|
|
|
|
);
|
|
|
|
`
|
|
|
|
var dbAssets = packr.NewBox("./migrations")
|
|
|
|
|
2020-12-08 08:23:33 +01:00
|
|
|
func containsStr(arr []string, str string) bool {
|
|
|
|
for _, a := range arr {
|
|
|
|
if a == str {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-12-01 20:06:49 +01:00
|
|
|
func handleRollbackError(err error) {
|
|
|
|
if err != nil {
|
|
|
|
log.Warn(err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-08-24 17:20:34 +02:00
|
|
|
identifierQuoteRE = regexp.MustCompile("`")
|
2020-12-01 20:06:49 +01:00
|
|
|
)
|
|
|
|
|
2020-12-03 14:51:15 +01:00
|
|
|
// validateMutationResult checks the success of the update query
|
|
|
|
func validateMutationResult(res sql.Result, err error) error {
|
|
|
|
if err != nil {
|
2021-09-16 23:35:44 +02:00
|
|
|
if strings.Contains(err.Error(), "foreign key") {
|
|
|
|
err = db.ErrInvalidOperation
|
|
|
|
}
|
2020-12-03 14:51:15 +01:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
affected, err := res.RowsAffected()
|
|
|
|
|
2020-12-04 23:22:05 +01:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2020-12-03 14:51:15 +01:00
|
|
|
if affected == 0 {
|
|
|
|
return db.ErrNotFound
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-08-24 17:20:34 +02:00
|
|
|
func (d *SqlDb) prepareQueryWithDialect(query string, dialect gorp.Dialect) string {
|
|
|
|
switch dialect.(type) {
|
|
|
|
case gorp.PostgresDialect:
|
|
|
|
var queryBuilder strings.Builder
|
|
|
|
argNum := 1
|
2021-08-24 19:56:40 +02:00
|
|
|
for _, r := range query {
|
2021-08-24 17:20:34 +02:00
|
|
|
switch r {
|
|
|
|
case '?':
|
|
|
|
queryBuilder.WriteString("$" + strconv.Itoa(argNum))
|
|
|
|
argNum++
|
|
|
|
case '`':
|
|
|
|
queryBuilder.WriteRune('"')
|
|
|
|
default:
|
|
|
|
queryBuilder.WriteRune(r)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
query = queryBuilder.String()
|
|
|
|
}
|
|
|
|
return query
|
|
|
|
}
|
|
|
|
|
2022-01-31 22:30:36 +01:00
|
|
|
func (d *SqlDb) PrepareQuery(query string) string {
|
2021-08-24 17:20:34 +02:00
|
|
|
return d.prepareQueryWithDialect(query, d.sql.Dialect)
|
|
|
|
}
|
|
|
|
|
2021-08-24 19:52:35 +02:00
|
|
|
func (d *SqlDb) insert(primaryKeyColumnName string, query string, args ...interface{}) (int, error) {
|
|
|
|
var insertId int64
|
|
|
|
|
|
|
|
switch d.sql.Dialect.(type) {
|
|
|
|
case gorp.PostgresDialect:
|
|
|
|
query += " returning " + primaryKeyColumnName
|
|
|
|
|
2022-01-31 22:30:36 +01:00
|
|
|
err := d.sql.QueryRow(d.PrepareQuery(query), args...).Scan(&insertId)
|
2021-08-24 19:52:35 +02:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
res, err := d.exec(query, args...)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
|
|
|
|
insertId, err = res.LastInsertId()
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return int(insertId), nil
|
|
|
|
}
|
|
|
|
|
2021-08-24 17:20:34 +02:00
|
|
|
func (d *SqlDb) exec(query string, args ...interface{}) (sql.Result, error) {
|
2022-01-31 22:30:36 +01:00
|
|
|
q := d.PrepareQuery(query)
|
2021-08-24 19:52:35 +02:00
|
|
|
return d.sql.Exec(q, args...)
|
2021-08-24 17:20:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (d *SqlDb) selectOne(holder interface{}, query string, args ...interface{}) error {
|
2022-01-31 22:30:36 +01:00
|
|
|
return d.sql.SelectOne(holder, d.PrepareQuery(query), args...)
|
2021-08-24 17:20:34 +02:00
|
|
|
}
|
|
|
|
|
2021-08-24 19:52:35 +02:00
|
|
|
func (d *SqlDb) selectAll(i interface{}, query string, args ...interface{}) ([]interface{}, error) {
|
2022-01-31 22:30:36 +01:00
|
|
|
q := d.PrepareQuery(query)
|
2021-08-24 19:52:35 +02:00
|
|
|
return d.sql.Select(i, q, args...)
|
|
|
|
}
|
|
|
|
|
2020-12-01 20:06:49 +01:00
|
|
|
func connect() (*sql.DB, error) {
|
|
|
|
cfg, err := util.Config.GetDBConfig()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
connectionString, err := cfg.GetConnectionString(true)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2021-08-24 17:20:34 +02:00
|
|
|
dialect := cfg.Dialect.String()
|
|
|
|
return sql.Open(dialect, connectionString)
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func createDb() error {
|
|
|
|
cfg, err := util.Config.GetDBConfig()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
if !cfg.HasSupportMultipleDatabases() {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
connectionString, err := cfg.GetConnectionString(false)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2021-09-05 11:44:41 +02:00
|
|
|
conn, err := sql.Open(cfg.Dialect.String(), connectionString)
|
2020-12-01 20:06:49 +01:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2023-01-28 00:25:25 +01:00
|
|
|
_, err = conn.Exec("create database " + cfg.GetDbName())
|
2020-12-01 20:06:49 +01:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
log.Warn(err.Error())
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-02-03 08:05:13 +01:00
|
|
|
func (d *SqlDb) getObject(projectID int, props db.ObjectProps, objectID int, object interface{}) (err error) {
|
2020-12-20 19:00:59 +01:00
|
|
|
q := squirrel.Select("*").
|
|
|
|
From(props.TableName).
|
|
|
|
Where("id=?", objectID)
|
|
|
|
|
|
|
|
if props.IsGlobal {
|
|
|
|
q = q.Where("project_id is null")
|
|
|
|
} else {
|
|
|
|
q = q.Where("project_id=?", projectID)
|
|
|
|
}
|
|
|
|
|
|
|
|
query, args, err := q.ToSql()
|
2020-12-07 13:13:59 +01:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2021-08-24 17:20:34 +02:00
|
|
|
err = d.selectOne(object, query, args...)
|
2020-12-07 13:13:59 +01:00
|
|
|
|
2020-12-16 20:19:20 +01:00
|
|
|
if err == sql.ErrNoRows {
|
|
|
|
err = db.ErrNotFound
|
2020-12-07 13:13:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2022-02-03 08:05:13 +01:00
|
|
|
func (d *SqlDb) getObjects(projectID int, props db.ObjectProps, params db.RetrieveQueryParams, objects interface{}) (err error) {
|
2020-12-07 13:13:59 +01:00
|
|
|
q := squirrel.Select("*").
|
2021-12-15 22:22:52 +01:00
|
|
|
From(props.TableName+" pe").
|
2020-12-08 08:23:33 +01:00
|
|
|
Where("pe.project_id=?", projectID)
|
2020-12-07 13:13:59 +01:00
|
|
|
|
2020-12-08 08:23:33 +01:00
|
|
|
orderDirection := "ASC"
|
2020-12-07 13:13:59 +01:00
|
|
|
if params.SortInverted {
|
2020-12-08 08:23:33 +01:00
|
|
|
orderDirection = "DESC"
|
2020-12-07 13:13:59 +01:00
|
|
|
}
|
|
|
|
|
2021-10-27 18:22:52 +02:00
|
|
|
orderColumn := props.DefaultSortingColumn
|
2020-12-20 19:00:59 +01:00
|
|
|
if containsStr(props.SortableColumns, params.SortBy) {
|
2020-12-08 08:23:33 +01:00
|
|
|
orderColumn = params.SortBy
|
2020-12-07 13:13:59 +01:00
|
|
|
}
|
|
|
|
|
2021-10-27 18:22:52 +02:00
|
|
|
if orderColumn != "" {
|
|
|
|
q = q.OrderBy("pe." + orderColumn + " " + orderDirection)
|
|
|
|
}
|
2020-12-08 08:23:33 +01:00
|
|
|
|
2020-12-07 13:13:59 +01:00
|
|
|
query, args, err := q.ToSql()
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2021-08-24 19:52:35 +02:00
|
|
|
_, err = d.selectAll(objects, query, args...)
|
2020-12-07 13:13:59 +01:00
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2022-02-03 08:05:13 +01:00
|
|
|
func (d *SqlDb) deleteObject(projectID int, props db.ObjectProps, objectID int) error {
|
2020-12-07 13:13:59 +01:00
|
|
|
return validateMutationResult(
|
2021-08-24 17:20:34 +02:00
|
|
|
d.exec(
|
2021-12-15 22:22:52 +01:00
|
|
|
"delete from "+props.TableName+" where project_id=? and id=?",
|
2020-12-07 13:13:59 +01:00
|
|
|
projectID,
|
|
|
|
objectID))
|
|
|
|
}
|
|
|
|
|
2022-11-18 23:23:30 +01:00
|
|
|
func (d *SqlDb) Close(token string) {
|
|
|
|
err := d.sql.Db.Close()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
2022-11-18 23:23:30 +01:00
|
|
|
func (d *SqlDb) PermanentConnection() bool {
|
2022-11-09 17:30:35 +01:00
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
2022-11-18 23:23:30 +01:00
|
|
|
func (d *SqlDb) Connect(token string) {
|
2020-12-04 23:41:26 +01:00
|
|
|
sqlDb, err := connect()
|
2020-12-01 20:06:49 +01:00
|
|
|
if err != nil {
|
2022-11-18 23:23:30 +01:00
|
|
|
panic(err)
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
2020-12-04 23:41:26 +01:00
|
|
|
if err := sqlDb.Ping(); err != nil {
|
2020-12-01 20:06:49 +01:00
|
|
|
if err = createDb(); err != nil {
|
2022-11-18 23:23:30 +01:00
|
|
|
panic(err)
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
2020-12-04 23:41:26 +01:00
|
|
|
sqlDb, err = connect()
|
2020-12-01 20:06:49 +01:00
|
|
|
if err != nil {
|
2022-11-18 23:23:30 +01:00
|
|
|
panic(err)
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
2020-12-04 23:41:26 +01:00
|
|
|
if err = sqlDb.Ping(); err != nil {
|
2022-11-18 23:23:30 +01:00
|
|
|
panic(err)
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
cfg, err := util.Config.GetDBConfig()
|
|
|
|
if err != nil {
|
2022-11-18 23:23:30 +01:00
|
|
|
panic(err)
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var dialect gorp.Dialect
|
|
|
|
|
|
|
|
switch cfg.Dialect {
|
|
|
|
case util.DbDriverMySQL:
|
|
|
|
dialect = gorp.MySQLDialect{Engine: "InnoDB", Encoding: "UTF8"}
|
2021-08-24 17:20:34 +02:00
|
|
|
case util.DbDriverPostgres:
|
|
|
|
dialect = gorp.PostgresDialect{}
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
2020-12-04 23:41:26 +01:00
|
|
|
d.sql = &gorp.DbMap{Db: sqlDb, Dialect: dialect}
|
2020-12-01 20:06:49 +01:00
|
|
|
|
2020-12-04 23:41:26 +01:00
|
|
|
d.sql.AddTableWithName(db.APIToken{}, "user__token").SetKeys(false, "id")
|
|
|
|
d.sql.AddTableWithName(db.AccessKey{}, "access_key").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.Environment{}, "project__environment").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.Inventory{}, "project__inventory").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.Project{}, "project").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.Repository{}, "project__repository").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.Task{}, "task").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.TaskOutput{}, "task__output").SetUniqueTogether("task_id", "time")
|
|
|
|
d.sql.AddTableWithName(db.Template{}, "project__template").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.User{}, "user").SetKeys(true, "id")
|
|
|
|
d.sql.AddTableWithName(db.Session{}, "session").SetKeys(true, "id")
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func getSqlForTable(tableName string, p db.RetrieveQueryParams) (string, []interface{}, error) {
|
2021-12-15 22:22:52 +01:00
|
|
|
if p.Offset > 0 && p.Count <= 0 {
|
2020-12-04 23:22:05 +01:00
|
|
|
return "", nil, fmt.Errorf("offset cannot be without limit")
|
|
|
|
}
|
|
|
|
|
2020-12-01 20:06:49 +01:00
|
|
|
q := squirrel.Select("*").
|
2021-08-24 19:52:35 +02:00
|
|
|
From("`" + tableName + "`")
|
2020-12-01 20:06:49 +01:00
|
|
|
|
|
|
|
if p.SortBy != "" {
|
|
|
|
sortDirection := "ASC"
|
|
|
|
if p.SortInverted {
|
|
|
|
sortDirection = "DESC"
|
|
|
|
}
|
|
|
|
|
|
|
|
q = q.OrderBy(p.SortBy + " " + sortDirection)
|
|
|
|
}
|
|
|
|
|
2021-12-15 22:22:52 +01:00
|
|
|
if p.Offset > 0 || p.Count > 0 {
|
2020-12-04 23:22:05 +01:00
|
|
|
q = q.Offset(uint64(p.Offset))
|
|
|
|
}
|
2020-12-01 20:06:49 +01:00
|
|
|
|
|
|
|
if p.Count > 0 {
|
|
|
|
q = q.Limit(uint64(p.Count))
|
|
|
|
}
|
|
|
|
|
|
|
|
return q.ToSql()
|
|
|
|
}
|
|
|
|
|
2022-02-03 08:05:13 +01:00
|
|
|
func (d *SqlDb) getObjectRefs(projectID int, objectProps db.ObjectProps, objectID int) (refs db.ObjectReferrers, err error) {
|
|
|
|
refs.Templates, err = d.getObjectRefsFrom(projectID, objectProps, objectID, db.TemplateProps)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
refs.Repositories, err = d.getObjectRefsFrom(projectID, objectProps, objectID, db.RepositoryProps)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
refs.Inventories, err = d.getObjectRefsFrom(projectID, objectProps, objectID, db.InventoryProps)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
templates, err := d.getObjectRefsFrom(projectID, objectProps, objectID, db.ScheduleProps)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, st := range templates {
|
|
|
|
exists := false
|
|
|
|
for _, tpl := range refs.Templates {
|
|
|
|
if tpl.ID == st.ID {
|
|
|
|
exists = true
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if exists {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
refs.Templates = append(refs.Templates, st)
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (d *SqlDb) getObjectRefsFrom(
|
|
|
|
projectID int,
|
|
|
|
objectProps db.ObjectProps,
|
|
|
|
objectID int,
|
|
|
|
referringObjectProps db.ObjectProps,
|
|
|
|
) (referringObjs []db.ObjectReferrer, err error) {
|
|
|
|
referringObjs = make([]db.ObjectReferrer, 0)
|
|
|
|
|
|
|
|
fields, err := objectProps.GetReferringFieldsFrom(referringObjectProps.Type)
|
|
|
|
|
|
|
|
cond := ""
|
|
|
|
vals := []interface{}{projectID}
|
|
|
|
|
|
|
|
for _, f := range fields {
|
|
|
|
if cond != "" {
|
2022-02-03 12:33:25 +01:00
|
|
|
cond += " or "
|
2022-02-03 08:05:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cond += f + " = ?"
|
|
|
|
|
|
|
|
vals = append(vals, objectID)
|
|
|
|
}
|
|
|
|
|
|
|
|
if cond == "" {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
var referringObjects reflect.Value
|
|
|
|
|
|
|
|
if referringObjectProps.Type == db.ScheduleProps.Type {
|
|
|
|
var referringSchedules []db.Schedule
|
2022-02-03 12:33:25 +01:00
|
|
|
_, err = d.selectAll(&referringSchedules, "select template_id id from project__schedule where project_id = ? and ("+cond+")", vals...)
|
2022-02-03 08:05:13 +01:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if len(referringSchedules) == 0 {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
var ids []string
|
|
|
|
for _, schedule := range referringSchedules {
|
|
|
|
ids = append(ids, strconv.Itoa(schedule.ID))
|
|
|
|
}
|
|
|
|
|
|
|
|
referringObjects = reflect.New(reflect.SliceOf(db.TemplateProps.Type))
|
|
|
|
_, err = d.selectAll(referringObjects.Interface(),
|
|
|
|
"select id, name from project__template where id in ("+strings.Join(ids, ",")+")")
|
|
|
|
} else {
|
|
|
|
referringObjects = reflect.New(reflect.SliceOf(referringObjectProps.Type))
|
|
|
|
_, err = d.selectAll(
|
|
|
|
referringObjects.Interface(),
|
|
|
|
"select id, name from "+referringObjectProps.TableName+" where project_id = ? and "+cond,
|
|
|
|
vals...)
|
|
|
|
}
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
for i := 0; i < referringObjects.Elem().Len(); i++ {
|
|
|
|
id := int(referringObjects.Elem().Index(i).FieldByName("ID").Int())
|
|
|
|
name := referringObjects.Elem().Index(i).FieldByName("Name").String()
|
|
|
|
referringObjs = append(referringObjs, db.ObjectReferrer{ID: id, Name: name})
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2021-05-06 15:12:21 +02:00
|
|
|
func (d *SqlDb) Sql() *gorp.DbMap {
|
|
|
|
return d.sql
|
|
|
|
}
|
2021-12-18 14:16:34 +01:00
|
|
|
|
|
|
|
func (d *SqlDb) IsInitialized() (bool, error) {
|
2022-01-31 22:30:36 +01:00
|
|
|
_, err := d.sql.SelectInt(d.PrepareQuery("select count(1) from migrations"))
|
2022-01-23 17:34:42 +01:00
|
|
|
return err == nil, nil
|
2021-12-18 14:16:34 +01:00
|
|
|
}
|