2018-10-22 06:24:17 +08:00
|
|
|
import {IGalleryManager, RandomQuery} from '../interfaces/IGalleryManager';
|
2018-03-31 03:30:30 +08:00
|
|
|
import {DirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
|
|
|
import * as path from 'path';
|
|
|
|
import * as fs from 'fs';
|
|
|
|
import {DirectoryEntity} from './enitites/DirectoryEntity';
|
|
|
|
import {SQLConnection} from './SQLConnection';
|
|
|
|
import {DiskManager} from '../DiskManger';
|
|
|
|
import {PhotoEntity} from './enitites/PhotoEntity';
|
|
|
|
import {Utils} from '../../../common/Utils';
|
|
|
|
import {ProjectPath} from '../../ProjectPath';
|
|
|
|
import {Config} from '../../../common/config/private/Config';
|
|
|
|
import {ISQLGalleryManager} from './IGalleryManager';
|
2018-11-21 23:07:37 +08:00
|
|
|
import {DatabaseType, ReIndexingSensitivity} from '../../../common/config/private/IPrivateConfig';
|
2018-10-22 06:24:17 +08:00
|
|
|
import {PhotoDTO} from '../../../common/entities/PhotoDTO';
|
|
|
|
import {OrientationType} from '../../../common/entities/RandomQueryDTO';
|
2018-12-09 18:37:12 +08:00
|
|
|
import {Brackets, Connection, Transaction, TransactionRepository, Repository} from 'typeorm';
|
2018-11-18 02:32:31 +08:00
|
|
|
import {MediaEntity} from './enitites/MediaEntity';
|
|
|
|
import {MediaDTO} from '../../../common/entities/MediaDTO';
|
|
|
|
import {VideoEntity} from './enitites/VideoEntity';
|
2018-11-26 07:26:29 +08:00
|
|
|
import {FileEntity} from './enitites/FileEntity';
|
|
|
|
import {FileDTO} from '../../../common/entities/FileDTO';
|
2018-12-02 06:53:58 +08:00
|
|
|
import {NotificationManager} from '../NotifocationManager';
|
2016-12-28 03:55:51 +08:00
|
|
|
|
2017-07-26 03:09:37 +08:00
|
|
|
export class GalleryManager implements IGalleryManager, ISQLGalleryManager {
|
2016-12-28 03:55:51 +08:00
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
private savingQueue: DirectoryDTO[] = [];
|
|
|
|
private isSaving = false;
|
|
|
|
|
2018-11-24 18:50:11 +08:00
|
|
|
protected async selectParentDir(connection: Connection, directoryName: string, directoryParent: string): Promise<DirectoryEntity> {
|
2018-12-02 06:53:58 +08:00
|
|
|
const query = connection
|
2018-11-24 18:50:11 +08:00
|
|
|
.getRepository(DirectoryEntity)
|
|
|
|
.createQueryBuilder('directory')
|
|
|
|
.where('directory.name = :name AND directory.path = :path', {
|
|
|
|
name: directoryName,
|
|
|
|
path: directoryParent
|
|
|
|
})
|
|
|
|
.leftJoinAndSelect('directory.directories', 'directories')
|
2018-12-02 06:53:58 +08:00
|
|
|
.leftJoinAndSelect('directory.media', 'media');
|
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
if (Config.Client.MetaFile.enabled === true) {
|
2018-12-02 06:53:58 +08:00
|
|
|
query.leftJoinAndSelect('directory.metaFile', 'metaFile');
|
|
|
|
}
|
|
|
|
|
|
|
|
return await query.getOne();
|
2018-11-24 18:50:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
protected async fillParentDir(connection: Connection, dir: DirectoryEntity): Promise<void> {
|
|
|
|
if (dir.media) {
|
|
|
|
for (let i = 0; i < dir.media.length; i++) {
|
|
|
|
dir.media[i].directory = dir;
|
|
|
|
dir.media[i].readyThumbnails = [];
|
|
|
|
dir.media[i].readyIcon = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (dir.directories) {
|
|
|
|
for (let i = 0; i < dir.directories.length; i++) {
|
|
|
|
dir.directories[i].media = await connection
|
|
|
|
.getRepository(MediaEntity)
|
|
|
|
.createQueryBuilder('media')
|
|
|
|
.where('media.directory = :dir', {
|
|
|
|
dir: dir.directories[i].id
|
|
|
|
})
|
|
|
|
.orderBy('media.metadata.creationDate', 'ASC')
|
|
|
|
.limit(Config.Server.indexing.folderPreviewSize)
|
|
|
|
.getMany();
|
|
|
|
dir.directories[i].isPartial = true;
|
|
|
|
|
|
|
|
for (let j = 0; j < dir.directories[i].media.length; j++) {
|
|
|
|
dir.directories[i].media[j].directory = dir.directories[i];
|
|
|
|
dir.directories[i].media[j].readyThumbnails = [];
|
|
|
|
dir.directories[i].media[j].readyIcon = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-28 03:55:51 +08:00
|
|
|
|
2017-07-20 02:47:09 +08:00
|
|
|
public async listDirectory(relativeDirectoryName: string,
|
|
|
|
knownLastModified?: number,
|
2017-07-21 05:00:49 +08:00
|
|
|
knownLastScanned?: number): Promise<DirectoryDTO> {
|
2018-12-09 18:37:12 +08:00
|
|
|
|
2018-03-31 03:30:30 +08:00
|
|
|
relativeDirectoryName = path.normalize(path.join('.' + path.sep, relativeDirectoryName));
|
2017-07-04 01:17:49 +08:00
|
|
|
const directoryName = path.basename(relativeDirectoryName);
|
|
|
|
const directoryParent = path.join(path.dirname(relativeDirectoryName), path.sep);
|
2017-07-21 05:37:10 +08:00
|
|
|
const connection = await SQLConnection.getConnection();
|
2017-07-20 02:47:09 +08:00
|
|
|
const stat = fs.statSync(path.join(ProjectPath.ImageFolder, relativeDirectoryName));
|
|
|
|
const lastModified = Math.max(stat.ctime.getTime(), stat.mtime.getTime());
|
2017-07-04 01:17:49 +08:00
|
|
|
|
2017-07-20 02:47:09 +08:00
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
const dir = await this.selectParentDir(connection, directoryName, directoryParent);
|
|
|
|
|
2017-12-20 07:20:37 +08:00
|
|
|
if (dir && dir.lastScanned != null) {
|
2018-05-13 00:19:51 +08:00
|
|
|
// If it seems that the content did not changed, do not work on it
|
2017-07-28 05:10:16 +08:00
|
|
|
if (knownLastModified && knownLastScanned
|
2018-05-13 00:19:51 +08:00
|
|
|
&& lastModified === knownLastModified &&
|
|
|
|
dir.lastScanned === knownLastScanned) {
|
|
|
|
if (Config.Server.indexing.reIndexingSensitivity === ReIndexingSensitivity.low) {
|
2017-07-28 05:10:16 +08:00
|
|
|
return null;
|
|
|
|
}
|
2018-12-09 19:02:02 +08:00
|
|
|
if (Date.now() - dir.lastScanned <= Config.Server.indexing.cachedFolderTimeout &&
|
2018-05-13 00:19:51 +08:00
|
|
|
Config.Server.indexing.reIndexingSensitivity === ReIndexingSensitivity.medium) {
|
2017-07-21 05:00:49 +08:00
|
|
|
return null;
|
2017-07-20 02:47:09 +08:00
|
|
|
}
|
|
|
|
}
|
2018-11-24 18:50:11 +08:00
|
|
|
await this.fillParentDir(connection, dir);
|
2017-07-18 05:12:12 +08:00
|
|
|
|
|
|
|
|
2018-05-13 00:19:51 +08:00
|
|
|
if (dir.lastModified !== lastModified) {
|
2017-07-18 05:12:12 +08:00
|
|
|
return this.indexDirectory(relativeDirectoryName);
|
|
|
|
}
|
2017-07-04 01:17:49 +08:00
|
|
|
|
2018-05-13 00:19:51 +08:00
|
|
|
// not indexed since a while, index it in a lazy manner
|
2017-07-28 05:10:16 +08:00
|
|
|
if ((Date.now() - dir.lastScanned > Config.Server.indexing.cachedFolderTimeout &&
|
2018-03-31 03:30:30 +08:00
|
|
|
Config.Server.indexing.reIndexingSensitivity >= ReIndexingSensitivity.medium) ||
|
2017-07-28 05:10:16 +08:00
|
|
|
Config.Server.indexing.reIndexingSensitivity >= ReIndexingSensitivity.high) {
|
2018-05-13 00:19:51 +08:00
|
|
|
// on the fly reindexing
|
2017-07-20 02:47:09 +08:00
|
|
|
this.indexDirectory(relativeDirectoryName).catch((err) => {
|
|
|
|
console.error(err);
|
|
|
|
});
|
|
|
|
}
|
2017-07-04 01:17:49 +08:00
|
|
|
return dir;
|
2016-12-28 03:55:51 +08:00
|
|
|
|
|
|
|
|
2017-07-04 01:17:49 +08:00
|
|
|
}
|
2017-12-20 07:20:37 +08:00
|
|
|
|
2018-05-13 00:19:51 +08:00
|
|
|
// never scanned (deep indexed), do it and return with it
|
2017-07-04 01:17:49 +08:00
|
|
|
return this.indexDirectory(relativeDirectoryName);
|
2016-12-28 03:55:51 +08:00
|
|
|
|
|
|
|
|
2017-07-04 01:17:49 +08:00
|
|
|
}
|
2016-12-28 03:55:51 +08:00
|
|
|
|
2017-12-18 10:34:07 +08:00
|
|
|
|
2018-11-29 06:49:33 +08:00
|
|
|
public indexDirectory(relativeDirectoryName: string): Promise<DirectoryDTO> {
|
2017-07-04 01:17:49 +08:00
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
|
try {
|
|
|
|
const scannedDirectory = await DiskManager.scanDirectory(relativeDirectoryName);
|
|
|
|
|
2018-05-13 00:19:51 +08:00
|
|
|
// returning with the result
|
2018-11-05 02:28:32 +08:00
|
|
|
scannedDirectory.media.forEach(p => p.readyThumbnails = []);
|
2017-07-04 01:17:49 +08:00
|
|
|
resolve(scannedDirectory);
|
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
this.queueForSave(scannedDirectory).catch(console.error);
|
2017-07-04 01:17:49 +08:00
|
|
|
|
2017-12-18 10:34:07 +08:00
|
|
|
} catch (error) {
|
2018-12-02 19:22:05 +08:00
|
|
|
NotificationManager.warning('Unknown indexing error for: ' + relativeDirectoryName, error.toString());
|
2017-12-18 10:34:07 +08:00
|
|
|
console.error(error);
|
|
|
|
return reject(error);
|
|
|
|
}
|
2017-07-04 01:17:49 +08:00
|
|
|
|
2017-12-18 10:34:07 +08:00
|
|
|
});
|
|
|
|
}
|
2017-07-18 05:12:12 +08:00
|
|
|
|
2017-07-04 01:17:49 +08:00
|
|
|
|
2018-11-24 18:50:11 +08:00
|
|
|
public async getRandomPhoto(queryFilter: RandomQuery): Promise<PhotoDTO> {
|
|
|
|
const connection = await SQLConnection.getConnection();
|
|
|
|
const photosRepository = connection.getRepository(PhotoEntity);
|
|
|
|
const query = photosRepository.createQueryBuilder('photo');
|
|
|
|
query.innerJoinAndSelect('photo.directory', 'directory');
|
|
|
|
|
|
|
|
if (queryFilter.directory) {
|
|
|
|
const directoryName = path.basename(queryFilter.directory);
|
|
|
|
const directoryParent = path.join(path.dirname(queryFilter.directory), path.sep);
|
|
|
|
|
|
|
|
query.where(new Brackets(qb => {
|
|
|
|
qb.where('directory.name = :name AND directory.path = :path', {
|
|
|
|
name: directoryName,
|
|
|
|
path: directoryParent
|
|
|
|
});
|
|
|
|
|
|
|
|
if (queryFilter.recursive) {
|
|
|
|
qb.orWhere('directory.name LIKE :text COLLATE utf8_general_ci', {text: '%' + queryFilter.directory + '%'});
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (queryFilter.fromDate) {
|
|
|
|
query.andWhere('photo.metadata.creationDate >= :fromDate', {
|
|
|
|
fromDate: queryFilter.fromDate.getTime()
|
|
|
|
});
|
|
|
|
}
|
|
|
|
if (queryFilter.toDate) {
|
|
|
|
query.andWhere('photo.metadata.creationDate <= :toDate', {
|
|
|
|
toDate: queryFilter.toDate.getTime()
|
|
|
|
});
|
|
|
|
}
|
|
|
|
if (queryFilter.minResolution) {
|
|
|
|
query.andWhere('photo.metadata.size.width * photo.metadata.size.height >= :minRes', {
|
|
|
|
minRes: queryFilter.minResolution * 1000 * 1000
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
if (queryFilter.maxResolution) {
|
|
|
|
query.andWhere('photo.metadata.size.width * photo.metadata.size.height <= :maxRes', {
|
|
|
|
maxRes: queryFilter.maxResolution * 1000 * 1000
|
|
|
|
});
|
|
|
|
}
|
|
|
|
if (queryFilter.orientation === OrientationType.landscape) {
|
|
|
|
query.andWhere('photo.metadata.size.width >= photo.metadata.size.height');
|
|
|
|
}
|
|
|
|
if (queryFilter.orientation === OrientationType.portrait) {
|
|
|
|
query.andWhere('photo.metadata.size.width <= photo.metadata.size.height');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Config.Server.database.type === DatabaseType.mysql) {
|
|
|
|
return await query.groupBy('RAND(), photo.id').limit(1).getOne();
|
|
|
|
}
|
|
|
|
return await query.groupBy('RANDOM()').limit(1).getOne();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
// Todo fix it, once typeorm support connection pools ofr sqlite
|
|
|
|
protected async queueForSave(scannedDirectory: DirectoryDTO) {
|
|
|
|
if (this.savingQueue.findIndex(dir => dir.name === scannedDirectory.name &&
|
|
|
|
dir.path === scannedDirectory.path &&
|
|
|
|
dir.lastModified === scannedDirectory.lastModified &&
|
|
|
|
dir.lastScanned === scannedDirectory.lastScanned &&
|
|
|
|
(dir.media || dir.media.length) === (scannedDirectory.media || scannedDirectory.media.length) &&
|
|
|
|
(dir.metaFile || dir.metaFile.length) === (scannedDirectory.metaFile || scannedDirectory.metaFile.length)) !== -1) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
this.savingQueue.push(scannedDirectory);
|
|
|
|
while (this.isSaving === false && this.savingQueue.length > 0) {
|
|
|
|
await this.saveToDB(this.savingQueue[0]);
|
|
|
|
this.savingQueue.shift();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2018-11-24 18:50:11 +08:00
|
|
|
|
|
|
|
protected async saveToDB(scannedDirectory: DirectoryDTO) {
|
2018-12-09 18:37:12 +08:00
|
|
|
this.isSaving = true;
|
|
|
|
try {
|
|
|
|
const connection = await SQLConnection.getConnection();
|
|
|
|
|
|
|
|
// saving to db
|
|
|
|
const directoryRepository = connection.getRepository(DirectoryEntity);
|
|
|
|
const mediaRepository = connection.getRepository(MediaEntity);
|
|
|
|
const fileRepository = connection.getRepository(FileEntity);
|
|
|
|
|
|
|
|
|
|
|
|
let currentDir: DirectoryEntity = await directoryRepository.createQueryBuilder('directory')
|
|
|
|
.where('directory.name = :name AND directory.path = :path', {
|
|
|
|
name: scannedDirectory.name,
|
|
|
|
path: scannedDirectory.path
|
|
|
|
}).getOne();
|
|
|
|
if (!!currentDir) {// Updated parent dir (if it was in the DB previously)
|
|
|
|
currentDir.lastModified = scannedDirectory.lastModified;
|
|
|
|
currentDir.lastScanned = scannedDirectory.lastScanned;
|
|
|
|
currentDir = await directoryRepository.save(currentDir);
|
|
|
|
} else {
|
|
|
|
(<DirectoryEntity>scannedDirectory).lastScanned = scannedDirectory.lastScanned;
|
|
|
|
currentDir = await directoryRepository.save(<DirectoryEntity>scannedDirectory);
|
|
|
|
}
|
2017-07-04 01:17:49 +08:00
|
|
|
|
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
// save subdirectories
|
|
|
|
const childDirectories = await directoryRepository.createQueryBuilder('directory')
|
|
|
|
.where('directory.parent = :dir', {
|
|
|
|
dir: currentDir.id
|
|
|
|
}).getMany();
|
|
|
|
|
|
|
|
for (let i = 0; i < scannedDirectory.directories.length; i++) {
|
|
|
|
// Was this child Dir already indexed before?
|
|
|
|
let directory: DirectoryEntity = null;
|
|
|
|
for (let j = 0; j < childDirectories.length; j++) {
|
|
|
|
if (childDirectories[j].name === scannedDirectory.directories[i].name) {
|
|
|
|
directory = childDirectories[j];
|
|
|
|
childDirectories.splice(j, 1);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2017-07-18 05:12:12 +08:00
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
if (directory != null) { // update existing directory
|
|
|
|
if (!directory.parent || !directory.parent.id) { // set parent if not set yet
|
|
|
|
directory.parent = currentDir;
|
|
|
|
delete directory.media;
|
|
|
|
await directoryRepository.save(directory);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
scannedDirectory.directories[i].parent = currentDir;
|
|
|
|
(<DirectoryEntity>scannedDirectory.directories[i]).lastScanned = null; // new child dir, not fully scanned yet
|
|
|
|
const d = await directoryRepository.save(<DirectoryEntity>scannedDirectory.directories[i]);
|
|
|
|
for (let j = 0; j < scannedDirectory.directories[i].media.length; j++) {
|
|
|
|
scannedDirectory.directories[i].media[j].directory = d;
|
|
|
|
}
|
|
|
|
|
|
|
|
await this.saveMedia(connection, scannedDirectory.directories[i].media);
|
2017-12-18 10:34:07 +08:00
|
|
|
}
|
|
|
|
}
|
2017-07-18 05:12:12 +08:00
|
|
|
|
2018-12-09 18:37:12 +08:00
|
|
|
// Remove child Dirs that are not anymore in the parent dir
|
|
|
|
await directoryRepository.remove(childDirectories);
|
|
|
|
|
|
|
|
// save media
|
|
|
|
const indexedMedia = await mediaRepository.createQueryBuilder('media')
|
|
|
|
.where('media.directory = :dir', {
|
|
|
|
dir: currentDir.id
|
|
|
|
}).getMany();
|
|
|
|
|
|
|
|
|
|
|
|
const mediaToSave = [];
|
|
|
|
for (let i = 0; i < scannedDirectory.media.length; i++) {
|
|
|
|
let media: MediaDTO = null;
|
|
|
|
for (let j = 0; j < indexedMedia.length; j++) {
|
|
|
|
if (indexedMedia[j].name === scannedDirectory.media[i].name) {
|
|
|
|
media = indexedMedia[j];
|
|
|
|
indexedMedia.splice(j, 1);
|
|
|
|
break;
|
|
|
|
}
|
2017-12-18 10:34:07 +08:00
|
|
|
}
|
2018-12-09 18:37:12 +08:00
|
|
|
if (media == null) { // not in DB yet
|
|
|
|
scannedDirectory.media[i].directory = null;
|
|
|
|
media = Utils.clone(scannedDirectory.media[i]);
|
|
|
|
scannedDirectory.media[i].directory = scannedDirectory;
|
|
|
|
media.directory = currentDir;
|
|
|
|
mediaToSave.push(media);
|
|
|
|
} else if (!Utils.equalsFilter(media.metadata, scannedDirectory.media[i].metadata)) {
|
|
|
|
media.metadata = scannedDirectory.media[i].metadata;
|
|
|
|
mediaToSave.push(media);
|
2017-07-04 01:17:49 +08:00
|
|
|
}
|
2017-12-18 10:34:07 +08:00
|
|
|
}
|
2018-12-09 18:37:12 +08:00
|
|
|
await this.saveMedia(connection, mediaToSave);
|
|
|
|
await mediaRepository.remove(indexedMedia);
|
|
|
|
|
|
|
|
// save files
|
|
|
|
const indexedMetaFiles = await fileRepository.createQueryBuilder('file')
|
|
|
|
.where('file.directory = :dir', {
|
|
|
|
dir: currentDir.id
|
|
|
|
}).getMany();
|
|
|
|
|
|
|
|
|
|
|
|
const metaFilesToSave = [];
|
|
|
|
for (let i = 0; i < scannedDirectory.metaFile.length; i++) {
|
|
|
|
let metaFile: FileDTO = null;
|
|
|
|
for (let j = 0; j < indexedMetaFiles.length; j++) {
|
|
|
|
if (indexedMetaFiles[j].name === scannedDirectory.metaFile[i].name) {
|
|
|
|
metaFile = indexedMetaFiles[j];
|
|
|
|
indexedMetaFiles.splice(j, 1);
|
|
|
|
break;
|
|
|
|
}
|
2017-12-18 10:34:07 +08:00
|
|
|
}
|
2018-12-09 18:37:12 +08:00
|
|
|
if (metaFile == null) { // not in DB yet
|
|
|
|
scannedDirectory.metaFile[i].directory = null;
|
|
|
|
metaFile = Utils.clone(scannedDirectory.metaFile[i]);
|
|
|
|
scannedDirectory.metaFile[i].directory = scannedDirectory;
|
|
|
|
metaFile.directory = currentDir;
|
|
|
|
metaFilesToSave.push(metaFile);
|
2018-11-26 07:26:29 +08:00
|
|
|
}
|
|
|
|
}
|
2018-12-09 18:37:12 +08:00
|
|
|
await fileRepository.save(metaFilesToSave);
|
|
|
|
await fileRepository.remove(indexedMetaFiles);
|
2018-12-09 19:02:02 +08:00
|
|
|
} catch (e) {
|
2018-12-09 18:37:12 +08:00
|
|
|
throw e;
|
2018-12-09 19:02:02 +08:00
|
|
|
} finally {
|
2018-12-09 18:37:12 +08:00
|
|
|
this.isSaving = false;
|
2018-11-26 07:26:29 +08:00
|
|
|
}
|
2018-11-18 02:32:31 +08:00
|
|
|
}
|
2017-12-18 10:34:07 +08:00
|
|
|
|
2018-11-24 18:50:11 +08:00
|
|
|
protected async saveMedia(connection: Connection, mediaList: MediaDTO[]): Promise<MediaEntity[]> {
|
2018-12-02 19:22:05 +08:00
|
|
|
const chunked = Utils.chunkArrays(mediaList, 100);
|
|
|
|
let list: MediaEntity[] = [];
|
|
|
|
for (let i = 0; i < chunked.length; i++) {
|
|
|
|
list = list.concat(await connection.getRepository(PhotoEntity).save(<PhotoEntity[]>chunked[i].filter(m => MediaDTO.isPhoto(m))));
|
|
|
|
list = list.concat(await connection.getRepository(VideoEntity).save(<VideoEntity[]>chunked[i].filter(m => MediaDTO.isVideo(m))));
|
|
|
|
}
|
|
|
|
return list;
|
2017-07-04 01:17:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|