answer
stringlengths 15
1.25M
|
|---|
using TwinTechs.Controls;
using TekConf.Core.Data.Dtos;
namespace TekConf.Forms.Cells
{
public partial class <API key> : FastCell
{
protected override void InitializeCell ()
{
InitializeComponent ();
}
protected override void SetupCell (bool isRecycled)
{
var session = BindingContext as SessionDto;
if (session != null) {
// logoImage.ImageUrl = conference.ImageUrl ?? "";
title.Text = session.Title;
date.Text = session.Date;
}
}
}
}
|
layout: post
title: LeetCode 77
category:
tags: LeetCode Medium
keywords: LeetCode
description: 2019
Given two integers *n* and *k*, return all possible combinations of k numbers out of *1* ... *n*.
**Example:**
Input: n = 4, k = 2
Output:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]
# Thoughts
The requirement is easy to understand, we count from *1* to *n* within *k* numbers.
**First try:**
Java
class Solution {
public List<List<Integer>> combine(int n, int k) {
List<List<Integer>> res = new ArrayList<>();
if (n == 0 || k == 0 || k > n)
return res;
combieHelper(res, new ArrayList<>(), n, 0, k);
return res;
}
private static void combineHelper(List<List<Integer>> res, List<Integer> tmp, int max, int start, int remain) {
if (remain == 0)
res.add(new ArrayList<>(tmp));
else {
for (int i = start + 1; i <= max; i++) {
tmp.add(i);
combieHelper(res, tmp, max, i, remain - 1);
tmp.remove(tmp.size() - 1);
}
}
}
}
**Result 1:**
> Runtime: **28 ms**, faster than **57.69%** of Java online submissions for Combinations.
The result is just fine, may take sometime to see how others solve this question.
**Second try:**
**Result 2:**
|
<?php
namespace SilexMarkdown\Parser;
use SilexMarkdown\Filter\FilterInterface;
interface ParserInterface
{
public function transform($source);
public function registerFilter($method, FilterInterface $filter);
public function getFilters();
public function hasFilter($method);
public function useFilter($method, $content, $params);
}
|
import Lab from 'lab';
import server from '../../server';
import data from '../data';
const expect = Lab.assertions.expect;
export const lab = Lab.script();
lab.experiment('ProfileCtrl', function() {
lab.before(done => {
data.sync().then(done, done);
});
lab.test('[getAuthenticated] returns the current profile', function(done) {
const options = {
method: 'GET',
url: '/profile',
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.email).to.equal(data.fp.account.profile.email);
done();
});
});
lab.test('[getAuthenticated] returns 401 without a token', function(done) {
const options = {
method: 'GET',
url: '/profile'
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(401);
done();
});
});
lab.test('[get] returns the correct profile by id', function(done) {
const options = {
method: 'GET',
url: `/profile/${data.tp.account.profile.id}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.id).to.equal(data.tp.account.profile.id);
done();
});
});
lab.test('[get] returns the correct profile by email', function(done) {
const options = {
method: 'GET',
url: `/profile/${encodeURIComponent(data.tp.account.profile.email)}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.email).to.equal(data.tp.account.profile.email);
done();
});
});
lab.test('[get] returns 404 if not found by id', function(done) {
const options = {
method: 'GET',
url: `/profile/123-456`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(404);
done();
});
});
lab.test('[get] returns 404 if not found by email', function(done) {
const options = {
method: 'GET',
url: `/profile/${encodeURIComponent('not@found.com')}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(404);
done();
});
});
lab.test('[update] returns the profile with a new first name (by id)', function(done) {
const options = {
method: 'PUT',
url: `/profile/${data.tp.account.profile.id}`,
headers: {
'Authorization': `Bearer ${data.tp.token.value}`
},
payload: {
firstName: 'Gargantua'
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.name.first).to.equal('Gargantua');
done();
});
});
lab.test('[update] returns the profile with a new last name (by email)', function(done) {
const options = {
method: 'PUT',
url: `/profile/${data.tp.account.profile.email}`,
headers: {
'Authorization': `Bearer ${data.tp.token.value}`
},
payload: {
lastName: 'Batman'
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.name.last).to.equal('Batman');
done();
});
});
lab.test('[update] returns 401 if trying to update someone else\'s profile', function(done) {
const options = {
method: 'PUT',
url: `/profile/${data.tp.account.profile.email}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
},
payload: {
lastName: 'Batman'
}
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(401);
done();
});
});
});
|
package net.glowstone.net.message.play.entity;
import com.flowpowered.network.Message;
import java.util.List;
import lombok.Data;
@Data
public final class <API key> implements Message {
private final List<Integer> ids;
}
|
#include <ArduinoJson.h>
#include <catch.hpp>
#define SHOULD_WORK(expression) REQUIRE(<API key>::Ok == expression);
#define SHOULD_FAIL(expression) \
REQUIRE(<API key>::TooDeep == expression);
TEST_CASE("JsonDeserializer nesting") {
DynamicJsonDocument doc(4096);
SECTION("Input = const char*") {
SECTION("limit = 0") {
<API key>::NestingLimit nesting(0);
SHOULD_WORK(deserializeJson(doc, "\"toto\"", nesting));
SHOULD_WORK(deserializeJson(doc, "123", nesting));
SHOULD_WORK(deserializeJson(doc, "true", nesting));
SHOULD_FAIL(deserializeJson(doc, "[]", nesting));
SHOULD_FAIL(deserializeJson(doc, "{}", nesting));
SHOULD_FAIL(deserializeJson(doc, "[\"toto\"]", nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":1}", nesting));
}
SECTION("limit = 1") {
<API key>::NestingLimit nesting(1);
SHOULD_WORK(deserializeJson(doc, "[\"toto\"]", nesting));
SHOULD_WORK(deserializeJson(doc, "{\"toto\":1}", nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":{}}", nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":[]}", nesting));
SHOULD_FAIL(deserializeJson(doc, "[[\"toto\"]]", nesting));
SHOULD_FAIL(deserializeJson(doc, "[{\"toto\":1}]", nesting));
}
}
SECTION("char* and size_t") {
SECTION("limit = 0") {
<API key>::NestingLimit nesting(0);
SHOULD_WORK(deserializeJson(doc, "\"toto\"", 6, nesting));
SHOULD_WORK(deserializeJson(doc, "123", 3, nesting));
SHOULD_WORK(deserializeJson(doc, "true", 4, nesting));
SHOULD_FAIL(deserializeJson(doc, "[]", 2, nesting));
SHOULD_FAIL(deserializeJson(doc, "{}", 2, nesting));
SHOULD_FAIL(deserializeJson(doc, "[\"toto\"]", 8, nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":1}", 10, nesting));
}
SECTION("limit = 1") {
<API key>::NestingLimit nesting(1);
SHOULD_WORK(deserializeJson(doc, "[\"toto\"]", 8, nesting));
SHOULD_WORK(deserializeJson(doc, "{\"toto\":1}", 10, nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":{}}", 11, nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":[]}", 11, nesting));
SHOULD_FAIL(deserializeJson(doc, "[[\"toto\"]]", 10, nesting));
SHOULD_FAIL(deserializeJson(doc, "[{\"toto\":1}]", 12, nesting));
}
}
SECTION("Input = std::string") {
SECTION("limit = 0") {
<API key>::NestingLimit nesting(0);
SHOULD_WORK(deserializeJson(doc, std::string("\"toto\""), nesting));
SHOULD_WORK(deserializeJson(doc, std::string("123"), nesting));
SHOULD_WORK(deserializeJson(doc, std::string("true"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[]"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[\"toto\"]"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{\"toto\":1}"), nesting));
}
SECTION("limit = 1") {
<API key>::NestingLimit nesting(1);
SHOULD_WORK(deserializeJson(doc, std::string("[\"toto\"]"), nesting));
SHOULD_WORK(deserializeJson(doc, std::string("{\"toto\":1}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{\"toto\":{}}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{\"toto\":[]}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[[\"toto\"]]"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[{\"toto\":1}]"), nesting));
}
}
SECTION("Input = std::istream") {
SECTION("limit = 0") {
<API key>::NestingLimit nesting(0);
std::istringstream good("true");
std::istringstream bad("[]");
SHOULD_WORK(deserializeJson(doc, good, nesting));
SHOULD_FAIL(deserializeJson(doc, bad, nesting));
}
SECTION("limit = 1") {
<API key>::NestingLimit nesting(1);
std::istringstream good("[\"toto\"]");
std::istringstream bad("{\"toto\":{}}");
SHOULD_WORK(deserializeJson(doc, good, nesting));
SHOULD_FAIL(deserializeJson(doc, bad, nesting));
}
}
}
|
const fs = require('fs')
const path = require('path')
const LRU = require('lru-cache')
const express = require('express')
const favicon = require('serve-favicon')
const compression = require('compression')
const resolve = file => path.resolve(__dirname, file)
const { <API key> } = require('vue-server-renderer')
const isProd = process.env.NODE_ENV === 'production'
const useMicroCache = process.env.MICRO_CACHE !== 'false'
const serverInfo =
`express/${require('express/package.json').version} ` +
`vue-server-renderer/${require('vue-server-renderer/package.json').version}`
const app = express()
const template = fs.readFileSync(resolve('./src/index.html'), 'utf-8');
function createRenderer (bundle, options) {
// https://github.com/vuejs/vue/blob/dev/packages/vue-server-renderer/README.md#<API key>
return <API key>(bundle, Object.assign(options, {
template,
// for component caching
cache: LRU({
max: 1000,
maxAge: 1000 * 60 * 15
}),
// this is only needed when vue-server-renderer is npm-linked
basedir: resolve('./dist'),
// recommended for performance
runInNewContext: false
}))
}
let renderer
let readyPromise
if (isProd) {
// In production: create server renderer using built server bundle.
// The server bundle is generated by <API key>.
const bundle = require('./dist/<API key>.json')
// The client manifests are optional, but it allows the renderer
// to automatically infer preload/prefetch links and directly add <script>
// tags for any async chunks used during render, avoiding waterfall requests.
const clientManifest = require('./dist/<API key>.json')
renderer = createRenderer(bundle, {
clientManifest
})
} else {
// In development: setup the dev server with watch and hot-reload,
// and create a new renderer on bundle / index template update.
readyPromise = require('./build/setup-dev-server')(app, (bundle, options) => {
renderer = createRenderer(bundle, options)
})
}
const serve = (path, cache) => express.static(resolve(path), {
maxAge: cache && isProd ? 1000 * 60 * 60 * 24 * 30 : 0
})
app.use(compression({ threshold: 0 }))
//app.use(favicon('./public/logo-48.png'))
app.use('/dist', serve('./dist', true))
app.use('/public', serve('./public', true))
app.use('/manifest.json', serve('./manifest.json', true))
app.use('/service-worker.js', serve('./dist/service-worker.js'))
// 1-second microcache.
const microCache = LRU({
max: 100,
maxAge: 1000
})
// since this app has no user-specific content, every page is micro-cacheable.
// if your app involves user-specific content, you need to implement custom
// logic to determine whether a request is cacheable based on its url and
// headers.
const isCacheable = req => useMicroCache
function render (req, res) {
const s = Date.now()
res.setHeader("Content-Type", "text/html")
res.setHeader("Server", serverInfo)
const handleError = err => {
if (err.url) {
res.redirect(err.url)
} else if(err.code === 404) {
res.status(404).end('404 | Page Not Found')
} else {
// Render Error Page or Redirect
res.status(500).end('500 | Internal Server Error')
console.error(`error during render : ${req.url}`)
console.error(err.stack)
}
}
const cacheable = isCacheable(req)
if (cacheable) {
const hit = microCache.get(req.url)
if (hit) {
if (!isProd) {
console.log(`cache hit!`)
}
return res.end(hit)
}
}
const context = {
title: '_______jiaoyihu', // default title
url: req.url
}
renderer.renderToString(context, (err, html) => {
debugger;
if (err) {
return handleError(err)
}
res.end(html)
if (cacheable) {
microCache.set(req.url, html)
}
if (!isProd) {
console.log(`whole request: ${Date.now() - s}ms`)
}
})
}
app.get('*', isProd ? render : (req, res) => {
readyPromise.then(() => render(req, res))
})
const port = process.env.PORT || 80;
app.listen(port, () => {
console.log(`server started at localhost:${port}`)
})
|
## async modes
constant broadcast mode
* `STATE A` `encoding`
* agent broadcasts and performs signaling at a constant rate
Agent does not listen for any signals.
passive listen mode
* `STATE A` `decoding`
* agent polls for signaling and decodes bytes as they arrive
This mode is for listening to a constant broadcast mode transmitter.
## sync modes
triggered broadcast mode
* `STATE A` `idle` `listening for connection`
* agent broadcasts full gain on all frequencies
* each tick
* agent listens for identifying bands on input
* if agent hears client transmit on identifying bands
* `GOTO` `STATE B`
* `STATE B` `encoding`
* agent encodes bytes and performs signaling at a constant rate.
triggered listen mode
* `STATE A` `idle` `polling for signaling`
* agent broadcasts full gain on all frequencies
* each tick
* agent polls for signaling and decodes bytes as they arrive
* if agent finds signaling
* agent zeros gain on all broadcast frequencies
* `GOTO` `STATE B`
* `STATE B` `decoding`
* agent polls for signaling and decodes bytes as they arrive
mutual stepped broadcast mode (active)
mutual stepped listen mode (active)
error checked mode
|
import * as _ from 'lodash';
import * as AWS from 'aws-sdk';
import * as config from './config';
export interface Secrets {
REDDIT_CLIENT_ID: string;
REDDIT_CLIENT_TOKEN: string;
REDDIT_USERNAME: string;
REDDIT_PASSWORD: string;
STEAM_API_KEY: string;
}
export async function resolve(): Promise<Secrets> {
if (config.isLocalDev() && !process.env.USE_SECRETS) {
console.info('Getting secrets from ENV instead of encrypted bundle.');
return _.pick(process.env, [
'REDDIT_CLIENT_ID',
'REDDIT_CLIENT_TOKEN',
'REDDIT_PASSWORD',
'STEAM_API_KEY',
]) as any;
}
const kms = new AWS.KMS({
region: 'us-west-2',
});
console.log('Resolving secrets.');
const secrets = await kms.decrypt({
CiphertextBlob: Buffer.from(process.env.SECRETS, 'base64'),
}).promise();
return JSON.parse(secrets.Plaintext.toString());
}
|
<!DOCTYPE html >
<html>
<head>
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../lib/ref-index.css" media="screen" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../lib/jquery.js"></script>
</head>
<body><div class="entry">
<div class="name">ReversibleScaler</div>
<div class="occurrences"><a href="../io/github/mandar2812/dynaml/pipes/package.html" class="extype" name="io.github.mandar2812.dynaml.pipes">pipes</a> </div>
</div><div class="entry">
<div class="name">run</div>
<div class="occurrences"><a href="../io/github/mandar2812/dynaml/pipes/DataPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.DataPipe">DataPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamDataPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamDataPipe">StreamDataPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamFilterPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamFilterPipe">StreamFilterPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamMapPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamMapPipe">StreamMapPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamPartitionPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamPartitionPipe">StreamPartitionPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/<API key>.html" class="extype" name="io.github.mandar2812.dynaml.pipes.<API key>"><API key></a> </div>
</div></body>
</html>
|
FROM ubuntu
ADD a.out /a.out
|
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "utils.sh"
tohome() {
sourceFile="$(cd .. && pwd)/$1"
targetFile="$HOME/.$(printf "%s" "$1" | sed "s/.*\/\(.*\)/\1/g")"
if [ ! -e "$targetFile" ] || $skipQuestions; then
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
elif [ "$(readlink "$targetFile")" == "$sourceFile" ]; then
print_success "$targetFile → $sourceFile"
else
if ! $skipQuestions; then
<API key> "'$targetFile' already exists, do you want to overwrite it?"
if answer_is_yes; then
rm -rf "$targetFile"
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
else
print_error "$targetFile → $sourceFile"
fi
fi
fi
}
toother() {
sourceFile="$(cd .. && pwd)/$1"
targetFile="$HOME/$2"
targetdir=$(dirname "$targetFile")
mkdir -p "$targetdir"
if [ ! -e "$targetFile" ] || $skipQuestions; then
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
elif [ "$(readlink "$targetFile")" == "$sourceFile" ]; then
print_success "$targetFile → $sourceFile"
else
if ! $skipQuestions; then
<API key> "'$targetFile' already exists, do you want to overwrite it?"
if answer_is_yes; then
rm -rf "$targetFile"
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
else
print_error "$targetFile → $sourceFile"
fi
fi
fi
}
create_symlinks() {
declare -a FILES_TO_SYMLINK=(
"shell/bash_logout"
"shell/bash_profile"
"shell/bashrc"
"shell/tmux.conf"
"git/gitconfig"
"conky/conkyrc"
"R/Rprofile"
"zsh/zshrc"
)
local i=""
local sourceFile=""
local targetFile=""
local skipQuestions=false
skip_questions "$@" \
&& skipQuestions=true
for i in "${FILES_TO_SYMLINK[@]}"; do
tohome "$i"
done
toother "xfce4/terminal/terminalrc" ".config/xfce4/terminal/terminalrc"
toother "xfce4/panel/whiskermenu-1.rc" ".config/xfce4/panel/whiskermenu-1.rc"
toother "sublime-text/Package\ Control.sublime-settings" ".config/sublime-text-3/Packages/User/Package\ Control.sublime-settings"
toother "sublime-text/Preferences.sublime-settings" ".config/sublime-text-3/Packages/User/Preferences.sublime-settings"
toother "sublime-text/bash.sublime-build" ".config/sublime-text-3/Packages/User/bash.sublime-build"
toother "sublime-text/xetex.sublime-build" ".config/sublime-text-3/Packages/User/xetex.sublime-build"
}
main() {
print_info "Create symbolic links"
create_symlinks "$@"
}
main "$@"
|
module <API key>
include HyaccConst
def colspan( node_level )
@max_node_level - node_level + 1
end
def <API key>( account, branch_id )
return false if account.deleted?
return false unless account.<API key>
if branch_id.to_i == 0
return false if account.internal_trade?
end
true
end
end
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/favicon.ico"/>
<link rel="apple-touch-icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/iosicon.png"/>
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/css/css_compiled/photon-min.css?v1.1" media="all"/>
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/css/css_compiled/photon-min-part2.css?v1.1" media="all"/>
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/css/css_compiled/<API key>.css?v1.1" media="all"/>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/css_compiled/ie-only-min.css?v1.1" />
<![endif]
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="css/css_compiled/ie8-only-min.css?v1.1" />
<script type="text/javascript" src="js/plugins/excanvas.js"></script>
<script type="text/javascript" src="js/plugins/html5shiv.js"></script>
<script type="text/javascript" src="js/plugins/respond.min.js"></script>
<script type="text/javascript" src="js/plugins/fixFontIcons.js"></script>
<![endif]
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/modernizr.custom.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.pnotify.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/less-1.3.1.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/xbreadcrumbs.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.maskedinput-1.3.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.autotab-1.1b.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/charCount.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.textareaCounter.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/elrte.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/elrte.en.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/select2.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery-picklist.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.validate.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/additional-methods.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.form.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.metadata.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.mockjax.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.uniform.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.rating.pack.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/farbtastic.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.timeentry.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.jstree.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.mCustomScrollbar.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.stack.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.pie.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.resize.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/raphael.2.1.0.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/justgage.1.0.1.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.clock.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.countdown.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.jqtweet.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/<API key>.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/prettify/prettify.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/bootstrapSwitch.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/mfupload.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/common.js"></script>
</head>
<body class="body-login">
<div class="nav-fixed-topright" style="visibility: hidden">
<ul class="nav nav-user-menu">
<li class="<API key>">
<a href="javascript:;">
<i class="user-icon"></i><span class="nav-user-selection">Theme Options</span><i class="icon-menu-arrow"></i>
</a>
<ul class="nav user-sub-menu">
<li class="light">
<a href="javascript:;">
<i class='icon-photon stop'></i>Light Version
</a>
</li>
<li class="dark">
<a href="javascript:;">
<i class='icon-photon stop'></i>Dark Version
</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-photon mail"></i>
</a>
</li>
<li>
<a href="javascript:;">
<i class="icon-photon comment_alt2_stroke"></i>
<div class="notification-count">12</div>
</a>
</li>
</ul>
</div>
<script>
$(function(){
setTimeout(function(){
$('.nav-fixed-topright').removeAttr('style');
}, 300);
$(window).scroll(function(){
if($('.<API key>').length){
var scrollState = $(window).scrollTop();
if (scrollState > 0) $('.nav-fixed-topright').addClass('nav-released');
else $('.nav-fixed-topright').removeClass('nav-released')
}
});
$('.<API key>').on('click', function(){
$(this).toggleClass('active-user-menu');
});
$('.user-sub-menu .light').on('click', function(){
if ($('body').is('.light-version')) return;
$('body').addClass('light-version');
setTimeout(function() {
$.cookie('themeColor', 'light', {
expires: 7,
path: '/'
});
}, 500);
});
$('.user-sub-menu .dark').on('click', function(){
if ($('body').is('.light-version')) {
$('body').removeClass('light-version');
$.cookie('themeColor', 'dark', {
expires: 7,
path: '/'
});
}
});
});
</script>
<div class="container-login">
<div class="<API key>">
<div class="form-window-login">
<div class="<API key>">
<div class="login-logo">
<img src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/images/photon/login-logo@2x.png" alt="Photon UI"/>
</div>
<h2 class="login-title">Welcome to Photon UI!</h2>
<div class="login-member">Not a Member? <a href="prettify.js.html#">Sign Up »</a>
<a href="prettify.js.html#" class="btn btn-facebook"><i class="icon-fb"></i>Login with Facebook<i class="icon-fb-arrow"></i></a>
</div>
<div class="login-or">Or</div>
<div class="login-input-area">
<form method="POST" action="dashboard.php">
<span class="help-block">Login With Your Photon Account</span>
<input type="text" name="email" placeholder="Email">
<input type="password" name="password" placeholder="Password">
<button type="submit" class="btn btn-large btn-success btn-login">Login</button>
</form>
<a href="prettify.js.html#" class="forgot-pass">Forgot Your Password?</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1936460-27']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https:
var s = document.<API key>('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
|
#include "Common.h"
#include "CacheAdapters/Redis.h"
#include "SSEConfig.h"
#include "SSEEvent.h"
#include <string>
#include <vector>
#include <iostream>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/address.hpp>
using namespace std;
extern int stop;
Redis::Redis(const string key, const ChannelConfig& config) : _config(config), _key(key) {
Connect();
}
void Redis::Connect() {
string host = Lookup(_config.server->GetValue("redis.host"));
const unsigned short port = _config.server->GetValueInt("redis.port");
const unsigned int NUM_CONNECTIONS = _config.server->GetValueInt("redis.numConnections");
if (host.empty()) {
LOG(ERROR) << "Failed to look up host for redis adapter " << _config.server->GetValue("redis.host") << " Retrying in 5 seconds.";
Reconnect(5);
return;
}
boost::asio::ip::address address = boost::asio::ip::address::from_string(host);
boost::asio::io_service ioService;
string errmsg;
LOG(INFO) << "Creating redis pool of " << _config.server->GetValue("redis.numConnections") << " connections.";
for (unsigned int i = 0; i < NUM_CONNECTIONS; i++) {
RedisSyncClient* client = new RedisSyncClient(ioService);
if(client->connect(address, port, errmsg)) {
_clients.push_back(RedisSyncClientPtr(client));
LOG(INFO) << "Connected to redis server " << _config.server->GetValue("redis.host") << ":" << _config.server->GetValue("redis.port");
} else {
LOG(ERROR) << "Failed to connect to redis:" << errmsg << ". Retrying in 5 seconds.";
Reconnect(5);
return;
}
}
_curclient = _clients.begin();
}
void Redis::Disconnect() {
while(_clients.size() > 0) {
_clients.pop_back();
}
}
void Redis::Reconnect(int delay) {
if (!stop) {
Disconnect();
sleep(delay);
Connect();
}
}
RedisSyncClient* Redis::GetClient() {
RedisSyncClient* client = (*_curclient).get();
_curclient++;
if (_curclient == _clients.end()) _curclient = _clients.begin();
return client;
}
void Redis::CacheEvent(SSEEvent* event) {
RedisValue result;
try {
result = GetClient()->command("HSET", _key, event->getid(), event->get());
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::CacheEvent: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "SET error: " << result.toString();
}
result = GetClient()->command("HLEN", _key);
if (result.isError()) {
LOG(ERROR) << "HLEN error" << result.toString();
}
if (result.isOk()) {
if (result.toInt() > _config.cacheLength) {
result = GetClient()->command("HKEYS", _key);
if (result.isError()) {
LOG(ERROR) << "HKEYS error: " << result.toString();
}
if (result.isOk()) {
GetClient()->command("HDEL", _key, result.toArray().front().toString());
}
}
}
}
deque<string> Redis::GetEventsSinceId(string lastId) {
deque<string> events;
RedisValue result;
try {
result = GetClient()->command("HGETALL", _key);
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::GetEventsSinceId: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "GET error: " << result.toString();
}
if (result.isOk() && result.isArray()) {
std::vector<RedisValue> resultArray = result.toArray();
string id = "";
string data = "";
while (!resultArray.empty()) {
RedisValue eventResult = resultArray.back();
if (eventResult.isString()) {
if (data == "") {
data = eventResult.toString();
} else {
id = eventResult.toString();
if (id >= lastId) {
events.push_front(data);
}
id = "";
data = "";
}
}
resultArray.pop_back();
}
}
return events;
}
deque<string> Redis::GetAllEvents() {
RedisValue result;
deque<string> events;
try {
result = GetClient()->command("HGETALL", _key);
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::GetEventsSinceId: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "GET error: " << result.toString();
}
if (result.isOk() && result.isArray()) {
std::vector<RedisValue> resultArray = result.toArray();
string data = "";
while (!resultArray.empty()) {
RedisValue eventResult = resultArray.back();
if (eventResult.isString()) {
if (data == "") {
data = eventResult.toString();
} else {
events.push_front(data);
data = "";
}
}
resultArray.pop_back();
}
}
return events;
}
int Redis::<API key>() {
int size = 0;
RedisValue result;
try {
result = GetClient()->command("HLEN", _key);
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::GetEventsSinceId: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "GET error: " << result.toString();
}
if (result.isOk()) {
size = result.toInt();
}
return size;
}
string Redis::Lookup(string hostname) {
hostent * record = gethostbyname(hostname.c_str());
if(record == NULL) {
return "";
}
in_addr * address = (in_addr * )record->h_addr;
string ip_address = inet_ntoa(* address);
return ip_address;
}
|
SPEC = Password.hs
CC= gcc
CFLAGS = -fPIC
GHC = ghc
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
example% : solution%.o $(SPEC)
$(GHC) -o $@ $(SPEC) $<
all : example1 example2
|
<?php
class kml_TimeSpan extends kml_TimePrimitive {
protected $tagName = 'TimeSpan';
var $begin;
var $end;
/* Constructor */
function kml_TimeSpan($begin = null, $end = null) {
parent::kml_TimePrimitive();
if ($begin !== null) $this->set_begin($begin);
if ($end !== null) $this->set_end($end);
}
/* Assignments */
function set_begin($begin) { $this->begin = $begin; }
function set_end($end) { $this->end = $end; }
/* Render */
function render($doc) {
$X = parent::render($doc);
if (isset($this->begin)) $X->appendChild(<API key>($doc, 'begin', $this->begin));
if (isset($this->end)) $X->appendChild(<API key>($doc, 'end', $this->end));
return $X;
}
}
/*
$a = new kml_TimeSpan();
$a->dump(false);
*/
|
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace NAudioUniversalDemo
{
internal class ViewModelBase : <API key>
{
public event <API key> PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
<API key> handler = PropertyChanged;
if (handler != null) handler(this, new <API key>(propertyName));
}
}
}
|
$(function(){
$("#addCompanyForm").validate({
rules: {
name : {
required : true
},
email: {
required: true,
email: true
},
url : {
required : true,
url : true
}
},
messages: {
name : {
required : "Please enter your company name"
},
url : {
required : "Please enter your company website",
url : "Please enter a valid url"
},
email: {
required: "Enter your Company email address",
email: "Please enter a valid email address",
}
}
});
$('#addCompanyDialog').on('hide.bs.modal', function (e) {
refresh();
});
$('#addCompanyDialog').on('shown.bs.modal', function (e) {
$('#name').focus();
$('#id').val('');
var id = $(e.relatedTarget).attr('id');
var isEdit = $(e.relatedTarget).hasClass('fa-edit');
console.log(isEdit);
if(isEdit){
$('#id').val(id);
$.getJSON('/account/companies/' + id, function(data){
if(data.result){
$('#name').val(data.result.name);
$('#email').val(data.result.email);
$('#url').val(data.result.url);
}
});
}
var validator = $( "#addCompanyForm" ).validate();
validator.resetForm();
});
$('#confirm-delete').on('show.bs.modal', function(e) {
var id = $(e.relatedTarget).attr('id');
$(this).find('.btn-ok').on('click', function(){
$.ajax({
url: '/account/companies/' + id,
type: 'delete',
dataType: 'json',
success: function(data) {
$('#message ').html('<div class="error" style="text-align:center;padding:5px;">' + data.message + '</div>')
$('#confirm-delete').modal('hide');
if(data.result)
getCompanies();
}
});
});
});
$("#addCompanyForm").submit(function(e) {
e.preventDefault();
if($( "#addCompanyForm" ).valid()){
var actionurl = '/account/companies';
var type = 'post';
console.log($('#id').val() != '');
if($('#id').val() != ''){
type = 'put';
actionurl = '/account/companies/' + $('#id').val();
}
//var actionurl = e.currentTarget.action;
$.ajax({
url: actionurl,
type: type,
dataType: 'json',
data: $("#addCompanyForm").serialize(),
success: function(data) {
$('#message ').html('<div class="error" style="text-align:center;padding:5px;">' + data.message + '</div>')
$('#addCompanyDialog').modal('hide');
if(data.result)
getCompanies();
}
});
}
});
var getCompanies= function(){
$('#companylist').html('<div class="loader"><i class="fa fa-spinner fa-pulse"></i></div>');
$.get('/account/companies/list', function(data){
$('#companylist').html(data);
$('#message ').html('');
});
};
$('#refresh').on('click', function () {
$('#message ').html('');
getCompanies();
});
var refresh = function () {
$('#id').val('');
$('#name').val('');
$('#url').val('');
$('#email').val('');
};
getCompanies();
});
|
package com.github.aureliano.evtbridge.converter;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import com.github.aureliano.evtbridge.core.config.<API key>;
import com.github.aureliano.evtbridge.core.helper.DataHelper;
public class <API key> {
@Test
public void testConvert() {
Map<String, Object> map = this.<API key>();
<API key> configuration = new <API key>().convert(map);
assertEquals("xpto-collector", configuration.getCollectorId());
assertFalse(configuration.<API key>());
assertTrue(configuration.<API key>());
assertEquals(DataHelper.mapToProperties(this.createMetadata()), configuration.getMetadata());
}
private Map<String, Object> <API key>() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("collectorId", "xpto-collector");
map.put("persistExecutionLog", false);
map.put("<API key>", "true");
map.put("metadata", this.createMetadata());
return map;
}
private Map<String, Object> createMetadata() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("test", true);
map.put("host", "127.0.0.1");
return map;
}
}
|
<HTML><HEAD>
<TITLE>Review for Can't Hardly Wait (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0127723">Can't Hardly Wait (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Josh+Schirmer">Josh Schirmer</A></H3><HR WIDTH="40%" SIZE="4">
<PRE>CAN'T HARDLY WAIT
a review by Josh Schirmer
</PRE>
<PRE>* * * * out of * * * * *</PRE>
<P>Maybe my review is unfair, me being a teenager and this being a teen
movie. It's a well known fact that every teen movie that comes down the
pike is hailed by our generation as, "Like, the most kick-a** movie
ever!" (For those of you unfamiliar with the way teenagers talk, that's
like giving it 'a very enthusiastic thumbs up' -- eat your out, Gene and
Roger.) And that review holds it's ground until the next one comes
along. We started with Empire Records, then Scream, I Know What You Did
Last Summer, Scream 2, Titanic and so on. And now that summer is in full
swing and reruns have set it, we need something new to keep us
entertained. How about another "most kick-a**" teen movie?</P>
<P>Now, I'll be honest. Out of the movies listed above, the only one I
REALLY enjoyed was Titanic. Parents and teachers always tell me I'm
mature for my age, and that makes me proud. They have their reasons, too
-- I'm the kind of kid that actually focuses during class, keeps myself
busy with sports and other extra-curricular activities, and lists my
favorite movie as "As Good As It Gets". And teen movies rarely excite
me. Nevertheless, I joined a group of my friends and headed off to see
"Can't Hardly Wait".</P>
<P>And to tell the truth, I actually had fun.</P>
<P>At first glance, Can't Hardly Wait is a simple pageant of "boy is in
love with girl that doesn't know he exists". But a viewing proves that
the movie is more than that -- rather, it's a simple pageant of growing
up and reaching your peak. And it approaches it humorously, barraged
with heaping honesty.</P>
<P>Many critics have pointed out that the characters have no depth
you ask me, this was the story's intention. I think to truly enjoy the
movie, you have to look at the characters for who they most resemble in
your own little group of high-school friends. From there, you yourself
can determine their back stories and what they're feeling.</P>
<P>And (coming as a REAL shocker in a teen movie), there is a lesson in
diguise. The movie simply states live for the moment, because the moment
is all that should matter. That, and (to borrow a line from the film),
"Fate works in some f---ed up ways."</P>
<P>There have been better movies this summer (Truman Show comes to mind),
but there have been worse -- like Godzilla. Give this one a shot. Your
kids are guarateed to think that it's the "most kick-a**" film ever (or
until the next one), but you might actually find something in it you
enjoy.</P>
<PRE>--Josh Schirmer
<A HREF="mailto:josh_phile@yahoo.com">josh_phile@yahoo.com</A></PRE>
<HR><P CLASS=flush><SMALL>The review above was posted to the
<A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR>
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.<BR>
Please direct comments/criticisms of the review to relevant newsgroups.<BR>
Broken URLs inthe reviews are the responsibility of the author.<BR>
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
</SMALL></P>
<P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P>
</P></BODY></HTML>
|
<?php
namespace Kendo\Dataviz\UI;
class <API key> extends \Kendo\SerializableObject {
//>> Properties
/**
* Defines the stroke color.
* @param string $value
* @return \Kendo\Dataviz\UI\<API key>
*/
public function color($value) {
return $this->setProperty('color', $value);
}
/**
* The dash type of the stroke.
* @param string $value
* @return \Kendo\Dataviz\UI\<API key>
*/
public function dashType($value) {
return $this->setProperty('dashType', $value);
}
/**
* Defines the thickness or width of the shape connectors stroke.
* @param float $value
* @return \Kendo\Dataviz\UI\<API key>
*/
public function width($value) {
return $this->setProperty('width', $value);
}
//<< Properties
}
?>
|
# reads uniprot core file and generates core features
from features_helpers import score_differences
def <API key>(sable_db_obj):
<API key> = {}
for line in sable_db_obj:
tokens = line.split()
try:
# PARSING ID
prot = tokens[0]
index = int(tokens[1])
core = tokens[2]
# PARSING ID
if <API key>.has_key(prot):
<API key>[prot][index] = core
else:
<API key>[prot] = {index: core}
except ValueError:
print "Cannot parse: " + line[0:len(line) - 1]
return <API key>
def get_sable_scores(map_file, f_sable_db_location, <API key>):
map_file_obj = open(map_file, 'r')
sable_db_obj = open(f_sable_db_location, 'r')
write_to = open(<API key>, 'w')
<API key> = <API key>(sable_db_obj)
for line in map_file_obj:
tokens = line.split()
asid = tokens[0].split("_")[0]
prot = tokens[1]
sstart = int(tokens[2])
start = int(tokens[3])
end = int(tokens[4])
eend = int(tokens[5])
rough_a_length = int(int(tokens[0].split("_")[-1].split("=")[1]) / 3)
if asid[0] == "I":
rough_a_length = 0
c1_count = 0
a_count = 0
c2_count = 0
canonical_absolute = 0
if prot in <API key>:
c1_count = score_differences(<API key>, prot, sstart, start)
a_count = score_differences(<API key>, prot, start, end)
c2_count = score_differences(<API key>, prot, end, eend)
prot_len = int(line.split("\t")[7].strip())
canonical_absolute = score_differences(<API key>, prot, 1, prot_len)
print >> write_to, tokens[0] + "\t" + prot + "\t" + repr(c1_count) + "\t" + repr(a_count) + "\t" + repr(
c2_count) + "\t" + repr(canonical_absolute)
write_to.close()
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Project.Models
{
public enum WordRel
{
None,
Synonym,
Similar,
Related,
Antonym
}
}
|
#include <string.hpp>
#include "yatf/include/yatf.hpp"
using namespace yacppl;
TEST(string, can_be_created) {
string str;
REQUIRE(str == "");
REQUIRE(str.empty());
REQUIRE_EQ(str.length(), 0u);
REQUIRE_EQ(str.size(), 0u);
REQUIRE_FALSE(str == "abc");
}
TEST(string, <API key>) {
{
string str("test_string");
REQUIRE(str == "test_string");
REQUIRE_EQ(str.length(), 11u);
REQUIRE_EQ(str.size(), 11u);
REQUIRE_EQ(*(str.cend() - 1), 'g');
REQUIRE_EQ(*(str.end() - 1), 'g');
REQUIRE_EQ(*(str.cbegin()), 't');
REQUIRE_EQ(*(str.begin()), 't');
}
{
string str("test_string", 4);
REQUIRE(str == "test");
REQUIRE_EQ(str.length(), 4u);
REQUIRE_EQ(str.size(), 4u);
REQUIRE_EQ(*(str.cend() - 1), 't');
REQUIRE_EQ(*(str.end() - 1), 't');
REQUIRE_EQ(*(str.cbegin()), 't');
REQUIRE_EQ(*(str.begin()), 't');
}
}
string get_string() {
return "some_string";
}
TEST(string, <API key>) {
string str("test_string");
{
auto str2 = str;
REQUIRE(not str.empty());
REQUIRE(not str2.empty());
REQUIRE(str == "test_string");
REQUIRE(str2 == "test_string");
}
{
string str2(str);
REQUIRE(not str.empty());
REQUIRE(not str2.empty());
REQUIRE(str == "test_string");
REQUIRE(str2 == "test_string");
}
{
string str2;
string str3(str2);
REQUIRE_EQ(str3.operator const char *(), nullptr);
}
{
string str2("some_string");
string str3(move(str2));
REQUIRE_EQ(str2.operator const char *(), nullptr);
REQUIRE(str3 == "some_string");
}
str = string("some");
REQUIRE(str == "some");
str = string("some very, very, very long string");
REQUIRE(str == "some very, very, very long string");
str = nullptr;
REQUIRE(!str);
str = "something";
REQUIRE(str == "something");
auto str2 = get_string();
REQUIRE(str2 == "some_string");
str = str2;
REQUIRE(str == "some_string");
// FIXME
str = string();
str = string(str2);
str = string();
str = string(string("some other"));
}
TEST(string, can_be_iterated) {
string str("test_string");
size_t i = 0;
for (auto c : str) {
REQUIRE_EQ(c, "test_string"[i++]);
}
}
TEST(string, can_be_appended) {
{
string str("hello ");
str.append("world");
REQUIRE_EQ((const char *)str, "hello world");
}
{
string str;
str.append("world");
REQUIRE_EQ((const char *)str, "world");
str.append("hello hello hello");
REQUIRE_EQ((const char *)str, "worldhello hello hello");
REQUIRE_EQ(str.length(), 22u);
str.append(" test test");
REQUIRE_EQ((const char *)str, "worldhello hello hello test test");
REQUIRE_EQ(str.length(), 32u);
}
}
TEST(string, can_get_substring) {
string str("hello world");
auto str2 = str.substring(6, 5);
REQUIRE_EQ((const char *)str2, "world");
auto str3 = str.substring(6, 1024);
REQUIRE_EQ((const char *)str3, "world");
auto str4 = str.substring(11, 1024);
REQUIRE_EQ((const char *)str4, "");
}
TEST(string, can_be_erased) {
string str("hello world");
str.erase(str.begin() + 5, str.end());
REQUIRE_EQ((const char *)str, "hello");
REQUIRE_EQ(str.length(), 5u);
REQUIRE_EQ(str.size(), 11u);
REQUIRE(not str.empty());
str.erase(str.end() - 1, str.end());
REQUIRE_EQ((const char *)str, "hell");
REQUIRE_EQ(str.length(), 4u);
REQUIRE_EQ(str.size(), 11u);
REQUIRE(not str.empty());
}
TEST(string, <API key>) {
string str("hello world");
str.erase(str.end(), str.begin());
REQUIRE_EQ((const char *)str, "hello world");
}
TEST(string, can_append_chars) {
string str;
for (auto i = 0u; i < 1024u; ++i) {
str.append('a');
REQUIRE_EQ(str.length(), i + 1);
}
}
TEST(string, can_reserve_size) {
string str;
str.reserve(1024);
REQUIRE_EQ(str.size(), 1024u);
for (auto i = 0u; i < 1023u; ++i) {
str.append('a');
REQUIRE_EQ(str.length(), i + 1);
REQUIRE_EQ(str.size(), 1024u);
}
str.append('c');
REQUIRE(str.size() != 1024u);
str.reserve(4096);
REQUIRE_EQ(str.size(), 4096u);
}
TEST(string, <API key>) {
string str;
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 0u);
}
TEST(string, can_split) {
{
string str("some");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 1u);
REQUIRE_EQ((const char *)splitted[0], "some");
}
{
string str("some string");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str("some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str("some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some other string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 3u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "other");
REQUIRE_EQ((const char *)splitted[2], "string");
}
}
|
module.exports = {
entry: {
'public/js/bundle.js': ['./index.js'],
},
output: {
filename: '[name]',
},
devtool: 'eval',
module: {
loaders: [
{
test: /.js$/,
exclude: /node_modules/,
loaders: ['babel'],
}
]
}
}
|
#include "<API key>.h"
#include "asturcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#include <QApplication>
#include <QDoubleSpinBox>
#include <QHBoxLayout>
#include <QKeyEvent>
#include <qmath.h> // for qPow()
<API key>::<API key>(QWidget *parent) :
QWidget(parent),
amount(0),
currentUnit(-1)
{
nSingleStep = 100000; // satoshis
amount = new QDoubleSpinBox(this);
amount->setLocale(QLocale::c());
amount->installEventFilter(this);
amount->setMaximumWidth(170);
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(amount);
unit = new QValueComboBox(this);
unit->setModel(new AsturCoinUnits(this));
layout->addWidget(unit);
layout->addStretch(1);
layout->setContentsMargins(0,0,0,0);
setLayout(layout);
setFocusPolicy(Qt::TabFocus);
setFocusProxy(amount);
// If one if the widgets changes, the combined content changes as well
connect(amount, SIGNAL(valueChanged(QString)), this, SIGNAL(textChanged()));
connect(unit, SIGNAL(currentIndexChanged(int)), this, SLOT(unitChanged(int)));
// Set default based on configuration
unitChanged(unit->currentIndex());
}
void <API key>::setText(const QString &text)
{
if (text.isEmpty())
amount->clear();
else
amount->setValue(text.toDouble());
}
void <API key>::clear()
{
amount->clear();
unit->setCurrentIndex(0);
}
bool <API key>::validate()
{
bool valid = true;
if (amount->value() == 0.0)
valid = false;
else if (!AsturCoinUnits::parse(currentUnit, text(), 0))
valid = false;
else if (amount->value() > AsturCoinUnits::maxAmount(currentUnit))
valid = false;
setValid(valid);
return valid;
}
void <API key>::setValid(bool valid)
{
if (valid)
amount->setStyleSheet("");
else
amount->setStyleSheet(STYLE_INVALID);
}
QString <API key>::text() const
{
if (amount->text().isEmpty())
return QString();
else
return amount->text();
}
bool <API key>::eventFilter(QObject *object, QEvent *event)
{
if (event->type() == QEvent::FocusIn)
{
// Clear invalid flag on focus
setValid(true);
}
else if (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease)
{
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
if (keyEvent->key() == Qt::Key_Comma)
{
// Translate a comma into a period
QKeyEvent periodKeyEvent(event->type(), Qt::Key_Period, keyEvent->modifiers(), ".", keyEvent->isAutoRepeat(), keyEvent->count());
QApplication::sendEvent(object, &periodKeyEvent);
return true;
}
}
return QWidget::eventFilter(object, event);
}
QWidget *<API key>::setupTabChain(QWidget *prev)
{
QWidget::setTabOrder(prev, amount);
QWidget::setTabOrder(amount, unit);
return unit;
}
qint64 <API key>::value(bool *valid_out) const
{
qint64 val_out = 0;
bool valid = AsturCoinUnits::parse(currentUnit, text(), &val_out);
if (valid_out)
{
*valid_out = valid;
}
return val_out;
}
void <API key>::setValue(qint64 value)
{
setText(AsturCoinUnits::format(currentUnit, value));
}
void <API key>::setReadOnly(bool fReadOnly)
{
amount->setReadOnly(fReadOnly);
unit->setEnabled(!fReadOnly);
}
void <API key>::unitChanged(int idx)
{
// Use description tooltip for current unit for the combobox
unit->setToolTip(unit->itemData(idx, Qt::ToolTipRole).toString());
// Determine new unit ID
int newUnit = unit->itemData(idx, AsturCoinUnits::UnitRole).toInt();
// Parse current value and convert to new unit
bool valid = false;
qint64 currentValue = value(&valid);
currentUnit = newUnit;
// Set max length after retrieving the value, to prevent truncation
amount->setDecimals(AsturCoinUnits::decimals(currentUnit));
amount->setMaximum(qPow(10, AsturCoinUnits::amountDigits(currentUnit)) - qPow(10, -amount->decimals()));
amount->setSingleStep((double)nSingleStep / (double)AsturCoinUnits::factor(currentUnit));
if (valid)
{
// If value was valid, re-place it in the widget with the new unit
setValue(currentValue);
}
else
{
// If current value is invalid, just clear field
setText("");
}
setValid(true);
}
void <API key>::setDisplayUnit(int newUnit)
{
unit->setValue(newUnit);
}
void <API key>::setSingleStep(qint64 step)
{
nSingleStep = step;
unitChanged(unit->currentIndex());
}
|
<html>
<head>
<title>Basic</title>
<meta name="description" content="Large red-brown mountain terrain with <a-mountain>">
<meta property="og:image" content="https://raw.githubusercontent.com/ngokevin/kframe/master/components/mountain/examples/basic/preview.png"></meta>
<script src="../build.js"></script>
</head>
<body>
<a-scene>
<a-mountain></a-mountain>
<a-sky color="#5F818A"></a-sky>
</a-scene>
<!--githubcorner
<a href="https://github.com/ngokevin/kframe/tree/master/components/mountain/examples/basic/" class="github-corner">
<svg width="80" height="80" viewBox="0 0 250 250" style="fill: #111; color: #EFEFEF; position: fixed; bottom: 0; border: 0; left: 0; transform: rotate(180deg); opacity: 0.8">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg>
</a>
<style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
</style>
<!--endgithubcorner
</body>
</html>
|
using System.Collections.Generic;
using System.Linq;
namespace ComputerAlgebra
{
public static class Combinatorics
{
<summary>
Enumerate the permutations of x.
</summary>
<typeparam name="T"></typeparam>
<param name="n"></param>
<returns></returns>
public static IEnumerable<IList<T>> Permutations<T>(this IEnumerable<T> n)
{
List<T> l = n.ToList();
return Permutations(l, l.Count);
}
private static IEnumerable<IList<T>> Permutations<T>(IList<T> n, int r)
{
if (r == 1)
{
yield return n;
}
else
{
for (int i = 0; i < r; i++)
{
foreach (var j in Permutations(n, r - 1))
yield return j;
T t = n[r - 1];
n.RemoveAt(r - 1);
n.Insert(0, t);
}
}
}
<summary>
Enumerate the combinations of n of length r.
From: http:
</summary>
<typeparam name="T"></typeparam>
<param name="n"></param>
<param name="r"></param>
<returns></returns>
public static IEnumerable<IEnumerable<T>> Combinations<T>(this IEnumerable<T> n, int r)
{
if (r == 0)
return new[] { new T[0] };
else
return n.SelectMany((e, i) => n.Skip(i + 1).Combinations(r - 1).Select(c => new[] { e }.Concat(c)));
}
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleStatePattern
{
public class StateB : StateBase
{
char currentLetter = 'B';
public void Change(Context context)
{
Console.Write(System.Environment.NewLine + "The current letter is: " + currentLetter + System.Environment.NewLine);
Console.WriteLine("Inc:1;Dec:2;Rst;3: ");
ConsoleKeyInfo name = Console.ReadKey();
switch (name.KeyChar)
{
case '1':
context.State = new StateC();
break;
case '2':
context.State = new StateA();
break;
case '3':
context.State = new StateA();
break;
default:
context.State = new StateB();
break;
}
}
}
}
|
package main
import (
"bytes"
"os"
"os/exec"
)
func panicOn(err error) {
if err != nil {
panic(err)
}
}
func FileExists(name string) bool {
fi, err := os.Stat(name)
if err != nil {
return false
}
if fi.IsDir() {
return false
}
return true
}
func DirExists(name string) bool {
fi, err := os.Stat(name)
if err != nil {
return false
}
if fi.IsDir() {
return true
}
return false
}
func Run(dir string, exe string, arg ...string) (stdout *bytes.Buffer, stderr *bytes.Buffer, err error) {
cmd := exec.Command(exe, arg...)
var errbuf bytes.Buffer
var outbuf bytes.Buffer
cmd.Dir = dir
cmd.Stderr = &errbuf
cmd.Stdout = &outbuf
err = cmd.Run()
return &outbuf, &errbuf, err
}
|
import { expect } from 'chai'
import {List, Map} from 'immutable'
import categories from '../src/reducer.js'
describe("Category Test", () => {
it("should add a category", () => {
let initialState = Map({
user: 'Skye'
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 0
})
})
let result = categories(initialState, {type:'ADD_CATEGORY', value:'Love'})
expect(result).to.eql(expectedState)
})
it("adding a category does not modify previous state", () => {
let initialState = Map({
user: 'Skye',
categories: Map({
'Love': 90
})
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 90,
'Communication': 0
})
})
let result = categories(initialState, {type:'ADD_CATEGORY', value:'Communication'})
expect(result).to.eql(expectedState)
expect(initialState).to.eql(Map({
user: 'Skye',
categories: Map({
'Love': 90
})
}))
})
it("should rate a category", () => {
let initialState = Map({
user: 'Skye',
categories: Map({
'Love': 0
})
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 90
})
})
let result = categories(initialState, { type:'RATE_CATEGORY', name:'Love', value:90 })
expect(result).to.eql(Map({
user: 'Skye',
categories: Map({
'Love': 90
})
}))
})
it("should stop adding categories", () => {
let initialState = Map({
user: 'Skye',
categories: Map({
'Love': 90,
'Communication': 80,
'Fun' : 100
})
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 90,
'Communication': 80,
'Fun' : 100
}),
categories_finished: true
})
let result = categories(initialState, {type:'FINISH_CATEGORIES', value: true})
expect(result).to.eql(expectedState)
})
})
|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>SweetStake</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2015 The SweetStake developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http:
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http:
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Жаң даректи жасоо</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your SweetStake addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>Ө&чүрүү</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(аты жок)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-58"/>
<source>SweetStake will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Транзакциялар</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show information about SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Send coins to a SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>Билдирүүнү &текшерүү...</translation>
</message>
<message>
<location line="-202"/>
<source>SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Капчык</translation>
</message>
<message>
<location line="+180"/>
<source>&About SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Файл</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Жардам</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>SweetStake client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to SweetStake network</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About SweetStake card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about SweetStake card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Жаңыланган</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid SweetStake address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. SweetStake can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(аты жок)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Дарек</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid SweetStake address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>sweetstake-qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start SweetStake after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start SweetStake on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Тармак</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the SweetStake client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Connect to the SweetStake network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Порт:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Терезе</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting SweetStake.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show SweetStake addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&Жарайт</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Жокко чыгаруу</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>жарыяланбаган</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting SweetStake.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the SweetStake network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Капчык</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>синхрондоштурулган эмес</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Ачуу</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the sweetstake-qt help message to get a list with possible SweetStake command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Консоль</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>SweetStake - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>SweetStake Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the SweetStake debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Консолду тазалоо</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the SweetStake RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Бардыгын тазалоо</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>123.456 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&Жөнөтүү</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a SweetStake address (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(аты жок)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Даректи алмашуу буферинен коюу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a SweetStake address (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Даректи алмашуу буферинен коюу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Бардыгын тазалоо</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../<API key>.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a SweetStake address (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter SweetStake signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/тармакта эмес</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Билдирүү</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../<API key>.cpp" line="+226"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>SweetStake version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or sweetstaked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: SweetStake.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: sweetstaked.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong SweetStake will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=SweetStakerpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "SweetStake Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. SweetStake is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart SweetStake to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. SweetStake is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Ката</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS>
|
#include <iostream>
#include <iomanip>
#include <limits>
#include <stdint.h>
#include <cstdio>
#include <typeinfo>
#include <inttypes.h>
using std::cout;
using std::cerr;
using std::endl;
using std::bad_cast;
#undef assert // for testability
//#define assert(e) ((e) ? (void)0 : ((void)printf ("%s:%u: failed assertion `%s'\n", __FILE__, __LINE__,
#define assert(e) ((e) ? (void)0 : ((void)printf ("failed assertion `%s'\n",
#define assert_op(e1, op, e2) ((e1) op (e2) ? (void)0 : ((void)(cout << "failed assertion `" << #e1 << " " #op " " << #e2 << ": [" << (e1) << "] isn't " #op " [" << (e2) << "]\n")))
#define assert_eq(e1, e2) assert_op(e1, ==, e2)
#define assert_ne(e1, e2) assert_op(e1, !=, e2)
#include "safe_ops.h"
using namespace safe_ops;
#define MAX(T) <API key><T>::max()
#define MIN(T) <API key><T>::lowest()
#ifdef SAFE_USE_INT128
std::ostream& operator<<(std::ostream& os, uint128_t t) {
os << std::hex << "0x" << std::setw(16) <<std::setfill('0') << (uint64_t)(t>>64);
return os << std::setw(16) << std::setfill('0') << (uint64_t)(t) << std::dec;
}
std::ostream& operator<<(std::ostream& os, int128_t t) {
return os << (uint128_t)t;
}
#endif
#if __cplusplus < 201103L
struct Lambda {
void operator ()(int result) { cout << "lambda: " << (result < 0 ? "under" : "over") << "flow detected\n"; };
} lambda;
#endif
const char *progname = "";
struct FakeLogger {
void log(const char *level, const char *str) { printf("[log]\t%s\t%s\t%s\n", progname, level, str); }
};
int main(int, char **argv) {
progname = argv[0];
printf(" If a 'safe' test were to fail, the assertion text would contain 'safe(' and would be easy to identify. E.g.:\n");
assert(safe(1) > 2);
// precision tests
safe_ops::intmax_t intmax = MAX(safe_ops::intmax_t);
assert(safe(intmax-1) < safe((safe_ops::uintmax_t)(intmax))); // promotion to float/double due to signed/unsigned comparison
assert(safe(intmax-2)+1 < safe(intmax)); // promotion to float/double due to addition
#define assert_safe_eq(s, result) assert_eq((s).value(), result)
#define <API key>(x, arith_op, y, z, nosafe_eq_op) \
assert_safe_eq(safe(x) arith_op y, z); \
assert_safe_eq(x arith_op safe(y), z); \
assert_op(x arith_op (y), nosafe_eq_op, (z))
#define safe_arith_assert(x, op, y, z, nosafe_eq_op) \
<API key>(x, op, y, z, nosafe_eq_op)
#define <API key>(x, op, y, z, nosafe_eq_op) \
<API key>(x, op, y, z, nosafe_eq_op); \
<API key>(y, op, x, z, nosafe_eq_op)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#define <API key>(T1, T2, AddMultT, SubT, DivModT) \
<API key>(MAX(T1), +, MAX(T2), (AddMultT)(MAX(T1)) + MAX(T2), !=); \
<API key>(MIN(T1), +, MIN(T2), (AddMultT)(MIN(T1)) + MIN(T2), !=); \
safe_arith_assert( MIN(T1), -, MAX(T2), (SubT) (MIN(T1)) - MAX(T2), !=); \
safe_arith_assert( MAX(T1), -, MIN(T2), (SubT) (MAX(T1)) - MIN(T2), !=); \
<API key>(MAX(T1), *, MAX(T2), (AddMultT)(MAX(T1)) * MAX(T2), !=); \
<API key>(MIN(T1), *, MIN(T2), (AddMultT)(MIN(T1)) * MIN(T2), !=); \
safe_arith_assert( MIN(T1), /, (T2)1, (DivModT) (MIN(T1)) / (T2)1 , ==); \
safe_arith_assert( MAX(T1), /, (T2)-1, (DivModT) (MAX(T1)) / (T2)-1 , ==)
#define <API key>(T1, T2, AddMultT, SubT, DivModT) \
<API key>(T1, T2, AddMultT, SubT, DivModT); \
safe_arith_assert( MIN(T1), %, (T2)1, (DivModT) (MIN(T1)) % (T2)1 , ==); \
safe_arith_assert( MAX(T1), %, (T2)-1, (DivModT) (MAX(T1)) % (T2)-1 , ==)
// there will be cases where T2 is unsigned and div/mod with (unsigned)-1 is tested for.
// any failures there shall be ignored.
#define <API key>(T1, T2, AddMultT, SubT, DivModT) \
<API key>(T1, T2, AddMultT, SubT, DivModT); \
safe_arith_assert( MIN(T1), /, (T2)1e-30, (DivModT) (MIN(T1)) / (T2)1e-30 , ==); \
safe_arith_assert( MAX(T1), /, (T2)-1e-30, (DivModT) (MAX(T1)) / (T2)-1e-30 , ==)
// the arithmetic tests generator states basically:
// 1) + and * shall be tested commutatively
// 2) +, * and - shall always fail to produce a mathematically correct result without safe_t
// 3) / and % shall always produce the same result as safe_t, which is assumed to be mathematically correct
// to fulfill 2), appropriate MIN/MAX values are always chosen to overflow non-safe_t calculations.
printf(" safe_arith test int/int: no asserts expected\n");
<API key>(int, int, long, long, int);
printf(" safe_arith test unsigned/unsigned: 5 asserts expected, unsigned lowest()\n");
<API key>(unsigned, unsigned, unsigned long, long, unsigned);
printf(" safe_arith test int/unsigned: 4 asserts expected, unsigned lowest() and negative division\n");
<API key>(int, unsigned, long, long, long);
printf(" safe_arith test unsigned/int: 3 asserts expected, unsigned lowest() and negative division\n");
<API key>(unsigned, int, long, long, long);
printf(" safe_arith test int/long: no asserts expected\n");
<API key>(int, long, float, float, long);
printf(" safe_arith test long/int: no asserts expected\n");
<API key>(long, int, float, float, long);
printf(" safe_arith test float/uint64_t: 8 asserts expected, int too small to make a difference and 0-multiplication\n");
<API key>(float, uint64_t, double, double, float);
printf(" safe_arith test uint64_t/float: 9 asserts expected, int too small to make a difference, 0-multiplication and non-zero division by small number\n");
<API key>(uint64_t, float, double, double, double);
printf(" safe_arith test float/float: 2 asserts expected, non-zero division by small number\n");
<API key>(float, float, double, double, double);
printf(" safe_arith test double/double: 2 asserts expected, non-zero division by small number\n");
<API key>(double, double, long double, long double, long double);
#ifdef SAFE_USE_INT128
printf(" safe_arith test float/int128_t: no asserts expected\n");
<API key>(float, int128_t, double, double, float); // float/int128 fits in float
printf(" safe_arith test int128_t/float: 2 asserts expected, non-zero division by small number\n");
<API key>(int128_t, float, double, double, double);
printf(" safe_arith test float/uint128_t: 6 asserts expected, unsigned lowest ops and unsigned -1 division\n");
<API key>(float, uint128_t, double, double, double); // float/uint128 fits in double
printf(" safe_arith test uint128_t/float: 7 asserts expected, unsigned lowest ops and divisions\n");
<API key>(uint128_t, float, double, double, double);
#endif
#pragma GCC diagnostic pop
// ad-hoc cross-functional test: safe_arith + policy_throw + safe-safe operator
try {
assert(safe(1) + safe(1) == safe(2)); // test both cmp and arith safe-safe operators
(int)(safe(MAX(int)).pthrow() + safe(1).passert());
} catch (...) {
cout << "ad-hoc test 'policy vs operator+': caught expected bad_cast: MAX(int) + 1 is no longer an int\n";
}
// cout << "# Testing " << x << ' ' << #op << ' ' << y << endl;
#define <API key>(x, op, y) \
assert(x op y); \
assert(safe(x) op y); \
assert(x op safe(y));
#define safe_cmp_assert(x, op, y, rev_op) \
<API key>(x, op, y) \
<API key>(y, rev_op, x)
#define safe_cmp_assert2(x, op, op2, y, rev_op, rev_op2) \
safe_cmp_assert(x, op, y, rev_op) \
safe_cmp_assert(x, op2, y, rev_op2)
cerr << "sizeof(int): " << sizeof(int) << endl;
cerr << "sizeof(long): " << sizeof(long) << endl;
cerr << std::boolalpha;
#define cerr_trait(type, trait) \
cerr << "std::" #trait "<" #type ">::value : " << std::trait<type>::value << endl
#define cerr_traits(type) \
cerr << "sizeof(" #type "): " << sizeof(type) << endl; \
cerr_trait(type, is_signed); \
cerr_trait(type, is_unsigned)
// cerr_traits(long long);
// cerr_traits(unsigned long long);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
printf(" expecting 1u >/>= int8_t(-1) to fail, but safe variants to succeed...\n");
safe_cmp_assert2(1u, >, >=, int8_t(-1), <, <=);
printf(" expecting 0u >/>= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(0u, >, >=, -1, <, <=);
printf(" expecting 1ul >/>= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(1ul, >, >=, -1, <, <=);
printf(" expecting 4294967296ul >/>= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(4294967296ul, >, >=, -1, <, <=);
printf(" expecting 1ul >/>= -1l to fail, but safe variants to succeed...\n");
safe_cmp_assert2(1ul, >, >=, -1l, <, <=);
printf(" expecting 2147483648u >/!= -2147483648 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(2147483648u, >, !=, (-2147483647-1), <, !=);
printf(" expecting 4294967295u >/!= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(4294967295u, >, !=, -1, <, !=);
#pragma GCC diagnostic pop
printf(" no failures expected in any of the floating point comparisons (neither native nor 'safe')...\n");
safe_cmp_assert2(MAX(float), <, <=, MAX(double), >, >=);
safe_cmp_assert2(MAX(double), <, <=, MAX(long double), >, >=);
#ifdef SAFE_USE_INT128
safe_cmp_assert2(MAX(int128_t), <, <=, MAX(float), >, >=);
// special casing:
safe_cmp_assert2(MAX(uint128_t), >, >=, MAX(float), <, <=);
// conversion to float yields inf so it works mathematically correct
safe_cmp_assert2(MAX(uint128_t), <, <=, MAX(double), >, >=);
safe_cmp_assert2(MAX(uint128_t), <, <=, MAX(long double), >, >=);
#endif
printf("safe_cmp tests passed\n");
int i;
int result = 0;
const long lmax = MAX(long);
const long lmin = MIN(long);
printf(" safe_cast_assert: expecting two asserts...\n");
i = safe(lmax).passert(); // usage through safe generator + .policy modifier
i = safe_t<long, policy_assert>(lmin); // usage through direct safe_t instantiation
i = safe_cast_assert<int>(0l); // usage through safe_cast_* helpers
printf(" safe_cast_result: expecting no asserts...\n");
result = 0;
i = safe(lmax).presult(&result);
assert(result == 1);
result = 0;
i = safe_t<long, policy_result, int*>(lmin, &result);
assert(result == -1);
result = 0;
safe_cast_result<int>(0l, &result);
assert(result == 0); // actually: unmodified
printf(" safe_cast_lambda: expecting two 'lambda: ...' messages...\n");
#if __cplusplus >= 201103L
auto lambda = [](int result){ cout << "lambda: " << (result < 0 ? "under" : "over") << "flow detected\n"; };
i = safe(lmax).pexec(lambda);
i = safe_t<long, policy_exec, decltype(lambda)>(lmin, lambda);
#else
// look before int main(), in global scope, there is a conditional definition of lambda old-style
i = safe(lmax).pexec(lambda);
i = safe_t<long, policy_exec, Lambda>(lmin, lambda);
#endif
safe_cast_exec<int>(0l, lambda);
printf(" safe_cast_log: expecting two log entries...\n");
FakeLogger logger;
i = safe(lmax).plog(&logger);
i = safe_t<long, policy_log, FakeLogger*>(lmin, &logger);
safe_cast_log<int>(0l, &logger);
printf(" safe_cast_throw: expecting two bad_casts...\n");
try {
i = safe(lmax).pthrow();
assert("unreachable after throw" == NULL);
} catch (bad_cast &) {
printf ("bad_cast caught due to overflow\n");
}
try {
i = safe_t<long, policy_throw>(lmin);
assert("unreachable after throw" == NULL);
} catch (bad_cast &) {
printf ("bad_cast caught due to underflow\n");
}
safe_cast_throw<int>(0l);
(void)i; // silence compiler warnings
printf("non-truncating safe_cast functional tests passed\n");
printf("truncating full-coverage tests following:\n");
#define generic_expect(T1, T2, SmallerPositive, SmallerNegative) \
assert_eq((T1)safe((T2)(0)), 0); \
assert_eq((T1)safe(MAX(T2)), (T1)MAX(SmallerPositive)); \
assert_eq((T1)safe(MIN(T2)), (T1)MIN(SmallerNegative)); \
assert_eq((T1)MAX(T2), (T1)MAX(SmallerPositive)); \
assert_eq((T1)MIN(T2), (T1)MIN(SmallerNegative))
// the latter two assertions will obviously produce expected failures
#define <API key>(Smaller, Larger) generic_expect(Smaller, Larger, Smaller, Smaller)
#define <API key>(Larger, Smaller) generic_expect(Larger, Smaller, Smaller, Smaller)
#define expect_lower_higher(Lower, Higher) generic_expect(Lower, Higher, Lower, Higher)
#define expect_higher_lower(Higher, Lower) generic_expect(Higher, Lower, Lower, Higher)
#define <API key>(Smaller, Larger) \
<API key>(Smaller, Larger); \
<API key>(Larger, Smaller)
#define <API key>(Lower, Higher) \
expect_lower_higher(Lower, Higher); \
expect_higher_lower(Higher, Lower)
<API key>(float, long double);
<API key>(int, double);
<API key>(unsigned, double);
printf("floating point tests passed\n");
naive size comparison is "wrong"
<API key>(uint64_t, float);
<API key>(int64_t, float);
naive size comparison is 'equal'
<API key>(uint32_t, float);
<API key>(int32_t, float);
printf("naive sizeof tests passed (float <-> int64/32_t)\n");
ints greater than float
#ifdef SAFE_USE_INT128
<API key>(float, uint128_t);
<API key>(int128_t, float);
int128_t is less than float, but test special-case handling regardless
printf("extreme sizeof tests passed (float <-> safe_[u]int128_t)\n");
#endif
integers
<API key>(int, int);
<API key>(unsigned, unsigned);
<API key>(int, unsigned);
printf("same size integral tests passed\n");
<API key>(int32_t, int64_t);
<API key>(uint32_t, uint64_t);
<API key>(uint32_t, int64_t);
<API key>(int32_t, uint64_t);
printf("different size integral tests passed\n");
return 0;
}
|
package com.github.kimikage.oiri.svg;
import org.w3c.dom.svg.SVGMatrix;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Transform {
private static final String sNumber = "([-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?)";
private static final Pattern sPatternTranslate = Pattern.compile(
"^\\s*translate\\s*\\(\\s*" + sNumber + "(?:\\s*[, ]\\s*" + sNumber + ")?\\s*\\)");
private static final Pattern sPatternScale = Pattern.compile(
"^\\s*scale\\s*\\(\\s*" + sNumber + "(?:\\s*[, ]\\s*" + sNumber + ")?\\s*\\)");
private Matrix mMatrix;
private android.graphics.Matrix mAndroidMatrix;
public Transform(String list) {
mMatrix = new Matrix();
String l = list;
for (; ; ) {
Matcher m = sPatternTranslate.matcher(l);
if (m.find()) {
float tx = Float.parseFloat(m.group(1));
String g2 = m.group(2);
float ty = g2 != null ? Float.parseFloat(g2) : 0.0f;
mMatrix = (Matrix) mMatrix.translate(tx, ty);
l = l.substring(m.end());
continue;
}
m = sPatternScale.matcher(l);
if (m.find()) {
float sx = Float.parseFloat(m.group(1));
String g2 = m.group(2);
float sy = g2 != null ? Float.parseFloat(g2) : sx;
mMatrix = (Matrix) mMatrix.scaleNonUniform(sx, sy);
l = l.substring(m.end());
continue;
}
break;
}
}
public SVGMatrix getMatrix() {
return mMatrix;
}
public android.graphics.Matrix getAndroidMatrix() {
if (mAndroidMatrix == null) {
mAndroidMatrix = new android.graphics.Matrix();
mAndroidMatrix.setValues(mMatrix.getValues());
}
return mAndroidMatrix;
}
public void getMatrixValues(float[] dest) {
mMatrix.getValues(dest);
}
}
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using PholioVisualisation.DataAccess;
using PholioVisualisation.DataConstruction;
using PholioVisualisation.Export;
using PholioVisualisation.Export.FileBuilder.Containers;
using PholioVisualisation.Export.FileBuilder.SupportModels;
using PholioVisualisation.Export.FileBuilder.Wrappers;
using PholioVisualisation.Export.FileBuilder.Writers;
using PholioVisualisation.Formatting;
using PholioVisualisation.PholioObjects;
using System;
using System.Collections.Generic;
namespace PholioVisualisation.ExportTest.FileBuilder.Writers
{
[TestClass]
public class <API key>
{
private ExportAreaHelper _areaHelper;
private Mock<IAreasReader> _areasReaderMock;
private Mock<PholioReader> _pholioReaderMock;
private <API key> _generalParameters;
private <API key> <API key>;
private IndicatorMetadata _indicatorMetadata;
private <API key> _parameters;
private <API key> <API key>;
private AreaFactory _areaFactory;
private <API key> <API key>;
[TestInitialize]
public void Start()
{
_areasReaderMock = new Mock<IAreasReader>(MockBehavior.Strict);
_pholioReaderMock = new Mock<PholioReader>(MockBehavior.Strict);
_generalParameters = new <API key>();
<API key> = new <API key>(1, new List<int>{1}, new Dictionary<int, IList<InequalitySearch>> { { 1, null } });
_indicatorMetadata = new IndicatorMetadata { Unit = new Unit { Value = 1 }, Descriptive = new Dictionary<string, string>{{"Name", "NameTest"}},YearType = new YearType()};
_parameters = new <API key>(_generalParameters, new <API key>(1, new List<int>(), new Dictionary<int, IList<InequalitySearch>>(), null, new List<int>(), true));
<API key> = new <API key> { ParentAreaCode = AreaCodes.England };
_areaFactory = new AreaFactory(_areasReaderMock.Object);
_areaHelper = new ExportAreaHelper(_areasReaderMock.Object, <API key>);
_areasReaderMock.Setup(x => x.GetCategoryTypes(It.IsAny<IList<int>>())).Returns(new List<CategoryType> ());
_areasReaderMock.Setup(x => x.GetAreaFromCode(It.IsAny<string>())).Returns(new Area { Code = "SubNationalTest", Name = "NameTest", ShortName = "shortNameTest"});
_areasReaderMock.Setup(x => x.GetChildAreas(It.IsAny<string>(), It.IsAny<int>())).Returns(new List<IArea> { new Area { Code = "SubNationalTest", Name = "NameTest"} });
_areasReaderMock.Setup(x => x.<API key>(It.IsAny<int>(), It.IsAny<int>())).Returns(new Dictionary<string, Area> { { "SubNationalTest", new Area { Code = "SubNationalTest", Name = "NameTest"} } });
_areasReaderMock.Setup(x => x.GetAreaType(It.IsAny<int>())).Returns(new AreaType{ CanBeDisplayedOnMap = false, Id = 1, IsCurrent = true, IsSearchable = true, Name = "AreaTypeTest",
ParentAreaTypes = new List<IAreaType>(), ShortName = "shortNameTest"});
_areasReaderMock.Setup(x => x.<API key>(It.IsAny<int>())).Returns(new List<IArea>{ new Area{ AreaTypeId = AreaTypeIds.District, Code = "SubNationalTest", Name = "NameTest", ShortName = "ShortNameTest"}});
_areaHelper.Init();
<API key> = new <API key>(1, _parameters);
_pholioReaderMock.Setup(x => x.GetAllAges()).Returns(new List<Age> { new Age { Id = 1, Name = "AgeTest"}});
_pholioReaderMock.Setup(x => x.GetAllSexes()).Returns(new List<Sex> { new Sex { Id = 0, Name = "SexName", Sequence = 1 }});
_pholioReaderMock.Setup(x => x.GetAllValueNotes()).Returns(new List<ValueNote> { new ValueNote {Id = 1, Text = "NoteTest"}});
var lookUpManager = new LookUpManager(_pholioReaderMock.Object, _areasReaderMock.Object, new List<int> {1}, new List<int> {1});
<API key>.Init(lookUpManager, new <API key>(1) , new <API key>(1, 1), _indicatorMetadata);
}
[TestCleanup]
public void CleanUp()
{
_areasReaderMock.VerifyAll();
_pholioReaderMock.VerifyAll();
}
[TestMethod]
public void <API key>()
{
var <API key> = new <API key>(_areasReaderMock.Object, <API key>.Instance, _areaHelper, _generalParameters, <API key> );
try
{
var result = <API key>.GetHeader();
Assert.IsNotNull(result);
Assert.IsTrue(result.Length == 389);
}
catch (Exception)
{
Assert.Fail("The method should not throw any errors");
}
}
[TestMethod]
public void <API key>()
{
var <API key> = new <API key>(_areasReaderMock.Object, <API key>.Instance, _areaHelper, _generalParameters, <API key>);
try
{
var result = <API key>.GetBody();
Assert.IsNotNull(result);
Assert.IsTrue(result.Length == 0);
}
catch (Exception)
{
Assert.Fail("The method should not throw any errors");
}
}
}
}
|
# aaronwest.github.io
A simple website using [Jekyll](http:
To view the website visit [notebook.aaronwest.net](http://notebook.aaronwest.net).
|
"use strict";
var $ = require("jquery"),
errors = require("./errors"),
MemorizedCallbacks = require("./memorized_callbacks"),
<API key> = require("./utils/public_component");
var callbacks = new MemorizedCallbacks;
var registerComponent = function(name, namespace, componentClass) {
if (!componentClass) {
componentClass = namespace
} else {
namespace[name] = componentClass
}
<API key>.name(componentClass, name);
callbacks.fire(name, componentClass)
};
registerComponent.callbacks = callbacks;
var <API key> = function(name, componentClass) {
$.fn[name] = function(options) {
var result, isMemberInvoke = "string" === typeof options;
if (isMemberInvoke) {
var memberName = options,
memberArgs = $.makeArray(arguments).slice(1);
this.each(function() {
var instance = componentClass.getInstance(this);
if (!instance) {
throw errors.Error("E0009", name)
}
var member = instance[memberName],
memberValue = member.apply(instance, memberArgs);
if (void 0 === result) {
result = memberValue
}
})
} else {
this.each(function() {
var instance = componentClass.getInstance(this);
if (instance) {
instance.option(options)
} else {
new componentClass(this, options)
}
});
result = this
}
return result
}
};
callbacks.add(<API key>);
module.exports = registerComponent;
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W29820_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
<div style="float: left;">
<a href="page28.html">«</a>
</div>
<div style="float: right;">
</div>
</div>
<hr/>
<div style="position: absolute; margin-left: 715px; margin-top: 0px;">
<p class="styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 1182px; margin-top: 192px;">
<p class="styleSans1.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 330px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">OPERATOR: </p>
</div>
<div style="position: absolute; margin-left: 2447px; margin-top: 412px;">
<p class="styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 440px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">ADDRES S : </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 440px;">
<p class="styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">PO Box 269000 Oklahoma City, OK 73126 <br/>Bendjxon 1-10H </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 605px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">WELL NAME: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 715px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">SURFACE LOCATION: <br/>CASING LOCATION: <br/>BOTTOM HOLE LOCATION: </p>
</div>
<div style="position: absolute; margin-left: 1113px; margin-top: 715px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">265’ FSL & 2140’ FWL Section 10 T159N - RIOOW <br/>Appx. 708’ FSL & 2045 ’ FWL Section 10 casing at 9531’ MD, appx. 9296.5’ TVD <br/>10079.35’ north from surface & 202.72’ west from <br/>~".4‘.‘AA nan" ’30:, E‘kTT 9' 1007’ U‘IIT </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1155px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">511113.05, uPPK. ADJ I‘th (X4 174/ 1' VVL: <br/>S3 — T159N RIOOW <br/>33—105-03837 <br/>29820 <br/>Williams </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1292px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">API#: <br/>ND PERMIT #: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1540px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">COUNTY: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1650px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">STATE: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1760px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">BASIN: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1870px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">FIELD : </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1980px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">PROSPECT: <br/>WELL TYPE: ELEVATION: <br/>SPUD DATE: <br/>TOTAL DEPTH/DATE: DAYS FROM SPUD: <br/>BOTTOM HOLE DATA: </p>
</div>
<div style="position: absolute; margin-left: 1265px; margin-top: 3107px;">
<p class="styleSans2.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 330px;">
<p class="styleSans10.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Continental Resources, Inc. </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1650px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">North Dakota </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1760px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Williston </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1870px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Green Lake </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1980px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 2090px;">
<p class="styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">single leg horizontal in Middle Bakken RG: 2053’ SUB: 24’ KB: 2077’ <br/>drill surface shoe on 11/26/14 @ 6:00 AM <br/>19178’ / 12/15/14 <br/>19 days from spud <br/>Total Measured Depth: 19178’ Inclination: 90.0 degrees Azimuth: 355.2 degrees <br/>True Vertical Depth: 9154.79’ Vertical Section: 10081 .30’ </p>
</div>
<div style="position: absolute; margin-left: 1925px; margin-top: 1980px;">
<p class="styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
</body>
</html>
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http:
<HTML>
<HEAD>
<TITLE>Form1H.xls</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="generator" content="pdftohtml 0.40">
<META name="author" content="theilman">
<META name="date" content="2015-03-11T15:26:03+00:00">
</HEAD>
<FRAMESET cols="100,*">
<FRAME name="links" src="W30785.pdf_ind.html">
<FRAME name="contents" src="W30785.pdfs.html">
</FRAMESET>
</HTML>
|
#!/bin/bash
## This script installs the irace package, sets up the environment and launches
## irace. Then compresses its output as a tar.gz.
#SCENARIO is a irace's scenario file
SCENARIO=$1
# RUN is the run number to distinguish replications of irace
RUN=$2
shift 2
# RUN in condor starts at 0
let SEED=1234567+RUN
IRACE_PARAMS="--scenario scenario-${SCENARIO}.txt --debug-level 3 --parallel 24 --seed ${SEED}"
#tar axf condor-input.tar.gz
RPACKAGE="irace.tar.gz"
# install irace
if [ ! -r $RPACKAGE ]; then
echo "cannot read $RPACKAGE"
exit 1
fi
RLIBDIR="$(pwd)/R/"
mkdir -p $RLIBDIR
R CMD INSTALL $RPACKAGE --library=$RLIBDIR
export R_LIBS="$RLIBDIR:$R_LIBS"
irace="$(pwd)/R/irace/bin/irace"
if [ ! -x $irace ]; then
echo "cannot execute $irace"
exit 1
fi
export PATH="$(pwd)/":${PATH}
#cat /proc/cpuinfo
#echo "$irace --scenario scenario-${1}.txt --exec-dir=./execdir --debug-level 2 --parallel 8"
mkdir -p execdir && $irace --exec-dir=./execdir ${IRACE_PARAMS} 1> execdir/irace.stdout.txt 2> execdir/irace.stderr.txt
#| xz - > execdir/irace.stdout.xz
#tar acf result.tar.gz irace/execdir
#ls ./execdir
#cat ./execdir/c1-1.stderr
#cd .. && tar acf result.tar.gz irace
#ls ../result.tar.gz
|
html {
font-family: sans-serif;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-<API key>: 100%;
}
body {
margin: 0;
}
article,
aside,
footer,
header,
nav,
section {
display: block;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
figcaption,
figure,
main {
display: block;
}
figure {
margin: 1em 40px;
}
hr {
-webkit-box-sizing: content-box;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre {
font-family: monospace, monospace;
font-size: 1em;
}
a {
background-color: transparent;
-<API key>: objects;
}
a:active,
a:hover {
outline-width: 0;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted;
}
b,
strong {
font-weight: inherit;
}
b,
strong {
font-weight: bolder;
}
code,
kbd,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
dfn {
font-style: italic;
}
mark {
background-color: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
audio,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
img {
border-style: none;
}
svg:not(:root) {
overflow: hidden;
}
button,
input,
optgroup,
select,
textarea {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
display: inline-block;
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
[type="number"]::-<API key>,
[type="number"]::-<API key> {
height: auto;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-<API key>,
[type="search"]::-<API key> {
-webkit-appearance: none;
}
::-<API key> {
-webkit-appearance: button;
font: inherit;
}
details,
menu {
display: block;
}
summary {
display: list-item;
}
canvas {
display: inline-block;
}
template {
display: none;
}
[hidden] {
display: none;
}
@media print {
*,
*::before,
*::after,
p::first-letter,
div::first-letter,
blockquote::first-letter,
li::first-letter,
p::first-line,
div::first-line,
blockquote::first-line,
li::first-line {
text-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
abbr[title]::after {
content: " (" attr(title) ")";
}
pre {
white-space: pre-wrap !important;
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
.navbar {
display: none;
}
.badge {
border: 1px solid #000;
}
.table {
border-collapse: collapse !important;
}
.table td,
.table th {
background-color: #fff !important;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd !important;
}
}
html {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*,
*::before,
*::after {
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
@-ms-viewport {
width: device-width;
}
html {
-ms-overflow-style: scrollbar;
-<API key>: transparent;
}
body {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 1rem;
font-weight: normal;
line-height: 1.5;
color: #292b2c;
background-color: #fff;
}
[tabindex="-1"]:focus {
outline: none !important;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
cursor: help;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: bold;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
a {
color: #0275d8;
text-decoration: none;
}
a:focus, a:hover {
color: #014c8c;
text-decoration: underline;
}
a:not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):focus {
outline: 0;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
}
[role="button"] {
cursor: pointer;
}
a,
area,
button,
[role="button"],
input,
label,
select,
summary,
textarea {
-ms-touch-action: manipulation;
touch-action: manipulation;
}
table {
border-collapse: collapse;
background-color: transparent;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #636c72;
text-align: left;
caption-side: bottom;
}
th {
text-align: left;
}
label {
display: inline-block;
margin-bottom: .5rem;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -<API key>;
}
input,
button,
select,
textarea {
line-height: inherit;
}
input[type="radio"]:disabled,
input[type="checkbox"]:disabled {
cursor: not-allowed;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
textarea {
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
}
input[type="search"] {
-webkit-appearance: none;
}
output {
display: inline-block;
}
[hidden] {
display: none !important;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
margin-bottom: 0.5rem;
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit;
}
h1, .h1 {
font-size: 2.5rem;
}
h2, .h2 {
font-size: 2rem;
}
h3, .h3 {
font-size: 1.75rem;
}
h4, .h4 {
font-size: 1.5rem;
}
h5, .h5 {
font-size: 1.25rem;
}
h6, .h6 {
font-size: 1rem;
}
.lead {
font-size: 1.25rem;
font-weight: 300;
}
.display-1 {
font-size: 6rem;
font-weight: 300;
line-height: 1.1;
}
.display-2 {
font-size: 5.5rem;
font-weight: 300;
line-height: 1.1;
}
.display-3 {
font-size: 4.5rem;
font-weight: 300;
line-height: 1.1;
}
.display-4 {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.1;
}
hr {
margin-top: 1rem;
margin-bottom: 1rem;
border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
small,
.small {
font-size: 80%;
font-weight: normal;
}
mark,
.mark {
padding: 0.2em;
background-color: #fcf8e3;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;
}
.list-inline-item {
display: inline-block;
}
.list-inline-item:not(:last-child) {
margin-right: 5px;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
.blockquote {
padding: 0.5rem 1rem;
margin-bottom: 1rem;
font-size: 1.25rem;
border-left: 0.25rem solid #eceeef;
}
.blockquote-footer {
display: block;
font-size: 80%;
color: #636c72;
}
.blockquote-footer::before {
content: "\2014 \00A0";
}
.blockquote-reverse {
padding-right: 1rem;
padding-left: 0;
text-align: right;
border-right: 0.25rem solid #eceeef;
border-left: 0;
}
.blockquote-reverse .blockquote-footer::before {
content: "";
}
.blockquote-reverse .blockquote-footer::after {
content: "\00A0 \2014";
}
.img-fluid {
max-width: 100%;
height: auto;
}
.img-thumbnail {
padding: 0.25rem;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 0.25rem;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
max-width: 100%;
height: auto;
}
.figure {
display: inline-block;
}
.figure-img {
margin-bottom: 0.5rem;
line-height: 1;
}
.figure-caption {
font-size: 90%;
color: #636c72;
}
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
code {
padding: 0.2rem 0.4rem;
font-size: 90%;
color: #bd4147;
background-color: #f7f7f9;
border-radius: 0.25rem;
}
a > code {
padding: 0;
color: inherit;
background-color: inherit;
}
kbd {
padding: 0.2rem 0.4rem;
font-size: 90%;
color: #fff;
background-color: #292b2c;
border-radius: 0.2rem;
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
}
pre {
display: block;
margin-top: 0;
margin-bottom: 1rem;
font-size: 90%;
color: #292b2c;
}
pre code {
padding: 0;
font-size: inherit;
color: inherit;
background-color: transparent;
border-radius: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container {
position: relative;
margin-left: auto;
margin-right: auto;
padding-right: 15px;
padding-left: 15px;
}
@media (min-width: 576px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 768px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 992px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 1200px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 576px) {
.container {
width: 540px;
max-width: 100%;
}
}
@media (min-width: 768px) {
.container {
width: 720px;
max-width: 100%;
}
}
@media (min-width: 992px) {
.container {
width: 960px;
max-width: 100%;
}
}
@media (min-width: 1200px) {
.container {
width: 1140px;
max-width: 100%;
}
}
.container-fluid {
position: relative;
margin-left: auto;
margin-right: auto;
padding-right: 15px;
padding-left: 15px;
}
@media (min-width: 576px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 768px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 992px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 1200px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
.row {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
@media (min-width: 576px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
@media (min-width: 768px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
@media (min-width: 992px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
@media (min-width: 1200px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
.no-gutters {
margin-right: 0;
margin-left: 0;
}
.no-gutters > .col,
.no-gutters > [class*="col-"] {
padding-right: 0;
padding-left: 0;
}
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
position: relative;
width: 100%;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
@media (min-width: 576px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 768px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 992px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 1200px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
.col {
-webkit-flex-basis: 0;
-<API key>: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-0 {
right: auto;
}
.pull-1 {
right: 8.333333%;
}
.pull-2 {
right: 16.666667%;
}
.pull-3 {
right: 25%;
}
.pull-4 {
right: 33.333333%;
}
.pull-5 {
right: 41.666667%;
}
.pull-6 {
right: 50%;
}
.pull-7 {
right: 58.333333%;
}
.pull-8 {
right: 66.666667%;
}
.pull-9 {
right: 75%;
}
.pull-10 {
right: 83.333333%;
}
.pull-11 {
right: 91.666667%;
}
.pull-12 {
right: 100%;
}
.push-0 {
left: auto;
}
.push-1 {
left: 8.333333%;
}
.push-2 {
left: 16.666667%;
}
.push-3 {
left: 25%;
}
.push-4 {
left: 33.333333%;
}
.push-5 {
left: 41.666667%;
}
.push-6 {
left: 50%;
}
.push-7 {
left: 58.333333%;
}
.push-8 {
left: 66.666667%;
}
.push-9 {
left: 75%;
}
.push-10 {
left: 83.333333%;
}
.push-11 {
left: 91.666667%;
}
.push-12 {
left: 100%;
}
.offset-1 {
margin-left: 8.333333%;
}
.offset-2 {
margin-left: 16.666667%;
}
.offset-3 {
margin-left: 25%;
}
.offset-4 {
margin-left: 33.333333%;
}
.offset-5 {
margin-left: 41.666667%;
}
.offset-6 {
margin-left: 50%;
}
.offset-7 {
margin-left: 58.333333%;
}
.offset-8 {
margin-left: 66.666667%;
}
.offset-9 {
margin-left: 75%;
}
.offset-10 {
margin-left: 83.333333%;
}
.offset-11 {
margin-left: 91.666667%;
}
@media (min-width: 576px) {
.col-sm {
-webkit-flex-basis: 0;
-<API key>: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-sm-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-sm-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-sm-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-sm-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-sm-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-sm-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-sm-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-sm-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-sm-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-sm-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-sm-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-sm-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-sm-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-sm-0 {
right: auto;
}
.pull-sm-1 {
right: 8.333333%;
}
.pull-sm-2 {
right: 16.666667%;
}
.pull-sm-3 {
right: 25%;
}
.pull-sm-4 {
right: 33.333333%;
}
.pull-sm-5 {
right: 41.666667%;
}
.pull-sm-6 {
right: 50%;
}
.pull-sm-7 {
right: 58.333333%;
}
.pull-sm-8 {
right: 66.666667%;
}
.pull-sm-9 {
right: 75%;
}
.pull-sm-10 {
right: 83.333333%;
}
.pull-sm-11 {
right: 91.666667%;
}
.pull-sm-12 {
right: 100%;
}
.push-sm-0 {
left: auto;
}
.push-sm-1 {
left: 8.333333%;
}
.push-sm-2 {
left: 16.666667%;
}
.push-sm-3 {
left: 25%;
}
.push-sm-4 {
left: 33.333333%;
}
.push-sm-5 {
left: 41.666667%;
}
.push-sm-6 {
left: 50%;
}
.push-sm-7 {
left: 58.333333%;
}
.push-sm-8 {
left: 66.666667%;
}
.push-sm-9 {
left: 75%;
}
.push-sm-10 {
left: 83.333333%;
}
.push-sm-11 {
left: 91.666667%;
}
.push-sm-12 {
left: 100%;
}
.offset-sm-0 {
margin-left: 0%;
}
.offset-sm-1 {
margin-left: 8.333333%;
}
.offset-sm-2 {
margin-left: 16.666667%;
}
.offset-sm-3 {
margin-left: 25%;
}
.offset-sm-4 {
margin-left: 33.333333%;
}
.offset-sm-5 {
margin-left: 41.666667%;
}
.offset-sm-6 {
margin-left: 50%;
}
.offset-sm-7 {
margin-left: 58.333333%;
}
.offset-sm-8 {
margin-left: 66.666667%;
}
.offset-sm-9 {
margin-left: 75%;
}
.offset-sm-10 {
margin-left: 83.333333%;
}
.offset-sm-11 {
margin-left: 91.666667%;
}
}
@media (min-width: 768px) {
.col-md {
-webkit-flex-basis: 0;
-<API key>: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-md-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-md-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-md-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-md-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-md-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-md-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-md-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-md-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-md-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-md-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-md-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-md-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-md-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-md-0 {
right: auto;
}
.pull-md-1 {
right: 8.333333%;
}
.pull-md-2 {
right: 16.666667%;
}
.pull-md-3 {
right: 25%;
}
.pull-md-4 {
right: 33.333333%;
}
.pull-md-5 {
right: 41.666667%;
}
.pull-md-6 {
right: 50%;
}
.pull-md-7 {
right: 58.333333%;
}
.pull-md-8 {
right: 66.666667%;
}
.pull-md-9 {
right: 75%;
}
.pull-md-10 {
right: 83.333333%;
}
.pull-md-11 {
right: 91.666667%;
}
.pull-md-12 {
right: 100%;
}
.push-md-0 {
left: auto;
}
.push-md-1 {
left: 8.333333%;
}
.push-md-2 {
left: 16.666667%;
}
.push-md-3 {
left: 25%;
}
.push-md-4 {
left: 33.333333%;
}
.push-md-5 {
left: 41.666667%;
}
.push-md-6 {
left: 50%;
}
.push-md-7 {
left: 58.333333%;
}
.push-md-8 {
left: 66.666667%;
}
.push-md-9 {
left: 75%;
}
.push-md-10 {
left: 83.333333%;
}
.push-md-11 {
left: 91.666667%;
}
.push-md-12 {
left: 100%;
}
.offset-md-0 {
margin-left: 0%;
}
.offset-md-1 {
margin-left: 8.333333%;
}
.offset-md-2 {
margin-left: 16.666667%;
}
.offset-md-3 {
margin-left: 25%;
}
.offset-md-4 {
margin-left: 33.333333%;
}
.offset-md-5 {
margin-left: 41.666667%;
}
.offset-md-6 {
margin-left: 50%;
}
.offset-md-7 {
margin-left: 58.333333%;
}
.offset-md-8 {
margin-left: 66.666667%;
}
.offset-md-9 {
margin-left: 75%;
}
.offset-md-10 {
margin-left: 83.333333%;
}
.offset-md-11 {
margin-left: 91.666667%;
}
}
@media (min-width: 992px) {
.col-lg {
-webkit-flex-basis: 0;
-<API key>: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-lg-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-lg-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-lg-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-lg-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-lg-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-lg-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-lg-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-lg-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-lg-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-lg-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-lg-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-lg-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-lg-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-lg-0 {
right: auto;
}
.pull-lg-1 {
right: 8.333333%;
}
.pull-lg-2 {
right: 16.666667%;
}
.pull-lg-3 {
right: 25%;
}
.pull-lg-4 {
right: 33.333333%;
}
.pull-lg-5 {
right: 41.666667%;
}
.pull-lg-6 {
right: 50%;
}
.pull-lg-7 {
right: 58.333333%;
}
.pull-lg-8 {
right: 66.666667%;
}
.pull-lg-9 {
right: 75%;
}
.pull-lg-10 {
right: 83.333333%;
}
.pull-lg-11 {
right: 91.666667%;
}
.pull-lg-12 {
right: 100%;
}
.push-lg-0 {
left: auto;
}
.push-lg-1 {
left: 8.333333%;
}
.push-lg-2 {
left: 16.666667%;
}
.push-lg-3 {
left: 25%;
}
.push-lg-4 {
left: 33.333333%;
}
.push-lg-5 {
left: 41.666667%;
}
.push-lg-6 {
left: 50%;
}
.push-lg-7 {
left: 58.333333%;
}
.push-lg-8 {
left: 66.666667%;
}
.push-lg-9 {
left: 75%;
}
.push-lg-10 {
left: 83.333333%;
}
.push-lg-11 {
left: 91.666667%;
}
.push-lg-12 {
left: 100%;
}
.offset-lg-0 {
margin-left: 0%;
}
.offset-lg-1 {
margin-left: 8.333333%;
}
.offset-lg-2 {
margin-left: 16.666667%;
}
.offset-lg-3 {
margin-left: 25%;
}
.offset-lg-4 {
margin-left: 33.333333%;
}
.offset-lg-5 {
margin-left: 41.666667%;
}
.offset-lg-6 {
margin-left: 50%;
}
.offset-lg-7 {
margin-left: 58.333333%;
}
.offset-lg-8 {
margin-left: 66.666667%;
}
.offset-lg-9 {
margin-left: 75%;
}
.offset-lg-10 {
margin-left: 83.333333%;
}
.offset-lg-11 {
margin-left: 91.666667%;
}
}
@media (min-width: 1200px) {
.col-xl {
-webkit-flex-basis: 0;
-<API key>: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-xl-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-xl-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-xl-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-xl-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-xl-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-xl-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-xl-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-xl-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-xl-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-xl-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-xl-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-xl-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-xl-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-xl-0 {
right: auto;
}
.pull-xl-1 {
right: 8.333333%;
}
.pull-xl-2 {
right: 16.666667%;
}
.pull-xl-3 {
right: 25%;
}
.pull-xl-4 {
right: 33.333333%;
}
.pull-xl-5 {
right: 41.666667%;
}
.pull-xl-6 {
right: 50%;
}
.pull-xl-7 {
right: 58.333333%;
}
.pull-xl-8 {
right: 66.666667%;
}
.pull-xl-9 {
right: 75%;
}
.pull-xl-10 {
right: 83.333333%;
}
.pull-xl-11 {
right: 91.666667%;
}
.pull-xl-12 {
right: 100%;
}
.push-xl-0 {
left: auto;
}
.push-xl-1 {
left: 8.333333%;
}
.push-xl-2 {
left: 16.666667%;
}
.push-xl-3 {
left: 25%;
}
.push-xl-4 {
left: 33.333333%;
}
.push-xl-5 {
left: 41.666667%;
}
.push-xl-6 {
left: 50%;
}
.push-xl-7 {
left: 58.333333%;
}
.push-xl-8 {
left: 66.666667%;
}
.push-xl-9 {
left: 75%;
}
.push-xl-10 {
left: 83.333333%;
}
.push-xl-11 {
left: 91.666667%;
}
.push-xl-12 {
left: 100%;
}
.offset-xl-0 {
margin-left: 0%;
}
.offset-xl-1 {
margin-left: 8.333333%;
}
.offset-xl-2 {
margin-left: 16.666667%;
}
.offset-xl-3 {
margin-left: 25%;
}
.offset-xl-4 {
margin-left: 33.333333%;
}
.offset-xl-5 {
margin-left: 41.666667%;
}
.offset-xl-6 {
margin-left: 50%;
}
.offset-xl-7 {
margin-left: 58.333333%;
}
.offset-xl-8 {
margin-left: 66.666667%;
}
.offset-xl-9 {
margin-left: 75%;
}
.offset-xl-10 {
margin-left: 83.333333%;
}
.offset-xl-11 {
margin-left: 91.666667%;
}
}
.table {
width: 100%;
max-width: 100%;
margin-bottom: 1rem;
}
.table th,
.table td {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #eceeef;
}
.table thead th {
vertical-align: bottom;
border-bottom: 2px solid #eceeef;
}
.table tbody + tbody {
border-top: 2px solid #eceeef;
}
.table .table {
background-color: #fff;
}
.table-sm th,
.table-sm td {
padding: 0.3rem;
}
.table-bordered {
border: 1px solid #eceeef;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #eceeef;
}
.table-bordered thead th,
.table-bordered thead td {
border-bottom-width: 2px;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.05);
}
.table-hover tbody tr:hover {
background-color: rgba(0, 0, 0, 0.075);
}
.table-active,
.table-active > th,
.table-active > td {
background-color: rgba(0, 0, 0, 0.075);
}
.table-hover .table-active:hover {
background-color: rgba(0, 0, 0, 0.075);
}
.table-hover .table-active:hover > td,
.table-hover .table-active:hover > th {
background-color: rgba(0, 0, 0, 0.075);
}
.table-success,
.table-success > th,
.table-success > td {
background-color: #dff0d8;
}
.table-hover .table-success:hover {
background-color: #d0e9c6;
}
.table-hover .table-success:hover > td,
.table-hover .table-success:hover > th {
background-color: #d0e9c6;
}
.table-info,
.table-info > th,
.table-info > td {
background-color: #d9edf7;
}
.table-hover .table-info:hover {
background-color: #c4e3f3;
}
.table-hover .table-info:hover > td,
.table-hover .table-info:hover > th {
background-color: #c4e3f3;
}
.table-warning,
.table-warning > th,
.table-warning > td {
background-color: #fcf8e3;
}
.table-hover .table-warning:hover {
background-color: #faf2cc;
}
.table-hover .table-warning:hover > td,
.table-hover .table-warning:hover > th {
background-color: #faf2cc;
}
.table-danger,
.table-danger > th,
.table-danger > td {
background-color: #f2dede;
}
.table-hover .table-danger:hover {
background-color: #ebcccc;
}
.table-hover .table-danger:hover > td,
.table-hover .table-danger:hover > th {
background-color: #ebcccc;
}
.thead-inverse th {
color: #fff;
background-color: #292b2c;
}
.thead-default th {
color: #464a4c;
background-color: #eceeef;
}
.table-inverse {
color: #fff;
background-color: #292b2c;
}
.table-inverse th,
.table-inverse td,
.table-inverse thead th {
border-color: #fff;
}
.table-inverse.table-bordered {
border: 0;
}
.table-responsive {
display: block;
width: 100%;
overflow-x: auto;
-ms-overflow-style: -<API key>;
}
.table-responsive.table-bordered {
border: 0;
}
.form-control {
display: block;
width: 100%;
padding: 0.5rem 0.75rem;
font-size: 1rem;
line-height: 1.25;
color: #464a4c;
background-color: #fff;
background-image: none;
-<API key>: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
-webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
}
.form-control::-ms-expand {
background-color: transparent;
border: 0;
}
.form-control:focus {
color: #464a4c;
background-color: #fff;
border-color: #5cb3fd;
outline: none;
}
.form-control::-<API key> {
color: #636c72;
opacity: 1;
}
.form-control::-moz-placeholder {
color: #636c72;
opacity: 1;
}
.form-control:-<API key> {
color: #636c72;
opacity: 1;
}
.form-control::placeholder {
color: #636c72;
opacity: 1;
}
.form-control:disabled, .form-control[readonly] {
background-color: #eceeef;
opacity: 1;
}
.form-control:disabled {
cursor: not-allowed;
}
select.form-control:not([size]):not([multiple]) {
height: calc(2.25rem + 2px);
}
select.form-control:focus::-ms-value {
color: #464a4c;
background-color: #fff;
}
.form-control-file,
.form-control-range {
display: block;
}
.col-form-label {
padding-top: calc(0.5rem - 1px * 2);
padding-bottom: calc(0.5rem - 1px * 2);
margin-bottom: 0;
}
.col-form-label-lg {
padding-top: calc(0.75rem - 1px * 2);
padding-bottom: calc(0.75rem - 1px * 2);
font-size: 1.25rem;
}
.col-form-label-sm {
padding-top: calc(0.25rem - 1px * 2);
padding-bottom: calc(0.25rem - 1px * 2);
font-size: 0.875rem;
}
.col-form-legend {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
margin-bottom: 0;
font-size: 1rem;
}
.form-control-static {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
margin-bottom: 0;
line-height: 1.25;
border: solid transparent;
border-width: 1px 0;
}
.form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control,
.input-group-sm > .form-control-static.input-group-addon,
.input-group-sm > .input-group-btn > .form-control-static.btn, .form-control-static.form-control-lg, .input-group-lg > .form-control-static.form-control,
.input-group-lg > .form-control-static.input-group-addon,
.input-group-lg > .input-group-btn > .form-control-static.btn {
padding-right: 0;
padding-left: 0;
}
.form-control-sm, .input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.2rem;
}
select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]),
.input-group-sm > select.input-group-addon:not([size]):not([multiple]),
.input-group-sm > .input-group-btn > select.btn:not([size]):not([multiple]) {
height: 1.8125rem;
}
.form-control-lg, .input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
border-radius: 0.3rem;
}
select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]),
.input-group-lg > select.input-group-addon:not([size]):not([multiple]),
.input-group-lg > .input-group-btn > select.btn:not([size]):not([multiple]) {
height: 3.166667rem;
}
.form-group {
margin-bottom: 1rem;
}
.form-text {
display: block;
margin-top: 0.25rem;
}
.form-check {
position: relative;
display: block;
margin-bottom: 0.5rem;
}
.form-check.disabled .form-check-label {
color: #636c72;
cursor: not-allowed;
}
.form-check-label {
padding-left: 1.25rem;
margin-bottom: 0;
cursor: pointer;
}
.form-check-input {
position: absolute;
margin-top: 0.25rem;
margin-left: -1.25rem;
}
.form-check-input:only-child {
position: static;
}
.form-check-inline {
display: inline-block;
}
.form-check-inline .form-check-label {
vertical-align: middle;
}
.form-check-inline + .form-check-inline {
margin-left: 0.75rem;
}
.<API key> {
margin-top: 0.25rem;
}
.<API key>,
.<API key>,
.form-control-danger {
padding-right: 2.25rem;
background-repeat: no-repeat;
background-position: center right 0.5625rem;
-<API key>: 1.125rem 1.125rem;
background-size: 1.125rem 1.125rem;
}
.has-success .<API key>,
.has-success .form-control-label,
.has-success .col-form-label,
.has-success .form-check-label,
.has-success .custom-control {
color: #5cb85c;
}
.has-success .form-control {
border-color: #5cb85c;
}
.has-success .input-group-addon {
color: #5cb85c;
border-color: #5cb85c;
background-color: #eaf6ea;
}
.has-success .<API key> {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.has-warning .<API key>,
.has-warning .form-control-label,
.has-warning .col-form-label,
.has-warning .form-check-label,
.has-warning .custom-control {
color: #f0ad4e;
}
.has-warning .form-control {
border-color: #f0ad4e;
}
.has-warning .input-group-addon {
color: #f0ad4e;
border-color: #f0ad4e;
background-color: white;
}
.has-warning .<API key> {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.has-danger .<API key>,
.has-danger .form-control-label,
.has-danger .col-form-label,
.has-danger .form-check-label,
.has-danger .custom-control {
color: #d9534f;
}
.has-danger .form-control {
border-color: #d9534f;
}
.has-danger .input-group-addon {
color: #d9534f;
border-color: #d9534f;
background-color: #fdf7f7;
}
.has-danger .form-control-danger {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.form-inline {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.form-inline .form-check {
width: 100%;
}
@media (min-width: 576px) {
.form-inline label {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-<API key>: center;
-ms-flex-pack: center;
justify-content: center;
margin-bottom: 0;
}
.form-inline .form-group {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
margin-bottom: 0;
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.form-inline .form-control-static {
display: inline-block;
}
.form-inline .input-group {
width: auto;
}
.form-inline .form-control-label {
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .form-check {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-<API key>: center;
-ms-flex-pack: center;
justify-content: center;
width: auto;
margin-top: 0;
margin-bottom: 0;
}
.form-inline .form-check-label {
padding-left: 0;
}
.form-inline .form-check-input {
position: relative;
margin-top: 0;
margin-right: 0.25rem;
margin-left: 0;
}
.form-inline .custom-control {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-<API key>: center;
-ms-flex-pack: center;
justify-content: center;
padding-left: 0;
}
.form-inline .<API key> {
position: static;
display: inline-block;
margin-right: 0.25rem;
vertical-align: text-bottom;
}
.form-inline .has-feedback .<API key> {
top: 0;
}
}
.btn {
display: inline-block;
font-weight: normal;
line-height: 1.25;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 0.25rem;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.btn:focus, .btn:hover {
text-decoration: none;
}
.btn:focus, .btn.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
}
.btn.disabled, .btn:disabled {
cursor: not-allowed;
opacity: .65;
}
.btn:active, .btn.active {
background-image: none;
}
a.btn.disabled,
fieldset[disabled] a.btn {
pointer-events: none;
}
.btn-primary {
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.btn-primary:hover {
color: #fff;
background-color: #025aa5;
border-color: #01549b;
}
.btn-primary:focus, .btn-primary.focus {
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
}
.btn-primary.disabled, .btn-primary:disabled {
background-color: #0275d8;
border-color: #0275d8;
}
.btn-primary:active, .btn-primary.active,
.show > .btn-primary.dropdown-toggle {
color: #fff;
background-color: #025aa5;
background-image: none;
border-color: #01549b;
}
.btn-secondary {
color: #292b2c;
background-color: #fff;
border-color: #ccc;
}
.btn-secondary:hover {
color: #292b2c;
background-color: #e6e6e6;
border-color: #adadad;
}
.btn-secondary:focus, .btn-secondary.focus {
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
}
.btn-secondary.disabled, .btn-secondary:disabled {
background-color: #fff;
border-color: #ccc;
}
.btn-secondary:active, .btn-secondary.active,
.show > .btn-secondary.dropdown-toggle {
color: #292b2c;
background-color: #e6e6e6;
background-image: none;
border-color: #adadad;
}
.btn-info {
color: #fff;
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-info:hover {
color: #fff;
background-color: #31b0d5;
border-color: #2aabd2;
}
.btn-info:focus, .btn-info.focus {
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
}
.btn-info.disabled, .btn-info:disabled {
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-info:active, .btn-info.active,
.show > .btn-info.dropdown-toggle {
color: #fff;
background-color: #31b0d5;
background-image: none;
border-color: #2aabd2;
}
.btn-success {
color: #fff;
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-success:hover {
color: #fff;
background-color: #449d44;
border-color: #419641;
}
.btn-success:focus, .btn-success.focus {
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
}
.btn-success.disabled, .btn-success:disabled {
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-success:active, .btn-success.active,
.show > .btn-success.dropdown-toggle {
color: #fff;
background-color: #449d44;
background-image: none;
border-color: #419641;
}
.btn-warning {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-warning:hover {
color: #fff;
background-color: #ec971f;
border-color: #eb9316;
}
.btn-warning:focus, .btn-warning.focus {
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
}
.btn-warning.disabled, .btn-warning:disabled {
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-warning:active, .btn-warning.active,
.show > .btn-warning.dropdown-toggle {
color: #fff;
background-color: #ec971f;
background-image: none;
border-color: #eb9316;
}
.btn-danger {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-danger:hover {
color: #fff;
background-color: #c9302c;
border-color: #c12e2a;
}
.btn-danger:focus, .btn-danger.focus {
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
}
.btn-danger.disabled, .btn-danger:disabled {
background-color: #d9534f;
border-color: #d9534f;
}
.btn-danger:active, .btn-danger.active,
.show > .btn-danger.dropdown-toggle {
color: #fff;
background-color: #c9302c;
background-image: none;
border-color: #c12e2a;
}
.btn-outline-primary {
color: #0275d8;
background-image: none;
background-color: transparent;
border-color: #0275d8;
}
.btn-outline-primary:hover {
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
}
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
color: #0275d8;
background-color: transparent;
}
.btn-outline-primary:active, .btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.<API key> {
color: #ccc;
background-image: none;
background-color: transparent;
border-color: #ccc;
}
.<API key>:hover {
color: #fff;
background-color: #ccc;
border-color: #ccc;
}
.<API key>:focus, .<API key>.focus {
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
}
.<API key>.disabled, .<API key>:disabled {
color: #ccc;
background-color: transparent;
}
.<API key>:active, .<API key>.active,
.show > .<API key>.dropdown-toggle {
color: #fff;
background-color: #ccc;
border-color: #ccc;
}
.btn-outline-info {
color: #5bc0de;
background-image: none;
background-color: transparent;
border-color: #5bc0de;
}
.btn-outline-info:hover {
color: #fff;
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-outline-info:focus, .btn-outline-info.focus {
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
}
.btn-outline-info.disabled, .btn-outline-info:disabled {
color: #5bc0de;
background-color: transparent;
}
.btn-outline-info:active, .btn-outline-info.active,
.show > .btn-outline-info.dropdown-toggle {
color: #fff;
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-outline-success {
color: #5cb85c;
background-image: none;
background-color: transparent;
border-color: #5cb85c;
}
.btn-outline-success:hover {
color: #fff;
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-outline-success:focus, .btn-outline-success.focus {
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
}
.btn-outline-success.disabled, .btn-outline-success:disabled {
color: #5cb85c;
background-color: transparent;
}
.btn-outline-success:active, .btn-outline-success.active,
.show > .btn-outline-success.dropdown-toggle {
color: #fff;
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-outline-warning {
color: #f0ad4e;
background-image: none;
background-color: transparent;
border-color: #f0ad4e;
}
.btn-outline-warning:hover {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-outline-warning:focus, .btn-outline-warning.focus {
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
}
.btn-outline-warning.disabled, .btn-outline-warning:disabled {
color: #f0ad4e;
background-color: transparent;
}
.btn-outline-warning:active, .btn-outline-warning.active,
.show > .btn-outline-warning.dropdown-toggle {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-outline-danger {
color: #d9534f;
background-image: none;
background-color: transparent;
border-color: #d9534f;
}
.btn-outline-danger:hover {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-outline-danger:focus, .btn-outline-danger.focus {
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
}
.btn-outline-danger.disabled, .btn-outline-danger:disabled {
color: #d9534f;
background-color: transparent;
}
.btn-outline-danger:active, .btn-outline-danger.active,
.show > .btn-outline-danger.dropdown-toggle {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-link {
font-weight: normal;
color: #0275d8;
border-radius: 0;
}
.btn-link, .btn-link:active, .btn-link.active, .btn-link:disabled {
background-color: transparent;
}
.btn-link, .btn-link:focus, .btn-link:active {
border-color: transparent;
}
.btn-link:hover {
border-color: transparent;
}
.btn-link:focus, .btn-link:hover {
color: #014c8c;
text-decoration: underline;
background-color: transparent;
}
.btn-link:disabled {
color: #636c72;
}
.btn-link:disabled:focus, .btn-link:disabled:hover {
text-decoration: none;
}
.btn-lg, .btn-group-lg > .btn {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
border-radius: 0.3rem;
}
.btn-sm, .btn-group-sm > .btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.2rem;
}
.btn-block {
display: block;
width: 100%;
}
.btn-block + .btn-block {
margin-top: 0.5rem;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%;
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.show {
opacity: 1;
}
.collapse {
display: none;
}
.collapse.show {
display: block;
}
tr.collapse.show {
display: table-row;
}
tbody.collapse.show {
display: table-row-group;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height 0.35s ease;
-o-transition: height 0.35s ease;
transition: height 0.35s ease;
}
.dropup,
.dropdown {
position: relative;
}
.dropdown-toggle::after {
display: inline-block;
width: 0;
height: 0;
margin-left: 0.3em;
vertical-align: middle;
content: "";
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-left: 0.3em solid transparent;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropup .dropdown-toggle::after {
border-top: 0;
border-bottom: 0.3em solid;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 10rem;
padding: 0.5rem 0;
margin: 0.125rem 0 0;
font-size: 1rem;
color: #292b2c;
text-align: left;
list-style: none;
background-color: #fff;
-<API key>: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.dropdown-divider {
height: 1px;
margin: 0.5rem 0;
overflow: hidden;
background-color: #eceeef;
}
.dropdown-item {
display: block;
width: 100%;
padding: 3px 1.5rem;
clear: both;
font-weight: normal;
color: #292b2c;
text-align: inherit;
white-space: nowrap;
background: none;
border: 0;
}
.dropdown-item:focus, .dropdown-item:hover {
color: #1d1e1f;
text-decoration: none;
background-color: #f7f7f9;
}
.dropdown-item.active, .dropdown-item:active {
color: #fff;
text-decoration: none;
background-color: #0275d8;
}
.dropdown-item.disabled, .dropdown-item:disabled {
color: #636c72;
cursor: not-allowed;
background-color: transparent;
}
.show > .dropdown-menu {
display: block;
}
.show > a {
outline: 0;
}
.dropdown-menu-right {
right: 0;
left: auto;
}
.dropdown-menu-left {
right: auto;
left: 0;
}
.dropdown-header {
display: block;
padding: 0.5rem 1.5rem;
margin-bottom: 0;
font-size: 0.875rem;
color: #636c72;
white-space: nowrap;
}
.dropdown-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 990;
}
.dropup .dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 0.125rem;
}
.btn-group,
.btn-group-vertical {
position: relative;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
position: relative;
-webkit-box-flex: 0;
-webkit-flex: 0 1 auto;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover {
z-index: 2;
}
.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,
.btn-group-vertical > .btn:focus,
.btn-group-vertical > .btn:active,
.btn-group-vertical > .btn.active {
z-index: 2;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group,
.btn-group-vertical .btn + .btn,
.btn-group-vertical .btn + .btn-group,
.btn-group-vertical .btn-group + .btn,
.btn-group-vertical .btn-group + .btn-group {
margin-left: -1px;
}
.btn-toolbar {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: start;
-<API key>: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.btn-toolbar .input-group {
width: auto;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0;
}
.btn-group > .btn:first-child {
margin-left: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn-group {
float: left;
}
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
<API key>: 0;
<API key>: 0;
}
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
.btn + .<API key> {
padding-right: 0.75rem;
padding-left: 0.75rem;
}
.btn + .<API key>::after {
margin-left: 0;
}
.btn-sm + .<API key>, .btn-group-sm > .btn + .<API key> {
padding-right: 0.375rem;
padding-left: 0.375rem;
}
.btn-lg + .<API key>, .btn-group-lg > .btn + .<API key> {
padding-right: 1.125rem;
padding-left: 1.125rem;
}
.btn-group-vertical {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-box-pack: center;
-<API key>: center;
-ms-flex-pack: center;
justify-content: center;
}
.btn-group-vertical .btn,
.btn-group-vertical .btn-group {
width: 100%;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: -1px;
margin-left: 0;
}
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
<API key>: 0;
<API key>: 0;
}
[data-toggle="buttons"] > .btn input[type="radio"],
[data-toggle="buttons"] > .btn input[type="checkbox"],
[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
.input-group {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
}
.input-group .form-control {
position: relative;
z-index: 2;
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
width: 1%;
margin-bottom: 0;
}
.input-group .form-control:focus, .input-group .form-control:active, .input-group .form-control:hover {
z-index: 3;
}
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-<API key>: center;
-ms-flex-pack: center;
justify-content: center;
}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0;
}
.input-group-addon,
.input-group-btn {
white-space: nowrap;
vertical-align: middle;
}
.input-group-addon {
padding: 0.5rem 0.75rem;
margin-bottom: 0;
font-size: 1rem;
font-weight: normal;
line-height: 1.25;
color: #464a4c;
text-align: center;
background-color: #eceeef;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.input-group-addon.form-control-sm,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .input-group-addon.btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.2rem;
}
.input-group-addon.form-control-lg,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .input-group-addon.btn {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
border-radius: 0.3rem;
}
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0;
}
.input-group .form-control:not(:last-child),
.input-group-addon:not(:last-child),
.input-group-btn:not(:last-child) > .btn,
.input-group-btn:not(:last-child) > .btn-group > .btn,
.input-group-btn:not(:last-child) > .dropdown-toggle,
.input-group-btn:not(:first-child) > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn {
<API key>: 0;
<API key>: 0;
}
.input-group-addon:not(:last-child) {
border-right: 0;
}
.input-group .form-control:not(:first-child),
.input-group-addon:not(:first-child),
.input-group-btn:not(:first-child) > .btn,
.input-group-btn:not(:first-child) > .btn-group > .btn,
.input-group-btn:not(:first-child) > .dropdown-toggle,
.input-group-btn:not(:last-child) > .btn:not(:first-child),
.input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn {
<API key>: 0;
<API key>: 0;
}
.form-control + .input-group-addon:not(:first-child) {
border-left: 0;
}
.input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap;
}
.input-group-btn > .btn {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: 1 1 0%;
-ms-flex: 1 1 0%;
flex: 1 1 0%;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:focus, .input-group-btn > .btn:active, .input-group-btn > .btn:hover {
z-index: 3;
}
.input-group-btn:not(:last-child) > .btn,
.input-group-btn:not(:last-child) > .btn-group {
margin-right: -1px;
}
.input-group-btn:not(:first-child) > .btn,
.input-group-btn:not(:first-child) > .btn-group {
z-index: 2;
margin-left: -1px;
}
.input-group-btn:not(:first-child) > .btn:focus, .input-group-btn:not(:first-child) > .btn:active, .input-group-btn:not(:first-child) > .btn:hover,
.input-group-btn:not(:first-child) > .btn-group:focus,
.input-group-btn:not(:first-child) > .btn-group:active,
.input-group-btn:not(:first-child) > .btn-group:hover {
z-index: 3;
}
.custom-control {
position: relative;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
min-height: 1.5rem;
padding-left: 1.5rem;
margin-right: 1rem;
cursor: pointer;
}
.<API key> {
position: absolute;
z-index: -1;
opacity: 0;
}
.<API key>:checked ~ .<API key> {
color: #fff;
background-color: #0275d8;
}
.<API key>:focus ~ .<API key> {
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #0275d8;
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #0275d8;
}
.<API key>:active ~ .<API key> {
color: #fff;
background-color: #8fcafe;
}
.<API key>:disabled ~ .<API key> {
cursor: not-allowed;
background-color: #eceeef;
}
.<API key>:disabled ~ .<API key> {
color: #636c72;
cursor: not-allowed;
}
.<API key> {
position: absolute;
top: 0.25rem;
left: 0;
display: block;
width: 1rem;
height: 1rem;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #ddd;
background-repeat: no-repeat;
background-position: center center;
-<API key>: 50% 50%;
background-size: 50% 50%;
}
.custom-checkbox .<API key> {
border-radius: 0.25rem;
}
.custom-checkbox .<API key>:checked ~ .<API key> {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.custom-checkbox .<API key>:indeterminate ~ .<API key> {
background-color: #0275d8;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.custom-radio .<API key> {
border-radius: 50%;
}
.custom-radio .<API key>:checked ~ .<API key> {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.<API key> {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
}
.<API key> .custom-control {
margin-bottom: 0.25rem;
}
.<API key> .custom-control + .custom-control {
margin-left: 0;
}
.custom-select {
display: inline-block;
max-width: 100%;
height: calc(2.25rem + 2px);
padding: 0.375rem 1.75rem 0.375rem 0.75rem;
line-height: 1.25;
color: #464a4c;
vertical-align: middle;
background:
-<API key>: 8px 10px;
background-size: 8px 10px;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
-moz-appearance: none;
-webkit-appearance: none;
}
.custom-select:focus {
border-color: #5cb3fd;
outline: none;
}
.custom-select:focus::-ms-value {
color: #464a4c;
background-color: #fff;
}
.custom-select:disabled {
color: #636c72;
cursor: not-allowed;
background-color: #eceeef;
}
.custom-select::-ms-expand {
opacity: 0;
}
.custom-select-sm {
padding-top: 0.375rem;
padding-bottom: 0.375rem;
font-size: 75%;
}
.custom-file {
position: relative;
display: inline-block;
max-width: 100%;
height: 2.5rem;
margin-bottom: 0;
cursor: pointer;
}
.custom-file-input {
min-width: 14rem;
max-width: 100%;
height: 2.5rem;
margin: 0;
filter: alpha(opacity=0);
opacity: 0;
}
.custom-file-control {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 5;
height: 2.5rem;
padding: 0.5rem 1rem;
line-height: 1.5;
color: #464a4c;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.custom-file-control:lang(en)::after {
content: "Choose file...";
}
.custom-file-control::before {
position: absolute;
top: -1px;
right: -1px;
bottom: -1px;
z-index: 6;
display: block;
height: 2.5rem;
padding: 0.5rem 1rem;
line-height: 1.5;
color: #464a4c;
background-color: #eceeef;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0 0.25rem 0.25rem 0;
}
.custom-file-control:lang(en)::before {
content: "Browse";
}
.nav {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav-link {
display: block;
padding: 0.5em 1em;
}
.nav-link:focus, .nav-link:hover {
text-decoration: none;
}
.nav-link.disabled {
color: #636c72;
cursor: not-allowed;
}
.nav-tabs {
border-bottom: 1px solid #ddd;
}
.nav-tabs .nav-item {
margin-bottom: -1px;
}
.nav-tabs .nav-link {
border: 1px solid transparent;
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
border-color: #eceeef #eceeef #ddd;
}
.nav-tabs .nav-link.disabled {
color: #636c72;
background-color: transparent;
border-color: transparent;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
color: #464a4c;
background-color: #fff;
border-color: #ddd #ddd #fff;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
<API key>: 0;
<API key>: 0;
}
.nav-pills .nav-link {
border-radius: 0.25rem;
}
.nav-pills .nav-link.active,
.nav-pills .nav-item.show .nav-link {
color: #fff;
cursor: default;
background-color: #0275d8;
}
.nav-fill .nav-item {
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
text-align: center;
}
.nav-justified .nav-item {
-webkit-box-flex: 1;
-webkit-flex: 1 1 100%;
-ms-flex: 1 1 100%;
flex: 1 1 100%;
text-align: center;
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.navbar {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
padding: 0.5rem 1rem;
}
.navbar-brand {
display: inline-block;
padding-top: .25rem;
padding-bottom: .25rem;
margin-right: 1rem;
font-size: 1.25rem;
line-height: inherit;
white-space: nowrap;
}
.navbar-brand:focus, .navbar-brand:hover {
text-decoration: none;
}
.navbar-nav {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.navbar-nav .nav-link {
padding-right: 0;
padding-left: 0;
}
.navbar-text {
display: inline-block;
padding-top: .425rem;
padding-bottom: .425rem;
}
.navbar-toggler {
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start;
padding: 0.25rem 0.75rem;
font-size: 1.25rem;
line-height: 1;
background: transparent;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.navbar-toggler:focus, .navbar-toggler:hover {
text-decoration: none;
}
.navbar-toggler-icon {
display: inline-block;
width: 1.5em;
height: 1.5em;
vertical-align: middle;
content: "";
background: no-repeat center center;
-<API key>: 100% 100%;
background-size: 100% 100%;
}
.navbar-toggler-left {
position: absolute;
left: 1rem;
}
.<API key> {
position: absolute;
right: 1rem;
}
@media (max-width: 575px) {
.navbar-toggleable .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.navbar-toggleable > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 576px) {
.navbar-toggleable {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable .navbar-nav {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-toggleable .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.navbar-toggleable > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.navbar-toggleable .navbar-toggler {
display: none;
}
}
@media (max-width: 767px) {
.<API key> .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.<API key> > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 768px) {
.<API key> {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-nav {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
}
.<API key> .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.<API key> > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.<API key> .navbar-toggler {
display: none;
}
}
@media (max-width: 991px) {
.<API key> .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.<API key> > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 992px) {
.<API key> {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-nav {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
}
.<API key> .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.<API key> > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.<API key> .navbar-toggler {
display: none;
}
}
@media (max-width: 1199px) {
.<API key> .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.<API key> > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 1200px) {
.<API key> {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-nav {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
}
.<API key> .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.<API key> > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.<API key> .navbar-toggler {
display: none;
}
}
.<API key> {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.<API key> > .container {
padding-right: 0;
padding-left: 0;
}
.<API key> .navbar-nav {
-webkit-box-orient: horizontal;
-<API key>: normal;
-<API key>: row;
-ms-flex-direction: row;
flex-direction: row;
}
.<API key> .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.<API key> > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.<API key> .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.<API key> .navbar-toggler {
display: none;
}
.navbar-light .navbar-brand,
.navbar-light .navbar-toggler {
color: rgba(0, 0, 0, 0.9);
}
.navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover,
.navbar-light .navbar-toggler:focus,
.navbar-light .navbar-toggler:hover {
color: rgba(0, 0, 0, 0.9);
}
.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.5);
}
.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
color: rgba(0, 0, 0, 0.7);
}
.navbar-light .navbar-nav .nav-link.disabled {
color: rgba(0, 0, 0, 0.3);
}
.navbar-light .navbar-nav .open > .nav-link,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.open,
.navbar-light .navbar-nav .nav-link.active {
color: rgba(0, 0, 0, 0.9);
}
.navbar-light .navbar-toggler {
border-color: rgba(0, 0, 0, 0.1);
}
.navbar-light .navbar-toggler-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http:
}
.navbar-light .navbar-text {
color: rgba(0, 0, 0, 0.5);
}
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-toggler {
color: white;
}
.navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-toggler:focus,
.navbar-inverse .navbar-toggler:hover {
color: white;
}
.navbar-inverse .navbar-nav .nav-link {
color: rgba(255, 255, 255, 0.5);
}
.navbar-inverse .navbar-nav .nav-link:focus, .navbar-inverse .navbar-nav .nav-link:hover {
color: rgba(255, 255, 255, 0.75);
}
.navbar-inverse .navbar-nav .nav-link.disabled {
color: rgba(255, 255, 255, 0.25);
}
.navbar-inverse .navbar-nav .open > .nav-link,
.navbar-inverse .navbar-nav .active > .nav-link,
.navbar-inverse .navbar-nav .nav-link.open,
.navbar-inverse .navbar-nav .nav-link.active {
color: white;
}
.navbar-inverse .navbar-toggler {
border-color: rgba(255, 255, 255, 0.1);
}
.navbar-inverse .navbar-toggler-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http:
}
.navbar-inverse .navbar-text {
color: rgba(255, 255, 255, 0.5);
}
.card {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.125);
border-radius: 0.25rem;
}
.card-block {
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 1.25rem;
}
.card-title {
margin-bottom: 0.75rem;
}
.card-subtitle {
margin-top: -0.375rem;
margin-bottom: 0;
}
.card-text:last-child {
margin-bottom: 0;
}
.card-link:hover {
text-decoration: none;
}
.card-link + .card-link {
margin-left: 1.25rem;
}
.card > .list-group:first-child .list-group-item:first-child {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.card > .list-group:last-child .list-group-item:last-child {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.card-header {
padding: 0.75rem 1.25rem;
margin-bottom: 0;
background-color: #f7f7f9;
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.card-header:first-child {
border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}
.card-footer {
padding: 0.75rem 1.25rem;
background-color: #f7f7f9;
border-top: 1px solid rgba(0, 0, 0, 0.125);
}
.card-footer:last-child {
border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
}
.card-header-tabs {
margin-right: -0.625rem;
margin-bottom: -0.75rem;
margin-left: -0.625rem;
border-bottom: 0;
}
.card-header-pills {
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.card-primary {
background-color: #0275d8;
border-color: #0275d8;
}
.card-primary .card-header,
.card-primary .card-footer {
background-color: transparent;
}
.card-success {
background-color: #5cb85c;
border-color: #5cb85c;
}
.card-success .card-header,
.card-success .card-footer {
background-color: transparent;
}
.card-info {
background-color: #5bc0de;
border-color: #5bc0de;
}
.card-info .card-header,
.card-info .card-footer {
background-color: transparent;
}
.card-warning {
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.card-warning .card-header,
.card-warning .card-footer {
background-color: transparent;
}
.card-danger {
background-color: #d9534f;
border-color: #d9534f;
}
.card-danger .card-header,
.card-danger .card-footer {
background-color: transparent;
}
.<API key> {
background-color: transparent;
border-color: #0275d8;
}
.<API key> {
background-color: transparent;
border-color: #ccc;
}
.card-outline-info {
background-color: transparent;
border-color: #5bc0de;
}
.<API key> {
background-color: transparent;
border-color: #5cb85c;
}
.<API key> {
background-color: transparent;
border-color: #f0ad4e;
}
.card-outline-danger {
background-color: transparent;
border-color: #d9534f;
}
.card-inverse {
color: rgba(255, 255, 255, 0.65);
}
.card-inverse .card-header,
.card-inverse .card-footer {
background-color: transparent;
border-color: rgba(255, 255, 255, 0.2);
}
.card-inverse .card-header,
.card-inverse .card-footer,
.card-inverse .card-title,
.card-inverse .card-blockquote {
color: #fff;
}
.card-inverse .card-link,
.card-inverse .card-text,
.card-inverse .card-subtitle,
.card-inverse .card-blockquote .blockquote-footer {
color: rgba(255, 255, 255, 0.65);
}
.card-inverse .card-link:focus, .card-inverse .card-link:hover {
color: #fff;
}
.card-blockquote {
padding: 0;
margin-bottom: 0;
border-left: 0;
}
.card-img {
border-radius: calc(0.25rem - 1px);
}
.card-img-overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 1.25rem;
}
.card-img-top {
<API key>: calc(0.25rem - 1px);
<API key>: calc(0.25rem - 1px);
}
.card-img-bottom {
<API key>: calc(0.25rem - 1px);
<API key>: calc(0.25rem - 1px);
}
@media (min-width: 576px) {
.card-deck {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
.card-deck .card {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-webkit-flex: 1 0 0%;
-ms-flex: 1 0 0%;
flex: 1 0 0%;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
}
.card-deck .card:not(:first-child) {
margin-left: 15px;
}
.card-deck .card:not(:last-child) {
margin-right: 15px;
}
}
@media (min-width: 576px) {
.card-group {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
.card-group .card {
-webkit-box-flex: 1;
-webkit-flex: 1 0 0%;
-ms-flex: 1 0 0%;
flex: 1 0 0%;
}
.card-group .card + .card {
margin-left: 0;
border-left: 0;
}
.card-group .card:first-child {
<API key>: 0;
<API key>: 0;
}
.card-group .card:first-child .card-img-top {
<API key>: 0;
}
.card-group .card:first-child .card-img-bottom {
<API key>: 0;
}
.card-group .card:last-child {
<API key>: 0;
<API key>: 0;
}
.card-group .card:last-child .card-img-top {
<API key>: 0;
}
.card-group .card:last-child .card-img-bottom {
<API key>: 0;
}
.card-group .card:not(:first-child):not(:last-child) {
border-radius: 0;
}
.card-group .card:not(:first-child):not(:last-child) .card-img-top,
.card-group .card:not(:first-child):not(:last-child) .card-img-bottom {
border-radius: 0;
}
}
@media (min-width: 576px) {
.card-columns {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
-webkit-column-gap: 1.25rem;
-moz-column-gap: 1.25rem;
column-gap: 1.25rem;
}
.card-columns .card {
display: inline-block;
width: 100%;
margin-bottom: 0.75rem;
}
}
.breadcrumb {
padding: 0.75rem 1rem;
margin-bottom: 1rem;
list-style: none;
background-color: #eceeef;
border-radius: 0.25rem;
}
.breadcrumb::after {
display: block;
content: "";
clear: both;
}
.breadcrumb-item {
float: left;
}
.breadcrumb-item + .breadcrumb-item::before {
display: inline-block;
padding-right: 0.5rem;
padding-left: 0.5rem;
color: #636c72;
content: "/";
}
.breadcrumb-item + .breadcrumb-item:hover::before {
text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item:hover::before {
text-decoration: none;
}
.breadcrumb-item.active {
color: #636c72;
}
.pagination {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-left: 0;
list-style: none;
border-radius: 0.25rem;
}
.page-item:first-child .page-link {
margin-left: 0;
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.page-item:last-child .page-link {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.page-item.active .page-link {
z-index: 2;
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.page-item.disabled .page-link {
color: #636c72;
pointer-events: none;
cursor: not-allowed;
background-color: #fff;
border-color: #ddd;
}
.page-link {
position: relative;
display: block;
padding: 0.5rem 0.75rem;
margin-left: -1px;
line-height: 1.25;
color: #0275d8;
background-color: #fff;
border: 1px solid #ddd;
}
.page-link:focus, .page-link:hover {
color: #014c8c;
text-decoration: none;
background-color: #eceeef;
border-color: #ddd;
}
.pagination-lg .page-link {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
}
.pagination-lg .page-item:first-child .page-link {
<API key>: 0.3rem;
<API key>: 0.3rem;
}
.pagination-lg .page-item:last-child .page-link {
<API key>: 0.3rem;
<API key>: 0.3rem;
}
.pagination-sm .page-link {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
}
.pagination-sm .page-item:first-child .page-link {
<API key>: 0.2rem;
<API key>: 0.2rem;
}
.pagination-sm .page-item:last-child .page-link {
<API key>: 0.2rem;
<API key>: 0.2rem;
}
.badge {
display: inline-block;
padding: 0.25em 0.4em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.25rem;
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
a.badge:focus, a.badge:hover {
color: #fff;
text-decoration: none;
cursor: pointer;
}
.badge-pill {
padding-right: 0.6em;
padding-left: 0.6em;
border-radius: 10rem;
}
.badge-default {
background-color: #636c72;
}
.badge-default[href]:focus, .badge-default[href]:hover {
background-color: #4b5257;
}
.badge-primary {
background-color: #0275d8;
}
.badge-primary[href]:focus, .badge-primary[href]:hover {
background-color: #025aa5;
}
.badge-success {
background-color: #5cb85c;
}
.badge-success[href]:focus, .badge-success[href]:hover {
background-color: #449d44;
}
.badge-info {
background-color: #5bc0de;
}
.badge-info[href]:focus, .badge-info[href]:hover {
background-color: #31b0d5;
}
.badge-warning {
background-color: #f0ad4e;
}
.badge-warning[href]:focus, .badge-warning[href]:hover {
background-color: #ec971f;
}
.badge-danger {
background-color: #d9534f;
}
.badge-danger[href]:focus, .badge-danger[href]:hover {
background-color: #c9302c;
}
.jumbotron {
padding: 2rem 1rem;
margin-bottom: 2rem;
background-color: #eceeef;
border-radius: 0.3rem;
}
@media (min-width: 576px) {
.jumbotron {
padding: 4rem 2rem;
}
}
.jumbotron-hr {
border-top-color: #d0d5d8;
}
.jumbotron-fluid {
padding-right: 0;
padding-left: 0;
border-radius: 0;
}
.alert {
padding: 0.75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.alert-heading {
color: inherit;
}
.alert-link {
font-weight: bold;
}
.alert-dismissible .close {
position: relative;
top: -0.75rem;
right: -1.25rem;
padding: 0.75rem 1.25rem;
color: inherit;
}
.alert-success {
background-color: #dff0d8;
border-color: #d0e9c6;
color: #3c763d;
}
.alert-success hr {
border-top-color: #c1e2b3;
}
.alert-success .alert-link {
color: #2b542c;
}
.alert-info {
background-color: #d9edf7;
border-color: #bcdff1;
color: #31708f;
}
.alert-info hr {
border-top-color: #a6d5ec;
}
.alert-info .alert-link {
color: #245269;
}
.alert-warning {
background-color: #fcf8e3;
border-color: #faf2cc;
color: #8a6d3b;
}
.alert-warning hr {
border-top-color: #f7ecb5;
}
.alert-warning .alert-link {
color: #66512c;
}
.alert-danger {
background-color: #f2dede;
border-color: #ebcccc;
color: #a94442;
}
.alert-danger hr {
border-top-color: #e4b9b9;
}
.alert-danger .alert-link {
color: #843534;
}
@-webkit-keyframes <API key> {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
@-o-keyframes <API key> {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
@keyframes <API key> {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
.progress {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
overflow: hidden;
font-size: 0.75rem;
line-height: 1rem;
text-align: center;
background-color: #eceeef;
border-radius: 0.25rem;
}
.progress-bar {
height: 1rem;
color: #fff;
background-color: #0275d8;
}
.<API key> {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
-<API key>: 1rem 1rem;
background-size: 1rem 1rem;
}
.<API key> {
-webkit-animation: <API key> 1s linear infinite;
-o-animation: <API key> 1s linear infinite;
animation: <API key> 1s linear infinite;
}
.media {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
.media-body {
-webkit-box-flex: 1;
-webkit-flex: 1 1 0%;
-ms-flex: 1 1 0%;
flex: 1 1 0%;
}
.list-group {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
}
.<API key> {
width: 100%;
color: #464a4c;
text-align: inherit;
}
.<API key> .<API key> {
color: #292b2c;
}
.<API key>:focus, .<API key>:hover {
color: #464a4c;
text-decoration: none;
background-color: #f7f7f9;
}
.<API key>:active {
color: #292b2c;
background-color: #eceeef;
}
.list-group-item {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
padding: 0.75rem 1.25rem;
margin-bottom: -1px;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.125);
}
.list-group-item:first-child {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.list-group-item:last-child {
margin-bottom: 0;
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.list-group-item:focus, .list-group-item:hover {
text-decoration: none;
}
.list-group-item.disabled, .list-group-item:disabled {
color: #636c72;
cursor: not-allowed;
background-color: #fff;
}
.list-group-item.disabled .<API key>, .list-group-item:disabled .<API key> {
color: inherit;
}
.list-group-item.disabled .<API key>, .list-group-item:disabled .<API key> {
color: #636c72;
}
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.list-group-item.active .<API key>,
.list-group-item.active .<API key> > small,
.list-group-item.active .<API key> > .small {
color: inherit;
}
.list-group-item.active .<API key> {
color: #daeeff;
}
.list-group-flush .list-group-item {
border-right: 0;
border-left: 0;
border-radius: 0;
}
.list-group-flush:first-child .list-group-item:first-child {
border-top: 0;
}
.list-group-flush:last-child .list-group-item:last-child {
border-bottom: 0;
}
.<API key> {
color: #3c763d;
background-color: #dff0d8;
}
a.<API key>,
button.<API key> {
color: #3c763d;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:focus, a.<API key>:hover,
button.<API key>:focus,
button.<API key>:hover {
color: #3c763d;
background-color: #d0e9c6;
}
a.<API key>.active,
button.<API key>.active {
color: #fff;
background-color: #3c763d;
border-color: #3c763d;
}
.<API key> {
color: #31708f;
background-color: #d9edf7;
}
a.<API key>,
button.<API key> {
color: #31708f;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:focus, a.<API key>:hover,
button.<API key>:focus,
button.<API key>:hover {
color: #31708f;
background-color: #c4e3f3;
}
a.<API key>.active,
button.<API key>.active {
color: #fff;
background-color: #31708f;
border-color: #31708f;
}
.<API key> {
color: #8a6d3b;
background-color: #fcf8e3;
}
a.<API key>,
button.<API key> {
color: #8a6d3b;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:focus, a.<API key>:hover,
button.<API key>:focus,
button.<API key>:hover {
color: #8a6d3b;
background-color: #faf2cc;
}
a.<API key>.active,
button.<API key>.active {
color: #fff;
background-color: #8a6d3b;
border-color: #8a6d3b;
}
.<API key> {
color: #a94442;
background-color: #f2dede;
}
a.<API key>,
button.<API key> {
color: #a94442;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:focus, a.<API key>:hover,
button.<API key>:focus,
button.<API key>:hover {
color: #a94442;
background-color: #ebcccc;
}
a.<API key>.active,
button.<API key>.active {
color: #fff;
background-color: #a94442;
border-color: #a94442;
}
.embed-responsive {
position: relative;
display: block;
width: 100%;
padding: 0;
overflow: hidden;
}
.embed-responsive::before {
display: block;
content: "";
}
.embed-responsive .<API key>,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
.<API key>::before {
padding-top: 42.857143%;
}
.<API key>::before {
padding-top: 56.25%;
}
.<API key>::before {
padding-top: 75%;
}
.<API key>::before {
padding-top: 100%;
}
.close {
float: right;
font-size: 1.5rem;
font-weight: bold;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
opacity: .5;
}
.close:focus, .close:hover {
color: #000;
text-decoration: none;
cursor: pointer;
opacity: .75;
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.modal-open {
overflow: hidden;
}
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050;
display: none;
overflow: hidden;
outline: 0;
}
.modal.fade .modal-dialog {
-webkit-transition: -webkit-transform 0.3s ease-out;
transition: -webkit-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out, -o-transform 0.3s ease-out;
-webkit-transform: translate(0, -25%);
-o-transform: translate(0, -25%);
transform: translate(0, -25%);
}
.modal.show .modal-dialog {
-webkit-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.modal-open .modal {
overflow-x: hidden;
overflow-y: auto;
}
.modal-dialog {
position: relative;
width: auto;
margin: 10px;
}
.modal-content {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-<API key>: normal;
-<API key>: column;
-ms-flex-direction: column;
flex-direction: column;
background-color: #fff;
-<API key>: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0.3rem;
outline: 0;
}
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1040;
background-color: #000;
}
.modal-backdrop.fade {
opacity: 0;
}
.modal-backdrop.show {
opacity: 0.5;
}
.modal-header {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-<API key>: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 15px;
border-bottom: 1px solid #eceeef;
}
.modal-title {
margin-bottom: 0;
line-height: 1.5;
}
.modal-body {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 15px;
}
.modal-footer {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: end;
-<API key>: flex-end;
-ms-flex-pack: end;
justify-content: flex-end;
padding: 15px;
border-top: 1px solid #eceeef;
}
.modal-footer > :not(:first-child) {
margin-left: .25rem;
}
.modal-footer > :not(:last-child) {
margin-right: .25rem;
}
.<API key> {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
@media (min-width: 576px) {
.modal-dialog {
max-width: 500px;
margin: 30px auto;
}
.modal-sm {
max-width: 300px;
}
}
@media (min-width: 992px) {
.modal-lg {
max-width: 800px;
}
}
.tooltip {
position: absolute;
z-index: 1070;
display: block;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-break: auto;
line-height: 1.5;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
font-size: 0.875rem;
word-wrap: break-word;
opacity: 0;
}
.tooltip.show {
opacity: 0.9;
}
.tooltip.tooltip-top, .tooltip.<API key> {
padding: 5px 0;
margin-top: -3px;
}
.tooltip.tooltip-top .tooltip-inner::before, .tooltip.<API key> .tooltip-inner::before {
bottom: 0;
left: 50%;
margin-left: -5px;
content: "";
border-width: 5px 5px 0;
border-top-color: #000;
}
.tooltip.tooltip-right, .tooltip.<API key> {
padding: 0 5px;
margin-left: 3px;
}
.tooltip.tooltip-right .tooltip-inner::before, .tooltip.<API key> .tooltip-inner::before {
top: 50%;
left: 0;
margin-top: -5px;
content: "";
border-width: 5px 5px 5px 0;
border-right-color: #000;
}
.tooltip.tooltip-bottom, .tooltip.<API key> {
padding: 5px 0;
margin-top: 3px;
}
.tooltip.tooltip-bottom .tooltip-inner::before, .tooltip.<API key> .tooltip-inner::before {
top: 0;
left: 50%;
margin-left: -5px;
content: "";
border-width: 0 5px 5px;
border-bottom-color: #000;
}
.tooltip.tooltip-left, .tooltip.<API key> {
padding: 0 5px;
margin-left: -3px;
}
.tooltip.tooltip-left .tooltip-inner::before, .tooltip.<API key> .tooltip-inner::before {
top: 50%;
right: 0;
margin-top: -5px;
content: "";
border-width: 5px 0 5px 5px;
border-left-color: #000;
}
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: #fff;
text-align: center;
background-color: #000;
border-radius: 0.25rem;
}
.tooltip-inner::before {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover {
position: absolute;
top: 0;
left: 0;
z-index: 1060;
display: block;
max-width: 276px;
padding: 1px;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-break: auto;
line-height: 1.5;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
font-size: 0.875rem;
word-wrap: break-word;
background-color: #fff;
-<API key>: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0.3rem;
}
.popover.popover-top, .popover.<API key> {
margin-top: -10px;
}
.popover.popover-top::before, .popover.popover-top::after, .popover.<API key>::before, .popover.<API key>::after {
left: 50%;
border-bottom-width: 0;
}
.popover.popover-top::before, .popover.<API key>::before {
bottom: -11px;
margin-left: -11px;
border-top-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-top::after, .popover.<API key>::after {
bottom: -10px;
margin-left: -10px;
border-top-color: #fff;
}
.popover.popover-right, .popover.<API key> {
margin-left: 10px;
}
.popover.popover-right::before, .popover.popover-right::after, .popover.<API key>::before, .popover.<API key>::after {
top: 50%;
border-left-width: 0;
}
.popover.popover-right::before, .popover.<API key>::before {
left: -11px;
margin-top: -11px;
border-right-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-right::after, .popover.<API key>::after {
left: -10px;
margin-top: -10px;
border-right-color: #fff;
}
.popover.popover-bottom, .popover.<API key> {
margin-top: 10px;
}
.popover.popover-bottom::before, .popover.popover-bottom::after, .popover.<API key>::before, .popover.<API key>::after {
left: 50%;
border-top-width: 0;
}
.popover.popover-bottom::before, .popover.<API key>::before {
top: -11px;
margin-left: -11px;
border-bottom-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-bottom::after, .popover.<API key>::after {
top: -10px;
margin-left: -10px;
border-bottom-color: #f7f7f7;
}
.popover.popover-bottom .popover-title::before, .popover.<API key> .popover-title::before {
position: absolute;
top: 0;
left: 50%;
display: block;
width: 20px;
margin-left: -10px;
content: "";
border-bottom: 1px solid #f7f7f7;
}
.popover.popover-left, .popover.<API key> {
margin-left: -10px;
}
.popover.popover-left::before, .popover.popover-left::after, .popover.<API key>::before, .popover.<API key>::after {
top: 50%;
border-right-width: 0;
}
.popover.popover-left::before, .popover.<API key>::before {
right: -11px;
margin-top: -11px;
border-left-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-left::after, .popover.<API key>::after {
right: -10px;
margin-top: -10px;
border-left-color: #fff;
}
.popover-title {
padding: 8px 14px;
margin-bottom: 0;
font-size: 1rem;
background-color: #f7f7f7;
border-bottom: 1px solid #ebebeb;
<API key>: calc(0.3rem - 1px);
<API key>: calc(0.3rem - 1px);
}
.popover-title:empty {
display: none;
}
.popover-content {
padding: 9px 14px;
}
.popover::before,
.popover::after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover::before {
content: "";
border-width: 11px;
}
.popover::after {
content: "";
border-width: 10px;
}
.carousel {
position: relative;
}
.carousel-inner {
position: relative;
width: 100%;
overflow: hidden;
}
.carousel-item {
position: relative;
display: none;
width: 100%;
}
@media (-webkit-transform-3d) {
.carousel-item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
transition: -webkit-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out, -o-transform 0.6s ease-in-out;
-<API key>: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000px;
perspective: 1000px;
}
}
@supports ((-webkit-transform: translate3d(0, 0, 0)) or (transform: translate3d(0, 0, 0))) {
.carousel-item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
transition: -webkit-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out, -o-transform 0.6s ease-in-out;
-<API key>: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000px;
perspective: 1000px;
}
}
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.carousel-item-next,
.carousel-item-prev {
position: absolute;
top: 0;
}
@media (-webkit-transform-3d) {
.carousel-item-next.carousel-item-left,
.carousel-item-prev.carousel-item-right {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.carousel-item-next,
.active.carousel-item-right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.carousel-item-prev,
.active.carousel-item-left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
@supports ((-webkit-transform: translate3d(0, 0, 0)) or (transform: translate3d(0, 0, 0))) {
.carousel-item-next.carousel-item-left,
.carousel-item-prev.carousel-item-right {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.carousel-item-next,
.active.carousel-item-right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.carousel-item-prev,
.active.carousel-item-left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
.<API key>,
.<API key> {
position: absolute;
top: 0;
bottom: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-<API key>: center;
-ms-flex-pack: center;
justify-content: center;
width: 15%;
color: #fff;
text-align: center;
opacity: 0.5;
}
.<API key>:focus, .<API key>:hover,
.<API key>:focus,
.<API key>:hover {
color: #fff;
text-decoration: none;
outline: 0;
opacity: .9;
}
.<API key> {
left: 0;
}
.<API key> {
right: 0;
}
.<API key>,
.<API key> {
display: inline-block;
width: 20px;
height: 20px;
background: transparent no-repeat center center;
-<API key>: 100% 100%;
background-size: 100% 100%;
}
.<API key> {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.<API key> {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http:
}
.carousel-indicators {
position: absolute;
right: 0;
bottom: 10px;
left: 0;
z-index: 15;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-<API key>: center;
-ms-flex-pack: center;
justify-content: center;
padding-left: 0;
margin-right: 15%;
margin-left: 15%;
list-style: none;
}
.carousel-indicators li {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
max-width: 30px;
height: 3px;
margin-right: 3px;
margin-left: 3px;
text-indent: -999px;
cursor: pointer;
background-color: rgba(255, 255, 255, 0.5);
}
.carousel-indicators li::before {
position: absolute;
top: -10px;
left: 0;
display: inline-block;
width: 100%;
height: 10px;
content: "";
}
.carousel-indicators li::after {
position: absolute;
bottom: -10px;
left: 0;
display: inline-block;
width: 100%;
height: 10px;
content: "";
}
.carousel-indicators .active {
background-color: #fff;
}
.carousel-caption {
position: absolute;
right: 15%;
bottom: 20px;
left: 15%;
z-index: 10;
padding-top: 20px;
padding-bottom: 20px;
color: #fff;
text-align: center;
}
.align-baseline {
vertical-align: baseline !important;
}
.align-top {
vertical-align: top !important;
}
.align-middle {
vertical-align: middle !important;
}
.align-bottom {
vertical-align: bottom !important;
}
.align-text-bottom {
vertical-align: text-bottom !important;
}
.align-text-top {
vertical-align: text-top !important;
}
.bg-faded {
background-color: #f7f7f7;
}
.bg-primary {
background-color: #0275d8 !important;
}
a.bg-primary:focus, a.bg-primary:hover {
background-color: #025aa5 !important;
}
.bg-success {
background-color: #5cb85c !important;
}
a.bg-success:focus, a.bg-success:hover {
background-color: #449d44 !important;
}
.bg-info {
background-color: #5bc0de !important;
}
a.bg-info:focus, a.bg-info:hover {
background-color: #31b0d5 !important;
}
.bg-warning {
background-color: #f0ad4e !important;
}
a.bg-warning:focus, a.bg-warning:hover {
background-color: #ec971f !important;
}
.bg-danger {
background-color: #d9534f !important;
}
a.bg-danger:focus, a.bg-danger:hover {
background-color: #c9302c !important;
}
.bg-inverse {
background-color: #292b2c !important;
}
a.bg-inverse:focus, a.bg-inverse:hover {
background-color: #101112 !important;
}
.border-0 {
border: 0 !important;
}
.border-top-0 {
border-top: 0 !important;
}
.border-right-0 {
border-right: 0 !important;
}
.border-bottom-0 {
border-bottom: 0 !important;
}
.border-left-0 {
border-left: 0 !important;
}
.rounded {
border-radius: 0.25rem;
}
.rounded-top {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.rounded-right {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.rounded-bottom {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.rounded-left {
<API key>: 0.25rem;
<API key>: 0.25rem;
}
.rounded-circle {
border-radius: 50%;
}
.rounded-0 {
border-radius: 0;
}
.clearfix::after {
display: block;
content: "";
clear: both;
}
.d-none {
display: none !important;
}
.d-inline {
display: inline !important;
}
.d-inline-block {
display: inline-block !important;
}
.d-block {
display: block !important;
}
.d-table {
display: table !important;
}
.d-table-cell {
display: table-cell !important;
}
.d-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
@media (min-width: 576px) {
.d-sm-none {
display: none !important;
}
.d-sm-inline {
display: inline !important;
}
.d-sm-inline-block {
display: inline-block !important;
}
.d-sm-block {
display: block !important;
}
.d-sm-table {
display: table !important;
}
.d-sm-table-cell {
display: table-cell !important;
}
.d-sm-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-sm-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 768px) {
.d-md-none {
display: none !important;
}
.d-md-inline {
display: inline !important;
}
.d-md-inline-block {
display: inline-block !important;
}
.d-md-block {
display: block !important;
}
.d-md-table {
display: table !important;
}
.d-md-table-cell {
display: table-cell !important;
}
.d-md-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-md-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 992px) {
.d-lg-none {
display: none !important;
}
.d-lg-inline {
display: inline !important;
}
.d-lg-inline-block {
display: inline-block !important;
}
.d-lg-block {
display: block !important;
}
.d-lg-table {
display: table !important;
}
.d-lg-table-cell {
display: table-cell !important;
}
.d-lg-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-lg-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 1200px) {
.d-xl-none {
display: none !important;
}
.d-xl-inline {
display: inline !important;
}
.d-xl-inline-block {
display: inline-block !important;
}
.d-xl-block {
display: block !important;
}
.d-xl-table {
display: table !important;
}
.d-xl-table-cell {
display: table-cell !important;
}
.d-xl-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-xl-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
.flex-first {
-<API key>: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-last {
-<API key>: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-unordered {
-<API key>: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-row {
-webkit-box-orient: horizontal !important;
-<API key>: normal !important;
-<API key>: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-column {
-webkit-box-orient: vertical !important;
-<API key>: normal !important;
-<API key>: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-row-reverse {
-webkit-box-orient: horizontal !important;
-<API key>: reverse !important;
-<API key>: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-column-reverse {
-webkit-box-orient: vertical !important;
-<API key>: reverse !important;
-<API key>: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-wrap-reverse {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.<API key> {
-webkit-box-pack: start !important;
-<API key>: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-end {
-webkit-box-pack: end !important;
-<API key>: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.<API key> {
-webkit-box-pack: center !important;
-<API key>: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.<API key> {
-webkit-box-pack: justify !important;
-<API key>: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-start {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-center {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.<API key> {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-stretch {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-start {
-<API key>: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-end {
-<API key>: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.<API key> {
-<API key>: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.<API key> {
-<API key>: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.<API key> {
-<API key>: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-center {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.align-self-baseline {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-stretch {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
@media (min-width: 576px) {
.flex-sm-first {
-<API key>: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-sm-last {
-<API key>: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-sm-unordered {
-<API key>: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-sm-row {
-webkit-box-orient: horizontal !important;
-<API key>: normal !important;
-<API key>: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-sm-column {
-webkit-box-orient: vertical !important;
-<API key>: normal !important;
-<API key>: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-sm-row-reverse {
-webkit-box-orient: horizontal !important;
-<API key>: reverse !important;
-<API key>: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.<API key> {
-webkit-box-orient: vertical !important;
-<API key>: reverse !important;
-<API key>: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-sm-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-sm-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.<API key> {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.<API key> {
-webkit-box-pack: start !important;
-<API key>: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.<API key> {
-webkit-box-pack: end !important;
-<API key>: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.<API key> {
-webkit-box-pack: center !important;
-<API key>: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.<API key> {
-webkit-box-pack: justify !important;
-<API key>: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.<API key> {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-sm-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.<API key> {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.<API key> {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.<API key> {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.<API key> {
-<API key>: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.<API key> {
-<API key>: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.<API key> {
-<API key>: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.<API key> {
-<API key>: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.<API key> {
-<API key>: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-sm-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-sm-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-sm-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.<API key> {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.<API key> {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.<API key> {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 768px) {
.flex-md-first {
-<API key>: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-md-last {
-<API key>: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-md-unordered {
-<API key>: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-md-row {
-webkit-box-orient: horizontal !important;
-<API key>: normal !important;
-<API key>: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-md-column {
-webkit-box-orient: vertical !important;
-<API key>: normal !important;
-<API key>: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-md-row-reverse {
-webkit-box-orient: horizontal !important;
-<API key>: reverse !important;
-<API key>: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.<API key> {
-webkit-box-orient: vertical !important;
-<API key>: reverse !important;
-<API key>: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-md-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-md-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.<API key> {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.<API key> {
-webkit-box-pack: start !important;
-<API key>: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.<API key> {
-webkit-box-pack: end !important;
-<API key>: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.<API key> {
-webkit-box-pack: center !important;
-<API key>: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.<API key> {
-webkit-box-pack: justify !important;
-<API key>: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.<API key> {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-md-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.<API key> {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.<API key> {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.<API key> {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.<API key> {
-<API key>: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.<API key> {
-<API key>: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.<API key> {
-<API key>: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.<API key> {
-<API key>: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.<API key> {
-<API key>: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-md-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-md-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-md-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.<API key> {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.<API key> {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.<API key> {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 992px) {
.flex-lg-first {
-<API key>: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-lg-last {
-<API key>: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-lg-unordered {
-<API key>: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-lg-row {
-webkit-box-orient: horizontal !important;
-<API key>: normal !important;
-<API key>: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-lg-column {
-webkit-box-orient: vertical !important;
-<API key>: normal !important;
-<API key>: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-lg-row-reverse {
-webkit-box-orient: horizontal !important;
-<API key>: reverse !important;
-<API key>: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.<API key> {
-webkit-box-orient: vertical !important;
-<API key>: reverse !important;
-<API key>: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-lg-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-lg-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.<API key> {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.<API key> {
-webkit-box-pack: start !important;
-<API key>: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.<API key> {
-webkit-box-pack: end !important;
-<API key>: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.<API key> {
-webkit-box-pack: center !important;
-<API key>: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.<API key> {
-webkit-box-pack: justify !important;
-<API key>: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.<API key> {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-lg-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.<API key> {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.<API key> {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.<API key> {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.<API key> {
-<API key>: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.<API key> {
-<API key>: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.<API key> {
-<API key>: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.<API key> {
-<API key>: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.<API key> {
-<API key>: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-lg-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-lg-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-lg-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.<API key> {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.<API key> {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.<API key> {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 1200px) {
.flex-xl-first {
-<API key>: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-xl-last {
-<API key>: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-xl-unordered {
-<API key>: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-xl-row {
-webkit-box-orient: horizontal !important;
-<API key>: normal !important;
-<API key>: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-xl-column {
-webkit-box-orient: vertical !important;
-<API key>: normal !important;
-<API key>: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-xl-row-reverse {
-webkit-box-orient: horizontal !important;
-<API key>: reverse !important;
-<API key>: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.<API key> {
-webkit-box-orient: vertical !important;
-<API key>: reverse !important;
-<API key>: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-xl-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-xl-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.<API key> {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.<API key> {
-webkit-box-pack: start !important;
-<API key>: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.<API key> {
-webkit-box-pack: end !important;
-<API key>: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.<API key> {
-webkit-box-pack: center !important;
-<API key>: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.<API key> {
-webkit-box-pack: justify !important;
-<API key>: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.<API key> {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-xl-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.<API key> {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.<API key> {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.<API key> {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.<API key> {
-<API key>: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.<API key> {
-<API key>: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.<API key> {
-<API key>: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.<API key> {
-<API key>: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.<API key> {
-<API key>: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.<API key> {
-<API key>: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-xl-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-xl-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-xl-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.<API key> {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.<API key> {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.<API key> {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
.float-left {
float: left !important;
}
.float-right {
float: right !important;
}
.float-none {
float: none !important;
}
@media (min-width: 576px) {
.float-sm-left {
float: left !important;
}
.float-sm-right {
float: right !important;
}
.float-sm-none {
float: none !important;
}
}
@media (min-width: 768px) {
.float-md-left {
float: left !important;
}
.float-md-right {
float: right !important;
}
.float-md-none {
float: none !important;
}
}
@media (min-width: 992px) {
.float-lg-left {
float: left !important;
}
.float-lg-right {
float: right !important;
}
.float-lg-none {
float: none !important;
}
}
@media (min-width: 1200px) {
.float-xl-left {
float: left !important;
}
.float-xl-right {
float: right !important;
}
.float-xl-none {
float: none !important;
}
}
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.fixed-bottom {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1030;
}
.sticky-top {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 1030;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.sr-only-focusable:active, .sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
.w-25 {
width: 25% !important;
}
.w-50 {
width: 50% !important;
}
.w-75 {
width: 75% !important;
}
.w-100 {
width: 100% !important;
}
.h-25 {
height: 25% !important;
}
.h-50 {
height: 50% !important;
}
.h-75 {
height: 75% !important;
}
.h-100 {
height: 100% !important;
}
.mw-100 {
max-width: 100% !important;
}
.mh-100 {
max-height: 100% !important;
}
.m-0 {
margin: 0 0 !important;
}
.mt-0 {
margin-top: 0 !important;
}
.mr-0 {
margin-right: 0 !important;
}
.mb-0 {
margin-bottom: 0 !important;
}
.ml-0 {
margin-left: 0 !important;
}
.mx-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-1 {
margin-top: 0.25rem !important;
}
.mr-1 {
margin-right: 0.25rem !important;
}
.mb-1 {
margin-bottom: 0.25rem !important;
}
.ml-1 {
margin-left: 0.25rem !important;
}
.mx-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-2 {
margin-top: 0.5rem !important;
}
.mr-2 {
margin-right: 0.5rem !important;
}
.mb-2 {
margin-bottom: 0.5rem !important;
}
.ml-2 {
margin-left: 0.5rem !important;
}
.mx-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-3 {
margin: 1rem 1rem !important;
}
.mt-3 {
margin-top: 1rem !important;
}
.mr-3 {
margin-right: 1rem !important;
}
.mb-3 {
margin-bottom: 1rem !important;
}
.ml-3 {
margin-left: 1rem !important;
}
.mx-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-4 {
margin-top: 1.5rem !important;
}
.mr-4 {
margin-right: 1.5rem !important;
}
.mb-4 {
margin-bottom: 1.5rem !important;
}
.ml-4 {
margin-left: 1.5rem !important;
}
.mx-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-5 {
margin: 3rem 3rem !important;
}
.mt-5 {
margin-top: 3rem !important;
}
.mr-5 {
margin-right: 3rem !important;
}
.mb-5 {
margin-bottom: 3rem !important;
}
.ml-5 {
margin-left: 3rem !important;
}
.mx-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-0 {
padding: 0 0 !important;
}
.pt-0 {
padding-top: 0 !important;
}
.pr-0 {
padding-right: 0 !important;
}
.pb-0 {
padding-bottom: 0 !important;
}
.pl-0 {
padding-left: 0 !important;
}
.px-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-1 {
padding-top: 0.25rem !important;
}
.pr-1 {
padding-right: 0.25rem !important;
}
.pb-1 {
padding-bottom: 0.25rem !important;
}
.pl-1 {
padding-left: 0.25rem !important;
}
.px-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-2 {
padding-top: 0.5rem !important;
}
.pr-2 {
padding-right: 0.5rem !important;
}
.pb-2 {
padding-bottom: 0.5rem !important;
}
.pl-2 {
padding-left: 0.5rem !important;
}
.px-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-3 {
padding: 1rem 1rem !important;
}
.pt-3 {
padding-top: 1rem !important;
}
.pr-3 {
padding-right: 1rem !important;
}
.pb-3 {
padding-bottom: 1rem !important;
}
.pl-3 {
padding-left: 1rem !important;
}
.px-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-4 {
padding-top: 1.5rem !important;
}
.pr-4 {
padding-right: 1.5rem !important;
}
.pb-4 {
padding-bottom: 1.5rem !important;
}
.pl-4 {
padding-left: 1.5rem !important;
}
.px-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-5 {
padding: 3rem 3rem !important;
}
.pt-5 {
padding-top: 3rem !important;
}
.pr-5 {
padding-right: 3rem !important;
}
.pb-5 {
padding-bottom: 3rem !important;
}
.pl-5 {
padding-left: 3rem !important;
}
.px-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-auto {
margin: auto !important;
}
.mt-auto {
margin-top: auto !important;
}
.mr-auto {
margin-right: auto !important;
}
.mb-auto {
margin-bottom: auto !important;
}
.ml-auto {
margin-left: auto !important;
}
.mx-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
@media (min-width: 576px) {
.m-sm-0 {
margin: 0 0 !important;
}
.mt-sm-0 {
margin-top: 0 !important;
}
.mr-sm-0 {
margin-right: 0 !important;
}
.mb-sm-0 {
margin-bottom: 0 !important;
}
.ml-sm-0 {
margin-left: 0 !important;
}
.mx-sm-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-sm-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-sm-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-sm-1 {
margin-top: 0.25rem !important;
}
.mr-sm-1 {
margin-right: 0.25rem !important;
}
.mb-sm-1 {
margin-bottom: 0.25rem !important;
}
.ml-sm-1 {
margin-left: 0.25rem !important;
}
.mx-sm-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-sm-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-sm-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-sm-2 {
margin-top: 0.5rem !important;
}
.mr-sm-2 {
margin-right: 0.5rem !important;
}
.mb-sm-2 {
margin-bottom: 0.5rem !important;
}
.ml-sm-2 {
margin-left: 0.5rem !important;
}
.mx-sm-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-sm-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-sm-3 {
margin: 1rem 1rem !important;
}
.mt-sm-3 {
margin-top: 1rem !important;
}
.mr-sm-3 {
margin-right: 1rem !important;
}
.mb-sm-3 {
margin-bottom: 1rem !important;
}
.ml-sm-3 {
margin-left: 1rem !important;
}
.mx-sm-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-sm-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-sm-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-sm-4 {
margin-top: 1.5rem !important;
}
.mr-sm-4 {
margin-right: 1.5rem !important;
}
.mb-sm-4 {
margin-bottom: 1.5rem !important;
}
.ml-sm-4 {
margin-left: 1.5rem !important;
}
.mx-sm-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-sm-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-sm-5 {
margin: 3rem 3rem !important;
}
.mt-sm-5 {
margin-top: 3rem !important;
}
.mr-sm-5 {
margin-right: 3rem !important;
}
.mb-sm-5 {
margin-bottom: 3rem !important;
}
.ml-sm-5 {
margin-left: 3rem !important;
}
.mx-sm-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-sm-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-sm-0 {
padding: 0 0 !important;
}
.pt-sm-0 {
padding-top: 0 !important;
}
.pr-sm-0 {
padding-right: 0 !important;
}
.pb-sm-0 {
padding-bottom: 0 !important;
}
.pl-sm-0 {
padding-left: 0 !important;
}
.px-sm-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-sm-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-sm-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-sm-1 {
padding-top: 0.25rem !important;
}
.pr-sm-1 {
padding-right: 0.25rem !important;
}
.pb-sm-1 {
padding-bottom: 0.25rem !important;
}
.pl-sm-1 {
padding-left: 0.25rem !important;
}
.px-sm-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-sm-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-sm-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-sm-2 {
padding-top: 0.5rem !important;
}
.pr-sm-2 {
padding-right: 0.5rem !important;
}
.pb-sm-2 {
padding-bottom: 0.5rem !important;
}
.pl-sm-2 {
padding-left: 0.5rem !important;
}
.px-sm-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-sm-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-sm-3 {
padding: 1rem 1rem !important;
}
.pt-sm-3 {
padding-top: 1rem !important;
}
.pr-sm-3 {
padding-right: 1rem !important;
}
.pb-sm-3 {
padding-bottom: 1rem !important;
}
.pl-sm-3 {
padding-left: 1rem !important;
}
.px-sm-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-sm-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-sm-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-sm-4 {
padding-top: 1.5rem !important;
}
.pr-sm-4 {
padding-right: 1.5rem !important;
}
.pb-sm-4 {
padding-bottom: 1.5rem !important;
}
.pl-sm-4 {
padding-left: 1.5rem !important;
}
.px-sm-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-sm-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-sm-5 {
padding: 3rem 3rem !important;
}
.pt-sm-5 {
padding-top: 3rem !important;
}
.pr-sm-5 {
padding-right: 3rem !important;
}
.pb-sm-5 {
padding-bottom: 3rem !important;
}
.pl-sm-5 {
padding-left: 3rem !important;
}
.px-sm-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-sm-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-sm-auto {
margin: auto !important;
}
.mt-sm-auto {
margin-top: auto !important;
}
.mr-sm-auto {
margin-right: auto !important;
}
.mb-sm-auto {
margin-bottom: auto !important;
}
.ml-sm-auto {
margin-left: auto !important;
}
.mx-sm-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-sm-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
@media (min-width: 768px) {
.m-md-0 {
margin: 0 0 !important;
}
.mt-md-0 {
margin-top: 0 !important;
}
.mr-md-0 {
margin-right: 0 !important;
}
.mb-md-0 {
margin-bottom: 0 !important;
}
.ml-md-0 {
margin-left: 0 !important;
}
.mx-md-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-md-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-md-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-md-1 {
margin-top: 0.25rem !important;
}
.mr-md-1 {
margin-right: 0.25rem !important;
}
.mb-md-1 {
margin-bottom: 0.25rem !important;
}
.ml-md-1 {
margin-left: 0.25rem !important;
}
.mx-md-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-md-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-md-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-md-2 {
margin-top: 0.5rem !important;
}
.mr-md-2 {
margin-right: 0.5rem !important;
}
.mb-md-2 {
margin-bottom: 0.5rem !important;
}
.ml-md-2 {
margin-left: 0.5rem !important;
}
.mx-md-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-md-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-md-3 {
margin: 1rem 1rem !important;
}
.mt-md-3 {
margin-top: 1rem !important;
}
.mr-md-3 {
margin-right: 1rem !important;
}
.mb-md-3 {
margin-bottom: 1rem !important;
}
.ml-md-3 {
margin-left: 1rem !important;
}
.mx-md-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-md-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-md-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-md-4 {
margin-top: 1.5rem !important;
}
.mr-md-4 {
margin-right: 1.5rem !important;
}
.mb-md-4 {
margin-bottom: 1.5rem !important;
}
.ml-md-4 {
margin-left: 1.5rem !important;
}
.mx-md-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-md-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-md-5 {
margin: 3rem 3rem !important;
}
.mt-md-5 {
margin-top: 3rem !important;
}
.mr-md-5 {
margin-right: 3rem !important;
}
.mb-md-5 {
margin-bottom: 3rem !important;
}
.ml-md-5 {
margin-left: 3rem !important;
}
.mx-md-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-md-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-md-0 {
padding: 0 0 !important;
}
.pt-md-0 {
padding-top: 0 !important;
}
.pr-md-0 {
padding-right: 0 !important;
}
.pb-md-0 {
padding-bottom: 0 !important;
}
.pl-md-0 {
padding-left: 0 !important;
}
.px-md-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-md-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-md-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-md-1 {
padding-top: 0.25rem !important;
}
.pr-md-1 {
padding-right: 0.25rem !important;
}
.pb-md-1 {
padding-bottom: 0.25rem !important;
}
.pl-md-1 {
padding-left: 0.25rem !important;
}
.px-md-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-md-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-md-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-md-2 {
padding-top: 0.5rem !important;
}
.pr-md-2 {
padding-right: 0.5rem !important;
}
.pb-md-2 {
padding-bottom: 0.5rem !important;
}
.pl-md-2 {
padding-left: 0.5rem !important;
}
.px-md-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-md-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-md-3 {
padding: 1rem 1rem !important;
}
.pt-md-3 {
padding-top: 1rem !important;
}
.pr-md-3 {
padding-right: 1rem !important;
}
.pb-md-3 {
padding-bottom: 1rem !important;
}
.pl-md-3 {
padding-left: 1rem !important;
}
.px-md-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-md-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-md-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-md-4 {
padding-top: 1.5rem !important;
}
.pr-md-4 {
padding-right: 1.5rem !important;
}
.pb-md-4 {
padding-bottom: 1.5rem !important;
}
.pl-md-4 {
padding-left: 1.5rem !important;
}
.px-md-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-md-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-md-5 {
padding: 3rem 3rem !important;
}
.pt-md-5 {
padding-top: 3rem !important;
}
.pr-md-5 {
padding-right: 3rem !important;
}
.pb-md-5 {
padding-bottom: 3rem !important;
}
.pl-md-5 {
padding-left: 3rem !important;
}
.px-md-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-md-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-md-auto {
margin: auto !important;
}
.mt-md-auto {
margin-top: auto !important;
}
.mr-md-auto {
margin-right: auto !important;
}
.mb-md-auto {
margin-bottom: auto !important;
}
.ml-md-auto {
margin-left: auto !important;
}
.mx-md-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-md-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
@media (min-width: 992px) {
.m-lg-0 {
margin: 0 0 !important;
}
.mt-lg-0 {
margin-top: 0 !important;
}
.mr-lg-0 {
margin-right: 0 !important;
}
.mb-lg-0 {
margin-bottom: 0 !important;
}
.ml-lg-0 {
margin-left: 0 !important;
}
.mx-lg-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-lg-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-lg-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-lg-1 {
margin-top: 0.25rem !important;
}
.mr-lg-1 {
margin-right: 0.25rem !important;
}
.mb-lg-1 {
margin-bottom: 0.25rem !important;
}
.ml-lg-1 {
margin-left: 0.25rem !important;
}
.mx-lg-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-lg-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-lg-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-lg-2 {
margin-top: 0.5rem !important;
}
.mr-lg-2 {
margin-right: 0.5rem !important;
}
.mb-lg-2 {
margin-bottom: 0.5rem !important;
}
.ml-lg-2 {
margin-left: 0.5rem !important;
}
.mx-lg-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-lg-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-lg-3 {
margin: 1rem 1rem !important;
}
.mt-lg-3 {
margin-top: 1rem !important;
}
.mr-lg-3 {
margin-right: 1rem !important;
}
.mb-lg-3 {
margin-bottom: 1rem !important;
}
.ml-lg-3 {
margin-left: 1rem !important;
}
.mx-lg-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-lg-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-lg-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-lg-4 {
margin-top: 1.5rem !important;
}
.mr-lg-4 {
margin-right: 1.5rem !important;
}
.mb-lg-4 {
margin-bottom: 1.5rem !important;
}
.ml-lg-4 {
margin-left: 1.5rem !important;
}
.mx-lg-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-lg-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-lg-5 {
margin: 3rem 3rem !important;
}
.mt-lg-5 {
margin-top: 3rem !important;
}
.mr-lg-5 {
margin-right: 3rem !important;
}
.mb-lg-5 {
margin-bottom: 3rem !important;
}
.ml-lg-5 {
margin-left: 3rem !important;
}
.mx-lg-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-lg-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-lg-0 {
padding: 0 0 !important;
}
.pt-lg-0 {
padding-top: 0 !important;
}
.pr-lg-0 {
padding-right: 0 !important;
}
.pb-lg-0 {
padding-bottom: 0 !important;
}
.pl-lg-0 {
padding-left: 0 !important;
}
.px-lg-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-lg-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-lg-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-lg-1 {
padding-top: 0.25rem !important;
}
.pr-lg-1 {
padding-right: 0.25rem !important;
}
.pb-lg-1 {
padding-bottom: 0.25rem !important;
}
.pl-lg-1 {
padding-left: 0.25rem !important;
}
.px-lg-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-lg-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-lg-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-lg-2 {
padding-top: 0.5rem !important;
}
.pr-lg-2 {
padding-right: 0.5rem !important;
}
.pb-lg-2 {
padding-bottom: 0.5rem !important;
}
.pl-lg-2 {
padding-left: 0.5rem !important;
}
.px-lg-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-lg-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-lg-3 {
padding: 1rem 1rem !important;
}
.pt-lg-3 {
padding-top: 1rem !important;
}
.pr-lg-3 {
padding-right: 1rem !important;
}
.pb-lg-3 {
padding-bottom: 1rem !important;
}
.pl-lg-3 {
padding-left: 1rem !important;
}
.px-lg-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-lg-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-lg-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-lg-4 {
padding-top: 1.5rem !important;
}
.pr-lg-4 {
padding-right: 1.5rem !important;
}
.pb-lg-4 {
padding-bottom: 1.5rem !important;
}
.pl-lg-4 {
padding-left: 1.5rem !important;
}
.px-lg-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-lg-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-lg-5 {
padding: 3rem 3rem !important;
}
.pt-lg-5 {
padding-top: 3rem !important;
}
.pr-lg-5 {
padding-right: 3rem !important;
}
.pb-lg-5 {
padding-bottom: 3rem !important;
}
.pl-lg-5 {
padding-left: 3rem !important;
}
.px-lg-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-lg-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-lg-auto {
margin: auto !important;
}
.mt-lg-auto {
margin-top: auto !important;
}
.mr-lg-auto {
margin-right: auto !important;
}
.mb-lg-auto {
margin-bottom: auto !important;
}
.ml-lg-auto {
margin-left: auto !important;
}
.mx-lg-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-lg-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
@media (min-width: 1200px) {
.m-xl-0 {
margin: 0 0 !important;
}
.mt-xl-0 {
margin-top: 0 !important;
}
.mr-xl-0 {
margin-right: 0 !important;
}
.mb-xl-0 {
margin-bottom: 0 !important;
}
.ml-xl-0 {
margin-left: 0 !important;
}
.mx-xl-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-xl-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-xl-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-xl-1 {
margin-top: 0.25rem !important;
}
.mr-xl-1 {
margin-right: 0.25rem !important;
}
.mb-xl-1 {
margin-bottom: 0.25rem !important;
}
.ml-xl-1 {
margin-left: 0.25rem !important;
}
.mx-xl-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-xl-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-xl-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-xl-2 {
margin-top: 0.5rem !important;
}
.mr-xl-2 {
margin-right: 0.5rem !important;
}
.mb-xl-2 {
margin-bottom: 0.5rem !important;
}
.ml-xl-2 {
margin-left: 0.5rem !important;
}
.mx-xl-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-xl-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-xl-3 {
margin: 1rem 1rem !important;
}
.mt-xl-3 {
margin-top: 1rem !important;
}
.mr-xl-3 {
margin-right: 1rem !important;
}
.mb-xl-3 {
margin-bottom: 1rem !important;
}
.ml-xl-3 {
margin-left: 1rem !important;
}
.mx-xl-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-xl-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-xl-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-xl-4 {
margin-top: 1.5rem !important;
}
.mr-xl-4 {
margin-right: 1.5rem !important;
}
.mb-xl-4 {
margin-bottom: 1.5rem !important;
}
.ml-xl-4 {
margin-left: 1.5rem !important;
}
.mx-xl-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-xl-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-xl-5 {
margin: 3rem 3rem !important;
}
.mt-xl-5 {
margin-top: 3rem !important;
}
.mr-xl-5 {
margin-right: 3rem !important;
}
.mb-xl-5 {
margin-bottom: 3rem !important;
}
.ml-xl-5 {
margin-left: 3rem !important;
}
.mx-xl-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-xl-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-xl-0 {
padding: 0 0 !important;
}
.pt-xl-0 {
padding-top: 0 !important;
}
.pr-xl-0 {
padding-right: 0 !important;
}
.pb-xl-0 {
padding-bottom: 0 !important;
}
.pl-xl-0 {
padding-left: 0 !important;
}
.px-xl-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-xl-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-xl-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-xl-1 {
padding-top: 0.25rem !important;
}
.pr-xl-1 {
padding-right: 0.25rem !important;
}
.pb-xl-1 {
padding-bottom: 0.25rem !important;
}
.pl-xl-1 {
padding-left: 0.25rem !important;
}
.px-xl-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-xl-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-xl-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-xl-2 {
padding-top: 0.5rem !important;
}
.pr-xl-2 {
padding-right: 0.5rem !important;
}
.pb-xl-2 {
padding-bottom: 0.5rem !important;
}
.pl-xl-2 {
padding-left: 0.5rem !important;
}
.px-xl-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-xl-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-xl-3 {
padding: 1rem 1rem !important;
}
.pt-xl-3 {
padding-top: 1rem !important;
}
.pr-xl-3 {
padding-right: 1rem !important;
}
.pb-xl-3 {
padding-bottom: 1rem !important;
}
.pl-xl-3 {
padding-left: 1rem !important;
}
.px-xl-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-xl-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-xl-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-xl-4 {
padding-top: 1.5rem !important;
}
.pr-xl-4 {
padding-right: 1.5rem !important;
}
.pb-xl-4 {
padding-bottom: 1.5rem !important;
}
.pl-xl-4 {
padding-left: 1.5rem !important;
}
.px-xl-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-xl-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-xl-5 {
padding: 3rem 3rem !important;
}
.pt-xl-5 {
padding-top: 3rem !important;
}
.pr-xl-5 {
padding-right: 3rem !important;
}
.pb-xl-5 {
padding-bottom: 3rem !important;
}
.pl-xl-5 {
padding-left: 3rem !important;
}
.px-xl-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-xl-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-xl-auto {
margin: auto !important;
}
.mt-xl-auto {
margin-top: auto !important;
}
.mr-xl-auto {
margin-right: auto !important;
}
.mb-xl-auto {
margin-bottom: auto !important;
}
.ml-xl-auto {
margin-left: auto !important;
}
.mx-xl-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-xl-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
.text-justify {
text-align: justify !important;
}
.text-nowrap {
white-space: nowrap !important;
}
.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.text-left {
text-align: left !important;
}
.text-right {
text-align: right !important;
}
.text-center {
text-align: center !important;
}
@media (min-width: 576px) {
.text-sm-left {
text-align: left !important;
}
.text-sm-right {
text-align: right !important;
}
.text-sm-center {
text-align: center !important;
}
}
@media (min-width: 768px) {
.text-md-left {
text-align: left !important;
}
.text-md-right {
text-align: right !important;
}
.text-md-center {
text-align: center !important;
}
}
@media (min-width: 992px) {
.text-lg-left {
text-align: left !important;
}
.text-lg-right {
text-align: right !important;
}
.text-lg-center {
text-align: center !important;
}
}
@media (min-width: 1200px) {
.text-xl-left {
text-align: left !important;
}
.text-xl-right {
text-align: right !important;
}
.text-xl-center {
text-align: center !important;
}
}
.text-lowercase {
text-transform: lowercase !important;
}
.text-uppercase {
text-transform: uppercase !important;
}
.text-capitalize {
text-transform: capitalize !important;
}
.font-weight-normal {
font-weight: normal;
}
.font-weight-bold {
font-weight: bold;
}
.font-italic {
font-style: italic;
}
.text-white {
color: #fff !important;
}
.text-muted {
color: #636c72 !important;
}
a.text-muted:focus, a.text-muted:hover {
color: #4b5257 !important;
}
.text-primary {
color: #0275d8 !important;
}
a.text-primary:focus, a.text-primary:hover {
color: #025aa5 !important;
}
.text-success {
color: #5cb85c !important;
}
a.text-success:focus, a.text-success:hover {
color: #449d44 !important;
}
.text-info {
color: #5bc0de !important;
}
a.text-info:focus, a.text-info:hover {
color: #31b0d5 !important;
}
.text-warning {
color: #f0ad4e !important;
}
a.text-warning:focus, a.text-warning:hover {
color: #ec971f !important;
}
.text-danger {
color: #d9534f !important;
}
a.text-danger:focus, a.text-danger:hover {
color: #c9302c !important;
}
.text-gray-dark {
color: #292b2c !important;
}
a.text-gray-dark:focus, a.text-gray-dark:hover {
color: #101112 !important;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.invisible {
visibility: hidden !important;
}
.hidden-xs-up {
display: none !important;
}
@media (max-width: 575px) {
.hidden-xs-down {
display: none !important;
}
}
@media (min-width: 576px) {
.hidden-sm-up {
display: none !important;
}
}
@media (max-width: 767px) {
.hidden-sm-down {
display: none !important;
}
}
@media (min-width: 768px) {
.hidden-md-up {
display: none !important;
}
}
@media (max-width: 991px) {
.hidden-md-down {
display: none !important;
}
}
@media (min-width: 992px) {
.hidden-lg-up {
display: none !important;
}
}
@media (max-width: 1199px) {
.hidden-lg-down {
display: none !important;
}
}
@media (min-width: 1200px) {
.hidden-xl-up {
display: none !important;
}
}
.hidden-xl-down {
display: none !important;
}
.visible-print-block {
display: none !important;
}
@media print {
.visible-print-block {
display: block !important;
}
}
.<API key> {
display: none !important;
}
@media print {
.<API key> {
display: inline !important;
}
}
.<API key> {
display: none !important;
}
@media print {
.<API key> {
display: inline-block !important;
}
}
@media print {
.hidden-print {
display: none !important;
}
}
btn-primary {
color: #fff;
background-color: #000000;
border-color: #000000;
}
/* This is to stop CSS preprocessor, such as Sass, Less, or Stylus, from downloading the bootstrap map file. */
/*# sourceMappingURL= */
|
 0
To use the Closet Cleanup skill, try saying...
* *Alexa open clean up*
* *Yes*
* *Start again*
This skill helps you to decide if you should keep, donate or throw away things from your closet. Makes it easier to get rid of old and non fitting cloth.
***
Skill Details
* **Invocation Name:** clean up
* **Category:** null
* **ID:** amzn1.ask.skill.<API key>
* **ASIN:** B01M6CVCB3
* **Author:** MMW
* **Release Date:** November 25, 2016 @ 03:39:29
* **In-App Purchasing:** No
|
using System;
using System.Text;
using System.Web;
using System.Web.Http.Description;
namespace WebApiAuthSample.Areas.HelpPage
{
public static class <API key>
{
<summary>
Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}"
</summary>
<param name="description">The <see cref="ApiDescription"/>.</param>
<returns>The ID as a string.</returns>
public static string GetFriendlyId(this ApiDescription description)
{
string path = description.RelativePath;
string[] urlParts = path.Split('?');
string localPath = urlParts[0];
string queryKeyString = null;
if (urlParts.Length > 1)
{
string query = urlParts[1];
string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys;
queryKeyString = String.Join("_", queryKeys);
}
StringBuilder friendlyPath = new StringBuilder();
friendlyPath.AppendFormat("{0}-{1}",
description.HttpMethod.Method,
localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty));
if (queryKeyString != null)
{
friendlyPath.AppendFormat("_{0}", queryKeyString.Replace('.', '-'));
}
return friendlyPath.ToString();
}
}
}
|
.error {
margin: 10px 0px;
padding:12px;
color: #D8000C;
background-color: #FFBABA;
}
|
source ~/.<API key>.zsh
# functions and load-onces stuff for the environment
echo "function config"
source ~/.functions_shell.sh
source ~/.functions_colors.sh
source ~/.functions_dev.sh
source ~/.functions_osx.sh
source ~/.functions_graphics.sh
# Vim IDE settings
source ~/.bash_vim_append
test -e "${HOME}/.dotfiles/mac/<API key>.sh" && source "${HOME}/.dotfiles/mac/<API key>.sh"
alias mkdir=/bin/mkdir
alias ll='ls -alGh'
export PATH="$HOME/.dotfiles/bin:$PATH"
|
#ifndef <API key>
#define <API key>
namespace alinous {
template <typename T, typename H, typename C>
class HashedRawArray {
public:
void* operator new(size_t size) throw() {
return SysThread::getMalloc()->allocate(size);
}
void* operator new(size_t size, MemoryInterface* ctx) throw() {
return ctx->alloc->allocate(size);
}
void operator delete(void* p, size_t size) throw() {
SysThread::getMalloc()->freeMemory((char*)p, size);
}
int MAX_HASH = 128;
int MAX_HASH_MASK = 128 - 1;
RawArray<T, C> **arrays;
RawBitSet bitset;
const H hashBaseFunc;
int numElements;
HashedRawArray(int maxHash) throw() : MAX_HASH(maxHash), MAX_HASH_MASK(maxHash - 1),
bitset(MAX_HASH / 8), hashBaseFunc(), numElements(0)
{
initArrays();
}
HashedRawArray() throw() :
bitset(MAX_HASH / 8), hashBaseFunc(), numElements(0)
{
initArrays();
}
private:
void initArrays() throw() {
this->MAX_HASH_MASK = this->MAX_HASH - 1;
this->arrays = new RawArray<T, C>* [this->MAX_HASH];
int maxLoop = this->MAX_HASH;
RawArray<T, C>** ptr = this->arrays;
for(int i = 0; i != maxLoop; ++i){
ptr[i] = new RawArray<T, C>();
}
}
public:
virtual ~HashedRawArray() throw() {
int maxLoop = this->MAX_HASH;
for(int i = 0; i != maxLoop; ++i){
delete this->arrays[i];
}
delete [] this->arrays;
this->arrays = nullptr;
}
int size() const throw() {
return this->numElements;
}
T* addElement(T* ptr) throw() {
u_int64_t hashcode = getHash(ptr);
arrays[hashcode]-><API key>(ptr);
bitset.set(hashcode);
++numElements;
return ptr;
}
bool removeByObj(const T* obj) throw() {
int hashcode = getHash(obj);
bool result = arrays[hashcode]->removeByObj(obj);
if(result){
--numElements;
}
if(arrays[hashcode]->size() == 0){
bitset.clear(hashcode);
}
return result;
}
T* search(const T* value)throw(){
int hashcode = getHash(value);
return arrays[hashcode]->search(value);
}
void reset() throw() {
for(int i = 0; i != MAX_HASH; i++){
arrays[i]->reset();
}
bitset.clear();
numElements = 0;
}
class Iterator {
public:
int MAX_HASH;
int hashCode;
int index;
RawArray<T, C>** arrays;
const RawBitSet* bitset;
Iterator(RawArray<T, C>** ptr, RawBitSet* bitset, int MAX_HASH) throw() : MAX_HASH(MAX_HASH), hashCode(0), index(0), arrays(ptr), bitset(bitset) {}
bool hasNext() const throw() {
RawArray<T, C>* current = arrays[hashCode];
if(current->size() == index){
const int nextHash = hashCode + 1;
if(nextHash == MAX_HASH){
return false;
}
int next = bitset->nextSetBit(nextHash);
if(next < 0){
return false;
}
return true;
}
return true;
}
T* next() throw() {
const RawArray<T, C>* current = arrays[hashCode];
if(current->size() == index){
const int nextHash = hashCode + 1;
int next = bitset->nextSetBit(nextHash);
if(nextHash == MAX_HASH || next < 0){
return nullptr;
}
index = 0;
hashCode = next;
}
current = *(arrays + hashCode);
return current->get(index++);
}
};
Iterator iterator() throw() {
return Iterator(arrays, &bitset, this->MAX_HASH);
}
private:
u_int64_t getHash(const T* ptr) const throw() {
u_int64_t num = hashBaseFunc(ptr);
//int code = FNVHash::fnv_1_hash_32((uint8_t *)&num, sizeof(u_int64_t)) % MAX_HASH;
//int code = (num >> 1) % MAX_HASH;
u_int64_t code = ((num * 2654404609L) >> 32) & MAX_HASH_MASK;
//wprintf(L"%llx --> %d\n", num, code);
return code;
}
};
} /* namespace alinous */
#endif /* <API key> */
|
$(document).ready(function(){hopscotch.startTour({id:"my-intro",steps:[{target:"logo-tour",title:"Logo Here",content:"You can find here status of user who's currently online.",placement:"bottom",yOffset:10},{target:"display-title-tour",title:"Display Text",content:"Click on the button and make sidebar navigation small.",placement:"top",zindex:999},{target:"page-title-tour",title:"User settings",content:"You can edit you profile info here.",placement:"bottom",zindex:999},{target:"thankyou-tour",title:"Thank you !",content:"Here you can change theme skins and other features.",placement:"top",zindex:999}],showPrevButton:!0})});
|
package main
import (
"context"
"fmt"
"log"
"net/http"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
)
const (
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
timeLayout = "02/01/2006"
storagePath = ".local/share"
baseURL = "https:
)
var (
ErrDisabled = fmt.Errorf("disabled on weekends")
)
func GetFunds(ctx context.Context, codes ...string) ([]Fund, error) {
c := &http.Client{Timeout: time.Minute}
today := time.Now()
switch today.Weekday() {
case 6, 0: // saturday and sunday
return nil, ErrDisabled
}
var funds []Fund
for _, code := range codes {
code = strings.ToUpper(code)
u := fmt.Sprintf(baseURL, code)
req, _ := http.NewRequest("GET", u, nil)
req = req.WithContext(ctx)
req.Header.Set("User-Agent", userAgent)
req.Header.Set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
resp, err := c.Do(req)
if err != nil {
return nil, err
}
defer resp.Body.Close()
if resp.StatusCode != 200 {
log.Printf("unexpected status code: %v", resp.StatusCode)
continue
}
doc, err := goquery.<API key>(resp.Body)
if err != nil {
return nil, err
}
fundName := strings.TrimSpace(doc.Find(".main-indicators h2").Text())
fund := Fund{
Code: code,
Name: fundName,
}
fund.Price = atof(doc.Find(".top-list > li:nth-child(1) span").Text())
fund.Daily = atof(doc.Find(".top-list > li:nth-child(2) span").Text())
doc.Find(".price-indicators li span").Each(func(i int, sel *goquery.Selection) {
changePercent := atof(sel.Text())
switch i {
case 0:
fund.Monthly = changePercent
case 1:
fund.Quarterly = changePercent
case 2:
fund.Biannual = changePercent
case 3:
fund.Annual = changePercent
}
})
funds = append(funds, fund)
}
return funds, nil
}
type Fund struct {
Type FundType
Code string
Name string
Price float64
Daily float64
Monthly float64
Quarterly float64
Biannual float64
Annual float64
}
type FundType uint8
const (
CommodityFunds FundType = 3
FixedIncomeFunds FundType = 6
ForeignEquityFunds FundType = 111
)
func atof(s string) float64 {
s = strings.TrimPrefix(s, "%")
s = strings.ReplaceAll(s, ",", ".")
f, _ := strconv.ParseFloat(s, 64)
return f
}
|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>BitSeeds</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The BitSeeds developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http:
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http:
<translation>
Tio ĉi estas eksperimenta programo.
Eldonita laŭ la permesilo MIT/X11. Vidu la kunan dosieron COPYING aŭ http:
Tiu ĉi produkto enhavas erojn kreitajn de la "OpenSSL Project" por uzo en la "OpenSSL Toolkit" (http:
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Duoble-klaku por redakti adreson aŭ etikedon</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Krei novan adreson</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Kopii elektitan adreson al la tondejo</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your BitSeeds addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Kopii Adreson</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Forigi la elektitan adreson el la listo</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Forigi</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Kopii &Etikedon</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Redakti</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Perkome disigita dosiero (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Etikedo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(neniu etikedo)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Dialogo pri pasfrazo</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Enigu pasfrazon</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nova pasfrazo</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Ripetu la novan pasfrazon</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Enigu novan pasfrazon por la monujo.<br/>Bonvolu uzi pasfrazon kun <b>almenaŭ 10 hazardaj signoj</b>, aŭ <b>almenaŭ ok vortoj</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Ĉifri la monujon</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Ĉi tiu operacio bezonas vian monujan pasfrazon, por malŝlosi la monujon.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Malŝlosi la monujon</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Ĉi tiu operacio bezonas vian monujan pasfrazon, por malĉifri la monujon.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Malĉifri la monujon</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Ŝanĝi la pasfrazon</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Tajpu la malnovan kaj novan monujajn pasfrazojn.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Konfirmo de ĉifrado de la monujo</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Ĉu vi certas, ke vi volas ĉifri la monujon?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>GRAVE: antaŭaj sekur-kopioj de via monujo-dosiero estas forigindaj kiam vi havas nove kreitan ĉifritan monujo-dosieron. Pro sekureco, antaŭaj kopioj de la neĉifrita dosiero ne plu funkcios tuj kiam vi ekuzos la novan ĉifritan dosieron.</translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Atentu: la majuskla baskulo estas ŝaltita!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>La monujo estas ĉifrita</translation>
</message>
<message>
<location line="-58"/>
<source>BitSeeds will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Ĉifrado de la monujo fiaskis</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Ĉifrado de monujo fiaskis pro interna eraro. Via monujo ne estas ĉifrita.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>La pasfrazoj entajpitaj ne samas.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>Malŝloso de la monujo fiaskis</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>La pasfrazo enigita por ĉifrado de monujo ne ĝustas.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Malĉifrado de la monujo fiaskis</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Vi sukcese ŝanĝis la pasfrazon de la monujo.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+280"/>
<source>Sign &message...</source>
<translation>Subskribi &mesaĝon...</translation>
</message>
<message>
<location line="+242"/>
<source>Synchronizing with network...</source>
<translation>Sinkronigante kun reto...</translation>
</message>
<message>
<location line="-308"/>
<source>&Overview</source>
<translation>&Superrigardo</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Vidigi ĝeneralan superrigardon de la monujo</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transakcioj</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Esplori historion de transakcioj</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>&Eliri</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Eliri la aplikaĵon</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Pri &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Vidigi informojn pri Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Agordoj...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>Ĉifri &Monujon...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Krei sekurkopion de la monujo...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>Ŝanĝi &Pasfrazon...</translation>
</message>
<message numerus="yes">
<location line="+250"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-247"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Send coins to a BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Modify configuration options for BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Krei alilokan sekurkopion de monujo</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Ŝanĝi la pasfrazon por ĉifri la monujon</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>Sen&cimiga fenestro</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Malfermi konzolon de sencimigo kaj diagnozo</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Kontroli mesaĝon...</translation>
</message>
<message>
<location line="-200"/>
<source>BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Monujo</translation>
</message>
<message>
<location line="+178"/>
<source>&About BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Montri / Kaŝi</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>&File</source>
<translation>&Dosiero</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Agordoj</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Helpo</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Langeto-breto</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>BitSeeds client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+70"/>
<source>%n active connection(s) to BitSeeds network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-284"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+288"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Ĝisdata</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Ĝisdatigante...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Sendita transakcio</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Envenanta transakcio</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Dato: %1
Sumo: %2
Tipo: %3
Adreso: %4
</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid BitSeeds address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Monujo estas <b>ĉifrita</b> kaj aktuale <b>malŝlosita</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Monujo estas <b>ĉifrita</b> kaj aktuale <b>ŝlosita</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n horo</numerusform><numerusform>%n horoj</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n tago</numerusform><numerusform>%n tagoj</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. BitSeeds can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Reta Averto</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation>Kvanto:</translation>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bajtoj:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Sumo:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioritato:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Malalta Eligo:</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation>ne</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation>Post krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation>Restmono:</translation>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation>(mal)elekti ĉion</translation>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation>Arboreĝimo</translation>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation>Listreĝimo</translation>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation>Konfirmoj</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Konfirmita</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation>Prioritato</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Kopii adreson</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopii etikedon</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Kopii sumon</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Kopii transakcian ID-on</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>Kopii kvanton</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>Kopii krompagon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Kopii post krompago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Kopii bajtojn</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Kopii prioritaton</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Kopii malaltan eligon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Kopii restmonon</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation>plej alta</translation>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation>alta</translation>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation>mezalta</translation>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation>meza</translation>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation>mezmalalta</translation>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation>malalta</translation>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation>plej malalta</translation>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation>jes</translation>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(neniu etikedo)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation>restmono de %1 (%2)</translation>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation>(restmono)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Redakti Adreson</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Etikedo</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Adreso</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Nova adreso por ricevi</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Nova adreso por sendi</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Redakti adreson por ricevi</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Redakti adreson por sendi</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>La adreso enigita "%1" jam ekzistas en la adresaro.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid BitSeeds address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Ne eblis malŝlosi monujon.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Fiaskis kreo de nova ŝlosilo.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>BitSeeds-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Agordaĵoj</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>Ĉ&efa</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Krompago</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start BitSeeds after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start BitSeeds on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Reto</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the BitSeeds client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Mapigi pordon per &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the BitSeeds network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>Prokurila &IP:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Pordo:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>la pordo de la prokurilo (ekz. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>Versio de SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>la versio de SOCKS ĉe la prokurilo (ekz. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Fenestro</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Montri nur sistempletan piktogramon post minimumigo de la fenestro.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimumigi al la sistempleto anstataŭ al la taskopleto</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Minimumigi la aplikaĵon anstataŭ eliri kaj ĉesi kiam la fenestro estas fermita. Se tiu ĉi estas agordita, la aplikaĵo ĉesas nur kiam oni elektas "Eliri" el la menuo.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimumigi je fermo</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Aspekto</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>&Lingvo de la fasado:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting BitSeeds.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unuo por vidigi sumojn:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Elekti la defaŭltan manieron por montri bitmonajn sumojn en la interfaco, kaj kiam vi sendos bitmonon.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show BitSeeds addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Montri adresojn en la listo de transakcioj</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation>Ĉu montri detalan adres-regilon, aŭ ne.</translation>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&Bone</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Nuligi</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>defaŭlta</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting BitSeeds.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>La prokurila adreso estas malvalida.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formularo</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the BitSeeds network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Monujo</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation>via aktuala elspezebla saldo</translation>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Nematura:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Minita saldo, kiu ankoraŭ ne maturiĝis</translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Totalo:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>via aktuala totala saldo</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Lastaj transakcioj</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>nesinkronigita</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nomo de kliento</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>neaplikebla</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Versio de kliento</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informoj</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>uzas OpenSSL-version</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Horo de lanĉo</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Reto</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Nombro de konektoj</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Blokĉeno</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Aktuala nombro de blokoj</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Supozita totalo da blokoj</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Horo de la lasta bloko</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Malfermi</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the BitSeeds-Qt help message to get a list with possible BitSeeds command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Konzolo</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Dato de kompilado</translation>
</message>
<message>
<location line="-104"/>
<source>BitSeeds - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>BitSeeds Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Sencimiga protokoldosiero</translation>
</message>
<message>
<location line="+7"/>
<source>Open the BitSeeds debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Malplenigi konzolon</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the BitSeeds RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Uzu la sagojn supran kaj malsupran por esplori la historion, kaj <b>stir-L</b> por malplenigi la ekranon.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Tajpu <b>help</b> por superrigardo de la disponeblaj komandoj.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Sendi Monon</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation>Monregaj Opcioj</translation>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation>Enigoj...</translation>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation>Nesufiĉa mono!</translation>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation>Kvanto:</translation>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bajtoj:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Sumo:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 BITS</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioritato:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Malalta Eligo:</translation>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation>Post krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Sendi samtempe al pluraj ricevantoj</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Aldoni &Ricevonton</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Forigi ĉion</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 BITS</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Konfirmi la sendon</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>Ŝendi</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a BitSeeds address (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation>Kopii kvanton</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopii sumon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation>Kopii krompagon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Kopii post krompago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Kopii bajtojn</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Kopii prioritaton</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Kopii malaltan eligon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Kopii restmonon</translation>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Konfirmi sendon de bitmono</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>La adreso de la ricevonto ne validas. Bonvolu kontroli.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>La pagenda sumo devas esti pli ol 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>La sumo estas pli granda ol via saldo.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>La sumo kun la %1 krompago estas pli granda ol via saldo.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Iu adreso estas ripetita. Vi povas sendi al ĉiu adreso po unufoje en iu send-operacio.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(neniu etikedo)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>&Sumo:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>&Ricevonto:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Tajpu etikedon por tiu ĉi adreso kaj aldonu ĝin al via adresaro</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Etikedo:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Alglui adreson el tondejo</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a BitSeeds address (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Subskriboj - Subskribi / Kontroli mesaĝon</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>&Subskribi Mesaĝon</translation>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Vi povas subskribi mesaĝon per viaj adresoj, por pravigi ke vi estas la posedanto de tiuj adresoj. Atentu, ke vi ne subskriu ion neprecizan, ĉar trompisto povus ruzi kontraŭ vi kaj ŝteli vian identecon. Subskribu nur plene detaligitaj deklaroj pri kiuj vi konsentas.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Alglui adreson de tondejo</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Tajpu la mesaĝon, kiun vi volas sendi, cîi tie</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Kopii la aktualan subskribon al la tondejo</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation>Reagordigi ĉiujn prisubskribajn kampojn</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Forigi Ĉion</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Kontroli Mesaĝon</translation>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation>Enmeti la subskriban adreson, la mesaĝon (kune kun ĉiu linisalto, spaceto, taboj, ktp. precize) kaj la subskribon ĉi sube por kontroli la mesaĝon. Atentu, ke vi ne komprenu per la subskribo pli ol la enhavo de la mesaĝo mem, por eviti <API key>.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Reagordigi ĉiujn prikontrolajn kampojn</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a BitSeeds address (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Klaku "Subskribi Mesaĝon" por krei subskribon</translation>
</message>
<message>
<location line="+3"/>
<source>Enter BitSeeds signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>La adreso, kiun vi enmetis, estas nevalida.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Bonvolu kontroli la adreson kaj reprovi.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>La adreso, kiun vi enmetis, referencas neniun ŝlosilon.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>Malŝloso de monujo estas nuligita.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>La privata ŝlosilo por la enigita adreso ne disponeblas.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Subskribo de mesaĝo fiaskis.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Mesaĝo estas subskribita.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Ne eblis malĉifri la subskribon.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Bonvolu kontroli la subskribon kaj reprovu.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>La subskribo ne kongruis kun la mesaĝ-kompilaĵo.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Kontrolo de mesaĝo malsukcesis.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Mesaĝo sukcese kontrolita.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Malferma ĝis %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/senkonekte</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/nekonfirmite</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 konfirmoj</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Stato</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, elsendita(j) tra %n nodo</numerusform><numerusform>, elsendita(j) tra %n nodoj</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Fonto</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Kreita</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>De</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Al</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>propra adreso</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>etikedo</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Kredito</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>maturiĝos post %n bloko</numerusform><numerusform>maturiĝos post %n blokoj</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>ne akceptita</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Debeto</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Krompago</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Neta sumo</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Mesaĝo</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Komento</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>Transakcia ID</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Sencimigaj informoj</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transakcio</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>Enigoj</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>vera</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>malvera</translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, ankoraŭ ne elsendita sukcese</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>nekonata</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Transaction details</source>
<translation>Transakciaj detaloj</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Tiu ĉi panelo montras detalan priskribon de la transakcio</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../<API key>.cpp" line="+226"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Malferma ĝis %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Konfirmita (%1 konfirmoj)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Malferma dum ankoraŭ %n bloko</numerusform><numerusform>Malferma dum ankoraŭ %n blokoj</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation>Senkonekte</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation>Nekonfirmita</translation>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Tiun ĉi blokon ne ricevis ajna alia nodo, kaj ĝi verŝajne ne akceptiĝos!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Kreita sed ne akceptita</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Ricevita kun</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Ricevita de</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Sendita al</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pago al vi mem</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Minita</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>neaplikebla</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Transakcia stato. Ŝvebi super tiu ĉi kampo por montri la nombron de konfirmoj.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Dato kaj horo kiam la transakcio alvenis.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tipo de transakcio.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Celadreso de la transakcio.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Sumo elprenita de aŭ aldonita al la saldo.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Ĉiuj</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hodiaŭ</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Ĉi-semajne</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Ĉi-monate</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Pasintmonate</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Ĉi-jare</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Intervalo...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Ricevita kun</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Sendita al</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Al vi mem</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Minita</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Aliaj</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Tajpu adreson aŭ etikedon por serĉi</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Minimuma sumo</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Kopii adreson</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopii etikedon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopii sumon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Kopii transakcian ID-on</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Redakti etikedon</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Montri detalojn de transakcio</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Perkome disigita dosiero (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Konfirmita</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Etikedo</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Intervalo:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>al</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>BitSeeds version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Uzado:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or bitseedsd</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Listigi komandojn</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Vidigi helpon pri iu komando</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Agordoj:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: bitseeds.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: bitseedsd.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation>Specifi monujan dosieron (ene de dosierujo por datumoj)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Specifi dosieron por datumoj</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Specifi grandon de datumbazo je megabajtoj (defaŭlte: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Subteni maksimume <n> konektojn al samtavolanoj (defaŭlte: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Konekti al nodo por ricevi adresojn de samtavolanoj, kaj malkonekti</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Specifi vian propran publikan adreson</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Sojlo por malkonekti misagantajn samtavolanojn (defaŭlte: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Nombro da sekundoj por rifuzi rekonekton de misagantaj samtavolanoj (defaŭlte: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Eraro okazis dum estigo de RPC-pordo %u por aŭskulti per IPv4: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Akcepti komandojn JSON-RPC kaj el komandlinio</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Ruli fone kiel demono kaj akcepti komandojn</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Uzi la test-reton</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Akcepti konektojn el ekstere (defaŭlte: 1 se ne estas -proxy nek -connect)</translation>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Eraro okazis dum estigo de RPC-pordo %u por aŭskulti per IPv6; retrodefaŭltas al IPv4: %s</translation>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Averto: -paytxfee estas agordita per tre alta valoro! Tio estas la krompago, kion vi pagos se vi sendas la transakcion.</translation>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong BitSeeds will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Averto: okazis eraro dum lego de wallet.dat! Ĉiuj ŝlosiloj sukcese legiĝis, sed la transakciaj datumoj aŭ la adresaro eble mankas aŭ malĝustas.</translation>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>Averto: via wallet.dat estas difektita, sed la datumoj sukcese saviĝis! La originala wallet.dat estas nun konservita kiel wallet.{timestamp}.bak en %s; se via saldo aŭ transakcioj estas malĝustaj vi devus restaŭri per alia sekurkopio.</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Provo ripari privatajn ŝlosilojn el difektita wallet.dat</translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Blok-kreaj agordaĵoj:</translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Konekti nur al specifita(j) nodo(j)</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Malkovri la propran IP-adreson (defaŭlte: 1 dum aŭskultado sen -externalip)</translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Ne sukcesis aŭskulti ajnan pordon. Uzu -listen=0 se tion vi volas.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Maksimuma po riceva bufro por konektoj, <n>*1000 bajtoj (defaŭlte: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Maksimuma po senda bufro por konektoj, <n>*1000 bajtoj (defaŭlte: 1000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Konekti nur la nodoj en la reto <net> (IPv4, IPv6 aŭ Tor)</translation>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>SSL-agordaĵoj: (vidu la vikio de Bitmono por instrukcioj pri agordado de SSL)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Sendi spurajn/sencimigajn informojn al la konzolo anstataŭ al dosiero debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Agordi minimuman grandon de blokoj je bajtoj (defaŭlte: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Malpligrandigi la sencimigan protokol-dosieron kiam kliento lanĉiĝas (defaŭlte: 1 kiam mankas -debug)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Specifi konektan tempolimon je milisekundoj (defaŭlte: 5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Uzi UPnP por mapi la aŭskultan pordon (defaŭlte: 0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Uzi UPnP por mapi la aŭskultan pordon (defaŭlte: 1 dum aŭskultado)</translation>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Salutnomo por konektoj JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Averto: tiu ĉi versio estas eksdata. Vi bezonas ĝisdatigon!</translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat estas difektita, riparo malsukcesis</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Pasvorto por konektoj JSON-RPC</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=bitseedsrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "BitSeeds Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Permesi konektojn JSON-RPC de specifa IP-adreso</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Sendi komandon al nodo ĉe <ip> (defaŭlte: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Plenumi komandon kiam plej bona bloko ŝanĝiĝas (%s en cmd anstataŭiĝas per bloka haketaĵo)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Plenumi komandon kiam monuja transakcio ŝanĝiĝas (%s en cmd anstataŭiĝas per TxID)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Ĝisdatigi monujon al plej lasta formato</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Agordi la grandon de la ŝlosilo-vico al <n> (defaŭlte: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Reskani la blokĉenon por mankantaj monujaj transakcioj</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Uzi OpenSSL (https) por konektoj JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Dosiero de servila atestilo (defaŭlte: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Dosiero de servila privata ŝlosilo (defaŭlte: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Tiu ĉi helpmesaĝo</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. BitSeeds is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Ne eblis bindi al %s en tiu ĉi komputilo (bind resendis eraron %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Permesi DNS-elserĉojn por -addnote, -seednote kaj -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Ŝarĝante adresojn...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Eraro dum ŝargado de wallet.dat: monujo difektita</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart BitSeeds to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Eraro dum ŝargado de wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Nevalid adreso -proxy: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Nekonata reto specifita en -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Nekonata versio de -socks petita: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Ne eblas trovi la adreson -bind: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Ne eblas trovi la adreson -externalip: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Nevalida sumo por -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Nevalida sumo</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Nesufiĉa mono</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Ŝarĝante blok-indekson...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Aldoni nodon por alkonekti kaj provi daŭrigi la malferman konekton</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. BitSeeds is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Ŝargado de monujo...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Ne eblas malpromocii monujon</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Ne eblas skribi defaŭltan adreson</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Reskanado...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Ŝargado finiĝis</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Por uzi la agordon %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Eraro</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Vi devas agordi rpcpassword=<password> en la konfigura dosiero:
%s
Se la dosiero ne ekzistas, kreu ĝin kun permeso "nur posedanto rajtas legi".</translation>
</message>
</context>
</TS>
|
<?php
namespace Rudolf\Modules\Modules\One\Admin;
use Rudolf\Component\Alerts\Alert;
use Rudolf\Component\Alerts\AlertsCollection;
use Rudolf\Component\Modules\ConfigEditor;
use Rudolf\Framework\Controller\AdminController;
class SwitchController extends AdminController
{
private $blacklist = [
'Dashboard',
'Modules',
'Users',
];
/**
* @param $name
*
* @throws \Exception
*/
public function switchStatus($name)
{
$configEditor = new ConfigEditor();
$status = $configEditor->getStatus($name);
if (null === $status) {
AlertsCollection::add(new Alert(
'error',
'Wystąpił nieoczekiwany błąd'
));
$this->redirect(DIR.'/admin/modules');
}
switch ($status) {
case 1:
if (in_array($name, $this->blacklist)) {
AlertsCollection::add(new Alert(
'error',
'Nie można wyłączyć modułu '.$name.'.'
));
$this->redirect(DIR.'/admin/modules?de', 302);
break;
}
$configEditor->deactivate($name);
$configEditor->save();
AlertsCollection::add(new Alert(
'success',
'Pomyślnie wyłączono moduł '.$name.'.'
));
$this->redirect(DIR.'/admin/modules?de', 302);
break;
case 0:
$configEditor->activate($name);
$configEditor->save();
AlertsCollection::add(new Alert(
'success',
'Pomyślnie włączono moduł '.$name.'.'
));
$this->redirect(DIR.'/admin/modules?ac', 302);
break;
}
}
}
|
<?
// DATABASE
define("DB_SERVER", "localhost"); //the mysql server address - often, localhost
define("DB_USERNAME", "root"); //the mysql username
define("DB_PASSWORD", "11913431"); //the mysql password
define("DB_NAME", "draygon"); //the name of the mysql database
// CLIENT
define("CLIENT_NAME", "me"); //the name of the client company
define("CLIENT_EMAIL", "deankinns@gmail.com"); //the email address that the contact form will go to
// WEBSITE
define("WEBSITE_URL", $_SERVER['HTTP_HOST']);
// WEBSITE FRONT END CONFIGURATION
define("TITLE_APPEND", " - " . CLIENT_NAME); //the value entered here will be appended to all page titles (can be blank)
// - will be overwritten by SEO title
define("DEFAULT_TITLE", "Security Fencing Contractor Services - Taunton, Somerset, Devon, Dorset, Cornwall"); //the default page title, used if no title set by CMS and for the Home Page
define("META_KEYWORDS", "taunton fencing contractor, south west fencing contractor, taunton fencing services, high security fencing contractors, security gate installation somerset, , close board fencing installation, wooden fencing taunton, automatic driveway gates, security barrier installation somerset, building site security fencing somerset and devon, site hording installation somerset, electrical fence installation somerset, , residential railings contractor taunton, commercial fencing fitter devon and cornwall, jackson expert installer"); //comma separated list of keywords - used when no keywords set in the CMS
define("META_DESCRIPTION", ""); //default META Description - used when no description set in the CMS
|
#!/usr/bin/env python3
"""Test block processing."""
import copy
import struct
import time
from test_framework.blocktools import create_block, create_coinbase, <API key>, <API key>
from test_framework.key import CECKey
from test_framework.messages import (
CBlock,
COIN,
COutPoint,
CTransaction,
CTxIn,
CTxOut,
MAX_BLOCK_BASE_SIZE,
<API key>,
uint256_from_str,
)
from test_framework.mininode import P2PDataStore
from test_framework.script import (
CScript,
<API key>,
OP_2DUP,
OP_CHECKMULTISIG,
<API key>,
OP_CHECKSIG,
OP_CHECKSIGVERIFY,
OP_ELSE,
OP_ENDIF,
OP_EQUAL,
OP_DROP,
OP_FALSE,
OP_HASH160,
OP_IF,
OP_INVALIDOPCODE,
OP_RETURN,
OP_TRUE,
SIGHASH_ALL,
SignatureHash,
hash160,
)
from test_framework.test_framework import <API key>
from test_framework.util import assert_equal
MAX_BLOCK_SIGOPS = 20000
# Use this class for tests that require behavior other than normal "mininode" behavior.
# For now, it is used to serialize a bloated varint (b64).
class CBrokenBlock(CBlock):
def initialize(self, base_block):
self.vtx = copy.deepcopy(base_block.vtx)
self.hashMerkleRoot = self.calc_merkle_root()
def serialize(self, with_witness=False):
r = b""
r += super(CBlock, self).serialize()
r += struct.pack("<BQ", 255, len(self.vtx))
for tx in self.vtx:
if with_witness:
r += tx.<API key>()
else:
r += tx.<API key>()
return r
def normal_serialize(self):
return super().serialize()
class FullBlockTest(<API key>):
def set_test_params(self):
self.num_nodes = 1
self.setup_clean_chain = True
self.extra_args = [[]]
def run_test(self):
node = self.nodes[0] # convenience reference to the node
self.bootstrap_p2p() # Add one p2p connection to the node
self.block_heights = {}
self.coinbase_key = CECKey()
self.coinbase_key.set_secretbytes(b"horsebattery")
self.coinbase_pubkey = self.coinbase_key.get_pubkey()
self.tip = None
self.blocks = {}
self.genesis_hash = int(self.nodes[0].getbestblockhash(), 16)
self.block_heights[self.genesis_hash] = 0
self.spendable_outputs = []
# Create a new block
b0 = self.next_block(0)
self.<API key>()
self.sync_blocks([b0])
# Allow the block to mature
blocks = []
for i in range(99):
blocks.append(self.next_block(5000 + i))
self.<API key>()
self.sync_blocks(blocks)
# collect spendable outputs now to avoid cluttering the code later on
out = []
for i in range(33):
out.append(self.<API key>())
# Start by building a couple of blocks on top (which output is spent is
# in parentheses):
# genesis -> b1 (0) -> b2 (1)
b1 = self.next_block(1, spend=out[0])
self.<API key>()
b2 = self.next_block(2, spend=out[1])
self.<API key>()
self.sync_blocks([b1, b2])
# Fork like this:
# genesis -> b1 (0) -> b2 (1)
# \-> b3 (1)
# Nothing should happen at this point. We saw b2 first so it takes priority.
self.log.info("Don't reorg to a chain of the same length")
self.move_tip(1)
b3 = self.next_block(3, spend=out[1])
txout_b3 = b3.vtx[1]
self.sync_blocks([b3], False)
# Now we add another block to make the alternative chain longer.
# genesis -> b1 (0) -> b2 (1)
# \-> b3 (1) -> b4 (2)
self.log.info("Reorg to a longer chain")
b4 = self.next_block(4, spend=out[2])
self.sync_blocks([b4])
# ... and back to the first chain.
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b3 (1) -> b4 (2)
self.move_tip(2)
b5 = self.next_block(5, spend=out[2])
self.<API key>()
self.sync_blocks([b5], False)
self.log.info("Reorg back to the original chain")
b6 = self.next_block(6, spend=out[3])
self.sync_blocks([b6], True)
# Try to create a fork that double-spends
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b7 (2) -> b8 (4)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a chain with a double spend, even if it is longer")
self.move_tip(5)
b7 = self.next_block(7, spend=out[2])
self.sync_blocks([b7], False)
b8 = self.next_block(8, spend=out[4])
self.sync_blocks([b8], False, reconnect=True)
# Try to create a block that has too much fee
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b9 (4)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block where the miner creates too much coinbase reward")
self.move_tip(6)
b9 = self.next_block(9, spend=out[4], <API key>=1)
self.sync_blocks([b9], False, 16, b'bad-cb-amount', reconnect=True)
# Create a fork that ends in a block with too much fee (the one that causes the reorg)
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b10 (3) -> b11 (4)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a chain where the miner creates too much coinbase reward, even if the chain is longer")
self.move_tip(5)
b10 = self.next_block(10, spend=out[3])
self.sync_blocks([b10], False)
b11 = self.next_block(11, spend=out[4], <API key>=1)
self.sync_blocks([b11], False, 16, b'bad-cb-amount', reconnect=True)
# Try again, but with a valid fork first
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b14 (5)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a chain where the miner creates too much coinbase reward, even if the chain is longer (on a forked chain)")
self.move_tip(5)
b12 = self.next_block(12, spend=out[3])
self.<API key>()
b13 = self.next_block(13, spend=out[4])
self.<API key>()
b14 = self.next_block(14, spend=out[5], <API key>=1)
self.sync_blocks([b12, b13, b14], False, 16, b'bad-cb-amount', reconnect=True)
# New tip should be b13.
assert_equal(node.getbestblockhash(), b13.hash)
# Add a block with MAX_BLOCK_SIGOPS and one with one more sigop
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b16 (6)
# \-> b3 (1) -> b4 (2)
self.log.info("Accept a block with lots of checksigs")
lots_of_checksigs = CScript([OP_CHECKSIG] * (MAX_BLOCK_SIGOPS - 1))
self.move_tip(13)
b15 = self.next_block(15, spend=out[5], script=lots_of_checksigs)
self.<API key>()
self.sync_blocks([b15], True)
self.log.info("Reject a block with too many checksigs")
too_many_checksigs = CScript([OP_CHECKSIG] * (MAX_BLOCK_SIGOPS))
b16 = self.next_block(16, spend=out[6], script=too_many_checksigs)
self.sync_blocks([b16], False, 16, b'bad-blk-sigops', reconnect=True)
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b17 (b3.vtx[1])
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block with a spend from a re-org'ed out tx")
self.move_tip(15)
b17 = self.next_block(17, spend=txout_b3)
self.sync_blocks([b17], False, 16, b'<API key>', reconnect=True)
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5)
# \-> b18 (b3.vtx[1]) -> b19 (6)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block with a spend from a re-org'ed out tx (on a forked chain)")
self.move_tip(13)
b18 = self.next_block(18, spend=txout_b3)
self.sync_blocks([b18], False)
b19 = self.next_block(19, spend=out[6])
self.sync_blocks([b19], False, 16, b'<API key>', reconnect=True)
# Attempt to spend a coinbase at depth too low
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b20 (7)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block spending an immature coinbase.")
self.move_tip(15)
b20 = self.next_block(20, spend=out[7])
self.sync_blocks([b20], False, 16, b'<API key>')
# Attempt to spend a coinbase at depth too low (on a fork this time)
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5)
# \-> b21 (6) -> b22 (5)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block spending an immature coinbase (on a forked chain)")
self.move_tip(13)
b21 = self.next_block(21, spend=out[6])
self.sync_blocks([b21], False)
b22 = self.next_block(22, spend=out[5])
self.sync_blocks([b22], False, 16, b'<API key>')
# Create a block on either side of MAX_BLOCK_BASE_SIZE and make sure its accepted/rejected
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b23 (6)
# \-> b24 (6) -> b25 (7)
# \-> b3 (1) -> b4 (2)
self.log.info("Accept a block of size MAX_BLOCK_BASE_SIZE")
self.move_tip(15)
b23 = self.next_block(23, spend=out[6])
tx = CTransaction()
script_length = MAX_BLOCK_BASE_SIZE - len(b23.serialize()) - 69
script_output = CScript([b'\x00' * script_length])
tx.vout.append(CTxOut(0, script_output))
tx.vin.append(CTxIn(COutPoint(b23.vtx[1].sha256, 0)))
b23 = self.update_block(23, [tx])
# Make sure the math above worked out to produce a max-sized block
assert_equal(len(b23.serialize()), MAX_BLOCK_BASE_SIZE)
self.sync_blocks([b23], True)
self.<API key>()
self.log.info("Reject a block of size MAX_BLOCK_BASE_SIZE + 1")
self.move_tip(15)
b24 = self.next_block(24, spend=out[6])
script_length = MAX_BLOCK_BASE_SIZE - len(b24.serialize()) - 69
script_output = CScript([b'\x00' * (script_length + 1)])
tx.vout = [CTxOut(0, script_output)]
b24 = self.update_block(24, [tx])
assert_equal(len(b24.serialize()), MAX_BLOCK_BASE_SIZE + 1)
self.sync_blocks([b24], False, 16, b'bad-blk-length', reconnect=True)
b25 = self.next_block(25, spend=out[7])
self.sync_blocks([b25], False)
# Create blocks with a coinbase input script size out of range
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b23 (6) -> b30 (7)
# \-> ... (6) -> ... (7)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block with coinbase input script size out of range")
self.move_tip(15)
b26 = self.next_block(26, spend=out[6])
b26.vtx[0].vin[0].scriptSig = b'\x00'
b26.vtx[0].rehash()
# update_block causes the merkle root to get updated, even with no new
# transactions, and updates the required state.
b26 = self.update_block(26, [])
self.sync_blocks([b26], False, 16, b'bad-cb-length', reconnect=True)
# Extend the b26 chain to make sure bitcoind isn't accepting b26
b27 = self.next_block(27, spend=out[7])
self.sync_blocks([b27], False)
# Now try a too-large-coinbase script
self.move_tip(15)
b28 = self.next_block(28, spend=out[6])
b28.vtx[0].vin[0].scriptSig = b'\x00' * 101
b28.vtx[0].rehash()
b28 = self.update_block(28, [])
self.sync_blocks([b28], False, 16, b'bad-cb-length', reconnect=True)
# Extend the b28 chain to make sure bitcoind isn't accepting b28
b29 = self.next_block(29, spend=out[7])
self.sync_blocks([b29], False)
# b30 has a max-sized coinbase scriptSig.
self.move_tip(23)
b30 = self.next_block(30)
b30.vtx[0].vin[0].scriptSig = b'\x00' * 100
b30.vtx[0].rehash()
b30 = self.update_block(30, [])
self.sync_blocks([b30], True)
self.<API key>()
# b31 - b35 - check sigops of OP_CHECKMULTISIG / <API key> / OP_CHECKSIGVERIFY
# genesis -> ... -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10)
# \-> b36 (11)
# \-> b34 (10)
# \-> b32 (9)
# MULTISIG: each op code counts as 20 sigops. To create the edge case, pack another 19 sigops at the end.
self.log.info("Accept a block with the max number of OP_CHECKMULTISIG sigops")
lots_of_multisigs = CScript([OP_CHECKMULTISIG] * ((MAX_BLOCK_SIGOPS - 1) // 20) + [OP_CHECKSIG] * 19)
b31 = self.next_block(31, spend=out[8], script=lots_of_multisigs)
assert_equal(<API key>(b31), MAX_BLOCK_SIGOPS)
self.sync_blocks([b31], True)
self.<API key>()
# this goes over the limit because the coinbase has one sigop
self.log.info("Reject a block with too many OP_CHECKMULTISIG sigops")
too_many_multisigs = CScript([OP_CHECKMULTISIG] * (MAX_BLOCK_SIGOPS
b32 = self.next_block(32, spend=out[9], script=too_many_multisigs)
assert_equal(<API key>(b32), MAX_BLOCK_SIGOPS + 1)
self.sync_blocks([b32], False, 16, b'bad-blk-sigops', reconnect=True)
# CHECKMULTISIGVERIFY
self.log.info("Accept a block with the max number of <API key> sigops")
self.move_tip(31)
lots_of_multisigs = CScript([<API key>] * ((MAX_BLOCK_SIGOPS - 1) // 20) + [OP_CHECKSIG] * 19)
b33 = self.next_block(33, spend=out[9], script=lots_of_multisigs)
self.sync_blocks([b33], True)
self.<API key>()
self.log.info("Reject a block with too many <API key> sigops")
too_many_multisigs = CScript([<API key>] * (MAX_BLOCK_SIGOPS
b34 = self.next_block(34, spend=out[10], script=too_many_multisigs)
self.sync_blocks([b34], False, 16, b'bad-blk-sigops', reconnect=True)
# CHECKSIGVERIFY
self.log.info("Accept a block with the max number of OP_CHECKSIGVERIFY sigops")
self.move_tip(33)
lots_of_checksigs = CScript([OP_CHECKSIGVERIFY] * (MAX_BLOCK_SIGOPS - 1))
b35 = self.next_block(35, spend=out[10], script=lots_of_checksigs)
self.sync_blocks([b35], True)
self.<API key>()
self.log.info("Reject a block with too many OP_CHECKSIGVERIFY sigops")
too_many_checksigs = CScript([OP_CHECKSIGVERIFY] * (MAX_BLOCK_SIGOPS))
b36 = self.next_block(36, spend=out[11], script=too_many_checksigs)
self.sync_blocks([b36], False, 16, b'bad-blk-sigops', reconnect=True)
# Check spending of a transaction in a block which failed to connect
# b6 (3)
# b12 (3) -> b13 (4) -> b15 (5) -> b23 (6) -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10)
# \-> b37 (11)
# \-> b38 (11/37)
# save 37's spendable output, but then double-spend out11 to invalidate the block
self.log.info("Reject a block spending transaction from a block which failed to connect")
self.move_tip(35)
b37 = self.next_block(37, spend=out[11])
txout_b37 = b37.vtx[1]
tx = self.<API key>(out[11], 0)
b37 = self.update_block(37, [tx])
self.sync_blocks([b37], False, 16, b'<API key>', reconnect=True)
# attempt to spend b37's first non-coinbase tx, at which point b37 was still considered valid
self.move_tip(35)
b38 = self.next_block(38, spend=txout_b37)
self.sync_blocks([b38], False, 16, b'<API key>', reconnect=True)
# Check P2SH SigOp counting
# 13 (4) -> b15 (5) -> b23 (6) -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b41 (12)
# \-> b40 (12)
# b39 - create some P2SH outputs that will require 6 sigops to spend:
# redeem_script = COINBASE_PUBKEY, (OP_2DUP+OP_CHECKSIGVERIFY) * 5, OP_CHECKSIG
# p2sh_script = OP_HASH160, ripemd160(sha256(script)), OP_EQUAL
self.log.info("Check P2SH SIGOPS are correctly counted")
self.move_tip(35)
b39 = self.next_block(39)
b39_outputs = 0
<API key> = 6
# Build the redeem script, hash it, use hash to create the p2sh script
redeem_script = CScript([self.coinbase_pubkey] + [OP_2DUP, OP_CHECKSIGVERIFY] * 5 + [OP_CHECKSIG])
redeem_script_hash = hash160(redeem_script)
p2sh_script = CScript([OP_HASH160, redeem_script_hash, OP_EQUAL])
# Create a transaction that spends one satoshi to the p2sh_script, the rest to OP_TRUE
# This must be signed because it is spending a coinbase
spend = out[11]
tx = self.create_tx(spend, 0, 1, p2sh_script)
tx.vout.append(CTxOut(spend.vout[0].nValue - 1, CScript([OP_TRUE])))
self.sign_tx(tx, spend)
tx.rehash()
b39 = self.update_block(39, [tx])
b39_outputs += 1
# Until block is full, add tx's with 1 satoshi to p2sh_script, the rest to OP_TRUE
tx_new = None
tx_last = tx
total_size = len(b39.serialize())
while(total_size < MAX_BLOCK_BASE_SIZE):
tx_new = self.create_tx(tx_last, 1, 1, p2sh_script)
tx_new.vout.append(CTxOut(tx_last.vout[1].nValue - 1, CScript([OP_TRUE])))
tx_new.rehash()
total_size += len(tx_new.serialize())
if total_size >= MAX_BLOCK_BASE_SIZE:
break
b39.vtx.append(tx_new) # add tx to block
tx_last = tx_new
b39_outputs += 1
b39 = self.update_block(39, [])
self.sync_blocks([b39], True)
self.<API key>()
# Test sigops in P2SH redeem scripts
# b40 creates 3333 tx's spending the 6-sigop P2SH outputs from b39 for a total of 19998 sigops.
# The first tx has one sigop and then at the end we add 2 more to put us just over the max.
# b41 does the same, less one, so it has the maximum sigops permitted.
self.log.info("Reject a block with too many P2SH sigops")
self.move_tip(39)
b40 = self.next_block(40, spend=out[12])
sigops = <API key>(b40)
numTxes = (MAX_BLOCK_SIGOPS - sigops) // <API key>
assert_equal(numTxes <= b39_outputs, True)
lastOutpoint = COutPoint(b40.vtx[1].sha256, 0)
new_txs = []
for i in range(1, numTxes + 1):
tx = CTransaction()
tx.vout.append(CTxOut(1, CScript([OP_TRUE])))
tx.vin.append(CTxIn(lastOutpoint, b''))
# second input is corresponding P2SH output from b39
tx.vin.append(CTxIn(COutPoint(b39.vtx[i].sha256, 0), b''))
# Note: must pass the redeem_script (not p2sh_script) to the signature hash function
(sighash, err) = SignatureHash(redeem_script, tx, 1, SIGHASH_ALL)
sig = self.coinbase_key.sign(sighash) + bytes(bytearray([SIGHASH_ALL]))
scriptSig = CScript([sig, redeem_script])
tx.vin[1].scriptSig = scriptSig
tx.rehash()
new_txs.append(tx)
lastOutpoint = COutPoint(tx.sha256, 0)
b40_sigops_to_fill = MAX_BLOCK_SIGOPS - (numTxes * <API key> + sigops) + 1
tx = CTransaction()
tx.vin.append(CTxIn(lastOutpoint, b''))
tx.vout.append(CTxOut(1, CScript([OP_CHECKSIG] * b40_sigops_to_fill)))
tx.rehash()
new_txs.append(tx)
self.update_block(40, new_txs)
self.sync_blocks([b40], False, 16, b'bad-blk-sigops', reconnect=True)
# same as b40, but one less sigop
self.log.info("Accept a block with the max number of P2SH sigops")
self.move_tip(39)
b41 = self.next_block(41, spend=None)
self.update_block(41, b40.vtx[1:-1])
b41_sigops_to_fill = b40_sigops_to_fill - 1
tx = CTransaction()
tx.vin.append(CTxIn(lastOutpoint, b''))
tx.vout.append(CTxOut(1, CScript([OP_CHECKSIG] * b41_sigops_to_fill)))
tx.rehash()
self.update_block(41, [tx])
self.sync_blocks([b41], True)
# Fork off of b39 to create a constant base again
# b23 (6) -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13)
# \-> b41 (12)
self.move_tip(39)
b42 = self.next_block(42, spend=out[12])
self.<API key>()
b43 = self.next_block(43, spend=out[13])
self.<API key>()
self.sync_blocks([b42, b43], True)
# Test a number of really invalid scenarios
# -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13) -> b44 (14)
# The next few blocks are going to be created "by hand" since they'll do funky things, such as having
# the first transaction be non-coinbase, etc. The purpose of b44 is to make sure this works.
self.log.info("Build block 44 manually")
height = self.block_heights[self.tip.sha256] + 1
coinbase = create_coinbase(height, self.coinbase_pubkey)
b44 = CBlock()
b44.nTime = self.tip.nTime + 1
b44.hashPrevBlock = self.tip.sha256
b44.nBits = 0x207fffff
b44.vtx.append(coinbase)
b44.hashMerkleRoot = b44.calc_merkle_root()
b44.solve()
self.tip = b44
self.block_heights[b44.sha256] = height
self.blocks[44] = b44
self.sync_blocks([b44], True)
self.log.info("Reject a block with a non-coinbase as the first tx")
non_coinbase = self.create_tx(out[15], 0, 1)
b45 = CBlock()
b45.nTime = self.tip.nTime + 1
b45.hashPrevBlock = self.tip.sha256
b45.nBits = 0x207fffff
b45.vtx.append(non_coinbase)
b45.hashMerkleRoot = b45.calc_merkle_root()
b45.calc_sha256()
b45.solve()
self.block_heights[b45.sha256] = self.block_heights[self.tip.sha256] + 1
self.tip = b45
self.blocks[45] = b45
self.sync_blocks([b45], False, 16, b'bad-cb-missing', reconnect=True)
self.log.info("Reject a block with no transactions")
self.move_tip(44)
b46 = CBlock()
b46.nTime = b44.nTime + 1
b46.hashPrevBlock = b44.sha256
b46.nBits = 0x207fffff
b46.vtx = []
b46.hashMerkleRoot = 0
b46.solve()
self.block_heights[b46.sha256] = self.block_heights[b44.sha256] + 1
self.tip = b46
assert 46 not in self.blocks
self.blocks[46] = b46
self.sync_blocks([b46], False, 16, b'bad-blk-length', reconnect=True)
self.log.info("Reject a block with invalid work")
self.move_tip(44)
b47 = self.next_block(47, solve=False)
target = <API key>(b47.nBits)
while b47.sha256 < target:
b47.nNonce += 1
b47.rehash()
self.sync_blocks([b47], False, request_block=False)
self.log.info("Reject a block with a timestamp >2 hours in the future")
self.move_tip(44)
b48 = self.next_block(48, solve=False)
b48.nTime = int(time.time()) + 60 * 60 * 3
b48.solve()
self.sync_blocks([b48], False, request_block=False)
self.log.info("Reject a block with invalid merkle hash")
self.move_tip(44)
b49 = self.next_block(49)
b49.hashMerkleRoot += 1
b49.solve()
self.sync_blocks([b49], False, 16, b'bad-txnmrklroot', reconnect=True)
self.log.info("Reject a block with incorrect POW limit")
self.move_tip(44)
b50 = self.next_block(50)
b50.nBits = b50.nBits - 1
b50.solve()
self.sync_blocks([b50], False, request_block=False, reconnect=True)
self.log.info("Reject a block with two coinbase transactions")
self.move_tip(44)
b51 = self.next_block(51)
cb2 = create_coinbase(51, self.coinbase_pubkey)
b51 = self.update_block(51, [cb2])
self.sync_blocks([b51], False, 16, b'bad-cb-multiple', reconnect=True)
self.log.info("Reject a block with duplicate transactions")
# Note: txns have to be in the right position in the merkle tree to trigger this error
self.move_tip(44)
b52 = self.next_block(52, spend=out[15])
tx = self.create_tx(b52.vtx[1], 0, 1)
b52 = self.update_block(52, [tx, tx])
self.sync_blocks([b52], False, 16, b'bad-txns-duplicate', reconnect=True)
# Test block timestamps
# -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15)
# \-> b54 (15)
self.move_tip(43)
b53 = self.next_block(53, spend=out[14])
self.sync_blocks([b53], False)
self.<API key>()
self.log.info("Reject a block with timestamp before MedianTimePast")
b54 = self.next_block(54, spend=out[15])
b54.nTime = b35.nTime - 1
b54.solve()
self.sync_blocks([b54], False, request_block=False)
# valid timestamp
self.move_tip(53)
b55 = self.next_block(55, spend=out[15])
b55.nTime = b35.nTime
self.update_block(55, [])
self.sync_blocks([b55], True)
self.<API key>()
# Test Merkle tree malleability
# -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57p2 (16)
# \-> b57 (16)
# \-> b56p2 (16)
# \-> b56 (16)
# Merkle tree malleability (CVE-2012-2459): repeating sequences of transactions in a block without
# affecting the merkle root of a block, while still invalidating it.
# See: src/consensus/merkle.h
# b57 has three txns: coinbase, tx, tx1. The merkle root computation will duplicate tx.
# Result: OK
# b56 copies b57 but duplicates tx1 and does not recalculate the block hash. So it has a valid merkle
# root but duplicate transactions.
# Result: Fails
# b57p2 has six transactions in its merkle tree:
# - coinbase, tx, tx1, tx2, tx3, tx4
# Merkle root calculation will duplicate as necessary.
# Result: OK.
# b56p2 copies b57p2 but adds both tx3 and tx4. The purpose of the test is to make sure the code catches
# duplicate txns that are not next to one another with the "bad-txns-duplicate" error (which indicates
# that the error was caught early, avoiding a DOS vulnerability.)
# b57 - a good block with 2 txs, don't submit until end
self.move_tip(55)
b57 = self.next_block(57)
tx = self.<API key>(out[16], 1)
tx1 = self.create_tx(tx, 0, 1)
b57 = self.update_block(57, [tx, tx1])
# b56 - copy b57, add a duplicate tx
self.log.info("Reject a block with a duplicate transaction in the Merkle Tree (but with a valid Merkle Root)")
self.move_tip(55)
b56 = copy.deepcopy(b57)
self.blocks[56] = b56
assert_equal(len(b56.vtx), 3)
b56 = self.update_block(56, [tx1])
assert_equal(b56.hash, b57.hash)
self.sync_blocks([b56], False, 16, b'bad-txns-duplicate', reconnect=True)
# b57p2 - a good block with 6 tx'es, don't submit until end
self.move_tip(55)
b57p2 = self.next_block("57p2")
tx = self.<API key>(out[16], 1)
tx1 = self.create_tx(tx, 0, 1)
tx2 = self.create_tx(tx1, 0, 1)
tx3 = self.create_tx(tx2, 0, 1)
tx4 = self.create_tx(tx3, 0, 1)
b57p2 = self.update_block("57p2", [tx, tx1, tx2, tx3, tx4])
# b56p2 - copy b57p2, duplicate two non-consecutive tx's
self.log.info("Reject a block with two duplicate transactions in the Merkle Tree (but with a valid Merkle Root)")
self.move_tip(55)
b56p2 = copy.deepcopy(b57p2)
self.blocks["b56p2"] = b56p2
assert_equal(b56p2.hash, b57p2.hash)
assert_equal(len(b56p2.vtx), 6)
b56p2 = self.update_block("b56p2", [tx3, tx4])
self.sync_blocks([b56p2], False, 16, b'bad-txns-duplicate', reconnect=True)
self.move_tip("57p2")
self.sync_blocks([b57p2], True)
self.move_tip(57)
self.sync_blocks([b57], False) # The tip is not updated because 57p2 seen first
self.<API key>()
# Test a few invalid tx types
# -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# tx with prevout.n out of range
self.log.info("Reject a block with a transaction with prevout.n out of range")
self.move_tip(57)
b58 = self.next_block(58, spend=out[17])
tx = CTransaction()
assert(len(out[17].vout) < 42)
tx.vin.append(CTxIn(COutPoint(out[17].sha256, 42), CScript([OP_TRUE]), 0xffffffff))
tx.vout.append(CTxOut(0, b""))
tx.calc_sha256()
b58 = self.update_block(58, [tx])
self.sync_blocks([b58], False, 16, b'<API key>', reconnect=True)
# tx with output value > input value
self.log.info("Reject a block with a transaction with outputs > inputs")
self.move_tip(57)
b59 = self.next_block(59)
tx = self.<API key>(out[17], 51 * COIN)
b59 = self.update_block(59, [tx])
self.sync_blocks([b59], False, 16, b'<API key>', reconnect=True)
# reset to good chain
self.move_tip(57)
b60 = self.next_block(60, spend=out[17])
self.sync_blocks([b60], True)
self.<API key>()
# Test BIP30
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# \-> b61 (18)
# Blocks are not allowed to contain a transaction whose id matches that of an earlier,
# not-fully-spent transaction in the same chain. To test, make identical coinbases;
# the second one should be rejected.
self.log.info("Reject a block with a transaction with a duplicate hash of a previous transaction (BIP30)")
self.move_tip(60)
b61 = self.next_block(61, spend=out[18])
b61.vtx[0].vin[0].scriptSig = b60.vtx[0].vin[0].scriptSig # Equalize the coinbases
b61.vtx[0].rehash()
b61 = self.update_block(61, [])
assert_equal(b60.vtx[0].serialize(), b61.vtx[0].serialize())
self.sync_blocks([b61], False, 16, b'bad-txns-BIP30', reconnect=True)
# Test tx.isFinal is properly rejected (not an exhaustive tx.isFinal test, that should be in data-driven transaction tests)
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# \-> b62 (18)
self.log.info("Reject a block with a transaction with a nonfinal locktime")
self.move_tip(60)
b62 = self.next_block(62)
tx = CTransaction()
tx.nLockTime = 0xffffffff # this locktime is non-final
tx.vin.append(CTxIn(COutPoint(out[18].sha256, 0))) # don't set nSequence
tx.vout.append(CTxOut(0, CScript([OP_TRUE])))
assert(tx.vin[0].nSequence < 0xffffffff)
tx.calc_sha256()
b62 = self.update_block(62, [tx])
self.sync_blocks([b62], False, 16, b'bad-txns-nonfinal')
# Test a non-final coinbase is also rejected
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# \-> b63 (-)
self.log.info("Reject a block with a coinbase transaction with a nonfinal locktime")
self.move_tip(60)
b63 = self.next_block(63)
b63.vtx[0].nLockTime = 0xffffffff
b63.vtx[0].vin[0].nSequence = 0xDEADBEEF
b63.vtx[0].rehash()
b63 = self.update_block(63, [])
self.sync_blocks([b63], False, 16, b'bad-txns-nonfinal')
# This checks that a block with a bloated VARINT between the block_header and the array of tx such that
# the block is > MAX_BLOCK_BASE_SIZE with the bloated varint, but <= MAX_BLOCK_BASE_SIZE without the bloated varint,
# does not cause a subsequent, identical block with canonical encoding to be rejected. The test does not
# care whether the bloated block is accepted or rejected; it only cares that the second block is accepted.
# What matters is that the receiving node should not reject the bloated block, and then reject the canonical
# block on the basis that it's the same as an already-rejected block (which would be a consensus failure.)
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18)
# b64a (18)
# b64a is a bloated block (non-canonical varint)
# b64 is a good block (same as b64 but w/ canonical varint)
self.log.info("Accept a valid block even if a bloated version of the block has previously been sent")
self.move_tip(60)
regular_block = self.next_block("64a", spend=out[18])
# make it a "broken_block," with non-canonical serialization
b64a = CBrokenBlock(regular_block)
b64a.initialize(regular_block)
self.blocks["64a"] = b64a
self.tip = b64a
tx = CTransaction()
# use canonical serialization to calculate size
script_length = MAX_BLOCK_BASE_SIZE - len(b64a.normal_serialize()) - 69
script_output = CScript([b'\x00' * script_length])
tx.vout.append(CTxOut(0, script_output))
tx.vin.append(CTxIn(COutPoint(b64a.vtx[1].sha256, 0)))
b64a = self.update_block("64a", [tx])
assert_equal(len(b64a.serialize()), MAX_BLOCK_BASE_SIZE + 8)
self.sync_blocks([b64a], False, 1, b'error parsing message')
# bitcoind doesn't disconnect us for sending a bloated block, but if we subsequently
# resend the header message, it won't send us the getdata message again. Just
# disconnect and reconnect and then call sync_blocks.
# TODO: improve this test to be less dependent on P2P DOS behaviour.
node.disconnect_p2ps()
self.reconnect_p2p()
self.move_tip(60)
b64 = CBlock(b64a)
b64.vtx = copy.deepcopy(b64a.vtx)
assert_equal(b64.hash, b64a.hash)
assert_equal(len(b64.serialize()), MAX_BLOCK_BASE_SIZE)
self.blocks[64] = b64
b64 = self.update_block(64, [])
self.sync_blocks([b64], True)
self.<API key>()
# Spend an output created in the block itself
# -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19)
self.log.info("Accept a block with a transaction spending an output created in the same block")
self.move_tip(64)
b65 = self.next_block(65)
tx1 = self.<API key>(out[19], out[19].vout[0].nValue)
tx2 = self.<API key>(tx1, 0)
b65 = self.update_block(65, [tx1, tx2])
self.sync_blocks([b65], True)
self.<API key>()
# Attempt to spend an output created later in the same block
# -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19)
# \-> b66 (20)
self.log.info("Reject a block with a transaction spending an output created later in the same block")
self.move_tip(65)
b66 = self.next_block(66)
tx1 = self.<API key>(out[20], out[20].vout[0].nValue)
tx2 = self.<API key>(tx1, 1)
b66 = self.update_block(66, [tx2, tx1])
self.sync_blocks([b66], False, 16, b'<API key>', reconnect=True)
# Attempt to double-spend a transaction created in a block
# -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19)
# \-> b67 (20)
self.log.info("Reject a block with a transaction double spending a transaction creted in the same block")
self.move_tip(65)
b67 = self.next_block(67)
tx1 = self.<API key>(out[20], out[20].vout[0].nValue)
tx2 = self.<API key>(tx1, 1)
tx3 = self.<API key>(tx1, 2)
b67 = self.update_block(67, [tx1, tx2, tx3])
self.sync_blocks([b67], False, 16, b'<API key>', reconnect=True)
# More tests of block subsidy
# -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20)
# \-> b68 (20)
# b68 - coinbase with an extra 10 satoshis,
# creates a tx that has 9 satoshis from out[20] go to fees
# this fails because the coinbase is trying to claim 1 satoshi too much in fees
# b69 - coinbase with extra 10 satoshis, and a tx that gives a 10 satoshi fee
# this succeeds
self.log.info("Reject a block trying to claim too much subsidy in the coinbase transaction")
self.move_tip(65)
b68 = self.next_block(68, <API key>=10)
tx = self.<API key>(out[20], out[20].vout[0].nValue - 9)
b68 = self.update_block(68, [tx])
self.sync_blocks([b68], False, 16, b'bad-cb-amount', reconnect=True)
self.log.info("Accept a block claiming the correct subsidy in the coinbase transaction")
self.move_tip(65)
b69 = self.next_block(69, <API key>=10)
tx = self.<API key>(out[20], out[20].vout[0].nValue - 10)
self.update_block(69, [tx])
self.sync_blocks([b69], True)
self.<API key>()
# Test spending the outpoint of a non-existent transaction
# -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20)
# \-> b70 (21)
self.log.info("Reject a block containing a transaction spending from a non-existent input")
self.move_tip(69)
b70 = self.next_block(70, spend=out[21])
bogus_tx = CTransaction()
bogus_tx.sha256 = uint256_from_str(b"<SHA256-like>")
tx = CTransaction()
tx.vin.append(CTxIn(COutPoint(bogus_tx.sha256, 0), b"", 0xffffffff))
tx.vout.append(CTxOut(1, b""))
b70 = self.update_block(70, [tx])
self.sync_blocks([b70], False, 16, b'<API key>', reconnect=True)
# Test accepting an invalid block which has the same hash as a valid one (via merkle tree tricks)
# -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20) -> b72 (21)
# \-> b71 (21)
# b72 is a good block.
# b71 is a copy of 72, but re-adds one of its transactions. However, it has the same hash as b72.
self.log.info("Reject a block containing a duplicate transaction but with the same Merkle root (Merkle tree malleability")
self.move_tip(69)
b72 = self.next_block(72)
tx1 = self.<API key>(out[21], 2)
tx2 = self.<API key>(tx1, 1)
b72 = self.update_block(72, [tx1, tx2]) # now tip is 72
b71 = copy.deepcopy(b72)
b71.vtx.append(tx2) # add duplicate tx2
self.block_heights[b71.sha256] = self.block_heights[b69.sha256] + 1 # b71 builds off b69
self.blocks[71] = b71
assert_equal(len(b71.vtx), 4)
assert_equal(len(b72.vtx), 3)
assert_equal(b72.sha256, b71.sha256)
self.move_tip(71)
self.sync_blocks([b71], False, 16, b'bad-txns-duplicate', reconnect=True)
self.move_tip(72)
self.sync_blocks([b72], True)
self.<API key>()
# Test some invalid scripts and MAX_BLOCK_SIGOPS
# -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20) -> b72 (21)
# \-> b** (22)
# b73 - tx with excessive sigops that are placed after an excessively large script element.
# The purpose of the test is to make sure those sigops are counted.
# script is a bytearray of size 20,526
# bytearray[0-19,998] : OP_CHECKSIG
# bytearray[19,999] : OP_PUSHDATA4
# bytearray[20,000-20,003]: 521 (<API key>+1, in little-endian format)
# bytearray[20,004-20,525]: unread data (script_element)
# bytearray[20,526] : OP_CHECKSIG (this puts us over the limit)
self.log.info("Reject a block containing too many sigops after a large script element")
self.move_tip(72)
b73 = self.next_block(73)
size = MAX_BLOCK_SIGOPS - 1 + <API key> + 1 + 5 + 1
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS - 1] = int("4e", 16) # OP_PUSHDATA4
element_size = <API key> + 1
a[MAX_BLOCK_SIGOPS] = element_size % 256
a[MAX_BLOCK_SIGOPS + 1] = element_size // 256
a[MAX_BLOCK_SIGOPS + 2] = 0
a[MAX_BLOCK_SIGOPS + 3] = 0
tx = self.<API key>(out[22], 1, CScript(a))
b73 = self.update_block(73, [tx])
assert_equal(<API key>(b73), MAX_BLOCK_SIGOPS + 1)
self.sync_blocks([b73], False, 16, b'bad-blk-sigops', reconnect=True)
# b74/75 - if we push an invalid script element, all prevous sigops are counted,
# but sigops after the element are not counted.
# The invalid script element is that the push_data indicates that
# there will be a large amount of data (0xffffff bytes), but we only
# provide a much smaller number. These bytes are CHECKSIGS so they would
# cause b75 to fail for excessive sigops, if those bytes were counted.
# b74 fails because we put MAX_BLOCK_SIGOPS+1 before the element
# b75 succeeds because we put MAX_BLOCK_SIGOPS before the element
self.log.info("Check sigops are counted correctly after an invalid script element")
self.move_tip(72)
b74 = self.next_block(74)
size = MAX_BLOCK_SIGOPS - 1 + <API key> + 42 # total = 20,561
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS] = 0x4e
a[MAX_BLOCK_SIGOPS + 1] = 0xfe
a[MAX_BLOCK_SIGOPS + 2] = 0xff
a[MAX_BLOCK_SIGOPS + 3] = 0xff
a[MAX_BLOCK_SIGOPS + 4] = 0xff
tx = self.<API key>(out[22], 1, CScript(a))
b74 = self.update_block(74, [tx])
self.sync_blocks([b74], False, 16, b'bad-blk-sigops', reconnect=True)
self.move_tip(72)
b75 = self.next_block(75)
size = MAX_BLOCK_SIGOPS - 1 + <API key> + 42
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS - 1] = 0x4e
a[MAX_BLOCK_SIGOPS] = 0xff
a[MAX_BLOCK_SIGOPS + 1] = 0xff
a[MAX_BLOCK_SIGOPS + 2] = 0xff
a[MAX_BLOCK_SIGOPS + 3] = 0xff
tx = self.<API key>(out[22], 1, CScript(a))
b75 = self.update_block(75, [tx])
self.sync_blocks([b75], True)
self.<API key>()
# Check that if we push an element filled with CHECKSIGs, they are not counted
self.move_tip(75)
b76 = self.next_block(76)
size = MAX_BLOCK_SIGOPS - 1 + <API key> + 1 + 5
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS - 1] = 0x4e # PUSHDATA4, but leave the following bytes as just checksigs
tx = self.<API key>(out[23], 1, CScript(a))
b76 = self.update_block(76, [tx])
self.sync_blocks([b76], True)
self.<API key>()
# Test transaction resurrection
# -> b77 (24) -> b78 (25) -> b79 (26)
# \-> b80 (25) -> b81 (26) -> b82 (27)
# b78 creates a tx, which is spent in b79. After b82, both should be in mempool
# The tx'es must be unsigned and pass the node's mempool policy. It is unsigned for the
# rather obscure reason that the Python signature code does not distinguish between
# Low-S and High-S values (whereas the bitcoin code has custom code which does so);
# as a result of which, the odds are 50% that the python code will use the right
# value and the transaction will be accepted into the mempool. Until we modify the
# test framework to support low-S signing, we are out of luck.
# To get around this issue, we construct transactions which are not signed and which
# spend to OP_TRUE. If the standard-ness rules change, this test would need to be
# updated. (Perhaps to spend to a P2SH OP_TRUE script)
self.log.info("Test transaction resurrection during a re-org")
self.move_tip(76)
b77 = self.next_block(77)
tx77 = self.<API key>(out[24], 10 * COIN)
b77 = self.update_block(77, [tx77])
self.sync_blocks([b77], True)
self.<API key>()
b78 = self.next_block(78)
tx78 = self.create_tx(tx77, 0, 9 * COIN)
b78 = self.update_block(78, [tx78])
self.sync_blocks([b78], True)
b79 = self.next_block(79)
tx79 = self.create_tx(tx78, 0, 8 * COIN)
b79 = self.update_block(79, [tx79])
self.sync_blocks([b79], True)
# mempool should be empty
assert_equal(len(self.nodes[0].getrawmempool()), 0)
self.move_tip(77)
b80 = self.next_block(80, spend=out[25])
self.sync_blocks([b80], False, request_block=False)
self.<API key>()
b81 = self.next_block(81, spend=out[26])
self.sync_blocks([b81], False, request_block=False) # other chain is same length
self.<API key>()
b82 = self.next_block(82, spend=out[27])
self.sync_blocks([b82], True) # now this chain is longer, triggers re-org
self.<API key>()
# now check that tx78 and tx79 have been put back into the peer's mempool
mempool = self.nodes[0].getrawmempool()
assert_equal(len(mempool), 2)
assert(tx78.hash in mempool)
assert(tx79.hash in mempool)
# Test invalid opcodes in dead execution paths.
# -> b81 (26) -> b82 (27) -> b83 (28)
self.log.info("Accept a block with invalid opcodes in dead execution paths")
b83 = self.next_block(83)
op_codes = [OP_IF, OP_INVALIDOPCODE, OP_ELSE, OP_TRUE, OP_ENDIF]
script = CScript(op_codes)
tx1 = self.<API key>(out[28], out[28].vout[0].nValue, script)
tx2 = self.<API key>(tx1, 0, CScript([OP_TRUE]))
tx2.vin[0].scriptSig = CScript([OP_FALSE])
tx2.rehash()
b83 = self.update_block(83, [tx1, tx2])
self.sync_blocks([b83], True)
self.<API key>()
# Reorg on/off blocks that have OP_RETURN in them (and try to spend them)
# -> b81 (26) -> b82 (27) -> b83 (28) -> b84 (29) -> b87 (30) -> b88 (31)
# \-> b85 (29) -> b86 (30) \-> b89a (32)
self.log.info("Test re-orging blocks with OP_RETURN in them")
b84 = self.next_block(84)
tx1 = self.create_tx(out[29], 0, 0, CScript([OP_RETURN]))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.calc_sha256()
self.sign_tx(tx1, out[29])
tx1.rehash()
tx2 = self.create_tx(tx1, 1, 0, CScript([OP_RETURN]))
tx2.vout.append(CTxOut(0, CScript([OP_RETURN])))
tx3 = self.create_tx(tx1, 2, 0, CScript([OP_RETURN]))
tx3.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx4 = self.create_tx(tx1, 3, 0, CScript([OP_TRUE]))
tx4.vout.append(CTxOut(0, CScript([OP_RETURN])))
tx5 = self.create_tx(tx1, 4, 0, CScript([OP_RETURN]))
b84 = self.update_block(84, [tx1, tx2, tx3, tx4, tx5])
self.sync_blocks([b84], True)
self.<API key>()
self.move_tip(83)
b85 = self.next_block(85, spend=out[29])
self.sync_blocks([b85], False) # other chain is same length
b86 = self.next_block(86, spend=out[30])
self.sync_blocks([b86], True)
self.move_tip(84)
b87 = self.next_block(87, spend=out[30])
self.sync_blocks([b87], False) # other chain is same length
self.<API key>()
b88 = self.next_block(88, spend=out[31])
self.sync_blocks([b88], True)
self.<API key>()
# trying to spend the OP_RETURN output is rejected
b89a = self.next_block("89a", spend=out[32])
tx = self.create_tx(tx1, 0, 0, CScript([OP_TRUE]))
b89a = self.update_block("89a", [tx])
self.sync_blocks([b89a], False, 16, b'<API key>', reconnect=True)
self.log.info("Test a re-org of one week's worth of blocks (1088 blocks)")
self.move_tip(88)
LARGE_REORG_SIZE = 1088
blocks = []
spend = out[32]
for i in range(89, LARGE_REORG_SIZE + 89):
b = self.next_block(i, spend)
tx = CTransaction()
script_length = MAX_BLOCK_BASE_SIZE - len(b.serialize()) - 69
script_output = CScript([b'\x00' * script_length])
tx.vout.append(CTxOut(0, script_output))
tx.vin.append(CTxIn(COutPoint(b.vtx[1].sha256, 0)))
b = self.update_block(i, [tx])
assert_equal(len(b.serialize()), MAX_BLOCK_BASE_SIZE)
blocks.append(b)
self.<API key>()
spend = self.<API key>()
self.sync_blocks(blocks, True, timeout=180)
chain1_tip = i
# now create alt chain of same length
self.move_tip(88)
blocks2 = []
for i in range(89, LARGE_REORG_SIZE + 89):
blocks2.append(self.next_block("alt" + str(i)))
self.sync_blocks(blocks2, False, request_block=False)
# extend alt chain to trigger re-org
block = self.next_block("alt" + str(chain1_tip + 1))
self.sync_blocks([block], True, timeout=180)
# ... and re-org back to the first chain
self.move_tip(chain1_tip)
block = self.next_block(chain1_tip + 1)
self.sync_blocks([block], False, request_block=False)
block = self.next_block(chain1_tip + 2)
self.sync_blocks([block], True, timeout=180)
# Helper methods
def <API key>(self, block, tx_list):
[tx.rehash() for tx in tx_list]
block.vtx.extend(tx_list)
# this is a little handier to use than the version in blocktools.py
def create_tx(self, spend_tx, n, value, script=CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE])):
return <API key>(spend_tx, n, amount=value, script_pub_key=script)
# sign a transaction, using the key we know about
# this signs input 0 in tx, which is assumed to be spending output n in spend_tx
def sign_tx(self, tx, spend_tx):
scriptPubKey = bytearray(spend_tx.vout[0].scriptPubKey)
if (scriptPubKey[0] == OP_TRUE): # an anyone-can-spend
tx.vin[0].scriptSig = CScript()
return
(sighash, err) = SignatureHash(spend_tx.vout[0].scriptPubKey, tx, 0, SIGHASH_ALL)
tx.vin[0].scriptSig = CScript([self.coinbase_key.sign(sighash) + bytes(bytearray([SIGHASH_ALL]))])
def <API key>(self, spend_tx, value, script=CScript([OP_TRUE])):
tx = self.create_tx(spend_tx, 0, value, script)
self.sign_tx(tx, spend_tx)
tx.rehash()
return tx
def next_block(self, number, spend=None, <API key>=0, script=CScript([OP_TRUE]), solve=True):
if self.tip is None:
base_block_hash = self.genesis_hash
block_time = int(time.time()) + 1
else:
base_block_hash = self.tip.sha256
block_time = self.tip.nTime + 1
# First create the coinbase
height = self.block_heights[base_block_hash] + 1
coinbase = create_coinbase(height, self.coinbase_pubkey)
coinbase.vout[0].nValue += <API key>
coinbase.rehash()
if spend is None:
block = create_block(base_block_hash, coinbase, block_time)
else:
coinbase.vout[0].nValue += spend.vout[0].nValue - 1 # all but one satoshi to fees
coinbase.rehash()
block = create_block(base_block_hash, coinbase, block_time)
tx = self.create_tx(spend, 0, 1, script) # spend 1 satoshi
self.sign_tx(tx, spend)
self.<API key>(block, [tx])
block.hashMerkleRoot = block.calc_merkle_root()
if solve:
block.solve()
self.tip = block
self.block_heights[block.sha256] = height
assert number not in self.blocks
self.blocks[number] = block
return block
# save the current tip so it can be spent by a later block
def <API key>(self):
self.log.debug("saving spendable output %s" % self.tip.vtx[0])
self.spendable_outputs.append(self.tip)
# get an output that we previously marked as spendable
def <API key>(self):
self.log.debug("getting spendable output %s" % self.spendable_outputs[0].vtx[0])
return self.spendable_outputs.pop(0).vtx[0]
# move the tip back to a previous block
def move_tip(self, number):
self.tip = self.blocks[number]
# adds transactions to the block and updates state
def update_block(self, block_number, new_transactions):
block = self.blocks[block_number]
self.<API key>(block, new_transactions)
old_sha256 = block.sha256
block.hashMerkleRoot = block.calc_merkle_root()
block.solve()
# Update the internal state just like in next_block
self.tip = block
if block.sha256 != old_sha256:
self.block_heights[block.sha256] = self.block_heights[old_sha256]
del self.block_heights[old_sha256]
self.blocks[block_number] = block
return block
def bootstrap_p2p(self):
"""Add a P2P connection to the node.
Helper to connect and wait for version handshake."""
self.nodes[0].add_p2p_connection(P2PDataStore())
# We need to wait for the initial getheaders from the peer before we
# start populating our blockstore. If we don't, then we may run ahead
# to the next subtest before we receive the getheaders. We'd then send
# an INV for the next block and receive two getheaders - one for the
# IBD and one for the INV. We'd respond to both and could get
# unexpectedly disconnected if the DoS score for that error is 50.
self.nodes[0].p2p.wait_for_getheaders(timeout=5)
def reconnect_p2p(self):
"""Tear down and bootstrap the P2P connection to the node.
The node gets disconnected several times in this test. This helper
method reconnects the p2p and restarts the network thread."""
self.nodes[0].disconnect_p2ps()
self.bootstrap_p2p()
def sync_blocks(self, blocks, success=True, reject_code=None, reject_reason=None, request_block=True, reconnect=False, timeout=60):
"""Sends blocks to test node. Syncs and verifies that tip has advanced to most recent block.
Call with success = False if the tip shouldn't advance to the most recent block."""
self.nodes[0].p2p.<API key>(blocks, self.nodes[0], success=success, reject_code=reject_code, reject_reason=reject_reason, request_block=request_block, timeout=timeout)
if reconnect:
self.reconnect_p2p()
if __name__ == '__main__':
FullBlockTest().main()
|
@extends("layout")
@section("content")
<script type="text/javascript" src="{{ URL("js/interactive.js") }}">
</script>
<section id="wrapper">
@if ($imagenes->isEmpty())
<section id="photos-empty">
<p class="center">
Todavía no hay imágenes
</p>
</section>
@else
<section id="photos-content">
@foreach ($imagenes as $imagen)
<figure>
<a href="{{ URL::to("/picture/".$imagen->id) }}">
<img src="{{ URL::to($imagen->ruta) }}" alt="{{ $imagen->titulo }}" title="{{ $imagen->titulo }}">
</a>
</figure>
@endforeach
</section>
@endif
<section id="info-wrapper">
@if (Session::has("aviso"))
<section id="message">
<label class="center">
{{ Session::get("aviso") }}
</label>
</section>
@endif
<section id="user">
<figure>
<img src="{{ URL::to($usuario->imagen) }}" alt="{{ $usuario->nombre }}">
</figure>
<a href="{{ URL::to("/user/".$usuario->nick) }}">
{{ $usuario->nombre }}
</a>
<p>
{{ '@'.$usuario->nick }}
</p>
@if (Auth::check() && Auth::user()->nick == $usuario->nick)
<a href="{{ URL::to("/alter") }}">
Modificar cuenta
</a>
@endif
</section>
@if (!$categorias->isEmpty())
<section id="categories">
<h2 class="center last">
Categorías
</h2>
@foreach ($categorias as $categoria)
<a href="{{ URL::to("category/".$categoria->id) }}">
{{ $categoria->nombre }}
</a>
@endforeach
</section>
@else
@if (Auth::check() && Auth::user()->nick == $usuario->nick)
<section id="categories">
<h2 class="center last">
Categorías
</h2>
<p class="center">
No has creado ninguna categoría.
</p>
</section>
@endif
@endif
@if (Auth::check() && Auth::user()->nick == $usuario->nick)
<section class="manage">
<button type="button" class="btn-default profile" id="insert">
Crear categoría
</button>
<form class="form-default" action="{{ URL::to("/insert-category") }}" method="post" id="insert-form">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<label for="category">
Nombre
</label>
<input type="text" class="inp-default last" id="category" name="category">
<button type="button" class="btn-default" id="insert-cancel">
Cerrar
</button>
<button type="submit" class="btn-primary" id="insert-category">
Crear categoría
</button>
</form>
</section>
<section class="manage">
<button type="button" class="btn-default profile" id="upload">
Subir imagen
</button>
<form class="form-default" action="{{ URL::to("/upload-picture") }}" method="post" id="upload-form" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<button type="button" class="btn-default" id="upload-file">
Elegir imagen
</button>
<label>
Tamaño máximo: 30 MB
</label>
<input type="file" id="file" name="file">
<label for="name">
Título
</label>
<input type="text" class="inp-default last" id="name" name="name">
<button type="button" class="btn-default" id="upload-cancel">
Cerrar
</button>
<button type="submit" class="btn-primary" id="upload-image">
Subir imagen
</button>
</form>
</section>
<section class="manage">
<button type="button" class="btn-default profile" id="delete">
Darme de baja
</button>
<form class="form-default" action="{{ URL::to("/delete-user") }}" method="post" id="delete-form">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<label>
Esta acción eliminará tu cuenta y tus datos de Piclike
</label>
<button type="button" class="btn-default" id="delete-cancel">
Cerrar
</button>
<button type="submit" class="btn-primary">
Darme de baja
</button>
</form>
</section>
@endif
</section>
</section>
@stop
|
<?php
namespace Zakharovvi\HumansTxtBundle\Tests\Renderer;
use Zakharovvi\HumansTxtBundle\Tests\Filesystem;
use Zakharovvi\HumansTxtBundle\Renderer\TwigRenderer;
use Zakharovvi\HumansTxtBundle\Authors\Author;
/**
* @author Vitaliy Zakharov <zakharovvi@gmail.com>
*/
class TwigRendererTest extends \<API key>
{
/**
* @var \<API key>
*/
protected $fileLocatorStub;
/**
* @var \Zakharovvi\HumansTxtBundle\Tests\Filesystem
*/
protected $filesystem;
/**
* @var string
*/
protected $workspace;
protected function setUp()
{
$this->fileLocatorStub = $this->getMock('\Symfony\Component\Config\<API key>');
$this->filesystem = new Filesystem();
$this->workspace = $this->filesystem->getWorkspace();
}
protected function tearDown()
{
$this->filesystem->clean($this->workspace);
}
/**
* @param string $content
* @return string
*/
protected function initSkeletonFile($content)
{
$realSkeletonFile = $this->workspace.DIRECTORY_SEPARATOR.'humans.txt';
file_put_contents($realSkeletonFile, $content);
$unrealSkeletonFile = '/unrealFile';
$this->fileLocatorStub->expects($this->once())
->method('locate')
->with($unrealSkeletonFile)
->will($this->returnValue($realSkeletonFile));
return $unrealSkeletonFile;
}
public function <API key>()
{
$this-><API key>('\<API key>');
$nonexistentFile = '/path/to/nonexistent/file';
$this->fileLocatorStub->expects($this->once())
->method('locate')
->with($nonexistentFile)
->will($this->throwException(new \<API key>));
new TwigRenderer($this->fileLocatorStub, $nonexistentFile);
}
public function <API key>()
{
$this-><API key>('\RuntimeException');
$skeletonFile = $this->initSkeletonFile('{{ <API key> }}');
$renderer = new TwigRenderer($this->fileLocatorStub, $skeletonFile);
$renderer->render(array());
}
public function testRender()
{
$template = '/* TEAM */
{% for author in authors %}
{{ author.name }}
{{ author.email }}
{% endfor %}
';
$skeletonFile = $this->initSkeletonFile($template);
$renderer = new TwigRenderer($this->fileLocatorStub, $skeletonFile);
$renderedContent = '/* TEAM */
Vitaliy Zakharov
zakharovvi@gmail.com
Noreal Name
name@example.com
';
$author1 = new Author('Vitaliy Zakharov');
$author1->setEmail('zakharovvi@gmail.com');
$author2 = new Author('Noreal Name');
$author2->setEmail('name@example.com');
$authors = array($author1,$author2);
$this->assertEquals($renderedContent,$renderer->render($authors));
}
}
|
package pl.edu.wat.tim.webstore.service;
import pl.edu.wat.tim.webstore.model.UploadFile;
public interface UploadFileService {
void save(UploadFile uploadFile);
UploadFile getUploadFile(String name);
}
|
'use strict';
angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip'])
.provider('$dropdown', function() {
var defaults = this.defaults = {
animation: 'am-fade',
prefixClass: 'dropdown',
prefixEvent: 'dropdown',
placement: 'bottom-left',
template: 'dropdown/dropdown.tpl.html',
trigger: 'click',
container: false,
keyboard: true,
html: false,
delay: 0
};
this.$get = function($window, $rootScope, $tooltip, $timeout) {
var bodyEl = angular.element($window.document.body);
var matchesSelector = Element.prototype.matchesSelector || Element.prototype.<API key> || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector;
function DropdownFactory(element, config) {
var $dropdown = {};
// Common vars
var options = angular.extend({}, defaults, config);
var scope = $dropdown.$scope = options.scope && options.scope.$new() || $rootScope.$new();
$dropdown = $tooltip(element, options);
var parentEl = element.parent();
// Protected methods
$dropdown.$onKeyDown = function(evt) {
if (!/(38|40)/.test(evt.keyCode)) return;
evt.preventDefault();
evt.stopPropagation();
// Retrieve focused index
var items = angular.element($dropdown.$element[0].querySelectorAll('li:not(.divider) a'));
if(!items.length) return;
var index;
angular.forEach(items, function(el, i) {
if(matchesSelector && matchesSelector.call(el, ':focus')) index = i;
});
// Navigate with keyboard
if(evt.keyCode === 38 && index > 0) index
else if(evt.keyCode === 40 && index < items.length - 1) index++;
else if(angular.isUndefined(index)) index = 0;
items.eq(index)[0].focus();
};
// Overrides
var show = $dropdown.show;
$dropdown.show = function() {
show();
// use timeout to hookup the events to prevent
// event bubbling from being processed imediately.
$timeout(function() {
options.keyboard && $dropdown.$element.on('keydown', $dropdown.$onKeyDown);
bodyEl.on('click', onBodyClick);
}, 0, false);
parentEl.hasClass('dropdown') && parentEl.addClass('open');
};
var hide = $dropdown.hide;
$dropdown.hide = function() {
if(!$dropdown.$isShown) return;
options.keyboard && $dropdown.$element.off('keydown', $dropdown.$onKeyDown);
bodyEl.off('click', onBodyClick);
parentEl.hasClass('dropdown') && parentEl.removeClass('open');
hide();
};
var destroy = $dropdown.destroy;
$dropdown.destroy = function() {
bodyEl.off('click', onBodyClick);
destroy();
};
// Private functions
function onBodyClick(evt) {
if(evt.target === element[0]) return;
return evt.target !== element[0] && $dropdown.hide();
}
return $dropdown;
}
return DropdownFactory;
};
})
.directive('bsDropdown', function($window, $sce, $dropdown) {
return {
restrict: 'EAC',
scope: true,
link: function postLink(scope, element, attr, transclusion) {
// Directive options
var options = {scope: scope};
angular.forEach(['placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'template', 'id'], function(key) {
if(angular.isDefined(attr[key])) options[key] = attr[key];
});
// use string regex match boolean attr falsy values, leave truthy values be
var falseValueRegExp = /^(false|0|)$/i;
angular.forEach(['html', 'container'], function(key) {
if(angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key]))
options[key] = false;
});
// Support scope as an object
attr.bsDropdown && scope.$watch(attr.bsDropdown, function(newValue, oldValue) {
scope.content = newValue;
}, true);
// Visibility binding support
attr.bsShow && scope.$watch(attr.bsShow, function(newValue, oldValue) {
if(!dropdown || !angular.isDefined(newValue)) return;
if(angular.isString(newValue)) newValue = !!newValue.match(/true|,?(dropdown),?/i);
newValue === true ? dropdown.show() : dropdown.hide();
});
// Initialize dropdown
var dropdown = $dropdown(element, options);
// Garbage collection
scope.$on('$destroy', function() {
if (dropdown) dropdown.destroy();
options = null;
dropdown = null;
});
}
};
});
|
/*
*
* hocNotification
*
*/
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose, setPropTypes } from 'recompose';
import { <API key> } from 'reselect';
import { selectNotifications } from 'features/common_ui/selectors';
const mapStateToProps = <API key>({
notifications: selectNotifications(),
});
const sliderPropsType = setPropTypes({
notifications: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired,
});
const hocNotification = compose(connect(mapStateToProps), sliderPropsType);
export default hocNotification;
|
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":10:{s:4:"type";s:6:"string";s:6:"length";i:255;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:4:"name";s:15:"nom_responsable";s:7:"options";a:0:{}s:16:"columnDefinition";N;s:5:"value";N;}}');
|
#ifndef MYY_DATA_SECTION_H
#define MYY_DATA_SECTION_H 1
#include <stdint.h>
struct data_section_status {
unsigned int allocated;
void * address;
};
struct data_symbol {
uint32_t id;
uint32_t align;
uint32_t size;
uint8_t * name;
uint8_t * data;
};
struct data_section {
struct data_symbol * symbols;
uint32_t stored;
uint32_t next_id;
uint32_t base_address;
uint32_t <API key>;
};
struct <API key> {
unsigned int added;
unsigned int id;
};
struct data_section * <API key>();
unsigned int <API key>
(struct data_section * __restrict const data_section);
struct <API key> data_section_add
(struct data_section * __restrict const data_section,
unsigned int const alignment,
unsigned int const size,
uint8_t const * __restrict const name,
uint8_t const * __restrict const data);
struct uint32_result {
unsigned int found;
uint32_t value;
};
struct symbol_found {
unsigned int found;
struct data_symbol * address;
};
struct symbol_found <API key>
(struct data_section const * __restrict const data_infos,
uint32_t id);
void <API key>
(struct data_section * __restrict const data_section,
unsigned int const id1, unsigned int const id2);
uint32_t <API key>
(struct data_section const * __restrict const symbols,
uint8_t * __restrict const dest);
void delete_data_symbol
(struct data_section * __restrict const data_section,
uint32_t id);
uint32_t data_section_size
(struct data_section const * __restrict const data_section);
#define <API key> struct data_section const * __restrict const data_section,\
uint32_t const data_id
uint32_t data_address(<API key>);
uint32_t <API key>(<API key>);
uint32_t <API key>(<API key>);
uint32_t data_size(<API key>);
void update_data_symbol
(struct data_section * __restrict const data_section,
uint32_t const id,
uint32_t const align,
uint32_t const data_size,
uint8_t const * __restrict const name,
uint8_t const * __restrict const data);
void <API key>
(struct data_section * __restrict const data_section,
uint32_t const base_address);
#endif
|
<?php
declare(strict_types=1);
namespace Core\Infrastructure\Doctrine\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class <API key> extends AbstractMigration
{
public function getDescription(): string
{
return 'Create the first throw of necessary tables.';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(
'CREATE TABLE company (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'company_name VARCHAR(255) NOT NULL, ' .
'address VARCHAR(255) NOT NULL, ' .
'zip_code VARCHAR(5) NOT NULL, ' .
'town VARCHAR(255) NOT NULL, ' .
'country VARCHAR(255) NOT NULL, ' .
'phone VARCHAR(14) NOT NULL, ' .
'facsimile VARCHAR(14) DEFAULT NULL, ' .
'email VARCHAR(255) NOT NULL, ' .
'contact_name VARCHAR(255) NOT NULL, ' .
'cellphone VARCHAR(14) NOT NULL, ' .
'slug VARCHAR(255) NOT NULL, ' .
'UNIQUE INDEX <API key> (company_name), ' .
'UNIQUE INDEX <API key> (slug), ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE settings (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'locale VARCHAR(255) NOT NULL, ' .
'currency VARCHAR(255) NOT NULL, ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE supplier (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'family_log VARCHAR(255) NOT NULL, ' .
'delay_delivery INT NOT NULL, ' .
'order_days LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ' .
'active TINYINT(1) NOT NULL, ' .
'company_name VARCHAR(255) NOT NULL, ' .
'address VARCHAR(255) NOT NULL, ' .
'zip_code VARCHAR(5) NOT NULL, ' .
'town VARCHAR(255) NOT NULL, ' .
'country VARCHAR(255) NOT NULL, ' .
'phone VARCHAR(14) NOT NULL, ' .
'facsimile VARCHAR(14) DEFAULT NULL, ' .
'email VARCHAR(255) NOT NULL, ' .
'contact_name VARCHAR(255) NOT NULL, ' .
'cellphone VARCHAR(14) NOT NULL, s' .
'lug VARCHAR(255) NOT NULL, ' .
'UNIQUE INDEX <API key> (company_name), ' .
'UNIQUE INDEX <API key> (slug), ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE user (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'username VARCHAR(150) NOT NULL, ' .
'email VARCHAR(255) NOT NULL, ' .
'password VARCHAR(120) NOT NULL, ' .
'roles LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE messenger_messages (' .
'id BIGINT AUTO_INCREMENT NOT NULL, ' .
'body LONGTEXT NOT NULL, ' .
'headers LONGTEXT NOT NULL, ' .
'queue_name VARCHAR(190) NOT NULL, ' .
'created_at DATETIME NOT NULL, ' .
'available_at DATETIME NOT NULL, ' .
'delivered_at DATETIME DEFAULT NULL, ' .
'INDEX <API key> (queue_name), ' .
'INDEX <API key> (available_at), ' .
'INDEX <API key> (delivered_at), ' .
'PRIMARY KEY(id)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE company');
$this->addSql('DROP TABLE settings');
$this->addSql('DROP TABLE supplier');
$this->addSql('DROP TABLE user');
$this->addSql('DROP TABLE messenger_messages');
}
}
|
package com.mybatistemplate.adapter;
import com.mybatistemplate.core.<API key>;
import com.mybatistemplate.core.IdGeneratorType;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.ResultMap;
public abstract class TemplateExAdapter {
public void insertBatch(MappedStatement ms, ResultMap resultMap, String table, Class entity, IdGeneratorType idGeneratorType, <API key> <API key>) throws Exception{
}
public void updateBatch(MappedStatement ms, ResultMap resultMap, String table, Class entity) throws Exception{
}
}
|
<?php
namespace Proxies\__CG__\Mistra\TutoBundle\Entity;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class User extends \Mistra\TutoBundle\Entity\User implements \Doctrine\ORM\Proxy\Proxy
{
private $_entityPersister;
private $_identifier;
public $__isInitialized__ = false;
public function __construct($entityPersister, $identifier)
{
$this->_entityPersister = $entityPersister;
$this->_identifier = $identifier;
}
/** @private */
public function __load()
{
if (!$this->__isInitialized__ && $this->_entityPersister) {
$this->__isInitialized__ = true;
if (method_exists($this, "__wakeup")) {
// call this after __isInitialized__to avoid infinite recursion
// but before loading to emulate what ClassMetadata::newInstance()
// provides.
$this->__wakeup();
}
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
throw new \Doctrine\ORM\<API key>();
}
unset($this->_entityPersister, $this->_identifier);
}
}
/** @private */
public function __isInitialized()
{
return $this->__isInitialized__;
}
public function getId()
{
if ($this->__isInitialized__ === false) {
return (int) $this->_identifier["id"];
}
$this->__load();
return parent::getId();
}
public function setLogin($login)
{
$this->__load();
return parent::setLogin($login);
}
public function getLogin()
{
$this->__load();
return parent::getLogin();
}
public function setPassword($password)
{
$this->__load();
return parent::setPassword($password);
}
public function getPassword()
{
$this->__load();
return parent::getPassword();
}
public function setAccess($access)
{
$this->__load();
return parent::setAccess($access);
}
public function getAccess()
{
$this->__load();
return parent::getAccess();
}
public function __sleep()
{
return array('__isInitialized__', 'id', 'login', 'password', 'access');
}
public function __clone()
{
if (!$this->__isInitialized__ && $this->_entityPersister) {
$this->__isInitialized__ = true;
$class = $this->_entityPersister->getClassMetadata();
$original = $this->_entityPersister->load($this->_identifier);
if ($original === null) {
throw new \Doctrine\ORM\<API key>();
}
foreach ($class->reflFields as $field => $reflProperty) {
$reflProperty->setValue($this, $reflProperty->getValue($original));
}
unset($this->_entityPersister, $this->_identifier);
}
}
}
|
// This contains the module definition factory function, application state,
// events, and the router.
this.jda = {
// break up logical components of code into modules.
module: function()
{
// Internal module cache.
var modules = {};
// Create a new module reference scaffold or load an existing module.
return function(name)
{
// If this module has already been created, return it
if (modules[name]) return modules[name];
// Create a module and save it under this name
return modules[name] = { Views: {} };
};
}(),
// Keep active application instances namespaced under an app object.
app: _.extend({
apiLocation : sessionStorage.getItem("apiUrl"),
currentView : 'list',
resultsPerPage : 100,
init : function(){
// make item collection
this.currentFilter=null;
var Browser = jda.module("browser");
this.resultsView = new Browser.Items.Collections.Views.Results();
this.eventMap = new Browser.Views.EventMap();
this.<API key>();
this.startRouter();
var _this=this;
},
<API key>:function(){
//load my collections drawer
var Browser = jda.module("browser");
this.myCollectionsDrawer = new Browser.Items.Collections.Views.MyCollectionsDrawer();
this.myCollectionsDrawer.getCollectionList();
},
startRouter: function()
{
var _this = this;
// Defining the application router, you can attach sub routers here.
var Router = Backbone.Router.extend({
routes: {
"" : 'search',
":query" : 'search'
},
search : function( query ){
_this.parseURLHash(query);
}
});
this.router = new Router();
Backbone.history.start();
},
queryStringToHash: function (query) {
var query_obj = {};
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
pair[0] = decodeURIComponent(pair[0]);
pair[1] = decodeURIComponent(pair[1]);
// If first entry with this name
if (typeof query_obj[pair[0]] === "undefined") {
query_obj[pair[0]] = pair[1];
// If second entry with this name
} else if (typeof query_obj[pair[0]] === "string") {
var arr = [ query_obj[pair[0]], pair[1] ];
query_obj[pair[0]] = arr;
// If third or later entry with this name
} else {
query_obj[pair[0]].push(pair[1]);
}
}
//parse time slider properties
query_obj.times = {};
if (query_obj.min_date !== null){
query_obj.times.start = query_obj.min_date;
}
if (query_obj.max_date !== null){
query_obj.times.end = query_obj.max_date;
}
return query_obj;
},
parseURLHash : function (query){
var _this=this;
var Browser = jda.module("browser");
//Update Search Object
if (!_.isUndefined(query)){
this.searchObject = this.queryStringToHash(query);
} else {
this.searchObject = {page:1};
}
console.log("searchObject",this.searchObject);
//Update interface
this.updateSearchUI(this.searchObject);
//Load filter if nec, carry out search
if(sessionStorage.getItem('filterType')=='none'||!_.isUndefined(this.filterModel)) {
if (!_.isUndefined(this.searchObject.view_type)) this.switchViewTo(this.searchObject.view_type,true) ;
else this.search(this.searchObject);
}
else{
$('.tab-content').find('.btn-group').hide();
$('#jda-related-tags').hide();
$('#event-button').hide();
if(sessionStorage.getItem('filterType')=='user'){
this.filterType ="user";
this.filterModel = new Browser.Users.Model({id:sessionStorage.getItem('filterId')});
this.filterModel.fetch({
success : function(model, response){
_this.resultsView.userFilter = new Browser.Users.Views.UserPage({model:model});
if (!_.isUndefined(_this.searchObject.view_type)) _this.switchViewTo(_this.searchObject.view_type,true) ;
else _this.search(_this.searchObject);
},
error : function(model, response){
console.log('Failed to fetch the user object.');
}
});
}
else if(sessionStorage.getItem('filterType')=='collection'){
this.filterType ="collection";
this.filterModel = new Browser.Items.Model({id:sessionStorage.getItem('filterId')});
this.filterModel.fetch({
success : function(model, response){
_this.resultsView.collectionFilter = new Browser.Items.Views.CollectionPage({model:model});
if (!_.isUndefined(_this.searchObject.view_type)) _this.switchViewTo(_this.searchObject.view_type,true) ;
else _this.search(_this.searchObject);
},
error : function(model, response){
console.log('Failed to fetch the user object.');
}
});
}
}
},
sort : function(){
this.searchObject.sort = $('#zeega-sort').val();
this.updateURLHash(this.searchObject);
this.search(this.searchObject);
},
parseSearchUI : function(){
var facets = VisualSearch.searchQuery.models;
var obj={};
var tagQuery = "";
var textQuery = "";
_.each( VisualSearch.searchBox.facetViews, function( facet ){
if( facet.model.get('category') != 'tag' && facet.model.get('category') != 'text')
{
facet.model.set({'value': null });
facet.remove();
}
});
_.each(facets, function(facet){
switch ( facet.get('category') )
{
case 'text':
textQuery = (textQuery.length > 0) ? textQuery + " AND " + facet.get('value') : facet.get('value');
textQuery=textQuery.replace(/^
break;
case 'tag':
tagQuery = (tagQuery.length > 0) ? tagQuery + " AND " + facet.get('value') : tagQuery + facet.get('value');
tagQuery=tagQuery.replace(/^
break;
}
});
obj.q = textQuery;
obj.tags = tagQuery;
obj.view_type = this.currentView;
obj.media_type = $('#zeega-content-type').val();
// remove retweets
if ($("#noRTChk").is(":checked")) {
obj.nq = "RT";
}
obj.sort = $('#zeega-sort').val();
obj.times = this.searchObject.times;
this.searchObject=obj;
this.updateURLHash(obj);
this.search(obj);
},
updateSearchUI : function(obj){
VisualSearch.searchBox.disableFacets();
VisualSearch.searchBox.value('');
VisualSearch.searchBox.flags.allSelected = false;
var tags, text;
if (!_.isUndefined(obj.q)&&obj.q.length>0){
text = obj.q.split(" AND ");
for( var j=0; j<text.length; j++ ){
VisualSearch.searchBox.addFacet('text', text[j], 0);
}
}
//check for tags
if (!_.isUndefined(obj.tags)&&obj.tags.length>0){
tags = obj.tags.split(" AND ");
for(var i=0;i<tags.length;i++)
{
VisualSearch.searchBox.addFacet('tag', tags[i], 0);
}
}
if (!_.isUndefined(obj.media_type)) $('#zeega-content-type').val(obj.media_type);
else $('#zeega-content-type').val("");
if (!_.isUndefined(obj.sort)) $('#zeega-sort').val(obj.sort);
else $('#zeega-sort').val("relevant");
$('#select-wrap-text').text( $('#zeega-content-type option[value=\''+$('#zeega-content-type').val()+'\']').text() );
},
updateURLHash : function(obj){
var hash = '';
if( !_.isUndefined(this.viewType)) hash += 'view_type=' + this.viewType + '&';
if( !_.isUndefined(obj.q) && obj.q.length > 0) hash += 'q=' + obj.q + '&';
if( !_.isUndefined(obj.nq)) hash += 'nq=' + obj.nq + '&';
if( !_.isUndefined(obj.tags) && obj.tags.length > 0) hash += 'tags=' + obj.tags + '&';
if( !_.isUndefined(obj.media_type) )hash += 'media_type='+ obj.media_type + '&';
if( !_.isUndefined(obj.media_after) )hash += 'media_after='+ obj.media_after + '&';
if( !_.isUndefined(obj.media_before) )hash += 'media_before='+ obj.media_before + '&';
if( !_.isUndefined(obj.sort) ) hash += 'sort='+ obj.sort + '&';
if( !_.isUndefined(obj.mapBounds) ) hash += 'map_bounds='+ encodeURIComponent(obj.mapBounds) + '&';
if( !_.isUndefined(obj.times)&& !_.isNull(obj.times) )
{
if( !_.isUndefined(obj.times.start) ) hash += 'min_date='+ obj.times.start + '&';
if( !_.isUndefined(obj.times.end) ) hash += 'max_date='+ obj.times.end + '&';
}
jda.app.router.navigate(hash,{trigger:false});
},
search : function(obj){
if(!_.isUndefined(this.filterType)){
if(this.filterType=="user"){
obj.user= sessionStorage.getItem('filterId');
}
else if(this.filterType=="collection"){
obj.itemId = sessionStorage.getItem('filterId');
}
}
this.resultsView.search( obj,true );
if (this.currentView == 'event') this.eventMap.load();
},
switchViewTo : function( view , refresh ){
var _this=this;
if( view != this.currentView&&(view=="event"||this.currentView=="event"))refresh = true;
this.currentView = view;
$('.tab-pane').removeClass('active');
$('#zeega-'+view+'-view').addClass('active');
switch( this.currentView )
{
case 'list':
this.showListView(refresh);
break;
case 'event':
this.showEventView(refresh);
break;
case 'thumb':
this.showThumbnailView(refresh);
break;
default:
console.log('view type not recognized');
}
},
showListView : function(refresh){
$('#zeega-view-buttons .btn').removeClass('active');
$('#list-button').addClass('active');
$('#jda-right').show();
$('#event-time-slider').hide();
$('#zeega-results-count').removeClass('<API key>');
$('#zeega-results-count').css('left', 0);
$('#zeega-results-count').css('z-index', 0);
$('#<API key>').hide();
if(this.resultsView.updated)
{
this.resultsView.render();
}
this.viewType='list';
if(refresh){
this.searchObject.times=null;
this.search(this.searchObject);
}
this.updateURLHash(this.searchObject);
},
showThumbnailView : function(refresh){
$('#zeega-view-buttons .btn').removeClass('active');
$('#thumb-button').addClass('active');
$('#jda-right').show();
$('#event-time-slider').hide();
$('#zeega-results-count').removeClass('<API key>');
$('#zeega-results-count').css('left', 0);
$('#zeega-results-count').css('z-index', 0);
$('#<API key>').hide();
if(this.resultsView.updated)
{
this.resultsView.render();
}
this.viewType='thumb';
if(refresh){
this.searchObject.times=null;
this.search(this.searchObject);
}
this.updateURLHash(this.searchObject);
},
showEventView : function(refresh){
$('#zeega-view-buttons .btn').removeClass('active');
$('#event-button').addClass('active');
$('#jda-right').hide();
$('#event-time-slider').show();
$('#zeega-results-count').addClass('<API key>');
$('#zeega-results-count').offset( { top:$('#zeega-results-count').offset().top, left:10 } );
$('#zeega-results-count').css('z-index', 1000);
$('#<API key>').show();
/*
var removedFilters = "";
var _this = this;
_.each( VisualSearch.searchBox.facetViews, function( facet ){
if( facet.model.get('category') == 'tag' || facet.model.get('category') == 'collection' ||
facet.model.get('category') == 'user');
{
facet.model.set({'value': null });
facet.remove();
removedFilters += facet.model.get('category') + ": " + facet.model.get('value') + " ";
}
if( facet.model.get('category') == 'tag'){
_this.resultsView.clearTags();
}
if( facet.model.get('category') == 'collection' ||
facet.model.get('category') == 'user') {
_this.removeFilter(facet.model.get('category'),_this.resultsView.getSearch());
}
});
if (removedFilters.length > 0){
$('#removed-tag-name').text(removedFilters);
$('#remove-tag-alert').show('slow');
setTimeout(function() {
$('#remove-tag-alert').hide('slow');
}, 5000);
}
*/
$("#zeega-event-view").width($(window).width());
//this is the hacky way to update the search count properly on the map
$("#zeega-results-count").fadeTo(100,0);
this.viewType='event';
//this.parseSearchUI();
this.updateURLHash(this.searchObject);
this.search(this.searchObject);
},
<API key> : function(obj){
this.eventMap.updateTimePlace(obj);
},
clearSearchFilters : function(doSearch){
$('#zeega-content-type').val("all");
$('#select-wrap-text').text( $('#zeega-content-type option[value=\''+$('#zeega-content-type').val()+'\']').text() );
//remove search box values
VisualSearch.searchBox.disableFacets();
VisualSearch.searchBox.value('');
VisualSearch.searchBox.flags.allSelected = false;
if(doSearch) this.search({ page:1});
},
goToCollection: function (id){
window.location=$('#zeega-main-content').data('collection-link')+"/"+id;
},
goToUser: function (id){
window.location=$('#zeega-main-content').data('user-link')+"/"+id;
},
userAuthenticated: function(){
$('#<API key>').html('Saving collection...');
var _this=this;
if(this.myCollectionsDrawer.activeCollection.get('new_items').length>0){
this.myCollectionsDrawer.activeCollection.save({},{
success:function(model,response){
_this.<API key>();
}
});
}
else this.<API key>();
}
}, Backbone.Events)
};
|
#!/bin/sh
set -e
echo "mkdir -p ${<API key>}/${<API key>}"
mkdir -p "${<API key>}/${<API key>}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRODUCTS_DIR}/$1"
elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
elif [ -r "$1" ]; then
local source="$1"
fi
local destination="${TARGET_BUILD_DIR}/${<API key>}"
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink "${source}")"
fi
# use filter instead of exclude so missing patterns dont' throw errors
echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
local basename
basename="$(basename -s .framework "$1")"
binary="${destination}/${basename}.framework/${basename}"
if ! [ -r "$binary" ]; then
binary="${destination}/${basename}"
fi
# Strip invalid architectures so "fat" simulator / device frameworks work on device
if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
strip_invalid_archs "$binary"
fi
# Resign the code if required by the build settings to avoid unstable apps
<API key> "${destination}/$(basename "$1")"
# Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
local swift_runtime_libs
swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
for lib in $swift_runtime_libs; do
echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
<API key> "${destination}/${lib}"
done
fi
}
# Signs a framework with the provided identity
<API key>() {
if [ -n "${<API key>}" -a "${<API key>}" != "NO" -a "${<API key>}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${<API key>}"
echo "/usr/bin/codesign --force --sign ${<API key>} ${<API key>} --preserve-metadata=identifier,entitlements \"$1\""
/usr/bin/codesign --force --sign ${<API key>} ${<API key>} --preserve-metadata=identifier,entitlements "$1"
fi
}
# Strip invalid architectures
strip_invalid_archs() {
binary="$1"
# Get architectures for current file
archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)"
stripped=""
for arch in $archs; do
if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
# Strip non-valid architectures in-place
lipo -remove "$arch" -output "$binary" "$binary" || exit 1
stripped="$stripped $arch"
fi
done
if [[ "$stripped" ]]; then
echo "Stripped $binary of architectures:$stripped"
fi
}
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework "$BUILT_PRODUCTS_DIR/PopupDialog/PopupDialog.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework "$BUILT_PRODUCTS_DIR/PopupDialog/PopupDialog.framework"
fi
|
require 'spec_helper'
module Sendgrid
module API
module Entities
describe Stats do
subject { described_class.new }
it { should respond_to(:delivered) }
it { should respond_to(:request) }
it { should respond_to(:unique_open) }
it { should respond_to(:unique_click) }
it { should respond_to(:processed) }
it { should respond_to(:date) }
it { should respond_to(:open) }
it { should respond_to(:click) }
it { should respond_to(:blocked) }
it { should respond_to(:spamreport) }
it { should respond_to(:drop) }
it { should respond_to(:bounce) }
it { should respond_to(:deferred) }
end
end
end
end
|
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Threading;
using System.Runtime.Remoting.Lifetime;
using System.Windows.Forms;
using System.Drawing;
using System.Linq;
using NationalInstruments;
using NationalInstruments.DAQmx;
using NationalInstruments.VisaNS;
using DAQ;
using DAQ.HAL;
using DAQ.Environment;
using DAQ.TransferCavityLock;
using IMAQ;
using NavAnalysis;
using Newtonsoft.Json;
namespace NavHardwareControl
{
<summary>
This is the interface to the sympathetic specific hardware.
Flow chart (under normal conditions): UI -> controller -> hardware. Basically, that's it.
Exceptions:
-controller can set values displayed on UI (only meant for special cases, like startup or re-loading a saved parameter set)
-Some public functions allow the HC to be controlled remotely (see below).
HardwareState:
There are 3 states which the controller can be in: OFF, LOCAL and REMOTE.
OFF just means the HC is idle.
The state is set to LOCAL when this program is actively upating the state of the hardware. It does this by
reading off what's on the UI, finding any discrepancies between the current state of the hardware and the values on the UI
and by updating the hardware accordingly.
After finishing with the update, it resets the state to OFF.
When the state is set to REMOTE, the UI is disactivated. The hardware controller saves all the parameter values upon switching from
LOCAL to REMOTE, then does nothing. When switching back, it reinstates the hardware state to what it was before it switched to REMOTE.
Use this when you want to control the hardware from somewhere else (e.g. MOTMaster).
Remoting functions (SetValue):
Having said that, you'll notice that there are also public functions for modifying parameter values without putting the HC in REMOTE.
I wrote it like this because you want to be able to do two different things:
-Have the hardware controller take a back seat and let something else control the hardware for a while (e.g. MOTMaster)
This is when you should use the REMOTE state.
-You still want the HC to keep track of the hardware (hence remaining in LOCAL), but you want to send commands to it remotely
(say from a console) instead of from the UI. This is when you would use the SetValue functions.
The Hardware Report:
The Hardware report is a way of passing a dictionary (gauges, temperature measurements, error signals) to another program
(MotMaster, say). MOTMaster can then save the dictionary along with the data. I hope this will help towards answering questions
like: "what was the source chamber pressure when we took this data?". At the moment, the hardware state is also included in the report.
</summary>
public class Controller : MarshalByRefObject, CameraControllable, <API key>, IHardwareRelease
{
#region Constants
//Put any constants and stuff here
private static string <API key> = (string)Environs.FileSystem.Paths["<API key>"];
private static string profilesPath = (string)Environs.FileSystem.Paths["settingsPath"] + "\\<API key>\\";
private static Hashtable calibrations = Environs.Hardware.Calibrations;
#endregion
#region Setup
// table of all digital analogTasks
Hashtable digitalTasks = new Hashtable();
<API key> HSchannels;
//Cameras
public CameraController ImageController;
public bool cameraLoaded = false;
// Declare that there will be a controlWindow
ControlWindow controlWindow;
//Add the window for analysis
AnalWindow analWindow;
//private bool sHCUIControl;
public enum HCUIControlState { OFF, LOCAL, REMOTE };
public HCUIControlState HCState = new HCUIControlState();
private class <API key> : ArgumentException { };
HardwareState stateRecord;
private Dictionary<string, Task> analogTasks;
// without this method, any remote connections to this object will time out after
// five minutes of inactivity.
// It just overrides the lifetime lease system completely.
public override Object <API key>()
{
return null;
}
public void Start()
{
// make the digital analogTasks. The function "CreateDigitalTask" is defined later
//e.g CreateDigitalTask("notEOnOff");
// CreateDigitalTask("eOnOff");
//This is to keep track of the various things which the HC controls.
analogTasks = new Dictionary<string, Task>();
var temp = Environs.Info["HSDIOBoard"];
HSchannels = new <API key>((string)Environs.Hardware.GetInfo("HSDIOBoard"), "0-31");
stateRecord = new HardwareState();
CreateHSDigitalTask("do00");
CreateHSDigitalTask("do01");
CreateDigitalTask("testDigitalChannel");
// make the analog output analogTasks. The function "<API key>" is defined later
//e.g. <API key> = <API key>("b");
// <API key> = <API key>("steppingBBias");
<API key>("motCoil");
<API key>("aom1freq");
<API key>("motShutter");
<API key>("imagingShutter");
<API key>("rfSwitch");
<API key>("rfAtten");
//<API key>("testInput", -10, 10);
// make the control controlWindow
controlWindow = new ControlWindow();
controlWindow.controller = this;
HCState = HCUIControlState.OFF;
Application.Run(controlWindow);
}
// this method runs immediately after the GUI sets up
internal void ControllerLoaded()
{
HardwareState loadedState = loadParameters(profilesPath + "StoppedParameters.json");
if (!loadedState.Equals(stateRecord))
{
foreach (KeyValuePair<string, double> pair in loadedState.analogs)
{
if (stateRecord.analogs.ContainsKey(pair.Key))
{
stateRecord.analogs[pair.Key] = pair.Value;
}
}
foreach (KeyValuePair<string, bool> pair in loadedState.digitals)
{
if (stateRecord.digitals.ContainsKey(pair.Key))
{
stateRecord.digitals[pair.Key] = pair.Value;
}
}
}
<API key>(stateRecord);
<API key>();
}
public void ControllerStopping()
{
// things like saving parameters, turning things off before quitting the program should go here
StoreParameters(profilesPath + "StoppedParameters.json");
}
#endregion
#region private methods for creating un-timed Tasks/channels
// a list of functions for creating various analogTasks
private void <API key>(string channel)
{
analogTasks[channel] = new Task(channel);
((AnalogInputChannel)Environs.Hardware.AnalogInputChannels[channel]).AddToTask(
analogTasks[channel],
0,
10
);
analogTasks[channel].Control(TaskAction.Verify);
}
// an overload to specify input range
private void <API key>(string channel, double lowRange, double highRange)
{
analogTasks[channel] = new Task(channel);
((AnalogInputChannel)Environs.Hardware.AnalogInputChannels[channel]).AddToTask(
analogTasks[channel],
lowRange,
highRange
);
analogTasks[channel].Control(TaskAction.Verify);
}
private void <API key>(string channel)
{
stateRecord.analogs[channel] = (double)0.0;
analogTasks[channel] = new Task(channel);
AnalogOutputChannel c = ((AnalogOutputChannel)Environs.Hardware.<API key>[channel]);
c.AddToTask(
analogTasks[channel],
c.RangeLow,
c.RangeHigh
);
analogTasks[channel].Control(TaskAction.Verify);
}
// setting an analog voltage to an output
public void SetAnalogOutput(string channel, double voltage)
{
SetAnalogOutput(channel, voltage, false);
}
//Overload for using a calibration before outputting to hardware
public void SetAnalogOutput(string channelName, double voltage, bool useCalibration)
{
<API key> writer = new <API key>(analogTasks[channelName].Stream);
double output;
if (useCalibration)
{
try
{
output = ((Calibration)calibrations[channelName]).Convert(voltage);
}
catch (DAQ.HAL.Calibration.<API key>)
{
MessageBox.Show("The number you have typed is out of the calibrated range! \n Try typing something more sensible.");
throw new <API key>();
}
catch
{
MessageBox.Show("Calibration error");
throw new <API key>();
}
}
else
{
output = voltage;
}
try
{
writer.WriteSingleSample(true, output);
analogTasks[channelName].Control(TaskAction.Unreserve);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
public class <API key> : <API key> { };
// reading an analog voltage from input
public double ReadAnalogInput(string channel)
{
return ReadAnalogInput(channel, false);
}
public double ReadAnalogInput(string channelName, bool useCalibration)
{
<API key> reader = new <API key>(analogTasks[channelName].Stream);
double val = reader.ReadSingleSample();
analogTasks[channelName].Control(TaskAction.Unreserve);
if (useCalibration)
{
try
{
return ((Calibration)calibrations[channelName]).Convert(val);
}
catch
{
MessageBox.Show("Calibration error");
return val;
}
}
else
{
return val;
}
}
// overload for reading multiple samples
public double ReadAnalogInput(string channel, double sampleRate, int numOfSamples, bool useCalibration)
{
//Configure the timing parameters of the task
analogTasks[channel].Timing.<API key>("", sampleRate,
<API key>.Rising, SampleQuantityMode.FiniteSamples, numOfSamples);
//Read in multiple samples
<API key> reader = new <API key>(analogTasks[channel].Stream);
double[] valArray = reader.ReadMultiSample(numOfSamples);
analogTasks[channel].Control(TaskAction.Unreserve);
//Calculate the average of the samples
double sum = 0;
for (int j = 0; j < numOfSamples; j++)
{
sum = sum + valArray[j];
}
double val = sum / numOfSamples;
if (useCalibration)
{
try
{
return ((Calibration)calibrations[channel]).Convert(val);
}
catch
{
MessageBox.Show("Calibration error");
return val;
}
}
else
{
return val;
}
}
private void CreateDigitalTask(String name)
{
stateRecord.digitals[name] = false;
Task digitalTask = new Task(name);
((<API key>)Environs.Hardware.<API key>[name]).AddToTask(digitalTask);
digitalTask.Control(TaskAction.Verify);
digitalTasks.Add(name, digitalTask);
}
public void SetDigitalLine(string name, bool value)
{
Task digitalTask = ((Task)digitalTasks[name]);
<API key> writer = new <API key>(digitalTask.Stream);
writer.<API key>(true, value);
digitalTask.Control(TaskAction.Unreserve);
}
private void CreateHSDigitalTask(String name)
{
<API key> channel = (<API key>)Environs.Hardware.<API key>[name];
stateRecord.HSdigitals[name] = false;
HSchannels.CreateHSDigitalTask(name, channel.BitNumber);
}
public void SetHSDigitalLine(string name, bool value)
{
HSchannels.SetHSDigitalLine(name, value);
}
#endregion
#region keeping track of the state of the hardware!
<summary>
There's this thing I've called a hardware state. It's something which keeps track of digital and analog values.
I then have something called stateRecord (defines above as an instance of hardwareState) which keeps track of
what the hardware is doing.
Anytime the hardware gets modified by this program, the stateRecord get updated. Don't hack this.
It's useful to know what the hardware is doing at all times.
When switching to REMOTE, the updates no longer happen. That's why we store the state before switching to REMOTE and apply the state
back again when returning to LOCAL.
</summary>
[Serializable]
public class HardwareState
{
public Dictionary<string, double> analogs;
public Dictionary<string, bool> digitals;
public Dictionary<string, bool> HSdigitals;
public HardwareState()
{
analogs = new Dictionary<string, double>();
digitals = new Dictionary<string, bool>();
HSdigitals = new Dictionary<string, bool>();
}
}
#endregion
#region Saving and loading experimental parameters
// Saving the parameters when closing the controller
public void <API key>()
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "shc parameters|*.json";
saveFileDialog1.Title = "Save parameters";
saveFileDialog1.InitialDirectory = profilesPath;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
if (saveFileDialog1.FileName != "")
{
StoreParameters(saveFileDialog1.FileName);
}
}
}
private void StoreParameters(String dataStoreFilePath)
{
stateRecord = readValuesOnUI();
string record = JsonConvert.SerializeObject(stateRecord);
System.IO.File.WriteAllText(dataStoreFilePath, record);
controlWindow.WriteToConsole("Saved parameters to " + dataStoreFilePath);
}
//Load parameters when opening the controller
public void <API key>()
{
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "Nav HC|*.json";
dialog.Title = "Load parameters";
dialog.InitialDirectory = profilesPath;
dialog.ShowDialog();
if (dialog.FileName != "") stateRecord = loadParameters(dialog.FileName);
<API key>(stateRecord);
controlWindow.WriteToConsole("Parameters loaded from " + dialog.FileName);
}
private HardwareState loadParameters(String dataStoreFilePath)
{
if (!File.Exists(dataStoreFilePath))
{
controlWindow.WriteToConsole("Can't Find File");
return stateRecord;
}
HardwareState state;
using (StreamReader r = new StreamReader(dataStoreFilePath))
{
string json = r.ReadToEnd();
state = JsonConvert.DeserializeObject<HardwareState>(json);
}
return state;
}
#endregion
#region Controlling hardware and UI.
//This gets/sets the values on the GUI panel
#region Updating the hardware
public void <API key>()
{
applyToHardware(stateRecord);
}
public void UpdateHardware()
{
HardwareState uiState = readValuesOnUI();
DoUpdateHardware(uiState);
}
public void DoUpdateHardware(HardwareState newState)
{
HardwareState changes = getDiscrepancies(stateRecord, newState);
applyToHardware(changes);
updateStateRecord(changes);
<API key>(stateRecord);
}
private void applyToHardware(HardwareState state)
{
if (state.analogs.Count != 0 || state.digitals.Count != 0 || state.HSdigitals.Count != 0)
{
if (HCState == HCUIControlState.OFF)
{
HCState = HCUIControlState.LOCAL;
controlWindow.UpdateUIState(HCState);
applyAnalogs(state);
applyDigitals(state);
applyHSDigitals(state);
HCState = HCUIControlState.OFF;
controlWindow.UpdateUIState(HCState);
}
}
else
{
controlWindow.WriteToConsole("The values on the UI are identical to those on the controller's records. Hardware must be up to date.");
}
}
private HardwareState getDiscrepancies(HardwareState oldState, HardwareState newState)
{
HardwareState state = new HardwareState();
state.analogs = new Dictionary<string, double>();
state.digitals = new Dictionary<string, bool>();
state.HSdigitals = new Dictionary<string, bool>();
foreach(KeyValuePair<string, double> pairs in oldState.analogs)
{
if (oldState.analogs[pairs.Key] != newState.analogs[pairs.Key])
{
state.analogs[pairs.Key] = newState.analogs[pairs.Key];
}
}
foreach (KeyValuePair<string, bool> pairs in oldState.digitals)
{
if (oldState.digitals[pairs.Key] != newState.digitals[pairs.Key])
{
state.digitals[pairs.Key] = newState.digitals[pairs.Key];
}
}
foreach (KeyValuePair<string, bool> pairs in oldState.HSdigitals)
{
if (oldState.HSdigitals[pairs.Key] != newState.HSdigitals[pairs.Key])
{
state.HSdigitals[pairs.Key] = newState.HSdigitals[pairs.Key];
}
}
return state;
}
private void updateStateRecord(HardwareState changes)
{
foreach (KeyValuePair<string, double> pairs in changes.analogs)
{
stateRecord.analogs[pairs.Key] = changes.analogs[pairs.Key];
}
foreach (KeyValuePair<string, bool> pairs in changes.digitals)
{
stateRecord.digitals[pairs.Key] = changes.digitals[pairs.Key];
}
foreach (KeyValuePair<string, bool> pairs in changes.HSdigitals)
{
stateRecord.HSdigitals[pairs.Key] = changes.HSdigitals[pairs.Key];
}
}
private void applyAnalogs(HardwareState state)
{
List<string> toRemove = new List<string>(); //In case of errors, keep track of things to delete from the list of changes.
foreach (KeyValuePair<string, double> pairs in state.analogs)
{
try
{
if (calibrations.ContainsKey(pairs.Key))
{
SetAnalogOutput(pairs.Key, pairs.Value, true);
}
else
{
SetAnalogOutput(pairs.Key, pairs.Value);
}
controlWindow.WriteToConsole("Set channel '" + pairs.Key.ToString() + "' to " + pairs.Value.ToString());
}
catch (<API key>)
{
controlWindow.WriteToConsole("Failed to set channel '"+ pairs.Key.ToString() + "' to new value");
toRemove.Add(pairs.Key);
}
}
foreach (string s in toRemove) //Remove those from the list of changes, as nothing was done to the Hardware.
{
state.analogs.Remove(s);
}
}
private void applyDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.digitals)
{
SetDigitalLine(pairs.Key, pairs.Value);
controlWindow.WriteToConsole("Set channel '" + pairs.Key.ToString() + "' to " + pairs.Value.ToString());
}
}
private void applyHSDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.HSdigitals)
{
SetHSDigitalLine(pairs.Key, pairs.Value);
controlWindow.WriteToConsole("Set channel '" + pairs.Key.ToString() + "' to " + pairs.Value.ToString());
}
}
#endregion
#region Reading and Writing to UI
private HardwareState readValuesOnUI()
{
HardwareState state = new HardwareState();
state.analogs = readUIAnalogs(stateRecord.analogs.Keys);
state.digitals = readUIDigitals(stateRecord.digitals.Keys);
state.HSdigitals = readUIHSDigitals(stateRecord.HSdigitals.Keys);
return state;
}
private Dictionary<string, double> readUIAnalogs(Dictionary<string, double>.KeyCollection keys)
{
Dictionary<string, double> analogs = new Dictionary<string, double>();
string[] keyArray = new string[keys.Count];
keys.CopyTo(keyArray, 0);
for (int i = 0; i < keys.Count; i++)
{
analogs[keyArray[i]] = controlWindow.ReadAnalog(keyArray[i]);
}
return analogs;
}
private Dictionary<string, bool> readUIDigitals(Dictionary<string, bool>.KeyCollection keys)
{
Dictionary<string, bool> digitals = new Dictionary<string,bool>();
string[] keyArray = new string[keys.Count];
keys.CopyTo(keyArray, 0);
for (int i = 0; i < keys.Count; i++)
{
digitals[keyArray[i]] = controlWindow.ReadDigital(keyArray[i]);
}
return digitals;
}
private Dictionary<string, bool> readUIHSDigitals(Dictionary<string, bool>.KeyCollection keys)
{
Dictionary<string, bool> digitals = new Dictionary<string, bool>();
string[] keyArray = new string[keys.Count];
keys.CopyTo(keyArray, 0);
for (int i = 0; i < keys.Count; i++)
{
digitals[keyArray[i]] = controlWindow.ReadHSDigital(keyArray[i]);
}
return digitals;
}
private void <API key>(HardwareState state)
{
setUIAnalogs(state);
setUIDigitals(state);
setUIHSDigitals(state);
}
private void setUIAnalogs(HardwareState state)
{
foreach (KeyValuePair<string, double> pairs in state.analogs)
{
try
{
controlWindow.SetAnalog(pairs.Key, (double)pairs.Value);
}
catch
{
MessageBox.Show("Some parameters couldn't be loaded, check the parameter file in the settings folder");
}
}
}
private void setUIDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.digitals)
{
controlWindow.SetDigital(pairs.Key, (bool)pairs.Value);
}
}
private void setUIHSDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.HSdigitals)
{
controlWindow.SetHSDigital(pairs.Key, (bool)pairs.Value);
}
}
#endregion
#region Remoting stuff
<summary>
This is used when you want another program to take control of some/all of the hardware. The hc then just saves the
last hardware state, then prevents you from making any changes to the UI. Use this if your other program wants direct control of hardware.
</summary>
public void StartRemoteControl()
{
if (HCState == HCUIControlState.OFF)
{
if (!ImageController.IsCameraFree())
{
StopCameraStream();
}
StoreParameters(profilesPath + "tempParameters.json");
HCState = HCUIControlState.REMOTE;
controlWindow.UpdateUIState(HCState);
controlWindow.WriteToConsole("Remoting Started!");
}
else
{
MessageBox.Show("Controller is busy");
}
}
public void StopRemoteControl()
{
try
{
controlWindow.WriteToConsole("Remoting Stopped!");
<API key>(loadParameters(profilesPath + "tempParameters.json"));
if (System.IO.File.Exists(profilesPath + "tempParameters.json"))
{
System.IO.File.Delete(profilesPath + "tempParameters.json");
}
}
catch (Exception)
{
controlWindow.WriteToConsole("Unable to load Parameters.");
}
HCState = HCUIControlState.OFF;
controlWindow.UpdateUIState(HCState);
<API key>();
}
<summary>
These SetValue functions are for giving commands to the hc from another program, while keeping the hc in control of hardware.
Use this if you want the HC to keep control, but you want to control the HC from some other program
</summary>
public void SetValue(string channel, double value)
{
HCState = HCUIControlState.LOCAL;
stateRecord.analogs[channel] = value;
SetAnalogOutput(channel, value, false);
<API key>(stateRecord);
HCState = HCUIControlState.OFF;
}
public void SetValue(string channel, double value, bool useCalibration)
{
stateRecord.analogs[channel] = value;
HCState = HCUIControlState.LOCAL;
SetAnalogOutput(channel, value, useCalibration);
<API key>(stateRecord);
HCState = HCUIControlState.OFF;
}
public void SetValue(string channel, bool value)
{
HCState = HCUIControlState.LOCAL;
if (stateRecord.digitals.ContainsKey(channel))
{
stateRecord.digitals[channel] = value;
SetDigitalLine(channel, value);
<API key>(stateRecord);
}
else if (stateRecord.HSdigitals.ContainsKey(channel))
{
stateRecord.digitals[channel] = value;
SetHSDigitalLine(channel, value);
<API key>(stateRecord);
}
HCState = HCUIControlState.OFF;
}
#endregion
#endregion
#region Local camera control
public void StartCameraControl()
{
try
{
ImageController = new CameraController("cam0");
ImageController.Initialize();
ImageController.SetCameraAttributes(<API key>);
ImageController.<API key>();
cameraLoaded = true;
}
catch (Exception e)
{
MessageBox.Show(e.Message, "Camera Initialization Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
}
public void CameraStream()
{
try
{
ImageController.Stream(<API key>);
}
catch { }
}
public void StopCameraStream()
{
try
{
ImageController.StopStream();
}
catch { }
}
public void CameraSnapshot()
{
try
{
ImageController.SingleSnapshot(<API key>);
}
catch { }
}
public ushort[,] TempCameraSnapshot()
{
return ImageController.SingleSnapshot(<API key>);
}
#endregion
#region Release/Reclaim Hardware
public void ReleaseHardware()
{
HSchannels.ReleaseHardware();
}
public void ReclaimHardware()
{
HSchannels.ReclaimHardware();
}
#endregion
#region Remote Camera Control
//Written for taking images triggered by TTL. This "Arm" sets the camera so it's expecting a TTL.
public ushort[,] GrabSingleImage(string <API key>)
{
return ImageController.SingleSnapshot(<API key>);
}
public ushort[][,] GrabMultipleImages(string <API key>, int numberOfShots)
{
try
{
ushort[][,] images = ImageController.MultipleSnapshot(<API key>, numberOfShots);
return images;
}
catch (TimeoutException)
{
<API key>();
return null;
}
}
public bool <API key>()
{
return ImageController.<API key>();
}
public void <API key>()
{
StartRemoteControl();
}
public void <API key>()
{
StopRemoteControl();
}
public bool doesCameraExist()
{
return cameraLoaded;
}
#endregion
#region Saving Images
public void SaveImageWithDialog()
{
ImageController.SaveImageWithDialog();
}
public void SaveImage(string path)
{
ImageController.SaveImage(path);
}
#endregion
#region Hardware Monitor
#region Remote Access for Hardware Monitor
public Dictionary<String, Object> GetExperimentReport()
{
Dictionary<String, Object> report = new Dictionary<String, Object>();
report["testReport"] = "Report?";
foreach (KeyValuePair<string, double> pair in stateRecord.analogs)
{
report[pair.Key] = pair.Value;
}
foreach (KeyValuePair<string, bool> pair in stateRecord.digitals)
{
report[pair.Key] = pair.Value;
}
return report;
}
#endregion
#endregion
#region Stuff To Access from python
In theory you can access any public method from python.
In practice we only really want to access a small number of them.
This region contains them. Hopefully by only putting functions in here we
want to use we can get an idea of what, exactly we want this control
software to do.
public void RemoteTest(object input)
{
controlWindow.WriteToConsole(input.ToString());
}
public string RemoteSetChannel(String channelName, object value)
{
if (digitalTasks.Contains(channelName))
{
if (value.GetType() != typeof(bool))
{
return "Can't set digital channel to non bool value";
}
HardwareState state = readValuesOnUI();
state.digitals[channelName] = (bool)value;
DoUpdateHardware(state);
return "";
}
if (analogTasks.ContainsKey(channelName))
{
float outValue;
bool didItParse = float.TryParse(value.ToString(), out outValue);
if (!didItParse)
{
return "Cant't set an analog channel to non numeric value";
}
HardwareState state = readValuesOnUI();
state.analogs[channelName] = outValue;
DoUpdateHardware(state);
return "";
}
return "Channel name not found";
}
public string[] RemoteGetChannels()
{
List<string> channels = new List<string>();
channels.AddRange(stateRecord.digitals.Keys);
channels.AddRange(stateRecord.analogs.Keys);
return channels.ToArray();
}
public string <API key>(string file)
{
if (!File.Exists(file))
{
return "file doesn't exist";
}
stateRecord = loadParameters(file);
<API key>(stateRecord);
controlWindow.WriteToConsole("Loaded parameters from " + file);
return "";
}
public void CloseIt()
{
controlWindow.Close();
}
#endregion
}
}
|
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.resources.commerce.orders;
import com.mozu.api.ApiContext;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.api.MozuClientFactory;
import com.mozu.api.MozuUrl;
import com.mozu.api.Headers;
import com.mozu.api.security.AuthTicket;
import org.apache.commons.lang.StringUtils;
/** <summary>
* Use the Fulfillment resource to manage shipments or pickups of collections of packages for an order.
* </summary>
*/
public class <API key> {
<see cref="Mozu.Api.ApiContext"/>
private ApiContext _apiContext;
public <API key>(ApiContext apiContext)
{
_apiContext = apiContext;
}
/**
* Sets the fulfillment action to "Ship" or "PickUp". To ship an order or prepare it for in-store pickup, the order must have a customer name, the "Open" or "OpenAndProcessing" status. To ship the order, it must also have the full shipping address and shipping method. Shipping all packages or picking up all pickups for an order will complete a paid order.
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.<API key>( action, orderId);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order <API key>(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId) throws Exception
{
return <API key>( action, orderId, null);
}
/**
* Sets the fulfillment action to "Ship" or "PickUp". To ship an order or prepare it for in-store pickup, the order must have a customer name, the "Open" or "OpenAndProcessing" status. To ship the order, it must also have the full shipping address and shipping method. Shipping all packages or picking up all pickups for an order will complete a paid order.
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.<API key>( action, orderId, responseFields);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order <API key>(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.<API key>.<API key>( action, orderId, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
/**
* orders-fulfillment Post <API key> description DOCUMENT_HERE
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.<API key>( action, orderId);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order <API key>(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId) throws Exception
{
return <API key>( action, orderId, null);
}
/**
* orders-fulfillment Post <API key> description DOCUMENT_HERE
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.<API key>( action, orderId, responseFields);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order <API key>(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.<API key>.<API key>( action, orderId, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
}
|
package at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.activation.<API key>;
import org.apache.commons.lang3.StringEscapeUtils;
import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EAnnotation;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EEnumLiteral;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.EcoreFactory;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.ecore.util.<API key>;
import org.eclipse.emf.ecore.util.ExtendedMetaData;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.FeatureMapUtil;
import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.impl.<API key>;
import org.eclipse.emf.ecore.xmi.impl.<API key>;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.<API key>;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.<API key>;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.<API key>;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.PartialObjectCopier;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.<API key>;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.Transformator;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.ValueTransformator;
import at.ac.tuwien.big.xtext.util.MyEcoreUtil;
@SuppressWarnings({"rawtypes", "unchecked", "unused"})
public class <API key> {
private Map<EAttribute, <API key>> xmlToEcoreAttr = new HashMap<EAttribute, <API key>>();
private Map<EAttribute, <API key>> ecoreToXmlAttr = new HashMap<EAttribute, <API key>>();
private Map<EStructuralFeature, PartialObjectCopier> xmlToEcoreChanger = new HashMap<>();
private Map<EStructuralFeature, PartialObjectCopier> ecoreToXmlChanger = new HashMap<>();
private <API key> store;
private Map<EReference, <API key>> xmlToEcoreRef = new HashMap<EReference, <API key>>();
private Map<EReference, <API key>> ecoreToXmlRef = new HashMap<EReference, <API key>>();
private Map<String, EObject> fragmentToXmlObject = new HashMap<String, EObject>();
private Map<EReference,EReference> <API key> = new HashMap<EReference, EReference>();
private Map<EAttribute,EAttribute> xmlToEcoreAttribute = new HashMap<>();
private Map<EEnum,EEnum> copiedEEnums = new HashMap<EEnum, EEnum>();
private Map<EEnumLiteral,EEnumLiteral> copiedEEnumLiterals = new HashMap<EEnumLiteral, EEnumLiteral>();
private Map<EEnumLiteral,EEnumLiteral> backEEnumLiteral = new HashMap<EEnumLiteral, EEnumLiteral>();
private Map<String,EEnumLiteral> backEEnumLiteralStr = new HashMap<String, EEnumLiteral>();
private Map<EClass, EClass> xmlToEcoreClasses = new HashMap<EClass, EClass>();
private Map<EClass, EClass> ecoreToXmlClasses = new HashMap<EClass, EClass>();
private Map<EStructuralFeature,EStructuralFeature> ecoreToXmlFeature = new HashMap<EStructuralFeature, EStructuralFeature>();
private Map<String,EObject> targetMap = new HashMap<String, EObject>();
private Set<EObject> handledTargets = new HashSet<EObject>();
private Map<String,String> restrictedDatatypes = new HashMap<String,String>();
public Map<String, String> <API key>() {
return restrictedDatatypes;
}
public String getStoreName(EObject eobj) {
if (eobj instanceof EClass) {
return ((EClass) eobj).getName();
} else if (eobj instanceof EEnum) {
return ((EEnum)eobj).getName();
} else if (eobj instanceof EStructuralFeature) {
EStructuralFeature esf = (EStructuralFeature)eobj;
return esf.getEContainingClass().getName()+"."+esf.getName();
}
return null;
}
public void readInBasicTarget(Resource targetRes) {
for (EObject eobj: (Iterable<EObject>)()->targetRes.getAllContents()) {
String storeName = getStoreName(eobj);
if (storeName != null) {
targetMap.put(storeName, eobj);
}
}
}
public EObject getIfExists(String targetName) {
EObject ret = targetMap.get(targetName);
if (ret != null) {
handledTargets.add(ret);
}
return ret;
}
//1 to one correspondance
public <API key>(Resource source, Resource target) {
for (EObject eobj: (Iterable<EObject>)source.getAllContents()) {
if (eobj instanceof EClass) {
EClass cl = (EClass)eobj;
EClass ecoreClass = (EClass)target.getEObject(source.getURIFragment(eobj));
xmlToEcoreClasses.put(cl, ecoreClass);
ecoreToXmlClasses.put(ecoreClass,cl);
System.out.println("Associating "+ cl+ " to "+ecoreClass);
//Not all, because then we would do something multiple times
for (EAttribute eattr: cl.getEAttributes()) {
EAttribute newA = (EAttribute)target.getEObject(source.getURIFragment(eattr));
xmlToEcoreAttribute.put(eattr, newA);
}
for (EReference eattr: cl.getEReferences()) {
EReference newRef = (EReference)target.getEObject(source.getURIFragment(eattr));
<API key>.put(eattr, newRef);
}
} else if (eobj instanceof EEnum) {
EEnum eenum = (EEnum)eobj;
copiedEEnums.put(eenum, (EEnum)target.getEObject(source.getURIFragment(eenum)));
for (EEnumLiteral lit: eenum.getELiterals()) {
EEnumLiteral back = (EEnumLiteral)target.getEObject(source.getURIFragment(lit));
copiedEEnumLiterals.put(lit, back);
backEEnumLiteral.put(back, lit);
backEEnumLiteralStr.put(eenum.getName()+"."+lit.getLiteral(), lit);
}
//Ignore for now
} else if (eobj instanceof EDataType) {
} else if (eobj instanceof EAttribute) {
//Have handled every important above?
} else if (eobj instanceof EReference) {
//Have handled every important above?
}
}
for (Entry<EClass,EClass> entr: xmlToEcoreClasses.entrySet()) {
if (!augmentEClassBasic(entr.getKey(), entr.getValue())) {
//TODO: Das stimmt so nicht ...
entr.setValue(null);
}
}
for (Entry<EAttribute,EAttribute> entr: xmlToEcoreAttribute.entrySet()) {
if (!<API key>(entr.getKey(), entr.getValue())) {
entr.setValue(null);
}
}
for (Entry<EReference,EReference> entr: <API key>.entrySet()) {
if (!<API key>(entr.getKey(), entr.getValue())) {
entr.setValue(null);
}
}
}
private EClass mixedData;
private EClass mixedText;
private EClass mixedFeature;
private EClass mixedBaseClass;
private EReference mixedBaseMixedAttr;
private EAttribute mixedValueAttr;
private EPackage ecorePackage;
public void generateMixClasses() {
if (mixedData == null) {
mixedData = (EClass)getIfExists("MixedData");
if (mixedData == null) {
mixedData = EcoreFactory.eINSTANCE.createEClass();
mixedData.setName("MixedData");
mixedData.setAbstract(true);
mixedValueAttr = EcoreFactory.eINSTANCE.createEAttribute();
mixedValueAttr.setName("value");
mixedValueAttr.setEType(EcorePackage.Literals.ESTRING);
mixedValueAttr.setLowerBound(1);
mixedValueAttr.setUpperBound(1);
mixedData.<API key>().add(mixedValueAttr);
ecorePackage.getEClassifiers().add(mixedData);
} else {
mixedValueAttr = (EAttribute)mixedData.<API key>("value");
}
mixedText = (EClass)getIfExists("MixedText");
if (mixedText == null) {
mixedText = EcoreFactory.eINSTANCE.createEClass();
mixedText.setName("MixedText");
mixedText.getESuperTypes().add(mixedData);
ecorePackage.getEClassifiers().add(mixedText);
}
mixedFeature = (EClass)getIfExists("MixedFeature");
if (mixedFeature == null) {
mixedFeature = EcoreFactory.eINSTANCE.createEClass();
mixedFeature.setName("MixedFeature");
mixedFeature.getESuperTypes().add(mixedData);
ecorePackage.getEClassifiers().add(mixedFeature);
}
mixedBaseClass = (EClass)getIfExists("MixedBaseClass");
if (mixedBaseClass == null) {
mixedBaseClass = EcoreFactory.eINSTANCE.createEClass();
mixedBaseClass.setName("MixedBaseClass");
mixedBaseClass.setAbstract(true);
mixedBaseMixedAttr = EcoreFactory.eINSTANCE.createEReference();
mixedBaseMixedAttr.setName("mixed");
mixedBaseMixedAttr.setLowerBound(0);
mixedBaseMixedAttr.setUpperBound(-1);
mixedBaseMixedAttr.setContainment(true);
mixedBaseMixedAttr.setEType(mixedData);
mixedBaseClass.<API key>().add(mixedBaseMixedAttr);
ecorePackage.getEClassifiers().add(mixedBaseClass);
} else {
mixedBaseMixedAttr = (EReference)mixedBaseClass.<API key>("mixed");
}
}
}
public boolean isMixed(EStructuralFeature feat) {
//TODO: ... faster
if (!"mixed".equals(feat.getName())) {
return false;
}
if ((feat.getEType() instanceof EClass && mixedData.isSuperTypeOf((EClass)feat.getEType())) || (feat.getEType() != null && "EFeatureMapEntry".equals(feat.getEType().getName()))) {
return true;
}
return false;
}
public <API key>(<API key> store, ResourceSet resourceSet, File xmlEcore) {
this.store = store;
parseXmlEcore(resourceSet,xmlEcore);
}
private <API key>() {
}
public static <API key> withKnownResult(<API key> store, ResourceSet resourceSet,
Resource xmlResource, Resource ecoreResource) {
<API key> ret = new <API key>();
ret.store = store;
ret.xmlResource = ()->xmlResource.getAllContents();
ret.ecoreResources.add(ecoreResource);
ret.readInBasicTarget(ecoreResource);
ret.parseXmlEcoreBasic(ecoreResource, resourceSet, xmlResource.getURI(), ()->xmlResource.getAllContents(), false);
return ret;
}
public static <API key> fromXmlEcore(<API key> store,
ResourceSet resourceSet, Resource ecoreXmlResource, String targetFilename) {
<API key> ret = new <API key>();
ret.store = store;
ret.xmlResource = ()->ecoreXmlResource.getAllContents();
ret.parseXmlEcore(null,resourceSet,targetFilename==null?null:URI.createFileURI(targetFilename),ret.xmlResource, false);
return ret;
}
public static <API key> fromXmlEcores(<API key> store,
ResourceSet resourceSet, List<Resource> ecoreXmlResources, String targetFilename) {
<API key> ret = new <API key>();
ret.store = store;
int ind = 0;
for (Resource ecoreXmlResource: ecoreXmlResources) {
ret.xmlResource = ()->ecoreXmlResource.getAllContents();
ret.parseXmlEcore(null,resourceSet,targetFilename==null?null:URI.createFileURI(targetFilename+(++ind)+".ecore"),ret.xmlResource, false);
}
return ret;
}
public <API key>(<API key> store, ResourceSet resourceSet, Resource xmlResource) {
this.store = store;
this.xmlResource = ()->xmlResource.getAllContents();
parseXmlEcore(null,resourceSet,URI.createURI(xmlResource.getURI()+"simplified"),this.xmlResource,false);
}
public <API key>(<API key> store, ResourceSet resourceSet, File xmlResourceFile, Iterable<EObject> xmlResource) {
this.store = store;
this.xmlResource = xmlResource;
parseXmlEcore(null,resourceSet,URI.createFileURI(xmlResourceFile.getAbsolutePath()+".simple.ecore"),xmlResource,false);
}
private EAttribute commonIdAttribute = null;
private EClass commonIdClass = null;
private Map<EClass, EAttribute> realId = new HashMap<EClass, EAttribute>();
//private Map<EAttribute, EReference> <API key> = new HashMap<>();
//private Map<EReference, EAttribute> <API key> = new HashMap<>();
private void buildChangers() {
for (Entry<EAttribute,<API key>> entry: xmlToEcoreAttr.entrySet()) {
// EAttribute attr = entry.getKey(); // TODO remove unused?
<API key> tf = entry.getValue();
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject xmlObject, EObject ret) {
//Workaround - remove if ressource is always correct
try {
if (xmlObject.eIsSet(tf.getXml())) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, tf.getXml());
c = tf.convertToEcore(c);
MyEcoreUtil.<API key>(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
} catch (<API key> e) {
EStructuralFeature esf = xmlObject.eClass().<API key>(tf.getXml().getName());
System.err.println(e.getMessage()+" => replaced by " + esf);
if (esf != null) {
if (xmlObject.eIsSet(esf)) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, esf);
c = tf.convertToEcore(c);
MyEcoreUtil.<API key>(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
}
}
}
};
xmlToEcoreChanger.put(tf.getXml(),poc);
xmlToEcoreChanger.put(tf.getEcore(),poc);
}
for (Entry<EAttribute,<API key>> entry: ecoreToXmlAttr.entrySet()) {
// EAttribute attr = entry.getKey(); // TODO remove unused?
<API key> tf = entry.getValue();
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject eobject, EObject ret) {
if (eobject.eIsSet(tf.getEcore())) {
// String bla = attr.getName(); // TODO remove unused?
Collection c = MyEcoreUtil.getAsCollection(eobject, tf.getEcore());
c = tf.convertToXml(c);
MyEcoreUtil.<API key>(ret,tf.getXml(),c);
} else {
ret.eUnset(tf.getXml());
}
}
};
ecoreToXmlChanger.put(tf.getXml(),poc);
ecoreToXmlChanger.put(tf.getEcore(),poc);
}
for (Entry<EReference,<API key>> entry: xmlToEcoreRef.entrySet()) {
// EReference ref = entry.getKey(); // TODO remove unused?
<API key> tf = entry.getValue();
// ResourceSet rs; // TODO remove unused?
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject xmlObject, EObject ret) {
try {
if (xmlObject.eIsSet(tf.getXml())) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, tf.getXml());
c = tf.convertToEcore(c, trans);
MyEcoreUtil.<API key>(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
} catch (<API key> e) {
EStructuralFeature esf = xmlObject.eClass().<API key>(tf.getXml().getName());
System.err.println(e.getMessage()+" => replaced by " + esf);
if (esf != null) {
if (xmlObject.eIsSet(esf)) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, esf);
c = tf.convertToEcore(c, trans);
MyEcoreUtil.<API key>(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
}
}
}
};
xmlToEcoreChanger.put(tf.getXml(),poc);
xmlToEcoreChanger.put(tf.getEcore(),poc);
}
for (Entry<EReference,<API key>> entry: ecoreToXmlRef.entrySet()) {
// EReference ref = entry.getKey(); // TODO remove unused?
<API key> tf = entry.getValue();
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject eobject, EObject ret) {
if (eobject.eIsSet(tf.getEcore())) {
Collection c = MyEcoreUtil.getAsCollection(eobject, tf.getEcore());
c = tf.convertToXml(c, trans);
MyEcoreUtil.<API key>(ret,tf.getXml(),c);
} else {
ret.eUnset(tf.getXml());
}
}
};
ecoreToXmlChanger.put(tf.getXml(),poc);
ecoreToXmlChanger.put(tf.getEcore(),poc);
}
}
private void calcId() {
List<EClass> allIdClasses = new ArrayList<EClass>();
for (EClass ecl: ecoreToXmlClasses.keySet()) {
for (EAttribute attr: ecl.getEAttributes()) {
if (attr.isID()) {
allIdClasses.add(ecl);
}
}
}
Set<EClass> allIdClassesSet = new HashSet<EClass>(allIdClasses);
if (allIdClasses.isEmpty()) {
//Nothing to do
return;
}
//If there is only one, just pick the first ID you find and you are done!
if (allIdClassesSet.size() == 1) {
commonIdClass = allIdClasses.get(0);
commonIdAttribute = commonIdClass.getEIDAttribute();
} else {
//Check if there is a superclass which is a superclass of all id classes
Set<EClass> superClasses = new HashSet<EClass>();
EClass first = allIdClasses.get(0);
superClasses.add(first);
superClasses.addAll(first.getEAllSuperTypes());
for (int i = 1; i < allIdClasses.size(); ++i) {
EClass cl = allIdClasses.get(i);
Set<EClass> subSuper = new HashSet<EClass>(cl.getEAllSuperTypes());
subSuper.add(cl);
superClasses.retainAll(subSuper);
}
//All of these classes are candidates, but there must exist no class which has an attribute added due to that fact
for (EClass cl: ecoreToXmlClasses.keySet()) {
if (allIdClassesSet.contains(cl)) {
continue;
}
Set<EClass> superTypes = new HashSet<>(cl.getEAllSuperTypes());
superTypes.retainAll(allIdClassesSet);
if (!superTypes.isEmpty()) {
continue;
}
superClasses.remove(cl);
superClasses.removeAll(cl.getEAllSuperTypes());
}
boolean idAttributeExisted = false;
//Now you can arbitrarily pick one of the remaining candidates to add the ID attribute
if (!superClasses.isEmpty()) {
commonIdClass = superClasses.iterator().next();
} else {
//Create
commonIdClass = (EClass)getIfExists("CommonIdClass");
if (commonIdClass == null) {
commonIdClass = EcoreFactory.eINSTANCE.createEClass();
commonIdClass.setAbstract(true);
commonIdClass.setName("CommonIdClass");
ecorePackage.getEClassifiers().add(commonIdClass);
} else {
idAttributeExisted = true;
}
}
Object commonIdAttributeO = getIfExists("CommonIdClass.name");
if (commonIdAttributeO instanceof EAttribute) {
commonIdAttribute = (EAttribute)commonIdAttributeO;
} else {
commonIdAttribute = EcoreFactory.eINSTANCE.createEAttribute();
}
commonIdAttribute.setName("name"); //Good to provide an xtext ID!
commonIdAttribute.setUnique(true);
commonIdAttribute.setID(true);
commonIdAttribute.setLowerBound(1);
commonIdAttribute.setUpperBound(1);
commonIdAttribute.setEType(EcorePackage.Literals.ESTRING);
if (!idAttributeExisted) {
commonIdClass.<API key>().add(commonIdAttribute);
}
for (EClass cl: ecoreToXmlClasses.keySet()) {
realId.put(cl, cl.getEIDAttribute());
}
if (!idAttributeExisted) {
for (EClass cl: allIdClasses) {
EAttribute id = cl.getEIDAttribute();
if (cl != commonIdClass) {
if (id != null && id.getEContainingClass() == cl) {
cl.<API key>().remove(id);
}
if (!cl.getEAllSuperTypes().contains(commonIdClass)) {
cl.getESuperTypes().add(commonIdClass);
}
}
}
}
}
//Whenever you have an attribute which is an IDREF, replace it by a reference
for (Entry<EAttribute,<API key>> entry: xmlToEcoreAttr.entrySet()) {
EAttribute attr = entry.getKey();
String attrEType = (attr.getEType() != null)?attr.getEType().getName():"";
if ("IDREF".equals(attrEType)) {
EAttribute ecoreAttr = entry.getValue().getEcore();
EObject erefO = getIfExists(getEcoreClassName(attr.getEContainingClass())+"."+<API key>(attr));
EReference ref = null;
boolean hadReference = false;
if (erefO instanceof EReference) {
ref = (EReference)erefO;
hadReference = true;
} else {
ref = EcoreFactory.eINSTANCE.createEReference();
setSimple(ecoreAttr, ref);
ref.setName(ecoreAttr.getName());
ref.setEType(commonIdClass);
}
EReference fref = ref;
//<API key>.put(ecoreAttr, ref);
//<API key>.put(ref, ecoreAttr);
if (!hadReference && ecoreAttr.getEContainingClass() != null) {
int idx = ecoreAttr.getEContainingClass().<API key>().indexOf(ecoreAttr);
ecoreAttr.getEContainingClass().<API key>().add(idx,ref);
ecoreAttr.getEContainingClass().<API key>().remove(ecoreAttr);
}
//Konvertiere jedes Objekt in seine ID
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, fref);
List<Object> targetIds = new ArrayList<Object>();
for (Object o: c) {
EObject eo = (EObject)o;
EAttribute idAttr = null;
if (eo != null && eo.eClass() != null && eo.eClass().getEIDAttribute() != null) {
idAttr = eo.eClass().getEIDAttribute();
}
Collection ids = MyEcoreUtil.getAsCollection(eo, idAttr);
targetIds.addAll(ids);
}
MyEcoreUtil.<API key>(to, attr, targetIds);
}
};
ecoreToXmlChanger.put(ref,poc);
ecoreToXmlChanger.put(attr,poc);
ecoreToXmlFeature.put(ref, attr);
poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, attr);
List<EObject> targetObjects = new ArrayList<>();
for (Object o: c) {
EObject eo = transformator.getXmlObject(String.valueOf(o));
if (eo != null) {
targetObjects.add(transformator.xml2Eobject(eo));
}
}
MyEcoreUtil.<API key>(to, fref, targetObjects);
}
};
xmlToEcoreChanger.put(attr, poc);
xmlToEcoreChanger.put(ref, poc);
}
if (attr.isID()) {
//Konvertiere jedes Objekt in seine ID
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, commonIdAttribute);
MyEcoreUtil.<API key>(to, to.eClass().getEIDAttribute(), c);
}
};
ecoreToXmlChanger.put(commonIdAttribute,poc);
ecoreToXmlChanger.put(attr,poc);
poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, from.eClass().getEIDAttribute());
MyEcoreUtil.<API key>(to, commonIdAttribute, c);
}
};
xmlToEcoreChanger.put(attr, poc);
xmlToEcoreChanger.put(commonIdAttribute, poc);
}
}
}
public void <API key>() {
//Whenever you have an attribute which is an IDREF, replace it by a reference
for (Entry<EAttribute,<API key>> entry: xmlToEcoreAttr.entrySet()) {
EAttribute attr = entry.getKey();
String attrEType = (attr.getEType() != null)?attr.getEType().getName():"";
EAttribute ecoreAttr = entry.getValue().getEcore();
if (ecoreAttr != null) {
String name = attr.getEAttributeType().getName();
String instanceClassName = attr.getEAttributeType().<API key>();
System.out.println("Have attribute with name "+name+ " of type "+attrEType+" with instance class "+instanceClassName);
//TODO: Warum ist das so? Gibt es auch andere unterschiede?
if ("AnyURI".equals(attrEType)) {
attrEType = "URI";
}
if (store.isStandardDatatype(attrEType)) {
EAnnotation annot = ecoreAttr.getEAnnotation("http://big.tuwien.ac.at/standardXMLDatatype");
if (annot == null) {
ecoreAttr.getEAnnotations().add(annot = EcoreFactory.eINSTANCE.createEAnnotation());
annot.setSource("http://big.tuwien.ac.at/standardXMLDatatype");
}
annot.getDetails().put("type",attrEType);
}
}
}
}
public EAttribute <API key>(EClass cl, EAttribute base) {
if (base == commonIdAttribute) {
return realId.getOrDefault(cl,base);
}
return base;
}
public EAttribute getIdAttribute() {
if (commonIdAttribute == null) {
calcId();
}
return commonIdAttribute;
}
private List<Resource> ecoreResources = new ArrayList<Resource>();
private Iterable<EObject> xmlResource;
public EClass getEcoreEClass(EClass xml) {
return xmlToEcoreClasses.get(xml);
}
public EClass getXmlEClass(EClass ecore) {
return ecoreToXmlClasses.get(ecore);
}
public PartialObjectCopier getChangerForXml(EStructuralFeature ecorefeat) {
return ecoreToXmlChanger.get(ecorefeat);
}
public PartialObjectCopier getChangerForEcore(EStructuralFeature xmlfeat) {
return xmlToEcoreChanger.get(xmlfeat);
}
private <API key> <API key>(EAttribute xml) {
<API key> trafo = xmlToEcoreAttr.get(xml);
if (trafo == null) {
String fragment = xml.eResource().getURIFragment(xml);
EObject eobj = fragmentToXmlObject.get(fragment);
<API key> ftrafo = xmlToEcoreAttr.get(eobj);
if (ftrafo == null) {
System.err.println("No transformator for "+xml +" found, eobject: " +eobj+"!");
} else {
trafo = new <API key>(xml, ftrafo.getEcore(), ftrafo.getTransformation());
}
}
if (trafo.getEcore().isID() && trafo.getEcore() != commonIdAttribute) {
<API key> ftrafo = trafo;
return new <API key>() {
@Override
public EAttribute getXml() {
return xml;
}
@Override
public <API key> getTransformation() {
return ftrafo.getTransformation();
}
@Override
public EAttribute getEcore() {
return commonIdAttribute;
}
};
}
return trafo;
}
private <API key> <API key>(EClass eClass, EAttribute ecore) {
return ecoreToXmlAttr.get(<API key>(eClass,ecore));
}
private <API key> <API key>(EReference xml) {
<API key> trafo = xmlToEcoreRef.get(xml);
if (trafo == null) {
String fragment = xml.eResource().getURIFragment(xml);
EObject eobj = fragmentToXmlObject.get(fragment);
trafo = xmlToEcoreRef.get((EReference)eobj);
if (trafo == null) {
System.err.println("No transformator for "+xml +" found, eobject: " +eobj+"!");
} else {
trafo = new <API key>(xml, trafo.getEcore(), trafo.getTransformation());
}
}
return trafo;
}
private <API key> <API key>(EReference ecore) {
return ecoreToXmlRef.get(ecore);
}
private boolean addedAnyAnnotations = false;
private EClass <API key>;
private EClass rootClassXml;
private EClass rootClassEcore;
private EReference rootReferenceXml;
public void parseXmlEcoreBasic(Resource localEcore, ResourceSet resourceSet, URI targetEcoreUri, Iterable<EObject> xmlResource, boolean generateFile) {
EPackage xmlEPkg = null;
for (EObject eobj: xmlResource) {
if (eobj instanceof EPackage) {
xmlEPkg = (EPackage)eobj;
resourceSet.getPackageRegistry().put(xmlEPkg.getNsURI(), eobj);
}
}
ecorePackage = (EPackage)localEcore.getContents().get(0);
List<EAttribute> eattrs = new ArrayList<>();
List<EReference> erefs = new ArrayList<>();
List<EClass> eclasses = new ArrayList<>();
List<EEnum> eenums = new ArrayList<>();
resourceSet.getPackageRegistry().put(ecorePackage.getNsURI(), ecorePackage);
for (EObject eobj: xmlResource) {
if (eobj.eResource() != null) {
fragmentToXmlObject.put(eobj.eResource().getURIFragment(eobj),eobj);
}
if (eobj instanceof EClass) {
EClass cl = (EClass)eobj;
if (!cl.getName().equals("DocumentRoot")) {
EClass ecoreClass = <API key>(cl);
eclasses.add(cl);
xmlToEcoreClasses.put(cl, ecoreClass);
ecoreToXmlClasses.put(ecoreClass,cl);
System.out.println("Associating "+ cl+ " to "+ecoreClass);
//Not all, because then we would do something multiple times
for (EAttribute eattr: cl.getEAttributes()) {
xmlToEcoreAttribute.put(eattr, <API key>(cl, ecoreClass, eattr));
eattrs.add(eattr);
}
for (EReference eattr: cl.getEReferences()) {
<API key>.put(eattr, <API key>(cl, ecoreClass, eattr));
erefs.add(eattr);
}
} else {
//Analyze subclass
<API key> = cl;
rootReferenceXml = TransformatorImpl.getRootFeature(cl);
rootClassXml = rootReferenceXml.getEReferenceType();
}
} else if (eobj instanceof EEnum) {
// EEnum eenum = (EEnum)eobj; // TODO remove unused?
EEnum targetEEnum = generateEEnum((EEnum)eobj);
eenums.add(targetEEnum);
//Ignore for now
} else if (eobj instanceof EDataType) {
} else if (eobj instanceof EAttribute) {
//Have handled every important above?
} else if (eobj instanceof EReference) {
//Have handled every important above?
}
}
rootClassEcore = xmlToEcoreClasses.get(rootClassXml);
for (EClass key: eclasses) {
if (!augmentEClassBasic(key, xmlToEcoreClasses.get(key))) {
//TODO: Das stimmt so nicht ...
xmlToEcoreClasses.remove(key);
}
}
for (EAttribute attr: eattrs) {
if (!<API key>(attr, xmlToEcoreAttribute.get(attr))) {
xmlToEcoreAttribute.remove(attr);
}
}
for (EReference key: erefs) {
if (!<API key>(key, <API key>.get(key))) {
<API key>.remove(key);
}
}
buildChangers();
calcId();
<API key>();
if (generateFile) {
try {
int ind = 0;
for (Resource ecoreRes: ecoreResources) {
ecoreRes.save(new FileOutputStream("testoutput"+(++ind)+".ecore"),null);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public void parseXmlEcore(Resource localECoreResource, ResourceSet resourceSet, /*String xmlEcoreName, */URI targetEcoreUri, Iterable<EObject> xmlResource, boolean generateFile) {
EPackage xmlEPkg = null;
for (EObject eobj: xmlResource) {
if (eobj instanceof EPackage) {
xmlEPkg = (EPackage)eobj;
resourceSet.getPackageRegistry().put(xmlEPkg.getNsURI(), eobj);
}
}
if (xmlEPkg == null) {
for (EObject eobj: xmlResource) {
System.out.println("Found object: "+eobj);
}
}
if (localECoreResource == null) {
localECoreResource = targetEcoreUri==null?new XMIResourceImpl(): new XMIResourceImpl(
resourceSet.getURIConverter().normalize(targetEcoreUri)
);
this.ecoreResources.add(localECoreResource);
ecorePackage = EcoreFactory.eINSTANCE.createEPackage();
ecorePackage.setNsURI(xmlEPkg.getNsURI()+"simplified");
//epkg.setNsURI(xmlEPkg.getNsURI()+"-simplified");
//String xmlEcoreShortName = xmlEcoreName.split("\\.", 2)[0];
ecorePackage.setName((xmlEPkg.getName()+"Simplified").replace(".", ""));
ecorePackage.setNsPrefix(xmlEPkg.getNsPrefix()+"s");
localECoreResource.getContents().add(ecorePackage);
} else {
ecorePackage = (EPackage)localECoreResource.getContents().get(0);
}
List<EAttribute> eattrs = new ArrayList<>();
List<EReference> erefs = new ArrayList<>();
List<EClass> eclasses = new ArrayList<>();
List<EEnum> eenums = new ArrayList<>();
resourceSet.getPackageRegistry().put(ecorePackage.getNsURI(), ecorePackage);
for (EObject eobj: xmlResource) {
if (eobj.eResource() != null) {
fragmentToXmlObject.put(eobj.eResource().getURIFragment(eobj),eobj);
}
if (eobj instanceof EClass) {
EClass cl = (EClass)eobj;
if (!cl.getName().equals("DocumentRoot")) {
EClass ecoreClass = <API key>(cl);
eclasses.add(cl);
xmlToEcoreClasses.put(cl, ecoreClass);
ecoreToXmlClasses.put(ecoreClass,cl);
System.out.println("Associating "+ cl+ " to "+ecoreClass);
//Not all, because then we would do something multiple times
for (EAttribute eattr: cl.getEAttributes()) {
xmlToEcoreAttribute.put(eattr, <API key>(cl, ecoreClass, eattr));
eattrs.add(eattr);
}
for (EReference eattr: cl.getEReferences()) {
<API key>.put(eattr, <API key>(cl, ecoreClass, eattr));
erefs.add(eattr);
}
ecorePackage.getEClassifiers().add(ecoreClass);
} else {
//Analyze subclass
if (rootReferenceXml == null) {
rootReferenceXml = TransformatorImpl.getRootFeature(cl);
if (rootReferenceXml != null) {
rootClassXml = rootReferenceXml.getEReferenceType();
<API key> = cl;
}
}
}
} else if (eobj instanceof EEnum) {
// EEnum eenum = (EEnum)eobj; // TODO remove unused?
EEnum targetEEnum = generateEEnum((EEnum)eobj);
ecorePackage.getEClassifiers().add(targetEEnum);
eenums.add(targetEEnum);
//Ignore for now
} else if (eobj instanceof EDataType) {
} else if (eobj instanceof EAttribute) {
//Have handled every important above?
} else if (eobj instanceof EReference) {
//Have handled every important above?
}
}
rootClassEcore = xmlToEcoreClasses.get(rootClassXml);
for (EClass key: eclasses) {
if (!augmentEClass(key, xmlToEcoreClasses.get(key))) {
//TODO: Das stimmt so nicht ...
xmlToEcoreClasses.remove(key);
}
}
for (EAttribute attr: eattrs) {
if (!augmentAttribute(attr, xmlToEcoreAttribute.get(attr))) {
xmlToEcoreAttribute.remove(attr);
}
}
for (EReference key: erefs) {
if (!augmentReference(key, <API key>.get(key))) {
<API key>.remove(key);
}
}
//Add OCL expressions
for (EObject eobj: xmlResource) {
<API key>(eobj);
}
if (addedAnyAnnotations) {
EAnnotation annot = ecorePackage.getEAnnotation("http:
if (annot == null) {
annot = EcoreFactory.eINSTANCE.createEAnnotation();
annot.setSource("http:
ecorePackage.getEAnnotations().add(annot);
}
annot.getDetails().put("invocationDelegates","http:
annot.getDetails().put("settingDelegates","http:
annot.getDetails().put("validationDelegates","http:
}
buildChangers();
calcId();
<API key>();
if (generateFile) {
try {
int ind = 0;
for (Resource ecoreRes: ecoreResources) {
ecoreRes.save(new FileOutputStream("testoutput"+(++ind)+".ecore"),null);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public void parseXmlEcore(ResourceSet resourceSet, File xmlEcore) {
Resource.Factory.Registry reg = resourceSet.<API key>();
reg.<API key>().put(
"xmi",
new <API key>());
reg.<API key>().put(
"ecore",
new <API key>());
//Register ecore file
final ExtendedMetaData extendedMetaData = new <API key>(resourceSet.getPackageRegistry());
resourceSet.getLoadOptions().put(XMLResource.<API key>, extendedMetaData);
Resource res = resourceSet.getResource(resourceSet.getURIConverter().normalize(URI.createFileURI(xmlEcore.getAbsolutePath())), true);
this.xmlResource = ()->res.getAllContents();
parseXmlEcore(null,resourceSet, URI.createFileURI(xmlEcore.getAbsolutePath()+".simple.ecore"), xmlResource, true);
}
public void <API key>(EClass xml, EClass ecore) {
}
public String toFirstUpper(String str) {
if (str.length() <= 1) {
return str.toUpperCase();
}
return Character.toUpperCase(str.charAt(0))+str.substring(1);
}
public void <API key>(EAttribute xmlAttr, EAttribute ecoreAttr, EClass xmlClass, EClass ecoreClass) {
if (ecoreAttr == null) {
System.err.println("No attribute matching for "+xmlAttr);
return;
}
EDataType dataType = xmlAttr.getEAttributeType();
//Also parse that
for (EAnnotation dataTypeAnnot: dataType.getEAnnotations()) {
System.out.println("DataTypeAnnotation: "+dataTypeAnnot.getSource());
if ("http:///org/eclipse/emf/ecore/util/ExtendedMetaData".equals(dataTypeAnnot.getSource())) {
String pattern = dataTypeAnnot.getDetails().get("pattern");
EAnnotation additonal = ecoreClass.getEAnnotation("http:
boolean needAdd = false;
boolean needAdd2 = false;
String curConstraints = "";
if (additonal == null) {
needAdd = true;
additonal = EcoreFactory.eINSTANCE.createEAnnotation();
additonal.setSource("http:
}
EAnnotation general = ecoreClass.getEAnnotation("http:
if (general != null) {
curConstraints = general.getDetails().get("constraints");
if (curConstraints == null) {
curConstraints = "";
}
} else {
needAdd2 = true;
general = EcoreFactory.eINSTANCE.createEAnnotation();
general.setSource("http:
}
String prepend = "self."+ecoreAttr.getName()+(MyEcoreUtil.isMany(ecoreAttr)?"->forAll(x | x":"");
String postpend = MyEcoreUtil.isMany(ecoreAttr)?")":"";
if (pattern != null) {
// 162 occurrences in eclass case study, but where do they all come from? there are only 84 occurrences of restrictions, which are not enumerations or length, and 143 in total
EAnnotation typeAnnotation = ((EClass) xmlAttr.eContainer()).getEAnnotations().get(0);
restrictedDatatypes.put(typeAnnotation.getDetails().get("name"), xmlAttr.getEAttributeType().getName());
String constraintName = "pattern"+toFirstUpper(ecoreAttr.getName());
String constraintValue = null;
constraintValue = ".matches('"+StringEscapeUtils.unescapeXml(pattern).replace("%20"," ").replace("\\", "\\\\").replace("'", "\\\"")+"')";
String[] <API key> = pattern.split("\\ ");
StringBuilder totalValue = new StringBuilder();
for (int bc = 0; bc < <API key>.length; ++bc) {
if (bc > 0) {
totalValue.append(" or ");
}
String spattern = <API key>[bc];
constraintValue = ".matches('"+StringEscapeUtils.unescapeXml(spattern).replace("%20"," ").replace("\\", "\\\\").replace("'", "\\\"")+"')";
String newValue = prepend+constraintValue+postpend;
totalValue.append(newValue);
}
String totalString = totalValue.toString();
if (xmlAttr.getLowerBound() == 0 && !xmlAttr.isMany() && <API key>.length > 0) {
totalString = "("+prepend+"=null) or "+totalString;
}
additonal.getDetails().put(constraintName, totalString);
curConstraints = curConstraints+ " "+constraintName;
}
String minLength = dataTypeAnnot.getDetails().get("minLength");
if (minLength != null) {
String constraintName = "minLength"+toFirstUpper(ecoreAttr.getName());
String constraintValue = ".size() >= "+minLength;
String prefix = (!xmlAttr.isMany()&&xmlAttr.getLowerBound()==0)?("("+prepend + " = null) or " + prepend):prepend;
additonal.getDetails().put(constraintName, prefix+constraintValue+postpend);
curConstraints = curConstraints+ " "+constraintName;
}
String maxLength = dataTypeAnnot.getDetails().get("maxLength");
if (maxLength != null) {
String constraintName = "maxLength"+toFirstUpper(ecoreAttr.getName());
String constraintValue = ".size() <= "+maxLength;
String prefix = (!xmlAttr.isMany()&&xmlAttr.getLowerBound()==0)?("("+prepend + " = null) or " + prepend):prepend;
additonal.getDetails().put(constraintName, prefix+constraintValue+postpend);
curConstraints = curConstraints+ " "+constraintName;
}
general.getDetails().put("constraints", curConstraints.trim());
if (needAdd2 && !curConstraints.trim().isEmpty()) {
ecoreClass.getEAnnotations().add(general);
}
if (needAdd && !additonal.getDetails().isEmpty()) {
ecoreClass.getEAnnotations().add(additonal);
addedAnyAnnotations = true;
}
}
}
}
public void <API key>(EReference xmlAttr, EReference ecoreAttr, EClass xmlClass, EClass ecoreClass) {
}
public void <API key>(EEnum xmlEnum, EEnum ecoreEnum) {
}
public void <API key>(EObject eobj) {
if (eobj instanceof EClass) {
<API key>((EClass)eobj,(EClass)xmlToEcoreClasses.get(eobj));
} else if (eobj instanceof EStructuralFeature) {
EStructuralFeature esf = (EStructuralFeature)eobj;
EClass srcCl = esf.getEContainingClass();
EClass trgCl = xmlToEcoreClasses.get(srcCl);
if (eobj instanceof EAttribute) {
<API key>((EAttribute)eobj,
(EAttribute)xmlToEcoreAttribute.get(eobj),srcCl,trgCl );
} else {
<API key>((EReference)eobj,
(EReference)<API key>.get(eobj),srcCl,trgCl );
}
} else if (eobj instanceof EEnum) {
<API key>((EEnum)eobj,this.copiedEEnums.get(eobj));
}
}
public <API key> <API key> = new <API key>() {
@Override
public EObject convertToXml(EObject eobject, Transformator transformator) {
return transformator.eobject2xml(eobject);
}
@Override
public EObject convertToEcore(EObject xml, Transformator transformator) {
return transformator.xml2Eobject(xml);
}
};
private void setSimple(EStructuralFeature xmlFeature, EStructuralFeature target) {
target.setChangeable(true);
target.setLowerBound(xmlFeature.getLowerBound());
target.setUpperBound(xmlFeature.getUpperBound());
target.setOrdered(xmlFeature.isOrdered());
target.setTransient(false);
target.setUnique(xmlFeature.isUnique());
target.setVolatile(false);
}
public EEnum generateEEnum(EEnum from) {
EEnum ret = copiedEEnums.get(from);
if (ret != null) {
return ret;
}
copiedEEnums.put(from, ret = EcoreFactory.eINSTANCE.createEEnum());
ret.setName(from.getName());
for (EEnumLiteral lit: from.getELiterals()) {
EEnumLiteral target = copiedEEnumLiterals.get(lit);
if (target == null) {
copiedEEnumLiterals.put(lit, target = EcoreFactory.eINSTANCE.createEEnumLiteral());
backEEnumLiteral.put(target, lit);
backEEnumLiteralStr.put(from.getName()+"."+lit.getLiteral(), lit);
target.setLiteral(lit.getLiteral());
target.setName(lit.getName());
target.setValue(lit.getValue());
}
ret.getELiterals().add(target);
}
return ret;
}
public ValueTransformator<Object, Object> eenumTransformator(EEnum forEEnum) {
return new ValueTransformator<Object,Object>() {
@Override
public Object convertToEcore(Object xml) {
System.err.println("Convert to ecore needs to be reworked: was enumliteral->enumliteral, but appearanly others can be there too");
Object ret = copiedEEnumLiterals.get(xml);
if (ret == null && xml instanceof EEnumLiteral) {
String fragment = ((EEnumLiteral)xml).eResource().getURIFragment((EEnumLiteral)xml);
EObject eobj = fragmentToXmlObject.get(fragment);
ret = copiedEEnumLiterals.get(eobj);
} else {
// ret = ret;//xml; //Try?? TODO remove no-effect statement?
}
return ret;
}
@Override
public Object convertToXml(Object eobject) {
Object ret = backEEnumLiteral.get(eobject);
if (ret == null && eobject instanceof Enumerator) {
Enumerator enumerator = (Enumerator)eobject;
String totalStr = forEEnum.getName()+"."+enumerator.getLiteral();
ret = backEEnumLiteralStr.get(totalStr);
}
return ret;
}
};
}
public boolean <API key>(EAttribute xmlAttribute, EAttribute ecoreAttribute) {
EClass contCl = xmlToEcoreClasses.get(xmlAttribute.getEContainingClass());
if (contCl == null) {
System.err.println("No matching source found for "+xmlAttribute);
return false;
}
if (xmlAttribute.getEAttributeType() instanceof EEnum) {
//Directly reuse that enum (is this supported in the grammar?)
EEnum targetEEnum = copiedEEnums.get(xmlAttribute.getEAttributeType());
if (targetEEnum == null) {
System.err.println("I have not copied the eenum "+xmlAttribute.getEAttributeType());
return false;
} else {
<API key> tfi = new <API key>(xmlAttribute, ecoreAttribute,
new <API key>(EEnumLiteral.class,
EEnumLiteral.class, eenumTransformator(targetEEnum)));
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
return true;
}
}
<API key> trafo = store.<API key>(xmlAttribute);
if (trafo == null) {
Boolean ret = checkMixedAttribute(contCl,xmlAttribute);
if (ret != null) {
return ret;
}
System.err.println("No transformation found for "+xmlAttribute);
return false;
}
<API key> tfi = new <API key>(xmlAttribute, ecoreAttribute, trafo);
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
return true;
}
//There is no need to be a 1:1 correspondance!
public EStructuralFeature getXmlFeature(EStructuralFeature ecoreFeature) {
//Check id
if (java.util.Objects.equals(ecoreFeature,commonIdAttribute)) {
ecoreFeature = realId.getOrDefault(ecoreFeature,(EAttribute)ecoreFeature);
}
//Check reference - not necessary, I added it to ecoreToXmlFeature!
return ecoreToXmlFeature.get(ecoreFeature);
}
public Object getXmlValue(EObject eobj, EStructuralFeature ecoreFeature, int index) {
Collection col = MyEcoreUtil.getAsCollection(eobj, getXmlFeature(ecoreFeature));
if (col instanceof List) {
return ((List)col).get(index);
} else {
Object ret = null;
Iterator iter = col.iterator();
while (index >= 0) {
if (iter.hasNext()) {
ret = iter.next();
} else {
if (ecoreFeature instanceof EAttribute) {
EDataType dt = ((EAttribute)ecoreFeature).getEAttributeType();
ret = dt.getDefaultValue();
} else {
EReference ref = (EReference)ecoreFeature;
ret = MyEcoreUtil.<API key>(ref.getEReferenceType());
}
}
--index;
}
return ret;
}
}
public Boolean checkMixedAttribute(EClass contCl, EAttribute xmlAttribute) {
EDataType dt = xmlAttribute.getEAttributeType();
if (dt != null && "EFeatureMapEntry".equals(dt.getName()) && "mixed".equals(xmlAttribute.getName())) {
generateMixClasses();
contCl.getESuperTypes().add(mixedBaseClass);
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
//This must NOT refer to ecoreAttribute!! //TODO: Store in a map or something like that ...
//Because there is only one target attribute
EStructuralFeature ecoreAttribute = from.eClass().<API key>("mixed");
Collection c = MyEcoreUtil.getAsCollection(from, ecoreAttribute);
Collection t = MyEcoreUtil.getAsCollection(to, mixedBaseMixedAttr);
t.clear();
for (Object o: c) {
FeatureMap.Entry entry = (FeatureMap.Entry)o;
EStructuralFeature esf = entry.<API key>();
if (esf.getEContainingClass().isSuperTypeOf(from.eClass())) {
//It is a class attribute
EObject feature = MyEcoreUtil.<API key>(mixedFeature);
feature.eSet(mixedValueAttr, getTargetName(esf));
t.add(feature);
} else if ("text".equals(esf.getName())) { //TODO: Improve filtering
//It is a string literal
EObject feature = MyEcoreUtil.<API key>(mixedText);
feature.eSet(mixedValueAttr, entry.getValue());
t.add(feature);
} else {
//TODO: Implement me
throw new RuntimeException(new <API key>("I currently only support text features and owned structural features in mixed content"));
}
}
}
};
//1. Add Object-Delta of this object (!) - this is automatically done by other methods
//2. Add Feature-Map-Delta of this object, so this POC has to be executed last
//das letzte pro objekt sein!
xmlToEcoreChanger.put(xmlAttribute, poc);
xmlToEcoreChanger.put(mixedBaseMixedAttr, poc);
PartialObjectCopier ecoreToXmlPoc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject ecore, EObject xml) {
//This must NOT use any of this attributes since it must be generic!
Collection c = MyEcoreUtil.getAsCollection(ecore, mixedBaseMixedAttr);
EStructuralFeature xmlFeature = xml.eClass().<API key>("mixed");
List t = new ArrayList<>();
Map<EStructuralFeature,Integer> usedIndices = new HashMap<EStructuralFeature, Integer>();
for (Object o: c) {
EObject eo = (EObject)o;
if (mixedFeature.isSuperTypeOf(eo.eClass())) {
EStructuralFeature ecorefeat = ecore.eClass().<API key>((String)eo.eGet(mixedValueAttr));
//Jetzt brauche ich aber den korrespondierenden Wert (und das korrespondierende Feature)
//Wenn es eine Referenz ist, ist das vielleicht nicht gespeichert
EStructuralFeature xmlFeat = getXmlFeature(ecorefeat);
Integer index = usedIndices.getOrDefault(xmlFeat, 0);
Object value = getXmlValue(xml, ecorefeat, index);
FeatureMap.Entry entry = FeatureMapUtil.createEntry(xmlFeat, value);
usedIndices.put(xmlFeat, index+1);
t.add(entry);
} else if (mixedText.isSuperTypeOf(eo.eClass())) {
FeatureMap.Entry entry = FeatureMapUtil.createTextEntry((String)eo.eGet(mixedValueAttr));
t.add(entry);
}
}
//Add remaining features
for (EStructuralFeature esf: xml.eClass().<API key>()) {
if (isMixed(esf)) {continue;}
Integer curIndex = usedIndices.getOrDefault(esf, 0);
Collection col = MyEcoreUtil.getAsCollection(xml, esf);
Iterator iter = col.iterator();
int lind = 0;
while (iter.hasNext() && lind < curIndex) {
iter.next();
}
while(iter.hasNext()) {
FeatureMap.Entry entry = FeatureMapUtil.createEntry(esf, iter.next());
t.add(entry);
}
}
MyEcoreUtil.<API key>(xml, xmlFeature, t);
}
};
ecoreToXmlChanger.put(xmlAttribute, ecoreToXmlPoc);
ecoreToXmlChanger.put(mixedBaseMixedAttr, ecoreToXmlPoc);
return false; //Remove this attribute because it is replaced!
}
return null;
}
public boolean augmentAttribute(EAttribute xmlAttribute, EAttribute ecoreAttribute) {
if (handledTargets.contains(ecoreAttribute)) {
return <API key>(xmlAttribute, ecoreAttribute);
}
EClass contCl = xmlToEcoreClasses.get(xmlAttribute.getEContainingClass());
if (xmlAttribute.getName().contains("pages")) {
System.out.println("Pages found!");
}
if (contCl == null) {
System.err.println("No matching source found for "+xmlAttribute);
return false;
}
if (xmlAttribute.getEAttributeType() instanceof EEnum) {
//Directly reuse that enum (is this supported in the grammar?)
EEnum targetEEnum = copiedEEnums.get(xmlAttribute.getEAttributeType());
if (targetEEnum == null) {
System.err.println("I have not copied the eenum "+xmlAttribute.getEAttributeType());
return false;
} else {
ecoreAttribute.setEType(targetEEnum);
contCl.<API key>().add(ecoreAttribute);
<API key> tfi = new <API key>(xmlAttribute, ecoreAttribute,
new <API key>(EEnumLiteral.class,
EEnumLiteral.class, eenumTransformator(targetEEnum)));
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
// EObject eobj; // TODO remove unused?
return true;
}
}
<API key> trafo = store.<API key>(xmlAttribute);
if (trafo == null) {
//Check special case: mixed + EFeatureMapEntry
Boolean ret = checkMixedAttribute(contCl,xmlAttribute);
if (ret != null) {
return ret;
}
System.err.println("Cannot translate attribute "+xmlAttribute.getEContainingClass().getName()+"."+xmlAttribute.getName()+" of type "+xmlAttribute.getEAttributeType()+" (cannot find transformator)");
return false;
}
EDataType dt = store.<API key>(trafo.getEcoreClass());
if (dt == null) {
System.err.println("Cannot translate attribute "+xmlAttribute.getEContainingClass().getName()+"."+xmlAttribute.getName()+" of type "+xmlAttribute.getEAttributeType()+" (cannot transform datatype)");
return false;
}
<API key> tfi = new <API key>(xmlAttribute, ecoreAttribute, trafo);
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
ecoreAttribute.setEType(dt);
contCl.<API key>().add(ecoreAttribute);
return true;
}
public boolean <API key>(EReference xmlReference, EReference ecoreReference) {
EClass contCl = xmlToEcoreClasses.get(xmlReference.getEContainingClass());
if (contCl == null) {
System.err.println("No matching source found for "+xmlReference);
return false;
}
EClass targetClass = xmlToEcoreClasses.get(xmlReference.getEReferenceType());
if (targetClass == null) {
System.err.println("No matching type found for "+xmlReference.getEContainingClass().getName()+"."+xmlReference.getName()+" ("+xmlReference.getEReferenceType()+")");
return false;
}
<API key> tfi = new <API key>(xmlReference, ecoreReference,
new <API key>(new <API key>(xmlReference.getEReferenceType(),
ecoreReference.getEReferenceType(), <API key>)));
xmlToEcoreRef.put(xmlReference, tfi);
ecoreToXmlRef.put(ecoreReference, tfi);
//contCl.<API key>().add(ecoreReference);
return true;
}
public boolean augmentReference(EReference xmlReference, EReference ecoreReference) {
if (handledTargets.contains(ecoreReference)) {
return <API key>(xmlReference, ecoreReference);
}
EClass contCl = xmlToEcoreClasses.get(xmlReference.getEContainingClass());
if (contCl == null) {
System.err.println("No matching source found for "+xmlReference);
return false;
}
EClass targetClass = xmlToEcoreClasses.get(xmlReference.getEReferenceType());
if (targetClass == null) {
System.err.println("No matching type found for "+xmlReference.getEContainingClass().getName()+"."+xmlReference.getName()+" ("+xmlReference.getEReferenceType()+")");
return false;
}
ecoreReference.setEType(targetClass);
<API key> tfi = new <API key>(xmlReference, ecoreReference,
new <API key>(new <API key>(xmlReference.getEReferenceType(),
ecoreReference.getEReferenceType(), <API key>)));
xmlToEcoreRef.put(xmlReference, tfi);
ecoreToXmlRef.put(ecoreReference, tfi);
contCl.<API key>().add(ecoreReference);
return true;
}
public boolean augmentEClass(EClass xmlClass, EClass ecoreClass) {
if (handledTargets.contains(ecoreClass)) {
return augmentEClassBasic(xmlClass, ecoreClass);
}
for (EClass superType: xmlClass.getESuperTypes()) {
EClass ecoreSup = xmlToEcoreClasses.get(superType);
ecoreClass.getESuperTypes().add(ecoreSup);
}
//Ich glaube sonst ist nichts zu tun?
return true;
}
public boolean augmentEClassBasic(EClass xmlClass, EClass ecoreReference) {
return true;
}
public String getTargetName(EStructuralFeature xmlFeature){
String targetName = xmlFeature.getName();
if (xmlFeature.isMany() && !targetName.endsWith("s")) {
targetName = targetName+"s";
}
return targetName;
}
public String <API key>(EStructuralFeature xmlFeature) {
return getTargetName(xmlFeature);
}
public EAttribute <API key>(EClass xmlClass, EClass ecoreClass, EAttribute xmlAttribute) {
String featName = getTargetName(xmlAttribute);
Object existing = getIfExists(ecoreClass.getName()+"."+featName);
EAttribute target = (existing instanceof EAttribute)?((EAttribute)existing):null;
if (target == null) {
target = EcoreFactory.eINSTANCE.createEAttribute();
target.setName(featName);
setSimple(xmlAttribute, target);
target.setID(xmlAttribute.isID());
}
ecoreToXmlFeature.put(target, xmlAttribute);
return target;
}
public void fixOpposites() {
//Don't fix it since it can't be handled by XText!
}
public EReference <API key>(EClass xmlClass, EClass ecoreClass, EReference xmlReference) {
String featName = getTargetName(xmlReference);
EReference target = (EReference)getIfExists(ecoreClass.getName()+"."+featName);
if (target == null) {
target = EcoreFactory.eINSTANCE.createEReference();
target.setName(featName);
setSimple(xmlReference, target);
target.setContainment(xmlReference.isContainment());
}
ecoreToXmlFeature.put(target, xmlReference);
return target;
}
public String getEcoreClassName(EClass xmlClass) {
String targetName = xmlClass.getName();
if (targetName.endsWith("Type")) {
//targetName = targetName.substring(0,targetName.length()-"Type".length());
}
return targetName;
}
public EClass <API key>(EClass xmlClass) {
String targetName = getEcoreClassName(xmlClass);
EClass target = (EClass)getIfExists(targetName);
if (target == null) {
target = EcoreFactory.eINSTANCE.createEClass();
target.setName(targetName);
}
return target;
}
// TODO move this to a test class
public static void main(String[] args) {
<API key> store = new <API key>();
ResourceSet basicSet = new ResourceSetImpl();
<API key> structure = new <API key>(store, basicSet, new File("library3-base.ecore"));
}
public EObject getXmlEObject(String uriFragment) {
return fragmentToXmlObject.get(uriFragment);
}
public EClass getDocumentRoot() {
return <API key>;
}
public EClass getXmlRoot() {
return rootClassXml;
}
public EReference getXmlRootReference() {
return rootReferenceXml;
}
public EClass getEcoreRoot() {
return rootClassEcore;
}
public List<Resource> getEcoreResources() {
return ecoreResources;
}
}
|
require 'rails_helper'
RSpec.describe Scrap, :type => :model do
context 'factories' do
it 'valid' do
expect(build(:scrap)).to be_valid
end
end
context 'validation' do
it { is_expected.to <API key>(:message) }
end
end
|
#ifndef __UIDICTIONARY_H
#define __UIDICTIONARY_H
#include <System/Tools/Array.h>
#include <System/Tools/HashHelper.h>
namespace suic
{
template<typename TKey, typename TValue, typename Comparer>
class Dictionary1
{
public:
Dictionary1()
{
Initialize(0);
}
Dictionary1(int capacity)
{
Initialize(capacity);
}
public:
void Add(TKey key, TValue value)
{
Insert(key, value, true);
}
bool Remove(TKey key)
{
if (_buckets.Length() > 0)
{
int num = _comparer.GetHashCode(key) & 0x7fffffff;
int index = num % _buckets.length;
int num3 = -1;
for (int i = _buckets[index]; i >= 0; i = _entries[i].next)
{
if ((_entries[i].hashCode == num) && _comparer.Equals(_entries[i].key, key))
{
if (num3 < 0)
{
_buckets[index] = _entries[i].next;
}
else
{
_entries[num3].next = _entries[i].next;
}
_entries[i].hashCode = -1;
_entries[i].next = freeList;
OnCleanPair(_entries[i]);
_entries[i].key = TKey();
_entries[i].value = TValue();
freeList = i;
freeCount++;
version++;
return true;
}
num3 = i;
}
}
return false;
}
bool TryGetValue(TKey key, TValue& value)
{
int index = FindEntry(key);
if (index >= 0)
{
value = _entries[index].value;
return true;
}
else
{
value = TValue();
return false;
}
}
void Clear()
{
if (count > 0)
{
for (int i = 0; i < _buckets.length; i++)
{
_buckets[i] = -1;
}
for (int i = 0; i < _entries.Length(); ++i)
{
if (_entries[i].hashCode > 0)
{
OnCleanPair(_entries[i]);
}
}
_entries.Clear();
freeList = -1;
count = 0;
freeCount = 0;
version++;
}
}
bool ContainsKey(TKey key)
{
return (FindEntry(key) >= 0);
}
private:
int FindEntry(TKey key)
{
if (_buckets.Length() > 0)
{
int num = _comparer.GetHashCode(key) & 0x7fffffff;
for (int i = _buckets[num % _buckets.length]; i >= 0; i = _entries[i].next)
{
if ((_entries[i].hashCode == num) && _comparer.Equals(_entries[i].key, key))
{
return i;
}
}
}
return -1;
}
void Initialize(int capacity)
{
int prime = HashHelper::GetPrime(capacity);
_buckets.Resize(prime);
for (int i = 0; i < _buckets.length; i++)
{
_buckets[i] = -1;
}
_entries.Resize(prime);
freeList = -1;
}
void Insert(TKey key, TValue value, bool add)
{
int freeList = 0;
if (_buckets.Length() == 0)
{
Initialize(1);
}
int num = _comparer.GetHashCode(key) & 0x7fffffff;
int index = num % _buckets.length;
int num3 = 0;
for (int i = _buckets[index]; i >= 0; i = _entries[i].next)
{
if ((_entries[i].hashCode == num) && _comparer.Equals(_entries[i].key, key))
{
if (add)
{
throw <API key>(_U("Key of dictionary is exist!"), __FILELINE__);
}
_entries[i].value = value;
version++;
OnReplaceItem(_entries[i], value);
return;
}
num3++;
}
if (freeCount > 0)
{
freeList = freeList;
freeList = _entries[freeList].next;
freeCount
}
else
{
if (count == _entries.length)
{
Resize();
index = num % _buckets.length;
}
freeList = count;
count++;
}
_entries[freeList].hashCode = num;
_entries[freeList].next = _buckets[index];
_entries[freeList].key = key;
_entries[freeList].value = value;
_buckets[index] = freeList;
version++;
OnAddPair(_entries[freeList]);
}
private:
void Resize()
{
Resize(HashHelper::ExpandPrime(count), false);
}
void Resize(int newSize, bool forceNewHashCodes)
{
ArrayType<int> numArray;
numArray.Resize(newSize);
for (int i = 0; i < numArray.length; i++)
{
numArray[i] = -1;
}
_entries.Resize(newSize);
if (forceNewHashCodes)
{
for (int k = 0; k < count; k++)
{
if (_entries[k].hashCode != -1)
{
_entries[k].hashCode = _comparer.GetHashCode(_entries[k].key) & 0x7fffffff;
}
}
}
for (int j = 0; j < count; j++)
{
int index = _entries[j].hashCode % newSize;
_entries[j].next = numArray[index];
numArray[index] = j;
}
_buckets.Attach(numArray);
}
protected:
virtual void OnCleanPair(Entry<TKey, TValue>& val) {}
virtual void OnAddPair(Entry<TKey, TValue>& val) {}
virtual void OnReplaceItem(Entry<TKey, TValue>& oldVal, TValue newVal) {}
private:
int count;
int version;
int freeList;
int freeCount;
Comparer _comparer;
ArrayType<int> _buckets;
ArrayType<Entry<TKey, TValue> > _entries;
};
}
#endif
|
#include <qt/trafficgraphwidget.h>
#include <interfaces/node.h>
#include <qt/clientmodel.h>
#include <QColor>
#include <QPainter>
#include <QPainterPath>
#include <QTimer>
#include <cmath>
#define DESIRED_SAMPLES 800
#define XMARGIN 10
#define YMARGIN 10
TrafficGraphWidget::TrafficGraphWidget(QWidget *parent)
: QWidget(parent), timer(nullptr), fMax(0.0f), nMins(0), vSamplesIn(),
vSamplesOut(), nLastBytesIn(0), nLastBytesOut(0), clientModel(nullptr) {
timer = new QTimer(this);
connect(timer, &QTimer::timeout, this, &TrafficGraphWidget::updateRates);
}
void TrafficGraphWidget::setClientModel(ClientModel *model) {
clientModel = model;
if (model) {
nLastBytesIn = model->node().getTotalBytesRecv();
nLastBytesOut = model->node().getTotalBytesSent();
}
}
int TrafficGraphWidget::getGraphRangeMins() const {
return nMins;
}
void TrafficGraphWidget::paintPath(QPainterPath &path, QQueue<float> &samples) {
int sampleCount = samples.size();
if (sampleCount > 0) {
int h = height() - YMARGIN * 2, w = width() - XMARGIN * 2;
int x = XMARGIN + w;
path.moveTo(x, YMARGIN + h);
for (int i = 0; i < sampleCount; ++i) {
x = XMARGIN + w - w * i / DESIRED_SAMPLES;
int y = YMARGIN + h - (int)(h * samples.at(i) / fMax);
path.lineTo(x, y);
}
path.lineTo(x, YMARGIN + h);
}
}
void TrafficGraphWidget::paintEvent(QPaintEvent *) {
QPainter painter(this);
painter.fillRect(rect(), Qt::black);
if (fMax <= 0.0f) {
return;
}
QColor axisCol(Qt::gray);
int h = height() - YMARGIN * 2;
painter.setPen(axisCol);
painter.drawLine(XMARGIN, YMARGIN + h, width() - XMARGIN, YMARGIN + h);
// decide what order of magnitude we are
int base = floor(log10(fMax));
float val = pow(10.0f, base);
const QString units = tr("KB/s");
const float yMarginText = 2.0;
// draw lines
painter.setPen(axisCol);
painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax - yMarginText,
QString("%1 %2").arg(val).arg(units));
for (float y = val; y < fMax; y += val) {
int yy = YMARGIN + h - h * y / fMax;
painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy);
}
// if we drew 3 or fewer lines, break them up at the next lower order of
// magnitude
if (fMax / val <= 3.0f) {
axisCol = axisCol.darker();
val = pow(10.0f, base - 1);
painter.setPen(axisCol);
painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax - yMarginText,
QString("%1 %2").arg(val).arg(units));
int count = 1;
for (float y = val; y < fMax; y += val, count++) {
// don't overwrite lines drawn above
if (count % 10 == 0) {
continue;
}
int yy = YMARGIN + h - h * y / fMax;
painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy);
}
}
if (!vSamplesIn.empty()) {
QPainterPath p;
paintPath(p, vSamplesIn);
painter.fillPath(p, QColor(0, 255, 0, 128));
painter.setPen(Qt::green);
painter.drawPath(p);
}
if (!vSamplesOut.empty()) {
QPainterPath p;
paintPath(p, vSamplesOut);
painter.fillPath(p, QColor(255, 0, 0, 128));
painter.setPen(Qt::red);
painter.drawPath(p);
}
}
void TrafficGraphWidget::updateRates() {
if (!clientModel) {
return;
}
quint64 bytesIn = clientModel->node().getTotalBytesRecv(),
bytesOut = clientModel->node().getTotalBytesSent();
float inRate =
(bytesIn - nLastBytesIn) / 1024.0f * 1000 / timer->interval();
float outRate =
(bytesOut - nLastBytesOut) / 1024.0f * 1000 / timer->interval();
vSamplesIn.push_front(inRate);
vSamplesOut.push_front(outRate);
nLastBytesIn = bytesIn;
nLastBytesOut = bytesOut;
while (vSamplesIn.size() > DESIRED_SAMPLES) {
vSamplesIn.pop_back();
}
while (vSamplesOut.size() > DESIRED_SAMPLES) {
vSamplesOut.pop_back();
}
float tmax = 0.0f;
for (const float f : vSamplesIn) {
if (f > tmax) {
tmax = f;
}
}
for (const float f : vSamplesOut) {
if (f > tmax) {
tmax = f;
}
}
fMax = tmax;
update();
}
void TrafficGraphWidget::setGraphRangeMins(int mins) {
nMins = mins;
int msecsPerSample = nMins * 60 * 1000 / DESIRED_SAMPLES;
timer->stop();
timer->setInterval(msecsPerSample);
clear();
}
void TrafficGraphWidget::clear() {
timer->stop();
vSamplesOut.clear();
vSamplesIn.clear();
fMax = 0.0f;
if (clientModel) {
nLastBytesIn = clientModel->node().getTotalBytesRecv();
nLastBytesOut = clientModel->node().getTotalBytesSent();
}
timer->start();
}
|
package de.felixroske.jfxsupport.util;
import org.springframework.boot.autoconfigure.<API key>;
import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.<API key>;
import java.io.IOException;
class <API key> extends ExcludeFilter {
@Override
public boolean exclude(MetadataReader metadataReader, <API key> <API key>) throws IOException {
try {
if (isAnnotated(metadataReader, <API key>.class)) {
return !<API key>.getName().equals(metadataReader.getClassMetadata().getClassName());
}
} catch (<API key> e) {
throw new RuntimeException(e);
}
return false;
}
}
|
<!DOCTYPE html>
<html xmlns:msxsl="urn:<API key>:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="<API key>">.NET Portability Report</title>
<style>
/* Body style, for the entire document */
body {
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}
/* Header1 style, used for the main title */
h1 {
padding: 10px 0px 10px 10px;
font-size: 21pt;
background-color: #E2E2E2;
border-bottom: 1px #C1C1C2 solid;
color: #201F20;
margin: 0;
font-weight: normal;
}
/* Header2 style, used for "Overview" and other sections */
h2 {
font-size: 18pt;
font-weight: normal;
padding: 15px 0 5px 0;
margin: 0;
}
/* Header3 style, used for sub-sections, such as project name */
h3 {
font-weight: normal;
font-size: 15pt;
margin: 0;
padding: 15px 0 5px 0;
background-color: transparent;
}
h4 {
font-weight: normal;
font-size: 12pt;
margin: 0;
padding: 0 0 0 0;
background-color: transparent;
}
/* Color all hyperlinks one color */
a {
color: #1382CE;
}
/* Paragraph text (for longer informational messages) */
p {
font-size: 10pt;
}
/* Table styles */
table {
border-spacing: 0 0;
border-collapse: collapse;
font-size: 10pt;
}
table th {
background: #E7E7E8;
text-align: left;
text-decoration: none;
font-weight: normal;
padding: 3px 6px 3px 6px;
}
table td {
vertical-align: top;
padding: 3px 6px 5px 5px;
margin: 0px;
border: 1px solid #E7E7E8;
background: #F7F7F8;
}
.NoBreakingChanges {
color: darkgreen;
font-weight:bold;
}
.FewBreakingChanges {
color: orange;
font-weight:bold;
}
.ManyBreakingChanges {
color: red;
font-weight:bold;
}
.BreakDetails {
margin-left: 30px;
}
.CompatMessage {
font-style: italic;
font-size: 10pt;
}
.GoodMessage {
color: darkgreen;
}
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
.localLink {
color: #1E1E1F;
background: #EEEEED;
text-decoration: none;
}
.localLink:hover {
color: #1382CE;
background: #FFFF99;
text-decoration: none;
}
/* Center text, used in the over views cells that contain message level counts */
.textCentered {
text-align: center;
}
/* The message cells in message tables should take up all avaliable space */
.messageCell {
width: 100%;
}
/* Padding around the content after the h1 */
#content {
padding: 0px 12px 12px 12px;
}
/* The overview table expands to width, with a max width of 97% */
#overview table {
width: auto;
max-width: 75%;
}
/* The messages tables are always 97% width */
#messages table {
width: 97%;
}
/* All Icons */
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded {
min-width: 18px;
min-height: 18px;
background-repeat: no-repeat;
background-position: center;
}
/* Success icon encoded */
.IconSuccessEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
background-image: url(data:image/png;base64,<API key>/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+<API key>/H5+sHpZwYfxyRjTs+<API key>/13u3Fjrs/EdhsdDFHGB/<API key>+m3tVe/t97D52CB/ziG0nIgD/<API key>/<API key>/<API key>+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==);
}
/* Information icon encoded */
.IconInfoEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
background-image: url(data:image/png;base64,<API key>/<API key>+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/<API key>/HF1RsMXq+<API key>/<API key>+<API key>/<API key>=);
}
/* Warning icon encoded */
.IconWarningEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
background-image: url(data:image/png;base64,<API key>/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/<API key>+wVDSyyzFoJjfz9NB+pAF+<API key>/<API key>/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/<API key>==);
}
/* Error icon encoded */
.IconErrorEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
background-image: url(data:image/png;base64,<API key>/<API key>/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+<API key>/<API key>/<API key>=);
}
</style>
</head>
<body>
<h1 _locid="PortabilityReport">.NET Portability Report</h1>
<div id="content">
<div id="submissionId" style="font-size:8pt;">
<p>
<i>
Submission Id
<API key>
</i>
</p>
</div>
<h2 _locid="SummaryTitle">
<a name="Portability Summary"></a>Portability Summary
</h2>
<div id="summary">
<table>
<tbody>
<tr>
<th>Assembly</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
</tr>
<tr>
<td><strong><a href="#System.Reactive.Interfaces">System.Reactive.Interfaces</a></strong></td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
</tr>
</tbody>
</table>
</div>
<div id="details">
</div>
</div>
</body>
</html>
|
#pragma once
#define __ALIAS(function) __attribute__ ((weak, alias(#function)))
#define __VECTORS __attribute__ ((used, section(".intvec")))
#define __CAST(sp) (void(*)(void))(intptr_t)(sp)
__NO_RETURN void __iar_program_start( void );
__STATIC_INLINE __NO_RETURN
void __main( void )
{
/* Call the application's entry point */
__iar_program_start();
}
|
from aliyun.api.base import RestApi
class <API key>(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.AccountName = None
self.DBInstanceId = None
self.<API key> = None
def getapiname(self):
return 'rds.aliyuncs.com.<API key>.2014-08-15'
|
using System;
using NUnit.Framework;
namespace MyApp.Repository.Testing
{
internal class <API key>
{
[Test]
public void Standard()
{
var repository = new InMemoryRepository<TestClass>(x => x.ID);
StandardTests.All(repository);
}
[Test]
public void UpdateTest()
{
var repository = new InMemoryRepository<ComplexTestClass>(x => x.ID);
var obj = new ComplexTestClass() { IntValue = 1 };
repository.Insert(obj);
repository.SaveChanges();
repository.Update(new { IntValue = 2 }, obj.ID);
repository.SaveChanges();
var val = repository.Find(obj.ID).Object;
Assert.AreEqual(2, val.IntValue);
var updateObj = new { DateTimeValue = DateTime.MaxValue };
repository.Update(updateObj, x => x.ComplexProperty, obj.ID);
repository.SaveChanges();
Assert.AreEqual(val.ComplexProperty.DateTimeValue, DateTime.MaxValue);
}
[Test]
public void ChangeTrackingTest()
{
var repo = new InMemoryRepository<TestClass>(x => x.ID);
var initialValue = "myValue";
var obj = new TestClass { StringValue = initialValue };
repo.Insert(obj);
repo.SaveChanges();
var storedObj = repo.Find(obj.ID);
storedObj.Object.StringValue = initialValue + 1;
repo.SaveChanges();
storedObj = repo.Find(obj.ID);
Assert.AreEqual(initialValue + 1, storedObj.Object.StringValue);
}
[Test]
public void DetectsChangedKeys()
{
var repo = new InMemoryRepository<TestClass>(x => x.ID);
var initialValue = "myValue";
var obj = new TestClass { ID = "myKey", StringValue = initialValue };
repo.Insert(obj);
repo.SaveChanges();
var storedObj = repo.Find(obj.ID);
storedObj.Object.ID = "newKey";
Assert.Throws<RepositoryException>(repo.SaveChanges);
}
}
}
|
import {dispatchFakeEvent} from '../../cdk/testing/private';
import {<API key>, Component, DebugElement, Type} from '@angular/core';
import {
ComponentFixture,
fakeAsync,
flush,
flushMicrotasks,
TestBed,
} from '@angular/core/testing';
import {ThemePalette} from '@angular/<API key>/mdc-core';
import {FormControl, FormsModule, NgModel, ReactiveFormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {
MatCheckbox,
MatCheckboxChange,
MatCheckboxModule
} from './index';
import {<API key>, <API key>} from '@angular/material/checkbox';
describe('MDC-based MatCheckbox', () => {
let fixture: ComponentFixture<any>;
function createComponent<T>(componentType: Type<T>, extraDeclarations: Type<any>[] = []) {
TestBed
.<API key>({
imports: [MatCheckboxModule, FormsModule, ReactiveFormsModule],
declarations: [componentType, ...extraDeclarations],
})
.compileComponents();
return TestBed.createComponent<T>(componentType);
}
describe('basic behaviors', () => {
let <API key>: DebugElement;
let <API key>: HTMLElement;
let checkboxInstance: MatCheckbox;
let testComponent: SingleCheckbox;
let inputElement: HTMLInputElement;
let labelElement: HTMLLabelElement;
let checkboxElement: HTMLElement;
beforeEach(() => {
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
checkboxInstance = <API key>.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <HTMLInputElement><API key>.querySelector('input');
labelElement = <HTMLLabelElement><API key>.querySelector('label');
checkboxElement = <HTMLLabelElement><API key>.querySelector('.mdc-checkbox');
});
it('should add and remove the checked state', fakeAsync(() => {
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.checked).toBe(false);
testComponent.isChecked = true;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(true);
expect(inputElement.checked).toBe(true);
testComponent.isChecked = false;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.checked).toBe(false);
}));
it('should expose the ripple instance', () => {
expect(checkboxInstance.ripple).toBeTruthy();
});
it('should hide the internal SVG', () => {
const svg = <API key>.querySelector('svg')!;
expect(svg.getAttribute('aria-hidden')).toBe('true');
});
it('should toggle checkbox ripple disabledness correctly', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.<API key>)';
testComponent.isDisabled = true;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(<API key>.querySelectorAll(rippleSelector).length).toBe(0);
flush();
testComponent.isDisabled = false;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(<API key>.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
it('should add and remove indeterminate state', fakeAsync(() => {
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(false);
expect(inputElement.getAttribute('aria-checked'))
.withContext('Expect aria-checked to be false').toBe('false');
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.getAttribute('aria-checked'))
.withContext('Expect aria checked to be mixed for indeterminate checkbox').toBe('mixed');
testComponent.isIndeterminate = false;
fixture.detectChanges();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(false);
}));
it('should set indeterminate to false when input clicked', fakeAsync(() => {
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.indeterminate).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
inputElement.click();
fixture.detectChanges();
// Flush the microtasks because the forms module updates the model state asynchronously.
flush();
// The checked property has been updated from the model and now the view needs
// to reflect the state change.
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(true);
expect(inputElement.indeterminate).toBe(false);
expect(inputElement.checked).toBe(true);
expect(testComponent.isIndeterminate).toBe(false);
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.indeterminate).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.checked).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
expect(inputElement.getAttribute('aria-checked'))
.withContext('Expect aria checked to be true').toBe('true');
inputElement.click();
fixture.detectChanges();
// Flush the microtasks because the forms module updates the model state asynchronously.
flush();
// The checked property has been updated from the model and now the view needs
// to reflect the state change.
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.indeterminate).toBe(false);
expect(inputElement.checked).toBe(false);
expect(testComponent.isIndeterminate).toBe(false);
}));
it('should not set indeterminate to false when checked is set programmatically',
fakeAsync(() => {
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.indeterminate).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
testComponent.isChecked = true;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.checked).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
testComponent.isChecked = false;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.checked).toBe(false);
expect(testComponent.isIndeterminate).toBe(true);
}));
it('should change native element checked when check programmatically', () => {
expect(inputElement.checked).toBe(false);
checkboxInstance.checked = true;
fixture.detectChanges();
expect(inputElement.checked).toBe(true);
});
it('should toggle checked state on click', fakeAsync(() => {
expect(checkboxInstance.checked).toBe(false);
labelElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
labelElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
}));
it('should change from indeterminate to checked on click', fakeAsync(() => {
testComponent.isChecked = false;
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(checkboxInstance.indeterminate).toBe(true);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
expect(checkboxInstance.indeterminate).toBe(false);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
expect(checkboxInstance.indeterminate).toBe(false);
}));
it('should add and remove disabled state', fakeAsync(() => {
expect(checkboxInstance.disabled).toBe(false);
expect(inputElement.tabIndex).toBe(0);
expect(inputElement.disabled).toBe(false);
testComponent.isDisabled = true;
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(true);
expect(inputElement.disabled).toBe(true);
testComponent.isDisabled = false;
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(false);
expect(inputElement.tabIndex).toBe(0);
expect(inputElement.disabled).toBe(false);
}));
it('should not toggle `checked` state upon interation while disabled', fakeAsync(() => {
testComponent.isDisabled = true;
fixture.detectChanges();
<API key>.click();
expect(checkboxInstance.checked).toBe(false);
}));
it('should overwrite indeterminate state when clicked', fakeAsync(() => {
testComponent.isIndeterminate = true;
fixture.detectChanges();
inputElement.click();
fixture.detectChanges();
// Flush the microtasks because the indeterminate state will be updated in the next tick.
flush();
expect(checkboxInstance.checked).toBe(true);
expect(checkboxInstance.indeterminate).toBe(false);
}));
it('should preserve the user-provided id', fakeAsync(() => {
expect(<API key>.id).toBe('simple-check');
expect(inputElement.id).toBe('simple-check-input');
}));
it('should generate a unique id for the checkbox input if no id is set', fakeAsync(() => {
testComponent.checkboxId = null;
fixture.detectChanges();
expect(checkboxInstance.inputId).toMatch(/mat-mdc-checkbox-\d+/);
expect(inputElement.id).toBe(checkboxInstance.inputId);
}));
it('should project the checkbox content into the label element', fakeAsync(() => {
let label = <HTMLLabelElement><API key>.querySelector('label');
expect(label.textContent!.trim()).toBe('Simple checkbox');
}));
it('should make the host element a tab stop', fakeAsync(() => {
expect(inputElement.tabIndex).toBe(0);
}));
it('should add a css class to position the label before the checkbox', fakeAsync(() => {
testComponent.labelPos = 'before';
fixture.detectChanges();
expect(<API key>.querySelector('.mdc-form-field')!.classList)
.toContain('<API key>');
}));
it('should not trigger the click event multiple times', fakeAsync(() => {
// By default, when clicking on a label element, a generated click will be dispatched
// on the associated input element.
// Since we're using a label element and a visual hidden input, this behavior can led
// to an issue, where the click events on the checkbox are getting executed twice.
spyOn(testComponent, 'onCheckboxClick');
expect(inputElement.checked).toBe(false);
labelElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(testComponent.onCheckboxClick).<API key>(1);
}));
it('should trigger a change event when the native input does', fakeAsync(() => {
spyOn(testComponent, 'onCheckboxChange');
expect(inputElement.checked).toBe(false);
labelElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(testComponent.onCheckboxChange).<API key>(1);
}));
it('should not trigger the change event by changing the native value', fakeAsync(() => {
spyOn(testComponent, 'onCheckboxChange');
expect(inputElement.checked).toBe(false);
testComponent.isChecked = true;
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(testComponent.onCheckboxChange).not.toHaveBeenCalled();
}));
it('should keep the view in sync if the `checked` value changes inside the `change` listener',
fakeAsync(() => {
spyOn(testComponent, 'onCheckboxChange').and.callFake(() => {
checkboxInstance.checked = false;
});
labelElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(false);
}));
it('should forward the required attribute', fakeAsync(() => {
testComponent.isRequired = true;
fixture.detectChanges();
expect(inputElement.required).toBe(true);
testComponent.isRequired = false;
fixture.detectChanges();
expect(inputElement.required).toBe(false);
}));
it('should focus on underlying input element when focus() is called', fakeAsync(() => {
expect(document.activeElement).not.toBe(inputElement);
checkboxInstance.focus();
fixture.detectChanges();
expect(document.activeElement).toBe(inputElement);
}));
it('should forward the value to input element', fakeAsync(() => {
testComponent.checkboxValue = 'basic_checkbox';
fixture.detectChanges();
expect(inputElement.value).toBe('basic_checkbox');
}));
it('should remove the SVG checkmark from the tab order', fakeAsync(() => {
expect(<API key>.querySelector('svg')!.getAttribute('focusable'))
.toBe('false');
}));
describe('ripple elements', () => {
it('should show ripples on label mousedown', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.<API key>)';
expect(<API key>.querySelector(rippleSelector)).toBeFalsy();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(<API key>.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
it('should not show ripples when disabled', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.<API key>)';
testComponent.isDisabled = true;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(<API key>.querySelectorAll(rippleSelector).length).toBe(0);
flush();
testComponent.isDisabled = false;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(<API key>.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
it('should remove ripple if matRippleDisabled input is set', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.<API key>)';
testComponent.disableRipple = true;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(<API key>.querySelectorAll(rippleSelector).length).toBe(0);
flush();
testComponent.disableRipple = false;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(<API key>.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
});
describe('color behaviour', () => {
it('should apply class based on color attribute', fakeAsync(() => {
testComponent.checkboxColor = 'primary';
fixture.detectChanges();
expect(<API key>.classList.contains('mat-primary')).toBe(true);
testComponent.checkboxColor = 'accent';
fixture.detectChanges();
expect(<API key>.classList.contains('mat-accent')).toBe(true);
}));
it('should not clear previous defined classes', fakeAsync(() => {
<API key>.classList.add('custom-class');
testComponent.checkboxColor = 'primary';
fixture.detectChanges();
expect(<API key>.classList.contains('mat-primary')).toBe(true);
expect(<API key>.classList.contains('custom-class')).toBe(true);
testComponent.checkboxColor = 'accent';
fixture.detectChanges();
expect(<API key>.classList.contains('mat-primary')).toBe(false);
expect(<API key>.classList.contains('mat-accent')).toBe(true);
expect(<API key>.classList.contains('custom-class')).toBe(true);
}));
it('should default to accent if no color is passed in', fakeAsync(() => {
testComponent.checkboxColor = undefined;
fixture.detectChanges();
expect(<API key>.classList).toContain('mat-accent');
}));
});
describe(`when <API key> is 'check'`, () => {
beforeEach(() => {
TestBed.resetTestingModule();
TestBed.<API key>({
imports: [MatCheckboxModule, FormsModule, ReactiveFormsModule],
declarations: [SingleCheckbox],
providers: [
{provide: <API key>, useValue: {clickAction: 'check'}}
]
});
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
checkboxInstance = <API key>.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <API key>.querySelector('input') as HTMLInputElement;
labelElement = <API key>.querySelector('label') as HTMLLabelElement;
});
it('should not set `indeterminate` to false on click if check is set', fakeAsync(() => {
testComponent.isIndeterminate = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(inputElement.indeterminate).toBe(true);
}));
});
describe(`when <API key> is 'noop'`, () => {
beforeEach(() => {
TestBed.resetTestingModule();
TestBed.<API key>({
imports: [MatCheckboxModule, FormsModule, ReactiveFormsModule],
declarations: [SingleCheckbox],
providers: [
{provide: <API key>, useValue: {clickAction: 'noop'}}
]
});
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
checkboxInstance = <API key>.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <API key>.querySelector('input') as HTMLInputElement;
labelElement = <API key>.querySelector('label') as HTMLLabelElement;
});
it('should not change `indeterminate` on click if noop is set', fakeAsync(() => {
testComponent.isIndeterminate = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(true);
}));
it(`should not change 'checked' or 'indeterminate' on click if noop is set`, fakeAsync(() => {
testComponent.isChecked = true;
testComponent.isIndeterminate = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(inputElement.indeterminate).toBe(true);
testComponent.isChecked = false;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate)
.withContext('indeterminate should not change').toBe(true);
}));
});
it('should have a focus indicator', () => {
const <API key> =
<API key>.querySelector('.<API key>')!;
expect(<API key>.classList.contains('<API key>')).toBe(true);
});
});
describe('with change event and no initial value', () => {
let <API key>: DebugElement;
let <API key>: HTMLElement;
let checkboxInstance: MatCheckbox;
let testComponent: <API key>;
let inputElement: HTMLInputElement;
let labelElement: HTMLLabelElement;
beforeEach(() => {
fixture = createComponent(<API key>);
fixture.detectChanges();
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
checkboxInstance = <API key>.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <HTMLInputElement><API key>.querySelector('input');
labelElement = <HTMLLabelElement><API key>.querySelector('label');
});
it('should emit the event to the change observable', fakeAsync(() => {
let changeSpy = jasmine.createSpy('onChangeObservable');
checkboxInstance.change.subscribe(changeSpy);
fixture.detectChanges();
expect(changeSpy).not.toHaveBeenCalled();
// When changing the native `checked` property the checkbox will not fire a change event,
// because the element is not focused and it's not the native behavior of the input
// element.
labelElement.click();
fixture.detectChanges();
flush();
expect(changeSpy).<API key>(1);
}));
it('should not emit a DOM event to the change output', fakeAsync(() => {
fixture.detectChanges();
expect(testComponent.lastEvent).toBeUndefined();
// Trigger the click on the inputElement, because the input will probably
// emit a DOM event to the change output.
inputElement.click();
fixture.detectChanges();
flush();
// We're checking the arguments type / emitted value to be a boolean, because sometimes the
// emitted value can be a DOM Event, which is not valid.
// See angular/angular#4059
expect(testComponent.lastEvent.checked).toBe(true);
}));
});
describe('aria-label', () => {
let <API key>: DebugElement;
let <API key>: HTMLElement;
let inputElement: HTMLInputElement;
it('should use the provided aria-label', fakeAsync(() => {
fixture = createComponent(<API key>);
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
inputElement = <HTMLInputElement><API key>.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-label')).toBe('Super effective');
}));
it('should not set the aria-label attribute if no value is provided', fakeAsync(() => {
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
expect(fixture.nativeElement.querySelector('input').hasAttribute('aria-label'))
.toBe(false);
}));
});
describe('with provided aria-labelledby ', () => {
let <API key>: DebugElement;
let <API key>: HTMLElement;
let inputElement: HTMLInputElement;
it('should use the provided aria-labelledby', fakeAsync(() => {
fixture = createComponent(<API key>);
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
inputElement = <HTMLInputElement><API key>.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-labelledby')).toBe('some-id');
}));
it('should not assign aria-labelledby if none is provided', fakeAsync(() => {
fixture = createComponent(SingleCheckbox);
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
inputElement = <HTMLInputElement><API key>.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-labelledby')).toBe(null);
}));
});
describe('with provided aria-describedby ', () => {
let <API key>: DebugElement;
let <API key>: HTMLElement;
let inputElement: HTMLInputElement;
it('should use the provided aria-describedby', () => {
fixture = createComponent(<API key>);
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
inputElement = <HTMLInputElement><API key>.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-describedby')).toBe('some-id');
});
it('should not assign aria-describedby if none is provided', () => {
fixture = createComponent(SingleCheckbox);
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
inputElement = <HTMLInputElement><API key>.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-describedby')).toBe(null);
});
});
describe('with provided tabIndex', () => {
let <API key>: DebugElement;
let <API key>: HTMLElement;
let testComponent: <API key>;
let inputElement: HTMLInputElement;
beforeEach(() => {
fixture = createComponent(<API key>);
fixture.detectChanges();
testComponent = fixture.debugElement.componentInstance;
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
inputElement = <HTMLInputElement><API key>.querySelector('input');
});
it('should preserve any given tabIndex', fakeAsync(() => {
expect(inputElement.tabIndex).toBe(7);
}));
it('should preserve given tabIndex when the checkbox is disabled then enabled',
fakeAsync(() => {
testComponent.isDisabled = true;
fixture.detectChanges();
testComponent.customTabIndex = 13;
fixture.detectChanges();
testComponent.isDisabled = false;
fixture.detectChanges();
expect(inputElement.tabIndex).toBe(13);
}));
});
describe('with native tabindex attribute', () => {
it('should properly detect native tabindex attribute', fakeAsync(() => {
fixture = createComponent(<API key>);
fixture.detectChanges();
const checkbox =
fixture.debugElement.query(By.directive(MatCheckbox))!
.componentInstance as MatCheckbox;
expect(checkbox.tabIndex)
.withContext('Expected tabIndex property to have been set based on the native attribute')
.toBe(5);
}));
it('should clear the tabindex attribute from the host element', fakeAsync(() => {
fixture = createComponent(<API key>);
fixture.detectChanges();
const checkbox = fixture.debugElement.query(By.directive(MatCheckbox))!.nativeElement;
expect(checkbox.getAttribute('tabindex')).toBeFalsy();
}));
});
describe('with multiple checkboxes', () => {
beforeEach(() => {
fixture = createComponent(MultipleCheckboxes);
fixture.detectChanges();
});
it('should assign a unique id to each checkbox', fakeAsync(() => {
let [firstId, secondId] =
fixture.debugElement.queryAll(By.directive(MatCheckbox))
.map(debugElement => debugElement.nativeElement.querySelector('input').id);
expect(firstId).toMatch(/mat-mdc-checkbox-\d+-input/);
expect(secondId).toMatch(/mat-mdc-checkbox-\d+-input/);
expect(firstId).not.toEqual(secondId);
}));
});
describe('with ngModel', () => {
let <API key>: DebugElement;
let <API key>: HTMLElement;
let checkboxInstance: MatCheckbox;
let inputElement: HTMLInputElement;
let ngModel: NgModel;
beforeEach(() => {
fixture = createComponent(CheckboxWithNgModel);
fixture.componentInstance.isRequired = false;
fixture.detectChanges();
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
checkboxInstance = <API key>.componentInstance;
inputElement = <HTMLInputElement><API key>.querySelector('input');
ngModel = <API key>.injector.get<NgModel>(NgModel);
});
it('should be pristine, untouched, and valid initially', fakeAsync(() => {
expect(ngModel.valid).toBe(true);
expect(ngModel.pristine).toBe(true);
expect(ngModel.touched).toBe(false);
}));
it('should have correct control states after interaction', fakeAsync(() => {
inputElement.click();
fixture.detectChanges();
// Flush the timeout that is being created whenever a `click` event has been fired by
// the underlying input.
flush();
// After the value change through interaction, the control should be dirty, but remain
// untouched as long as the focus is still on the underlying input.
expect(ngModel.pristine).toBe(false);
expect(ngModel.touched).toBe(false);
// If the input element loses focus, the control should remain dirty but should
// also turn touched.
dispatchFakeEvent(inputElement, 'blur');
fixture.detectChanges();
flushMicrotasks();
expect(ngModel.pristine).toBe(false);
expect(ngModel.touched).toBe(true);
}));
it('should mark the element as touched on blur when inside an OnPush parent', fakeAsync(() => {
fixture.destroy();
TestBed.resetTestingModule();
fixture = createComponent(<API key>);
fixture.detectChanges();
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = <API key>.nativeElement;
checkboxInstance = <API key>.componentInstance;
inputElement = <HTMLInputElement><API key>.querySelector('input');
ngModel = <API key>.injector.get<NgModel>(NgModel);
inputElement.click();
fixture.detectChanges();
flush();
expect(<API key>.classList).not.toContain('ng-touched');
dispatchFakeEvent(inputElement, 'blur');
fixture.detectChanges();
flushMicrotasks();
fixture.detectChanges();
expect(<API key>.classList).toContain('ng-touched');
}));
it('should not throw an error when disabling while focused', fakeAsync(() => {
expect(() => {
// Focus the input element because after disabling, the `blur` event should automatically
// fire and not result in a changed after checked exception. Related: #12323
inputElement.focus();
fixture.componentInstance.isDisabled = true;
fixture.detectChanges();
flushMicrotasks();
}).not.toThrow();
}));
it('should toggle checked state on click', fakeAsync(() => {
expect(checkboxInstance.checked).toBe(false);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
}));
it('should validate with RequiredTrue validator', fakeAsync(() => {
fixture.componentInstance.isRequired = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
expect(ngModel.valid).toBe(true);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
expect(ngModel.valid).toBe(false);
}));
it('should update the ngModel value when using the `toggle` method', fakeAsync(() => {
const checkbox = fixture.debugElement.query(By.directive(MatCheckbox)).componentInstance;
expect(fixture.componentInstance.isGood).toBe(false);
checkbox.toggle();
fixture.detectChanges();
expect(fixture.componentInstance.isGood).toBe(true);
}));
});
describe('with name attribute', () => {
beforeEach(() => {
fixture = createComponent(<API key>);
fixture.detectChanges();
});
it('should forward name value to input element', fakeAsync(() => {
let checkboxElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
let inputElement = <HTMLInputElement>checkboxElement.nativeElement.querySelector('input');
expect(inputElement.getAttribute('name')).toBe('test-name');
}));
});
describe('with form control', () => {
let <API key>: DebugElement;
let checkboxInstance: MatCheckbox;
let testComponent: <API key>;
let inputElement: HTMLInputElement;
beforeEach(() => {
fixture = createComponent(<API key>);
fixture.detectChanges();
<API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxInstance = <API key>.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <HTMLInputElement><API key>.nativeElement.querySelector('input');
});
it('should toggle the disabled state', fakeAsync(() => {
expect(checkboxInstance.disabled).toBe(false);
testComponent.formControl.disable();
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(true);
expect(inputElement.disabled).toBe(true);
testComponent.formControl.enable();
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(false);
expect(inputElement.disabled).toBe(false);
}));
});
describe('without label', () => {
let <API key>: HTMLElement;
beforeEach(() => {
fixture = createComponent(<API key>);
const checkboxDebugEl = fixture.debugElement.query(By.directive(MatCheckbox))!;
<API key> = checkboxDebugEl.query(By.css('.mdc-form-field'))!.nativeElement;
});
it('should not add the "name" attribute if it is not passed in', fakeAsync(() => {
fixture.detectChanges();
expect(<API key>.querySelector('input')!.hasAttribute('name')).toBe(false);
}));
it('should not add the "value" attribute if it is not passed in', fakeAsync(() => {
fixture.detectChanges();
expect(<API key>.querySelector('input')!.hasAttribute('value')).toBe(false);
}));
});
});
describe('<API key>', () => {
describe('when <API key> overridden', () => {
function configure(defaults: <API key>) {
TestBed.<API key>({
imports: [MatCheckboxModule, FormsModule],
declarations: [SingleCheckbox, SingleCheckbox],
providers: [{provide: <API key>, useValue: defaults}]
});
TestBed.compileComponents();
}
it('should override default color in component', () => {
configure({color: 'primary'});
const fixture: ComponentFixture<SingleCheckbox> = TestBed.createComponent(SingleCheckbox);
fixture.detectChanges();
const <API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
expect(<API key>.nativeElement.classList).toContain('mat-primary');
});
it('should not override explicit input bindings', () => {
configure({color: 'primary'});
const fixture: ComponentFixture<SingleCheckbox> = TestBed.createComponent(SingleCheckbox);
fixture.componentInstance.checkboxColor = 'warn';
fixture.detectChanges();
const <API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
expect(<API key>.nativeElement.classList).not.toContain('mat-primary');
expect(<API key>.nativeElement.classList).toContain('mat-warn');
expect(<API key>.nativeElement.classList).toContain('mat-warn');
});
it('should default to accent if config does not specify color', () => {
configure({clickAction: 'noop'});
const fixture: ComponentFixture<SingleCheckbox> = TestBed.createComponent(SingleCheckbox);
fixture.componentInstance.checkboxColor = undefined;
fixture.detectChanges();
const <API key> = fixture.debugElement.query(By.directive(MatCheckbox))!;
expect(<API key>.nativeElement.classList).toContain('mat-accent');
});
});
});
/** Simple component for testing a single checkbox. */
@Component({
template: `
<div (click)="<API key> = true" (keyup)="<API key> = true">
<mat-checkbox
[id]="checkboxId"
[required]="isRequired"
[labelPosition]="labelPos"
[checked]="isChecked"
[(indeterminate)]="isIndeterminate"
[disabled]="isDisabled"
[color]="checkboxColor"
[disableRipple]="disableRipple"
[value]="checkboxValue"
(click)="onCheckboxClick($event)"
(change)="onCheckboxChange($event)">
Simple checkbox
</mat-checkbox>
</div>`
})
class SingleCheckbox {
labelPos: 'before'|'after' = 'after';
isChecked: boolean = false;
isRequired: boolean = false;
isIndeterminate: boolean = false;
isDisabled: boolean = false;
disableRipple: boolean = false;
<API key>: boolean = false;
<API key>: boolean = false;
checkboxId: string|null = 'simple-check';
checkboxColor: ThemePalette = 'primary';
checkboxValue: string = 'single_checkbox';
onCheckboxClick: (event?: Event) => void = () => {};
onCheckboxChange: (event?: MatCheckboxChange) => void = () => {};
}
/** Simple component for testing an MatCheckbox with required ngModel. */
@Component({
template: `<mat-checkbox [required]="isRequired" [(ngModel)]="isGood"
[disabled]="isDisabled">Be good</mat-checkbox>`,
})
class CheckboxWithNgModel {
isGood: boolean = false;
isRequired: boolean = true;
isDisabled: boolean = false;
}
@Component({
template: `<mat-checkbox [required]="isRequired" [(ngModel)]="isGood">Be good</mat-checkbox>`,
changeDetection: <API key>.OnPush,
})
class <API key> extends CheckboxWithNgModel {
}
/** Simple test component with multiple checkboxes. */
@Component(({
template: `
<mat-checkbox>Option 1</mat-checkbox>
<mat-checkbox>Option 2</mat-checkbox>
`
}))
class MultipleCheckboxes {
}
/** Simple test component with tabIndex */
@Component({
template: `
<mat-checkbox
[tabIndex]="customTabIndex"
[disabled]="isDisabled">
</mat-checkbox>`,
})
class <API key> {
customTabIndex: number = 7;
isDisabled: boolean = false;
}
/** Simple test component with an aria-label set. */
@Component({template: `<mat-checkbox aria-label="Super effective"></mat-checkbox>`})
class <API key> {
}
/** Simple test component with an aria-label set. */
@Component({template: `<mat-checkbox aria-labelledby="some-id"></mat-checkbox>`})
class <API key> {
}
/** Simple test component with an aria-describedby set. */
@Component({
template: `<mat-checkbox aria-describedby="some-id"></mat-checkbox>`
})
class <API key> {}
/** Simple test component with name attribute */
@Component({template: `<mat-checkbox name="test-name"></mat-checkbox>`})
class <API key> {
}
/** Simple test component with change event */
@Component({template: `<mat-checkbox (change)="lastEvent = $event"></mat-checkbox>`})
class <API key> {
lastEvent: MatCheckboxChange;
}
/** Test component with reactive forms */
@Component({template: `<mat-checkbox [formControl]="formControl"></mat-checkbox>`})
class <API key> {
formControl = new FormControl();
}
/** Test component without label */
@Component({template: `<mat-checkbox>{{ label }}</mat-checkbox>`})
class <API key> {
label: string;
}
/** Test component with the native tabindex attribute. */
@Component({template: `<mat-checkbox tabindex="5"></mat-checkbox>`})
class <API key> {
}
|
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><API key></title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root>Loading...</app-root>
</body>
</html>
|
# <API key>: true
module Eve
class <API key>
def import
region_ids.each do |region_id|
Eve::RegionContractsJob.perform_later(region_id)
end
end
private
def region_ids
@region_ids ||= Eve::Region.pluck(:region_id).sort.uniq
end
end
end
|
layout: page
title: Archive
Blog Posts
{% for post in site.posts %}
* {{ post.date | date_to_string }} » [ {{ post.title }} ]({{ post.url }})
{% endfor %}
|
import Ember from 'ember';
export default Ember.Component.extend({
tagName : '',
item : null,
isFollowing : false,
isLoggedIn : false,
init() {
this.set('isLoggedIn', !!this.get('application.user.login'));
if (this.get('application.places.length') > 0) {
this.set('isFollowing', !!this.get('application.places').findBy('id', this.get('item.id')));
}
}
});
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.2 / io - 3.3.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
io
<small>
3.3.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-03-31 05:27:10 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-03-31 05:27:10 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1 Official release 4.10.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "dev@clarus.me"
homepage: "https://github.com/clarus/io"
dev-repo: "git+https://github.com/clarus/io.git"
bug-reports: "https://github.com/clarus/io/issues"
authors: ["Guillaume Claret"]
license: "MIT"
build: [
["./configure.sh"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Io"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
]
synopsis: "A library for effects in Coq"
flags: light-uninstall
url {
src: "https://github.com/coq-io/io/archive/3.3.0.tar.gz"
checksum: "md5=<API key>"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-io.3.3.0 coq.8.11.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.2).
The following dependencies couldn't be met:
- coq-io -> coq < 8.6~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-io.3.3.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https:
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
class CB::Util::ServiceRescuer
def initialize instance
@instance = instance
end
def method_missing method, *args, &block
if @instance.respond_to? method
begin
@instance.public_send method, *args, &block
rescue => e
error_type = e.is_a?(ActiveRecord::RecordNotFound) ? :not_found : :exception
[false, {error: error_type, message: e.message}]
end
else
super
end
end
end
|
#ifndef TELEMETRY_H
#define TELEMETRY_H
#include <Arduino.h>
#include <HardwareSerial.h>
#include "common.h"
#include "queuelist.h"
static const unsigned <API key> = 5;
class Telemetry
{
public:
Telemetry(HardwareSerial port, unsigned speed);
void serialPolling();
void wheelEvent(rot_one left, rot_one right);
void sonarEvent(packet *sonarPacket);
void sendPing(bool &ready, uint32_t &delay);
packet *getMainLoopPacket();
void freePacket(packet *p);
packet *getEmptyPacket();
void putMainLoopPacket(packet *p);
void errorCounter(uint32_t count, char const *name);
private:
enum receiveStates {
RS_BEGIN, //!< Waiting for framing 0x7e
RS_DATA, //!< Incoming data
RS_ESCAPE, //!< Received 0x7d - XOR next byte with 0x20
};
enum transmitStates {
TS_BEGIN, //!< Nothing sent yet, deliver 0x7e
TS_DATA, //!< Sending normal data
TS_ESCAPE, //!< Escape has been sent, escByte is next
TS_CHKSUM, //!< Last data byte sent, checksum is next
TS_CHECKSUM_ESC, //!< checksum needs escaping
TS_END, //!< Checksum sent, frame is next. Can be skipped if there is a next packet in queue
TS_IDLE, //!< No data to transmit.
};
HardwareSerial serialPort;
// Outgoing packet queues
queuelist priorityQueue; // allow for 4
queuelist rotationQueue; // allow for 2
queuelist sonarQueue[MAX_NO_OF_SONAR]; // allow for 6+2
// Free buffers
queuelist freeList;
// Internal processing queue
queuelist mainLoop;
// RX data housekeeping
packet *rxCurrentPacket; //!< Packet being received
receiveStates rxState; //!< state of packet reception
uint16_t rxCurrentOffset; //!< Bytes received so far
uint16_t rxChecksum; //!< Checksum so far
// Error counters
bool counterUpdate;
// TX data housekeeping
packet *txCurrentPacket; //!< The currently transmitting packet
uint16_t txTotalSize; //!< Total number of bytes (payload - note escaped) in bufefr
uint16_t txCurrentOffset; //!< Current offset for transmission
transmitStates txState; //!< State for packet transmission
byte txEscByte; //!< stuffed byte, i.e. value xor'ed with 0x20 to transmit.
uint16_t txChecksum; //!< TX checksum
// Protocol housekeeping
bool *pingReady;
uint32_t *pingDelay;
// Static array of packet buffers to flow around the queues
static const unsigned bufferCount = 32;
packet packetPool[bufferCount];
// Mechanism to cycle between available output queues
uint16_t sequenceIdx;
static const unsigned sequenceMax = MAX_NO_OF_SONAR+1; // sonars + wheels
queuelist* queueSequence[sequenceMax]; // This is used to cycle between queues
// Functions
void initQueues();
packet *<API key>();
size_t getPacketLength(packet *p);
inline void crcUpdate(uint16_t &chksum, byte b);
bool rxGetBuffer();
void rxHandleUartByte(byte b);
void rxCalcChecksum(byte b);
bool <API key>();
void rxReInitPacket();
void rxSaveByte(byte b);
void rxPacketForwarding(packet *p);
bool <API key>();
bool txGetPacketByte(byte &b);
};
#endif // TELEMETRY_H
|
package com.nicolas.coding.common.photopick;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CursorAdapter;
import android.widget.ImageView;
import com.nostra13.<API key>.core.ImageLoader;
import com.nicolas.coding.MyApp;
import com.nicolas.coding.R;
import com.nicolas.coding.common.photopick.PhotoPickActivity.GridViewCheckTag;
class GridPhotoAdapter extends CursorAdapter {
final int itemWidth;
LayoutInflater mInflater;
PhotoPickActivity mActivity;
// enum Mode { All, Folder }
// private Mode mMode = Mode.All;
// void setmMode(Mode mMode) {
// this.mMode = mMode;
View.OnClickListener mClickItem = new View.OnClickListener() {
@Override
public void onClick(View v) {
mActivity.clickPhotoItem(v);
}
};
GridPhotoAdapter(Context context, Cursor c, boolean autoRequery, PhotoPickActivity activity) {
super(context, c, autoRequery);
mInflater = LayoutInflater.from(context);
mActivity = activity;
int spacePix = context.getResources().<API key>(R.dimen.<API key>);
itemWidth = (MyApp.sWidthPix - spacePix * 4) / 3;
}
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
View convertView = mInflater.inflate(R.layout.<API key>, parent, false);
ViewGroup.LayoutParams layoutParams = convertView.getLayoutParams();
layoutParams.height = itemWidth;
layoutParams.width = itemWidth;
convertView.setLayoutParams(layoutParams);
GridViewHolder holder = new GridViewHolder();
holder.icon = (ImageView) convertView.findViewById(R.id.icon);
holder.iconFore = (ImageView) convertView.findViewById(R.id.iconFore);
holder.check = (CheckBox) convertView.findViewById(R.id.check);
GridViewCheckTag checkTag = new GridViewCheckTag(holder.iconFore);
holder.check.setTag(checkTag);
holder.check.setOnClickListener(mClickItem);
convertView.setTag(holder);
ViewGroup.LayoutParams iconParam = holder.icon.getLayoutParams();
iconParam.width = itemWidth;
iconParam.height = itemWidth;
holder.icon.setLayoutParams(iconParam);
return convertView;
}
@Override
public void bindView(View view, Context context, Cursor cursor) {
GridViewHolder holder;
holder = (GridViewHolder) view.getTag();
ImageLoader imageLoader = ImageLoader.getInstance();
String path = ImageInfo.pathAddPreFix(cursor.getString(1));
imageLoader.displayImage(path, holder.icon, PhotoPickActivity.optionsImage);
((GridViewCheckTag) holder.check.getTag()).path = path;
boolean picked = mActivity.isPicked(path);
holder.check.setChecked(picked);
holder.iconFore.setVisibility(picked ? View.VISIBLE : View.INVISIBLE);
}
static class GridViewHolder {
ImageView icon;
ImageView iconFore;
CheckBox check;
}
}
|
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Idea.color'
db.add_column(u'brainstorming_idea', 'color',
self.gf('django.db.models.fields.CharField')(default='', max_length=100, blank=True),
keep_default=False)
def backwards(self, orm):
# Deleting field 'Idea.color'
db.delete_column(u'brainstorming_idea', 'color')
models = {
u'brainstorming.brainstorming': {
'Meta': {'ordering': "['-created']", 'object_name': 'Brainstorming'},
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'creator_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
'creator_ip': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'details': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'question': ('django.db.models.fields.CharField', [], {'max_length': '200'})
},
u'brainstorming.<API key>': {
'Meta': {'ordering': "['-created']", 'unique_together': "(('brainstorming', 'email'),)", 'object_name': '<API key>'},
'brainstorming': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['brainstorming.Brainstorming']"}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'})
},
u'brainstorming.emailverification': {
'Meta': {'ordering': "['-created']", 'object_name': 'EmailVerification'},
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
'id': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'})
},
u'brainstorming.idea': {
'Meta': {'ordering': "['-created']", 'object_name': 'Idea'},
'brainstorming': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['brainstorming.Brainstorming']"}),
'color': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'creator_ip': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'creator_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'ratings': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'text': ('django.db.models.fields.TextField', [], {}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
}
}
complete_apps = ['brainstorming']
|
package com.sien.aimanager;
import android.content.Intent;
import android.os.Handler;
import com.sien.aimanager.services.MonitorServices;
import com.sien.lib.baseapp.BaseApplication;
import com.sien.lib.databmob.config.DatappConfig;
import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobConfig;
/**
* @author sien
* @date 2017/2/5
* @descript
*/
public class MainApp extends BaseApplication {
@Override
public void onCreate() {
super.onCreate();
<API key>();
initBmobConfig();
}
private void initBmobConfig(){
BmobConfig config =new BmobConfig.Builder(this)
//appkey
.setApplicationId(DatappConfig.BMOB_APPID)
//15s
.setConnectTimeout(30)
//512*1024
.setUploadBlockSize(1024*1024)
//()1800s
.setFileExpiration(2500)
.build();
Bmob.initialize(config);
}
private void <API key>(){
Handler tempHandler = new Handler();
tempHandler.postDelayed(new Runnable() {
@Override
public void run() {
startService(new Intent(MainApp.this, MonitorServices.class));
}
},200);
}
}
|
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int ratio = 3; //per canny's suggestion
int canny_thresh = 12; //starts at 12, this is what we will be changing though
int hough_thresh = 27;
int angle_tracker = 20;
int max_thresh = 255;//max for both thresh variable
double angle_thresh = .14;
int frame_num = 0; //keeps track of the current frame
int max_frame = 0; //total frames in the video. this may fail for cameras?
int kernel_size = 5; //kernel for the guassian blur
int kernel_max = 256;
int num_bins = 30; // needs to divide image width cleanly (not really though)
int max_bins = 100;
VideoCapture cap;
//all the thresh variables are already assigned without us needing to do anything here, so the only thing we need to do is set the frame_num if it was changed
//the trackbars only do ints, so we need to calculate a ratio for the angle threshold
void threshCallback(int, void* )
{
angle_thresh = ((float) angle_tracker/ (float) max_thresh)*3.1415;
cap.set(<API key>, frame_num);
}
void blurCallback(int, void* )
{
//the kernel for a guassian filter needs to be odd
kernel_size = (round(kernel_size / 2.0) * 2) -1; //round down to nearest odd integer
//make sure we don't have a negative number (error from round) or zero
if (kernel_size < 1){
kernel_size = 1;
}
//let the user know what the actual kernel being used is (kernel of one == no blur)
setTrackbarPos("Kernel size","parameters", kernel_size);
}
int main(int argc, char* argv[]){
//check for the input parameter correctness
if(argc != 2){
cerr <<"Incorrect input list, usage: rosrun vision gate_tuner <<API key>>" << endl;
exit(1);
}
//create and open the capture object
cap.open(argv[1]);
max_frame = cap.get(<API key> );
cout << max_frame << endl;
if(!cap.isOpened()){
//error in opening the video input
cerr << "Unable to open video file: " << argv[1] << endl;
exit(1);
}
//make some windows, place them at 20 pixels out because my window manager can't grab them in the corner..
namedWindow("current frame");
moveWindow("current frame", 20, 20);
namedWindow("after blur");
moveWindow("after blur", 220, 20);
namedWindow("parameters");
moveWindow("parameters", 420, 20);
createTrackbar( "Canny thresh", "parameters", &canny_thresh, max_thresh, threshCallback );
createTrackbar( "Hough thresh", "parameters", &hough_thresh, max_thresh, threshCallback );
createTrackbar( "Angle thresh", "parameters", &angle_tracker, max_thresh, threshCallback );
createTrackbar( "Num bins", "parameters", &num_bins, max_bins, threshCallback );
createTrackbar( "Kernel size", "parameters", &kernel_size, kernel_max, blurCallback);
createTrackbar( "Frame", "parameters", &frame_num, max_frame, threshCallback);
threshCallback( 0, 0 );
Mat cframe;
while(true){
cap >> cframe;
setTrackbarPos("Frame","parameters", cap.get(<API key>));
//redundant matrices so that we can display intermediate steps at the end
Mat dst, cdst, gdst;
GaussianBlur(cframe, gdst, Size( kernel_size, kernel_size ), 0, 0 );
Canny(gdst, dst, canny_thresh, canny_thresh*ratio, 3);
cvtColor(dst, cdst, CV_GRAY2BGR);
vector<Vec4i> lines;
vector<Vec2f> also_lines;
HoughLinesP(dst, lines, 1, CV_PI/180, hough_thresh, 50, 10 );
HoughLines(dst, also_lines, 1, CV_PI/180, hough_thresh, 50, 10 );
vector<int> xbin_count; //TODO better name
for(int i = 0; i < num_bins; i++){
xbin_count.push_back(0);
}
// int bin_size = cap.get( <API key> )/num_bins; typo maybe?
int bin_size = cap.get( <API key> )/num_bins;
cout << "bin size = " << bin_size << endl;
for( size_t i = 0; i < also_lines.size();i++) {
float rho = also_lines[i][0], theta = also_lines[i][1];
if (theta > 3.14 - angle_thresh && theta < 3.14 + angle_thresh){
//printf("line[%lu] = %f, %f \n", i, also_lines[i][0], also_lines[i][1]);
Point pt1, pt2;
double a = cos(theta), b = sin(theta);
double x0 = a*rho, y0 = b*rho;
cout << "x0 = " << x0 << " num bins = " << num_bins << " bin = " << (int) (x0/bin_size)+1 << endl;
int bin = (int) x0/bin_size;
if(bin > 0){
xbin_count[(int) ((x0/bin_size))]++;
pt1.x = cvRound(x0 + 1000*(-b));
pt1.y = cvRound(y0 + 1000*(a));
pt2.x = cvRound(x0 - 1000*(-b));
pt2.y = cvRound(y0 - 1000*(a));
line( cdst, pt1, pt2, Scalar(0,0,255), 3, CV_AA);
}
else {
pt1.x = cvRound(x0 + 1000*(-b));
pt1.y = cvRound(y0 + 1000*(a));
pt2.x = cvRound(x0 - 1000*(-b));
pt2.y = cvRound(y0 - 1000*(a));
line( cdst, pt1, pt2, Scalar(0,255,0), 3, CV_AA);
}
}
}
for(int i = 0; i < xbin_count.size(); i++){
cout << "bin" << i << "=" << " " << xbin_count[i] << endl;
}
//ok now xbin_count is populated, let's find which bin has the most lines
int max = 0;
int max_i = 0;
for( int i = 0; i < xbin_count.size(); i++){
if (xbin_count[i] > max ){
max = xbin_count[i];
max_i = i;
}
}
int max2 = 0;
int max2_i = 0;
//the two is arbitrary and there are probably better ways to go about this
for( int i = 0; i < xbin_count.size(); i++){
if (xbin_count[i] > max2 && ( i > (max_i + 2) || i < (max_i - 2 ))){
max2 = xbin_count[i];
max2_i = i;
}
}
cout << "max1 - " << max_i << endl;
cout << "max2 - " << max2_i << endl;
//great lets find the average of our two location
int average = ((bin_size*max_i + bin_size/2) + (bin_size*max2_i + bin_size/2))/2;
Point pt1, pt2;
pt1.x = (average);
pt1.y = (1000);
pt2.x = (average);
pt2.y = (-1000);
line( cdst, pt1, pt2, Scalar(255,0,0), 3, CV_AA);
// for( size_t i = 0; i < lines.size(); i++ )
// Vec4i l = lines[i];
// printf("(%i, %i) (%i, %i) \n", l[0], l[1], l[2], l[3]);
// double theta = atan2((l[0] - l[2]), (l[1] - l[3]));
// cout << "theta" << theta << endl;
// // range is +- pi
// if ( (abs(theta) < angle_thresh && abs(theta) > -angle_thresh) || (abs(theta) < (3.14 + angle_thresh) && abs(theta)) > 3.14 - angle_thresh){
// line( cdst, Point(l[0], l[1]), Point(l[2], l[3]), Scalar(0,0,255), 3, CV_AA);
//imshow("source", cframe);
imshow("current frame" ,cframe);
imshow("after blur", gdst);
imshow("parameters", cdst);
waitKey();
}
}
|
CSS.NLogExtensions
===============
NLog extension ImageTarget, useful for saving screenshots.
Download the latest release or from the NuGet "Package Manager Console", run ```Install-Package CSS.NLogExtensions```
|
const ircFramework = require('irc-framework')
const store = require('../store')
const attachEvents = require('./attachEvents')
const connect = connection => {
const state = store.getState()
let ircClient = state.ircClients[connection.id]
if (!ircClient) {
ircClient = new ircFramework.Client({
nick: connection.nick,
host: connection.host,
port: connection.port,
tls: connection.tls,
username: connection.username || connection.nick,
password: connection.password,
// "Not enough parameters" with empty gecos so a space is used.
gecos: connection.gecos || ' ',
// Custom auto reconnect mechanism is implemented, see events/connection.js.
auto_reconnect: false,
})
attachEvents(ircClient, connection.id)
store.dispatch({
type: 'SET_IRC_CLIENT',
payload: {
connectionId: connection.id,
ircClient,
},
})
}
ircClient.connect()
}
module.exports = connect
|
const assert = require('assert')
const { unparse } = require('uuid-parse')
const supertest = require('supertest')
const createApp = require('../app')
const { createSetup, getAuthPassword } = require('./lib')
const { createPlayer, createKick } = require('./fixtures')
describe('Query player kick', () => {
let setup
let request
beforeAll(async () => {
setup = await createSetup()
const app = await createApp({ ...setup, disableUI: true })
request = supertest(app.callback())
}, 20000)
afterAll(async () => {
await setup.teardown()
}, 20000)
test('should resolve all fields', async () => {
const { config: server, pool } = setup.serversPool.values().next().value
const cookie = await getAuthPassword(request, 'admin@banmanagement.com')
const player = createPlayer()
const actor = createPlayer()
const kick = createKick(player, actor)
await pool('bm_players').insert([player, actor])
await pool('bm_player_kicks').insert(kick)
const { body, statusCode } = await request
.post('/graphql')
.set('Cookie', cookie)
.set('Accept', 'application/json')
.send({
query: `query playerKick {
playerKick(id:"1", serverId: "${server.id}") {
id
reason
created
actor {
id
name
}
acl {
update
delete
yours
}
}
}`
})
assert.strictEqual(statusCode, 200)
assert(body)
assert(body.data)
assert.deepStrictEqual(body.data.playerKick,
{
id: '1',
reason: kick.reason,
created: kick.created,
actor: { id: unparse(actor.id), name: actor.name },
acl: { delete: true, update: true, yours: false }
})
})
})
|
<?php
namespace Application\Success\CoreBundle\Twig;
//use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
class EventoExtension extends \Twig_Extension {
//private $container;
private $repository_evento;
private $templating;
public function __construct($repository_evento, $templating) {
//$this->container = $container;
$this->templating = $templating;
$this->repository_evento = $repository_evento;
}
public function getName() {
return 'core_utils';
}
public function getFunctions() {
return array(
'eventos_pasados' => new \<API key>($this, 'eventosPasados', array('is_safe' => array('html'))),
'eventos_pasados_key' => new \<API key>($this, 'eventosPasadosKey', array('is_safe' => array('html')))
);
}
public function eventosPasados($limit){
$eventos = $this->repository_evento->findPasadas($limit);
return $this->templating->render('WebBundle:Frontend/Evento:eventos_pasados.html.twig', array('eventos' => $eventos));
}
public function eventosPasadosKey($productora, $evento_id, $limit){
$eventos = $this->repository_evento->findByProductora($productora->getId(), $evento_id, $limit);
return $this->templating->render('WebBundle:Frontend/Evento:eventos_pasados_key.html.twig', array('eventos' => $eventos, 'productora' => $productora));
}
}
|
/* RESET \<API key> */
/* SLIDER \<API key> */
|
import os
import webapp2
from actions import cronActions
from views import views
import secrets
SECS_PER_WEEK = 60 * 60 * 24 * 7
# Enable ctypes -> Jinja2 tracebacks
PRODUCTION_MODE = not os.environ.get(
'SERVER_SOFTWARE', 'Development').startswith('Development')
ROOT_DIRECTORY = os.path.dirname(__file__)
if not PRODUCTION_MODE:
from google.appengine.tools.devappserver2.python import sandbox
sandbox.<API key> += ['_ctypes', 'gestalt']
TEMPLATE_DIRECTORY = os.path.join(ROOT_DIRECTORY, 'src')
else:
TEMPLATE_DIRECTORY = os.path.join(ROOT_DIRECTORY, 'dist')
curr_path = os.path.abspath(os.path.dirname(__file__))
config = {
'webapp2_extras.sessions': {
'secret_key': secrets.COOKIE_KEY,
'session_max_age': SECS_PER_WEEK,
'cookie_args': {'max_age': SECS_PER_WEEK},
'cookie_name': 'echo_sense_session'
},
'webapp2_extras.jinja2': {
'template_path': TEMPLATE_DIRECTORY
}
}
app = webapp2.WSGIApplication(
[
# Cron jobs (see cron.yaml)
webapp2.Route('/cron/monthly', handler=cronActions.Monthly),
webapp2.Route(r'/<:.*>', handler=views.ActionPotentialApp, name="ActionPotentialApp"),
], debug=True, config=config)
|
// parser.h
// homework_4
#ifndef <API key>
#define <API key>
#include <string>
class XMLParser {
public:
//private:
bool is_open_tag(const std::string& tag) const;
bool is_close_tag(const std::string& tag) const;
bool is_tag(const std::string& tag) const;
std::string get_tag_name(const std::string& tag) const;
};
#endif /* defined(<API key>) */
|
#include <stdint.h>
const uint8_t
#if defined __GNUC__
__attribute__((aligned(4)))
#elif defined _MSC_VER
__declspec(align(4))
#endif
mrblib_extman_irep[] = {
0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0x5a,0x89,0x00,0x00,0x44,0xcb,0x4d,0x41,
0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x32,0x2d,0x30,0x30,
0x30,0x30,0x00,0x00,0x02,0x36,0x00,0x01,0x00,0x06,0x00,0x11,0x00,0x00,0x00,0x39,
0x05,0x00,0x80,0x00,0x44,0x00,0x80,0x00,0x45,0x00,0x80,0x00,0x48,0x00,0x80,0x00,
0xc0,0x02,0x00,0x01,0x46,0x40,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x04,0x00,0x01,
0x46,0x80,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x06,0x00,0x01,0x46,0xc0,0x80,0x00,
0x48,0x00,0x80,0x00,0xc0,0x08,0x00,0x01,0x46,0x00,0x81,0x00,0x48,0x00,0x80,0x00,
0xc0,0x0a,0x00,0x01,0x46,0x40,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x0c,0x00,0x01,
0x46,0x80,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x0e,0x00,0x01,0x46,0xc0,0x81,0x00,
0x48,0x00,0x80,0x00,0xc0,0x10,0x00,0x01,0x46,0x00,0x82,0x00,0x48,0x00,0x80,0x00,
0xc0,0x12,0x00,0x01,0x46,0x40,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x14,0x00,0x01,
0x46,0x80,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x16,0x00,0x01,0x46,0xc0,0x82,0x00,
0x48,0x00,0x80,0x00,0xc0,0x18,0x00,0x01,0x46,0x00,0x83,0x00,0x48,0x00,0x80,0x00,
0xc0,0x1a,0x00,0x01,0x46,0x40,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x1c,0x00,0x01,
0x46,0x80,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x1e,0x00,0x01,0x46,0xc0,0x83,0x00,
0x11,0x00,0x80,0x00,0x20,0x00,0x84,0x00,0x11,0x00,0x80,0x00,0x3d,0x00,0x00,0x01,
0xbd,0x00,0x80,0x01,0x3d,0x01,0x00,0x02,0x40,0x21,0x80,0x02,0xa1,0x41,0x84,0x00,
0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x13,0x52,0x75,0x6e,0x20,0x61,
0x73,0x20,0x6d,0x72,0x75,0x62,0x79,0x20,0x73,0x63,0x72,0x69,0x70,0x74,0x00,0x00,
0x01,0x2a,0x00,0x00,0x0a,0x41,0x6c,0x74,0x2b,0x43,0x74,0x72,0x6c,0x2b,0x52,0x00,
0x00,0x00,0x12,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0f,0x6f,0x6e,0x5f,
0x6d,0x61,0x72,0x67,0x69,0x6e,0x5f,0x63,0x6c,0x69,0x63,0x6b,0x00,0x00,0x0f,0x6f,
0x6e,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x63,0x6c,0x69,0x63,0x6b,0x00,0x00,
0x12,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,0x70,0x6f,0x69,0x6e,0x74,0x5f,0x6c,
0x65,0x66,0x74,0x00,0x00,0x15,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,0x70,0x6f,
0x69,0x6e,0x74,0x5f,0x72,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,0x07,0x6f,0x6e,
0x5f,0x63,0x68,0x61,0x72,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x00,
0x00,0x0e,0x6f,0x6e,0x5f,0x62,0x65,0x66,0x6f,0x72,0x65,0x5f,0x73,0x61,0x76,0x65,
0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x77,0x69,0x74,0x63,0x68,0x5f,0x66,0x69,0x6c,
0x65,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x00,0x00,0x0c,0x6f,0x6e,
0x5f,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x75,0x69,0x00,0x00,0x06,0x6f,0x6e,0x5f,
0x6b,0x65,0x79,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x64,0x77,0x65,0x6c,0x6c,0x5f,0x73,
0x74,0x61,0x72,0x74,0x00,0x00,0x08,0x6f,0x6e,0x5f,0x63,0x6c,0x6f,0x73,0x65,0x00,
0x00,0x16,0x6f,0x6e,0x5f,0x75,0x73,0x65,0x72,0x5f,0x6c,0x69,0x73,0x74,0x5f,0x73,
0x65,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x00,0x00,0x08,0x6f,0x6e,0x5f,0x73,0x74,
0x72,0x69,0x70,0x00,0x00,0x0c,0x6c,0x6f,0x61,0x64,0x5f,0x73,0x63,0x72,0x69,0x70,
0x74,0x73,0x00,0x00,0x0e,0x64,0x65,0x66,0x69,0x6e,0x65,0x5f,0x63,0x6f,0x6d,0x6d,
0x61,0x6e,0x64,0x00,0x00,0x00,0x02,0xd2,0x00,0x01,0x00,0x03,0x00,0x05,0x00,0x00,
0x00,0x3d,0x00,0x00,0x83,0xff,0xbf,0x00,0x12,0x00,0x80,0x00,0x03,0x00,0xc0,0x00,
0x92,0x00,0x80,0x00,0x83,0x00,0xc0,0x00,0x12,0x01,0x80,0x00,0x03,0x01,0xc0,0x00,
0x92,0x01,0x80,0x00,0x83,0x01,0xc0,0x00,0x12,0x02,0x80,0x00,0x03,0x02,0xc0,0x00,
0x92,0x02,0x80,0x00,0x83,0x02,0xc0,0x00,0x12,0x03,0x80,0x00,0x03,0x03,0xc0,0x00,
0x92,0x03,0x80,0x00,0x83,0x03,0xc0,0x00,0x12,0x04,0x80,0x00,0x03,0x04,0xc0,0x00,
0x92,0x04,0x80,0x00,0x83,0x04,0xc0,0x00,0x12,0x05,0x80,0x00,0x03,0x05,0xc0,0x00,
0x92,0x05,0x80,0x00,0x83,0x05,0xc0,0x00,0x12,0x06,0x80,0x00,0x03,0x06,0xc0,0x00,
0x92,0x06,0x80,0x00,0x83,0x06,0xc0,0x00,0x12,0x07,0x80,0x00,0x03,0x07,0xc0,0x00,
0x92,0x07,0x80,0x00,0x83,0x07,0xc0,0x00,0x12,0x08,0x80,0x00,0x03,0x08,0xc0,0x00,
0x92,0x08,0x80,0x00,0x37,0x40,0x80,0x00,0x0e,0x09,0x80,0x00,0x83,0x04,0xc0,0x00,
0x8e,0x09,0x80,0x00,0x3f,0x40,0x80,0x00,0x0e,0x0a,0x80,0x00,0x3f,0x40,0x80,0x00,
0x8e,0x0a,0x80,0x00,0x06,0x00,0x80,0x00,0x47,0x40,0x80,0x00,0x45,0x00,0x80,0x00,
0x05,0x00,0x80,0x00,0x05,0x00,0x00,0x01,0x43,0x80,0x85,0x00,0xc5,0x00,0x80,0x00,
0x06,0x00,0x80,0x00,0x40,0x05,0x00,0x01,0x21,0xc0,0x85,0x00,0x06,0x00,0x80,0x00,
0x40,0x07,0x00,0x01,0x21,0x00,0x86,0x00,0x06,0x00,0x80,0x00,0x40,0x09,0x00,0x01,
0x21,0x40,0x86,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1a,
0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4d,0x41,0x52,0x47,0x49,0x4e,0x5f,0x43,
0x4c,0x49,0x43,0x4b,0x00,0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x4f,0x55,
0x42,0x4c,0x45,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,0x00,0x15,0x45,0x56,0x45,0x4e,
0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,0x4c,0x45,0x46,
0x54,0x00,0x00,0x18,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,
0x4f,0x49,0x4e,0x54,0x5f,0x52,0x45,0x41,0x43,0x48,0x45,0x44,0x00,0x00,0x0a,0x45,
0x56,0x45,0x4e,0x54,0x5f,0x43,0x48,0x41,0x52,0x00,0x00,0x0a,0x45,0x56,0x45,0x4e,
0x54,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x42,
0x45,0x46,0x4f,0x52,0x45,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x11,0x45,0x56,0x45,
0x4e,0x54,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x5f,0x46,0x49,0x4c,0x45,0x00,0x00,
0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,0x00,0x00,0x0f,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x55,0x50,0x44,0x41,0x54,0x45,0x5f,0x55,0x49,0x00,0x00,0x09,
0x45,0x56,0x45,0x4e,0x54,0x5f,0x4b,0x45,0x59,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,
0x54,0x5f,0x44,0x57,0x45,0x4c,0x4c,0x5f,0x53,0x54,0x41,0x52,0x54,0x00,0x00,0x0b,
0x45,0x56,0x45,0x4e,0x54,0x5f,0x43,0x4c,0x4f,0x53,0x45,0x00,0x00,0x11,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x45,0x44,0x49,0x54,0x4f,0x52,0x5f,0x4c,0x49,0x4e,0x45,0x00,
0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x55,0x54,0x50,0x55,0x54,0x5f,0x4c,
0x49,0x4e,0x45,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,
0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x00,0x00,0x19,0x45,0x56,0x45,0x4e,0x54,0x5f,
0x55,0x53,0x45,0x52,0x5f,0x4c,0x49,0x53,0x54,0x5f,0x53,0x45,0x4c,0x45,0x43,0x54,
0x49,0x4f,0x4e,0x00,0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x54,0x52,0x49,
0x50,0x00,0x00,0x0f,0x40,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,
0x65,0x72,0x73,0x00,0x00,0x09,0x40,0x6d,0x65,0x6e,0x75,0x5f,0x69,0x64,0x78,0x00,
0x00,0x09,0x40,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x73,0x00,0x00,0x0f,0x40,0x73,
0x68,0x6f,0x72,0x74,0x63,0x75,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x00,0x00,0x0e,
0x53,0x74,0x79,0x6c,0x69,0x6e,0x67,0x43,0x6f,0x6e,0x74,0x65,0x78,0x74,0x00,0x00,
0x07,0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x77,
0x69,0x74,0x63,0x68,0x5f,0x66,0x69,0x6c,0x65,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x63,
0x68,0x61,0x72,0x00,0x00,0x00,0x07,0x2e,0x00,0x01,0x00,0x05,0x00,0x1d,0x00,0x00,
0x00,0xcb,0x00,0x00,0x48,0x00,0x80,0x00,0xc0,0x00,0x00,0x01,0x46,0x00,0x80,0x00,
0x48,0x00,0x80,0x00,0xc0,0x02,0x00,0x01,0x46,0x40,0x80,0x00,0x48,0x00,0x80,0x00,
0xc0,0x04,0x00,0x01,0x46,0x80,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x06,0x00,0x01,
0x46,0xc0,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x08,0x00,0x01,0x46,0x00,0x81,0x00,
0x48,0x00,0x80,0x00,0xc0,0x0a,0x00,0x01,0x46,0x40,0x81,0x00,0x48,0x00,0x80,0x00,
0xc0,0x0c,0x00,0x01,0x46,0x80,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x0e,0x00,0x01,
0x46,0xc0,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x10,0x00,0x01,0x46,0x00,0x82,0x00,
0x48,0x00,0x80,0x00,0xc0,0x12,0x00,0x01,0x46,0x40,0x82,0x00,0x48,0x00,0x80,0x00,
0xc0,0x14,0x00,0x01,0x46,0x80,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x16,0x00,0x01,
0x46,0xc0,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x18,0x00,0x01,0x46,0x00,0x83,0x00,
0x48,0x00,0x80,0x00,0xc0,0x1a,0x00,0x01,0x46,0x40,0x83,0x00,0x48,0x00,0x80,0x00,
0xc0,0x1c,0x00,0x01,0x46,0x80,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x1e,0x00,0x01,
0x46,0xc0,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x20,0x00,0x01,0x46,0x00,0x84,0x00,
0x48,0x00,0x80,0x00,0xc0,0x22,0x00,0x01,0x46,0x40,0x84,0x00,0x48,0x00,0x80,0x00,
0xc0,0x24,0x00,0x01,0x46,0x80,0x84,0x00,0x48,0x00,0x80,0x00,0xc0,0x26,0x00,0x01,
0x46,0xc0,0x84,0x00,0x48,0x00,0x80,0x00,0xc0,0x28,0x00,0x01,0x46,0x00,0x85,0x00,
0x48,0x00,0x80,0x00,0xc0,0x2a,0x00,0x01,0x46,0x40,0x85,0x00,0x48,0x00,0x80,0x00,
0xc0,0x2c,0x00,0x01,0x46,0x80,0x85,0x00,0x48,0x00,0x80,0x00,0xc0,0x2e,0x00,0x01,
0x46,0xc0,0x85,0x00,0x48,0x00,0x80,0x00,0xc0,0x30,0x00,0x01,0x46,0x00,0x86,0x00,
0x48,0x00,0x80,0x00,0xc0,0x32,0x00,0x01,0x46,0x40,0x86,0x00,0x48,0x00,0x80,0x00,
0xc0,0x34,0x00,0x01,0x46,0x80,0x86,0x00,0x48,0x00,0x80,0x00,0xc0,0x36,0x00,0x01,
0x46,0xc0,0x86,0x00,0x48,0x00,0x80,0x00,0xc0,0x38,0x00,0x01,0x46,0x00,0x87,0x00,
0x06,0x00,0x80,0x00,0x04,0x0f,0x00,0x01,0xa0,0x40,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x10,0x00,0x01,0x84,0x10,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x11,0x00,0x01,0x84,0x11,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x12,0x00,0x01,0x84,0x12,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x13,0x00,0x01,0x84,0x13,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x14,0x00,0x01,0x84,0x14,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x15,0x00,0x01,0x04,0x0b,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x15,0x00,0x01,0x04,0x16,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x16,0x00,0x01,0x04,0x17,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x17,0x00,0x01,0x04,0x18,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x18,0x00,0x01,0x84,0x0c,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x19,0x00,0x01,0x04,0x0c,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x19,0x00,0x01,0x84,0x0b,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1a,0x00,0x01,0x04,0x03,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1a,0x00,0x01,0x84,0x03,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1b,0x00,0x01,0x04,0x04,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1b,0x00,0x01,0x84,0x04,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1c,0x00,0x01,0x04,0x05,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1c,0x00,0x01,0x84,0x05,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1d,0x00,0x01,0x04,0x06,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1d,0x00,0x01,0x84,0x06,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1e,0x00,0x01,0x04,0x07,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1e,0x00,0x01,0x84,0x07,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1f,0x00,0x01,0x04,0x08,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1f,0x00,0x01,0x84,0x08,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x20,0x00,0x01,0x04,0x09,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x20,0x00,0x01,0x84,0x09,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x21,0x00,0x01,0x04,0x0a,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x21,0x00,0x01,0x84,0x0a,0x80,0x01,0x20,0xc1,0x87,0x00,0x29,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,
0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0c,0x63,0x61,0x6c,0x6c,0x5f,0x63,0x6f,
0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x0e,0x64,0x65,0x66,0x69,0x6e,0x65,0x5f,0x63,
0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x05,0x73,0x65,0x6e,0x64,0x32,0x00,0x00,
0x07,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,
0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x0f,0x6f,
0x6e,0x5f,0x6d,0x61,0x72,0x67,0x69,0x6e,0x5f,0x63,0x6c,0x69,0x63,0x6b,0x00,0x00,
0x0f,0x6f,0x6e,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x63,0x6c,0x69,0x63,0x6b,
0x00,0x00,0x12,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,0x70,0x6f,0x69,0x6e,0x74,
0x5f,0x6c,0x65,0x66,0x74,0x00,0x00,0x15,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,
0x70,0x6f,0x69,0x6e,0x74,0x5f,0x72,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,0x07,
0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x77,0x69,
0x74,0x63,0x68,0x5f,0x66,0x69,0x6c,0x65,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x61,
0x76,0x65,0x5f,0x62,0x65,0x66,0x6f,0x72,0x65,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x73,
0x61,0x76,0x65,0x00,0x00,0x0c,0x6f,0x6e,0x5f,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,
0x75,0x69,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x63,0x68,0x61,0x72,0x00,0x00,0x06,0x6f,
0x6e,0x5f,0x6b,0x65,0x79,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x64,0x77,0x65,0x6c,0x6c,
0x5f,0x73,0x74,0x61,0x72,0x74,0x00,0x00,0x08,0x6f,0x6e,0x5f,0x63,0x6c,0x6f,0x73,
0x65,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x5f,0x73,0x77,0x69,0x74,
0x63,0x68,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x65,0x64,0x69,0x74,0x6f,0x72,0x5f,0x6c,
0x69,0x6e,0x65,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,
0x6c,0x69,0x6e,0x65,0x00,0x00,0x0a,0x73,0x74,0x72,0x69,0x70,0x5f,0x73,0x68,0x6f,
0x77,0x00,0x00,0x0e,0x75,0x73,0x65,0x72,0x5f,0x6c,0x69,0x73,0x74,0x5f,0x73,0x68,
0x6f,0x77,0x00,0x00,0x0c,0x63,0x75,0x72,0x72,0x65,0x6e,0x74,0x5f,0x66,0x69,0x6c,
0x65,0x00,0x00,0x0c,0x6c,0x6f,0x61,0x64,0x5f,0x73,0x63,0x72,0x69,0x70,0x74,0x73,
0x00,0x00,0x10,0x6f,0x6e,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x77,0x69,
0x74,0x63,0x68,0x00,0x00,0x0e,0x67,0x72,0x61,0x62,0x5f,0x6c,0x69,0x6e,0x65,0x5f,
0x66,0x72,0x6f,0x6d,0x00,0x00,0x0c,0x6f,0x6e,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x63,
0x68,0x61,0x72,0x00,0x00,0x0d,0x61,0x74,0x74,0x72,0x5f,0x61,0x63,0x63,0x65,0x73,
0x73,0x6f,0x72,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x73,0x00,0x00,0x0c,0x61,0x6c,0x69,0x61,0x73,0x5f,0x6d,0x65,0x74,
0x68,0x6f,0x64,0x00,0x00,0x0a,0x73,0x65,0x6e,0x64,0x45,0x64,0x69,0x74,0x6f,0x72,
0x00,0x00,0x0b,0x73,0x65,0x6e,0x64,0x5f,0x65,0x64,0x69,0x74,0x6f,0x72,0x00,0x00,
0x0a,0x73,0x65,0x6e,0x64,0x4f,0x75,0x74,0x70,0x75,0x74,0x00,0x00,0x0b,0x73,0x65,
0x6e,0x64,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x00,0x00,0x0c,0x63,0x6f,0x6e,0x73,
0x74,0x61,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x00,0x0d,0x63,0x6f,0x6e,0x73,0x74,
0x61,0x6e,0x74,0x5f,0x6e,0x61,0x6d,0x65,0x00,0x00,0x0b,0x6d,0x65,0x6e,0x75,0x43,
0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x0c,0x6d,0x65,0x6e,0x75,0x5f,0x63,0x6f,
0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x0f,0x75,0x70,0x64,0x61,0x74,0x65,0x53,0x74,
0x61,0x74,0x75,0x73,0x42,0x61,0x72,0x00,0x00,0x11,0x75,0x70,0x64,0x61,0x74,0x65,
0x5f,0x73,0x74,0x61,0x74,0x75,0x73,0x5f,0x62,0x61,0x72,0x00,0x00,0x09,0x73,0x74,
0x72,0x69,0x70,0x53,0x68,0x6f,0x77,0x00,0x00,0x08,0x73,0x74,0x72,0x69,0x70,0x53,
0x65,0x74,0x00,0x00,0x09,0x73,0x74,0x72,0x69,0x70,0x5f,0x73,0x65,0x74,0x00,0x00,
0x0c,0x73,0x74,0x72,0x69,0x70,0x53,0x65,0x74,0x4c,0x69,0x73,0x74,0x00,0x00,0x0e,
0x73,0x74,0x72,0x69,0x70,0x5f,0x73,0x65,0x74,0x5f,0x6c,0x69,0x73,0x74,0x00,0x00,
0x0a,0x73,0x74,0x72,0x69,0x70,0x56,0x61,0x6c,0x75,0x65,0x00,0x00,0x0b,0x73,0x74,
0x72,0x69,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x00,0x00,0x0b,0x6c,0x6f,0x61,0x64,
0x53,0x63,0x72,0x69,0x70,0x74,0x73,0x00,0x00,0x0b,0x63,0x75,0x72,0x72,0x65,0x6e,
0x74,0x46,0x69,0x6c,0x65,0x00,0x00,0x0c,0x75,0x73,0x65,0x72,0x4c,0x69,0x73,0x74,
0x53,0x68,0x6f,0x77,0x00,0x00,0x0d,0x6f,0x6e,0x4d,0x61,0x72,0x67,0x69,0x6e,0x43,
0x6c,0x69,0x63,0x6b,0x00,0x00,0x0d,0x6f,0x6e,0x44,0x6f,0x75,0x62,0x6c,0x65,0x43,
0x6c,0x69,0x63,0x6b,0x00,0x00,0x0f,0x6f,0x6e,0x53,0x61,0x76,0x65,0x50,0x6f,0x69,
0x6e,0x74,0x4c,0x65,0x66,0x74,0x00,0x00,0x12,0x6f,0x6e,0x53,0x61,0x76,0x65,0x50,
0x6f,0x69,0x6e,0x74,0x52,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,0x06,0x6f,0x6e,
0x4f,0x70,0x65,0x6e,0x00,0x00,0x0c,0x6f,0x6e,0x53,0x77,0x69,0x74,0x63,0x68,0x46,
0x69,0x6c,0x65,0x00,0x00,0x0c,0x6f,0x6e,0x53,0x61,0x76,0x65,0x42,0x65,0x66,0x6f,
0x72,0x65,0x00,0x00,0x06,0x6f,0x6e,0x53,0x61,0x76,0x65,0x00,0x00,0x0a,0x6f,0x6e,
0x55,0x70,0x64,0x61,0x74,0x65,0x55,0x49,0x00,0x00,0x06,0x6f,0x6e,0x43,0x68,0x61,
0x72,0x00,0x00,0x05,0x6f,0x6e,0x4b,0x65,0x79,0x00,0x00,0x0c,0x6f,0x6e,0x44,0x77,
0x65,0x6c,0x6c,0x53,0x74,0x61,0x72,0x74,0x00,0x00,0x07,0x6f,0x6e,0x43,0x6c,0x6f,
0x73,0x65,0x00,0x00,0x0c,0x6f,0x6e,0x4f,0x70,0x65,0x6e,0x53,0x77,0x69,0x74,0x63,
0x68,0x00,0x00,0x0c,0x6f,0x6e,0x45,0x64,0x69,0x74,0x6f,0x72,0x4c,0x69,0x6e,0x65,
0x00,0x00,0x0c,0x6f,0x6e,0x4f,0x75,0x74,0x70,0x75,0x74,0x4c,0x69,0x6e,0x65,0x00,
0x00,0x00,0x00,0x43,0x00,0x05,0x00,0x07,0x00,0x01,0x00,0x00,0x00,0x07,0x00,0x00,
0x26,0x00,0x08,0x02,0x08,0x00,0x00,0x02,0x99,0x01,0xc0,0x00,0x01,0x40,0x80,0x02,
0x40,0x01,0x00,0x03,0x21,0x00,0x80,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x0a,0x65,0x61,0x63,0x68,0x5f,0x69,0x6e,0x64,0x65,0x78,
0x00,0x00,0x00,0x00,0xab,0x00,0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x1a,0x00,
0x26,0x00,0x00,0x02,0x15,0x40,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x37,0x00,0x01,0x02,0x15,0x80,0x80,0x02,
0x38,0x40,0x01,0x02,0xa0,0xbf,0x80,0x01,0x16,0x00,0x81,0x01,0x15,0x40,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x84,0x01,0x00,0x02,0xa0,0x00,0x80,0x01,
0x99,0x01,0xc0,0x01,0x15,0x40,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x81,0x01,
0x15,0x00,0x81,0x01,0x19,0x01,0xc0,0x01,0x29,0x40,0x80,0x01,0x97,0x00,0x40,0x00,
0x05,0x00,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x05,0x62,0x6c,0x6f,0x63,0x6b,0x00,0x00,0x04,0x63,
0x61,0x6c,0x6c,0x00,0x00,0x06,0x72,0x65,0x6d,0x6f,0x76,0x65,0x00,0x00,0x09,0x64,
0x65,0x6c,0x65,0x74,0x65,0x5f,0x61,0x74,0x00,0x00,0x00,0x00,0x5a,0x00,0x04,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x26,0x00,0x10,0x02,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x01,0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0xa0,0x40,0x00,0x02,0x01,0x80,0x80,0x02,0xa0,0x80,0x00,0x02,0x29,0x00,0x00,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x09,0x40,0x63,0x6f,0x6d,0x6d,0x61,
0x6e,0x64,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x63,0x61,0x6c,0x6c,0x00,
0x00,0x00,0x02,0xe7,0x00,0x0a,0x00,0x0f,0x00,0x01,0x00,0x00,0x00,0x6b,0x00,0x00,
0xa6,0x00,0x30,0x02,0x97,0x01,0x40,0x00,0x97,0x01,0x40,0x00,0x97,0x01,0x40,0x00,
0x97,0x01,0x40,0x00,0x3d,0x00,0x00,0x01,0x05,0x00,0x80,0x01,0x05,0x00,0x00,0x02,
0x0d,0x00,0x00,0x03,0x83,0x04,0x40,0x05,0x0d,0x00,0x80,0x05,0x41,0x80,0x02,0x05,
0x40,0x01,0x80,0x05,0x21,0x40,0x00,0x05,0xbd,0x00,0x00,0x05,0x01,0x80,0x81,0x05,
0x3e,0xc0,0x02,0x05,0x3d,0x01,0x80,0x05,0x3e,0xc0,0x02,0x05,0x01,0x80,0x80,0x05,
0x3e,0xc0,0x02,0x05,0x01,0x80,0x02,0x04,0x19,0x0e,0xc0,0x01,0x0d,0x01,0x00,0x05,
0x01,0xc0,0x80,0x05,0xa0,0xc0,0x00,0x05,0x01,0x80,0x82,0x04,0x99,0x01,0x40,0x05,
0x01,0x40,0x02,0x05,0x01,0x40,0x80,0x05,0xa0,0x00,0x01,0x05,0x99,0x03,0x40,0x05,
0x06,0x00,0x00,0x05,0xbd,0x01,0x80,0x05,0x01,0x40,0x02,0x06,0x3e,0x00,0x83,0x05,
0x3d,0x02,0x00,0x06,0x3e,0x00,0x83,0x05,0xa0,0x40,0x01,0x05,0x01,0xc0,0x00,0x05,
0x11,0x03,0x80,0x05,0xbd,0x02,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,
0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0x01,0x40,0x00,0x05,0x0d,0x01,0x80,0x05,
0x01,0xc0,0x00,0x06,0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0x01,0x40,0x00,0x05,
0x11,0x03,0x80,0x05,0x3d,0x03,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,
0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0xbd,0x03,0x00,0x05,0x01,0x40,0x80,0x05,
0x3e,0xc0,0x02,0x05,0x3d,0x04,0x80,0x05,0x3e,0xc0,0x02,0x05,0x19,0x03,0x40,0x02,
0xbd,0x04,0x80,0x05,0x01,0x00,0x01,0x06,0x3e,0x00,0x83,0x05,0x3d,0x04,0x00,0x06,
0x3e,0x00,0x83,0x05,0x97,0x00,0x40,0x00,0xbd,0x00,0x80,0x05,0xac,0x00,0x02,0x05,
0x11,0x03,0x80,0x05,0x3d,0x05,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,
0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0xbd,0x05,0x00,0x05,0x11,0x03,0x80,0x05,
0x3d,0x06,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,0x01,0x80,0x82,0x06,
0x20,0xc1,0x81,0x05,0xbd,0x06,0x00,0x05,0x11,0x03,0x80,0x05,0x3d,0x07,0x00,0x06,
0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,
0x01,0x40,0x01,0x05,0x8d,0x04,0x80,0x05,0x01,0x40,0x00,0x06,0x01,0x80,0x82,0x06,
0x20,0xc1,0x81,0x05,0x01,0x80,0x01,0x05,0x0d,0x00,0x80,0x05,0xb2,0x80,0x02,0x05,
0x19,0x02,0x40,0x05,0x0d,0x00,0x00,0x05,0xad,0x00,0x02,0x05,0x0e,0x00,0x00,0x05,
0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x05,0x29,0x00,0x00,0x05,0x00,0x00,0x00,0x0f,
0x00,0x00,0x01,0x2a,0x00,0x00,0x00,0x00,0x00,0x01,0x2e,0x00,0x00,0x21,0x45,0x72,
0x72,0x6f,0x72,0x3a,0x20,0x73,0x68,0x6f,0x72,0x74,0x63,0x75,0x74,0x20,0x61,0x6c,
0x72,0x65,0x61,0x64,0x79,0x20,0x75,0x73,0x65,0x64,0x20,0x69,0x6e,0x20,0x22,0x00,
0x00,0x01,0x22,0x00,0x00,0x11,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x73,0x68,
0x6f,0x72,0x74,0x63,0x75,0x74,0x2e,0x00,0x00,0x0d,0x63,0x6f,0x6d,0x6d,0x61,0x6e,
0x64,0x2e,0x6e,0x61,0x6d,0x65,0x2e,0x00,0x00,0x1f,0x6d,0x72,0x75,0x62,0x79,0x3a,
0x65,0x76,0x61,0x6c,0x20,0x53,0x63,0x69,0x54,0x45,0x2e,0x63,0x61,0x6c,0x6c,0x5f,
0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x20,0x27,0x00,0x00,0x01,0x27,0x00,0x00,0x03,
0x2c,0x20,0x27,0x00,0x00,0x08,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x00,0x00,
0x01,0x33,0x00,0x00,0x12,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x73,0x75,0x62,
0x73,0x79,0x73,0x74,0x65,0x6d,0x2e,0x00,0x00,0x0d,0x73,0x61,0x76,0x65,0x62,0x65,
0x66,0x6f,0x72,0x65,0x3a,0x6e,0x6f,0x00,0x00,0x0d,0x63,0x6f,0x6d,0x6d,0x61,0x6e,
0x64,0x2e,0x6d,0x6f,0x64,0x65,0x2e,0x00,0x00,0x00,0x0b,0x00,0x09,0x40,0x6d,0x65,
0x6e,0x75,0x5f,0x69,0x64,0x78,0x00,0x00,0x04,0x65,0x61,0x63,0x68,0x00,0x00,0x0f,
0x40,0x73,0x68,0x6f,0x72,0x74,0x63,0x75,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x00,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x21,0x3d,0x00,0x00,0x05,0x72,0x61,0x69,0x73,
0x65,0x00,0x00,0x05,0x50,0x72,0x6f,0x70,0x73,0x00,0x00,0x03,0x5b,0x5d,0x3d,0x00,
0x00,0x01,0x2b,0x00,0x00,0x09,0x40,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x73,0x00,
0x00,0x02,0x3d,0x3d,0x00,0x00,0x00,0x00,0x8f,0x00,0x01,0x00,0x05,0x00,0x00,0x00,
0x00,0x00,0x13,0x00,0x26,0x00,0x00,0x02,0x16,0xc0,0x81,0x00,0x11,0x00,0x00,0x01,
0x3d,0x00,0x80,0x01,0x15,0xc0,0x01,0x02,0x3e,0x00,0x81,0x01,0xbd,0x00,0x00,0x02,
0x3e,0x00,0x81,0x01,0x15,0x80,0x00,0x02,0x3e,0x00,0x81,0x01,0xa0,0x40,0x00,0x01,
0x15,0x40,0x80,0x01,0xb2,0x80,0x00,0x01,0x99,0x01,0x40,0x01,0x15,0xc0,0x01,0x01,
0x16,0x80,0x01,0x01,0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x01,0x29,0x00,0x00,0x01,
0x00,0x00,0x00,0x03,0x00,0x00,0x0d,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x6e,
0x61,0x6d,0x65,0x2e,0x00,0x00,0x01,0x2e,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,
0x05,0x50,0x72,0x6f,0x70,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x3d,0x3d,
0x00,0x00,0x00,0x00,0xaf,0x00,0x06,0x00,0x0a,0x00,0x01,0x00,0x00,0x00,0x1a,0x00,
0x26,0x00,0x00,0x04,0x11,0x00,0x00,0x02,0x01,0x40,0x00,0x03,0x3d,0x00,0x80,0x03,
0xa0,0x40,0x00,0x03,0x01,0x80,0x81,0x02,0x83,0xff,0xbf,0x03,0x83,0xfe,0x3f,0x04,
0x41,0xc0,0x81,0x03,0xa0,0x80,0x00,0x03,0x40,0x01,0x80,0x03,0x21,0xc0,0x00,0x03,
0x99,0x03,0x40,0x01,0x01,0x00,0x01,0x03,0x01,0x40,0x81,0x03,0x03,0xff,0x3f,0x04,
0xa0,0x80,0x80,0x03,0x01,0x80,0x00,0x04,0x20,0x01,0x01,0x03,0x97,0x02,0x40,0x00,
0x01,0x00,0x01,0x03,0x01,0x40,0x81,0x03,0x03,0xff,0x3f,0x04,0xa0,0x80,0x80,0x03,
0xa0,0x00,0x01,0x03,0x29,0x00,0x00,0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x3a,
0x3a,0x00,0x00,0x00,0x05,0x00,0x06,0x4f,0x62,0x6a,0x65,0x63,0x74,0x00,0x00,0x05,
0x73,0x70,0x6c,0x69,0x74,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x65,0x61,0x63,
0x68,0x00,0x00,0x08,0x5f,0x5f,0x73,0x65,0x6e,0x64,0x5f,0x5f,0x00,0x00,0x00,0x00,
0x3e,0x00,0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x26,0x00,0x00,0x02,
0x15,0x00,0x81,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x16,0x00,0x81,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x09,0x63,0x6f,
0x6e,0x73,0x74,0x5f,0x67,0x65,0x74,0x00,0x00,0x00,0x00,0x61,0x00,0x03,0x00,0x06,
0x00,0x01,0x00,0x00,0x00,0x0b,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x80,0x01,
0x91,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x01,0xc0,0x01,0x01,0x40,0x80,0x01,
0xb7,0xc0,0x80,0x00,0x01,0x40,0x80,0x01,0x40,0x01,0x00,0x02,0x21,0x80,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x08,0x6b,0x69,
0x6e,0x64,0x5f,0x6f,0x66,0x3f,0x00,0x00,0x06,0x53,0x74,0x72,0x69,0x6e,0x67,0x00,
0x00,0x04,0x65,0x61,0x63,0x68,0x00,0x00,0x00,0x00,0x9c,0x00,0x07,0x00,0x0e,0x00,
0x01,0x00,0x00,0x00,0x17,0x00,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x80,0x03,
0x3d,0x00,0x00,0x04,0xa0,0x00,0x80,0x03,0x3a,0xc0,0x81,0x01,0xba,0xc0,0x01,0x02,
0x3a,0xc1,0x81,0x02,0xba,0xc1,0x01,0x03,0x99,0x00,0x40,0x03,0x17,0x01,0x40,0x00,
0x01,0x40,0x01,0x03,0xbd,0x00,0x80,0x02,0x06,0x00,0x80,0x03,0x01,0xc0,0x00,0x04,
0x01,0x40,0x81,0x04,0x01,0x80,0x01,0x05,0x01,0x00,0x81,0x05,0x20,0x00,0x80,0x05,
0x03,0x00,0x40,0x06,0xa0,0x80,0x80,0x05,0x40,0x01,0x00,0x06,0x21,0x42,0x80,0x03,
0x29,0x00,0x80,0x03,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x7c,0x00,0x00,0x01,0x2a,
0x00,0x00,0x00,0x03,0x00,0x05,0x73,0x70,0x6c,0x69,0x74,0x00,0x00,0x0e,0x64,0x65,
0x66,0x69,0x6e,0x65,0x5f,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x02,0x5b,
0x5d,0x00,0x00,0x00,0x00,0x53,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x09,
0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x15,0x00,0x01,0x02,0x20,0x40,0x00,0x02,
0x83,0xff,0xbf,0x02,0xa0,0x80,0x00,0x02,0x01,0x40,0x80,0x02,0x20,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x05,0x73,0x65,
0x6e,0x64,0x32,0x00,0x00,0x05,0x73,0x70,0x6c,0x69,0x74,0x00,0x00,0x02,0x5b,0x5d,
0x00,0x00,0x00,0x00,0xc1,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,
0xa6,0x00,0x10,0x02,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x00,0x01,
0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0xa0,0x40,0x00,0x02,0x98,0x02,0x40,0x02,
0x37,0x00,0x01,0x02,0x0d,0x00,0x80,0x02,0x01,0x40,0x00,0x03,0x01,0x00,0x81,0x03,
0x20,0x81,0x80,0x02,0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0xa0,0x40,0x00,0x02,
0x04,0x02,0x80,0x02,0x01,0xc0,0x00,0x03,0x84,0x02,0x80,0x03,0x01,0x80,0x00,0x04,
0x3f,0x41,0x81,0x02,0xa0,0xc0,0x00,0x02,0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0xa0,0x40,0x00,0x02,0x20,0x80,0x01,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x0f,0x40,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,
0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x03,0x5b,0x5d,0x3d,
0x00,0x00,0x02,0x3c,0x3c,0x00,0x00,0x05,0x62,0x6c,0x6f,0x63,0x6b,0x00,0x00,0x06,
0x72,0x65,0x6d,0x6f,0x76,0x65,0x00,0x00,0x05,0x75,0x6e,0x69,0x71,0x21,0x00,0x00,
0x00,0x00,0x6b,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4d,0x41,0x52,0x47,
0x49,0x4e,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,0x00,0x00,0x00,0x6b,0x00,0x03,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x12,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x44,0x4f,0x55,0x42,0x4c,0x45,0x5f,0x43,0x4c,0x49,0x43,0x4b,
0x00,0x00,0x00,0x00,0x6e,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x15,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,
0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,0x4c,0x45,0x46,0x54,0x00,0x00,0x00,0x00,0x71,
0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x18,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,
0x4e,0x54,0x5f,0x52,0x45,0x41,0x43,0x48,0x45,0x44,0x00,0x00,0x00,0x00,0x63,0x00,
0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,0x00,0x00,0x00,0x00,
0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x5f,0x46,
0x49,0x4c,0x45,0x00,0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,
0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,
0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,
0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,
0x53,0x41,0x56,0x45,0x5f,0x42,0x45,0x46,0x4f,0x52,0x45,0x00,0x00,0x00,0x00,0x63,
0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x00,0x00,
0x68,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x0f,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x50,0x44,0x41,0x54,0x45,0x5f,0x55,
0x49,0x00,0x00,0x00,0x00,0x63,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x43,0x48,0x41,0x52,
0x00,0x00,0x00,0x00,0x62,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x09,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4b,0x45,0x59,0x00,
0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x57,0x45,0x4c,
0x4c,0x5f,0x53,0x54,0x41,0x52,0x54,0x00,0x00,0x00,0x00,0x64,0x00,0x03,0x00,0x07,
0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x0b,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x43,0x4c,0x4f,0x53,0x45,0x00,0x00,0x00,0x00,0x6a,0x00,0x03,
0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x00,
0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x45,0x44,0x49,0x54,
0x4f,0x52,0x5f,0x4c,0x49,0x4e,0x45,0x00,0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,
0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x4f,0x55,0x54,0x50,0x55,0x54,0x5f,0x4c,0x49,0x4e,0x45,0x00,
0x00,0x00,0x00,0xb0,0x00,0x03,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,
0xa6,0x00,0x00,0x02,0x37,0xc0,0x80,0x01,0x0d,0x00,0x00,0x02,0x11,0x01,0x80,0x02,
0x01,0xc0,0x00,0x03,0x20,0x41,0x00,0x02,0x99,0x02,0x40,0x01,0x06,0x00,0x80,0x01,
0x11,0x01,0x00,0x02,0x08,0x00,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0xc1,0x80,0x01,
0x11,0x02,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x40,0x81,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x0f,0x40,0x65,0x76,0x65,0x6e,0x74,
0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x03,0x5b,0x5d,0x3d,0x00,
0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x54,0x52,0x49,0x50,0x00,0x00,0x11,
0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,
0x72,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x11,0x73,0x74,0x72,0x69,
0x70,0x5f,0x73,0x68,0x6f,0x77,0x5f,0x69,0x6e,0x74,0x65,0x72,0x6e,0x00,0x00,0x00,
0x01,0x59,0x00,0x08,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x2e,0xa6,0x00,0x20,0x02,
0x17,0x01,0x40,0x00,0x17,0x01,0x40,0x00,0x17,0x01,0x40,0x00,0x83,0xff,0x3f,0x01,
0x03,0x06,0xc0,0x01,0x3d,0x00,0x80,0x02,0x01,0x40,0x00,0x04,0x01,0x80,0x80,0x04,
0x03,0xff,0x3f,0x05,0x41,0x40,0x82,0x04,0xa0,0x00,0x00,0x04,0x01,0x40,0x81,0x04,
0xa0,0x40,0x00,0x04,0x01,0x00,0x02,0x03,0x06,0x00,0x00,0x04,0x91,0x01,0x80,0x04,
0x07,0x00,0x00,0x05,0x01,0x00,0x81,0x05,0x21,0x81,0x00,0x04,0x11,0x02,0x00,0x04,
0x20,0x40,0x01,0x04,0x19,0x01,0x40,0x04,0x11,0x02,0x00,0x04,0x97,0x00,0x40,0x00,
0x11,0x03,0x00,0x04,0x01,0x00,0x82,0x03,0x01,0x40,0x01,0x04,0x20,0xc0,0x01,0x04,
0x83,0xff,0xbf,0x04,0xa0,0x00,0x00,0x04,0x01,0xc0,0x81,0x04,0x01,0x00,0x02,0x05,
0xa0,0x00,0x82,0x04,0x01,0xc0,0x01,0x04,0x01,0xc0,0x80,0x04,0x01,0x80,0x01,0x05,
0x20,0x41,0x02,0x04,0xbd,0x00,0x00,0x04,0x20,0xc0,0x01,0x04,0x83,0xff,0xbf,0x04,
0xa0,0x00,0x00,0x04,0x01,0xc0,0x81,0x04,0x01,0x00,0x02,0x05,0xa0,0x00,0x82,0x04,
0x29,0x00,0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x3b,0x00,0x00,0x01,0x20,
0x00,0x00,0x00,0x0a,0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x6a,0x6f,0x69,0x6e,0x00,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x19,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x53,0x45,0x52,
0x5f,0x4c,0x49,0x53,0x54,0x5f,0x53,0x45,0x4c,0x45,0x43,0x54,0x49,0x4f,0x4e,0x00,
0x00,0x06,0x45,0x64,0x69,0x74,0x6f,0x72,0x00,0x00,0x05,0x66,0x6f,0x63,0x75,0x73,
0x00,0x00,0x06,0x4f,0x75,0x74,0x70,0x75,0x74,0x00,0x00,0x05,0x62,0x79,0x74,0x65,
0x73,0x00,0x00,0x0f,0x61,0x75,0x74,0x6f,0x43,0x53,0x65,0x70,0x61,0x72,0x61,0x74,
0x6f,0x72,0x3d,0x00,0x00,0x0c,0x75,0x73,0x65,0x72,0x4c,0x69,0x73,0x74,0x53,0x68,
0x6f,0x77,0x00,0x00,0x00,0x00,0x46,0x00,0x02,0x00,0x05,0x00,0x00,0x00,0x00,0x00,
0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x11,0x00,0x00,0x01,0x3d,0x00,0x80,0x01,
0xa0,0x40,0x00,0x01,0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x08,0x46,
0x69,0x6c,0x65,0x50,0x61,0x74,0x68,0x00,0x00,0x00,0x02,0x00,0x05,0x50,0x72,0x6f,
0x70,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x00,0x01,0xd5,0x00,0x03,0x00,0x07,
0x00,0x02,0x00,0x00,0x00,0x3d,0x00,0x00,0x26,0x00,0x00,0x00,0x11,0x00,0x80,0x01,
0x04,0x01,0x00,0x02,0xa0,0x40,0x80,0x01,0x99,0x01,0xc0,0x01,0x91,0x01,0x80,0x01,
0x84,0x02,0x00,0x02,0xa0,0x00,0x81,0x01,0x19,0x19,0xc0,0x01,0x11,0x03,0x80,0x01,
0x3d,0x00,0x00,0x02,0xa0,0xc0,0x81,0x01,0x20,0x00,0x82,0x01,0x03,0x00,0x40,0x02,
0xb2,0x40,0x82,0x01,0x19,0x08,0xc0,0x01,0xbd,0x00,0x80,0x01,0x11,0x03,0x00,0x02,
0x3d,0x01,0x80,0x02,0xa0,0xc0,0x01,0x02,0x3e,0x00,0x81,0x01,0xbd,0x01,0x00,0x02,
0x3e,0x00,0x81,0x01,0x01,0xc0,0x00,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0xa0,0x80,0x82,0x01,0x19,0x02,0xc0,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0x40,0x01,0x80,0x02,0xa1,0xc0,0x82,0x01,0x11,0x03,0x80,0x01,0x3d,0x02,0x00,0x02,
0xa0,0xc0,0x81,0x01,0x01,0xc0,0x00,0x01,0x20,0x00,0x83,0x01,0xbd,0x00,0x00,0x02,
0xb2,0x40,0x82,0x01,0x19,0x04,0xc0,0x01,0xbd,0x00,0x80,0x01,0x11,0x03,0x00,0x02,
0xbd,0x02,0x80,0x02,0xa0,0xc0,0x01,0x02,0x3e,0x00,0x81,0x01,0xbd,0x01,0x00,0x02,
0x3e,0x00,0x81,0x01,0x01,0xc0,0x00,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0xa0,0x80,0x82,0x01,0x99,0x02,0xc0,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0x40,0x03,0x80,0x02,0xa1,0xc0,0x82,0x01,0x97,0x00,0x40,0x00,0x05,0x00,0x80,0x01,
0x97,0x00,0x40,0x00,0x05,0x00,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x06,
0x00,0x00,0x08,0x50,0x4c,0x41,0x54,0x5f,0x57,0x49,0x4e,0x00,0x00,0x00,0x00,0x00,
0x10,0x53,0x63,0x69,0x74,0x65,0x44,0x65,0x66,0x61,0x75,0x6c,0x74,0x48,0x6f,0x6d,
0x65,0x00,0x00,0x0c,0x2f,0x73,0x63,0x69,0x74,0x65,0x5f,0x6d,0x72,0x75,0x62,0x79,
0x00,0x00,0x13,0x65,0x78,0x74,0x2e,0x6d,0x72,0x75,0x62,0x79,0x2e,0x64,0x69,0x72,
0x65,0x63,0x74,0x6f,0x72,0x79,0x00,0x00,0x0d,0x53,0x63,0x69,0x74,0x65,0x55,0x73,
0x65,0x72,0x48,0x6f,0x6d,0x65,0x00,0x00,0x00,0x0d,0x00,0x06,0x4d,0x6f,0x64,0x75,
0x6c,0x65,0x00,0x00,0x0e,0x63,0x6f,0x6e,0x73,0x74,0x5f,0x64,0x65,0x66,0x69,0x6e,
0x65,0x64,0x3f,0x00,0x00,0x03,0x44,0x69,0x72,0x00,0x00,0x06,0x4b,0x65,0x72,0x6e,
0x65,0x6c,0x00,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,
0x00,0x00,0x04,0x6c,0x6f,0x61,0x64,0x00,0x00,0x05,0x50,0x72,0x6f,0x70,0x73,0x00,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x74,0x6f,0x5f,0x69,0x00,0x00,0x02,0x3d,0x3d,
0x00,0x00,0x06,0x65,0x78,0x69,0x73,0x74,0x3f,0x00,0x00,0x07,0x66,0x6f,0x72,0x65,
0x61,0x63,0x68,0x00,0x00,0x04,0x74,0x6f,0x5f,0x73,0x00,0x00,0x00,0x00,0xde,0x00,
0x04,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x1a,0x09,0x40,0x00,0x01,0x40,0x00,0x02,0x03,0xfe,0xbf,0x02,0x03,0xff,0x3f,0x03,
0x41,0x40,0x81,0x02,0xa0,0x00,0x00,0x02,0x3d,0x00,0x80,0x02,0xb2,0x40,0x00,0x02,
0x19,0x04,0x40,0x02,0x06,0x00,0x00,0x02,0x15,0x80,0x80,0x02,0xbd,0x00,0x00,0x03,
0xac,0xc0,0x80,0x02,0x01,0x40,0x00,0x03,0xac,0xc0,0x80,0x02,0xa0,0x80,0x00,0x02,
0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x02,0x17,0x06,0x40,0x00,0x1b,0x00,0x00,0x02,
0x11,0x02,0x80,0x02,0x01,0x00,0x01,0x03,0xa0,0x40,0x81,0x02,0x98,0x00,0xc0,0x02,
0x97,0x02,0x40,0x00,0x01,0x00,0x81,0x01,0x06,0x00,0x00,0x02,0x01,0xc0,0x80,0x02,
0xa0,0x80,0x01,0x02,0x17,0x01,0x40,0x00,0x1d,0x00,0x00,0x02,0x1c,0x00,0x80,0x00,
0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x03,0x2e,0x72,0x62,0x00,0x00,
0x01,0x2f,0x00,0x00,0x00,0x07,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x3d,0x3d,0x00,
0x00,0x04,0x6c,0x6f,0x61,0x64,0x00,0x00,0x01,0x2b,0x00,0x00,0x0d,0x53,0x74,0x61,
0x6e,0x64,0x61,0x72,0x64,0x45,0x72,0x72,0x6f,0x72,0x00,0x00,0x03,0x3d,0x3d,0x3d,
0x00,0x00,0x04,0x70,0x75,0x74,0x73,0x00,0x00,0x00,0x00,0xde,0x00,0x04,0x00,0x08,
0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x26,0x00,0x00,0x02,0x1a,0x09,0x40,0x00,
0x01,0x40,0x00,0x02,0x03,0xfe,0xbf,0x02,0x03,0xff,0x3f,0x03,0x41,0x40,0x81,0x02,
0xa0,0x00,0x00,0x02,0x3d,0x00,0x80,0x02,0xb2,0x40,0x00,0x02,0x19,0x04,0x40,0x02,
0x06,0x00,0x00,0x02,0x15,0x80,0x80,0x02,0xbd,0x00,0x00,0x03,0xac,0xc0,0x80,0x02,
0x01,0x40,0x00,0x03,0xac,0xc0,0x80,0x02,0xa0,0x80,0x00,0x02,0x97,0x00,0x40,0x00,
0x05,0x00,0x00,0x02,0x17,0x06,0x40,0x00,0x1b,0x00,0x00,0x02,0x11,0x02,0x80,0x02,
0x01,0x00,0x01,0x03,0xa0,0x40,0x81,0x02,0x98,0x00,0xc0,0x02,0x97,0x02,0x40,0x00,
0x01,0x00,0x81,0x01,0x06,0x00,0x00,0x02,0x01,0xc0,0x80,0x02,0xa0,0x80,0x01,0x02,
0x17,0x01,0x40,0x00,0x1d,0x00,0x00,0x02,0x1c,0x00,0x80,0x00,0x29,0x00,0x00,0x02,
0x00,0x00,0x00,0x02,0x00,0x00,0x03,0x2e,0x72,0x62,0x00,0x00,0x01,0x2f,0x00,0x00,
0x00,0x07,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x3d,0x3d,0x00,0x00,0x04,0x6c,0x6f,
0x61,0x64,0x00,0x00,0x01,0x2b,0x00,0x00,0x0d,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,
0x64,0x45,0x72,0x72,0x6f,0x72,0x00,0x00,0x03,0x3d,0x3d,0x3d,0x00,0x00,0x04,0x70,
0x75,0x74,0x73,0x00,0x00,0x00,0x00,0xb8,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,
0x00,0x16,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x80,0x01,0x03,0xff,0x3f,0x02,
0xa0,0x00,0x80,0x01,0x3d,0x00,0x00,0x02,0xa0,0x40,0x80,0x01,0x99,0x02,0xc0,0x01,
0x01,0x40,0x80,0x01,0x03,0xff,0x3f,0x02,0xa0,0x00,0x80,0x01,0xbd,0x00,0x00,0x02,
0xa0,0x40,0x80,0x01,0x99,0x03,0xc0,0x01,0x06,0x00,0x80,0x01,0x06,0x00,0x00,0x02,
0x20,0xc0,0x00,0x02,0x11,0x02,0x80,0x02,0xa0,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0x20,0x81,0x80,0x01,0x08,0x00,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x02,
0x00,0x00,0x01,0x5c,0x00,0x00,0x01,0x2f,0x00,0x00,0x00,0x05,0x00,0x02,0x5b,0x5d,
0x00,0x00,0x02,0x21,0x3d,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,
0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,
0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,
0x45,0x4e,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x00,0x00,0x00,0x00,0xcd,0x00,0x06,
0x00,0x0a,0x00,0x00,0x00,0x00,0x00,0x1b,0x26,0x00,0x00,0x02,0x01,0x40,0x00,0x03,
0x20,0x00,0x00,0x03,0x01,0x80,0x81,0x01,0x01,0x40,0x00,0x03,0x01,0xc0,0x80,0x03,
0xa0,0x40,0x00,0x03,0xaf,0x80,0x00,0x03,0x01,0x80,0x01,0x02,0x01,0x40,0x00,0x03,
0x20,0xc0,0x00,0x03,0x83,0xff,0xbf,0x03,0xb2,0x00,0x01,0x03,0x19,0x01,0x40,0x03,
0x03,0x01,0x40,0x03,0x97,0x00,0x40,0x00,0x83,0x00,0x40,0x03,0x01,0x80,0x81,0x02,
0x01,0x40,0x00,0x03,0x01,0x00,0x81,0x03,0xa0,0x40,0x01,0x03,0x83,0xff,0xbf,0x03,
0x01,0x40,0x01,0x04,0x20,0xc0,0x01,0x04,0x41,0xc0,0x81,0x03,0xa0,0x80,0x01,0x03,
0x29,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x0a,0x63,0x75,
0x72,0x72,0x65,0x6e,0x74,0x50,0x6f,0x73,0x00,0x00,0x10,0x6c,0x69,0x6e,0x65,0x46,
0x72,0x6f,0x6d,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x00,0x00,0x01,0x2d,0x00,
0x00,0x07,0x45,0x4f,0x4c,0x4d,0x6f,0x64,0x65,0x00,0x00,0x02,0x3d,0x3d,0x00,0x00,
0x07,0x67,0x65,0x74,0x4c,0x69,0x6e,0x65,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,
0x2d,0x40,0x00,0x00,0x00,0x01,0xb1,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,
0x41,0x00,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x00,0x02,0x3d,0x00,0x80,0x02,
0xa0,0x00,0x00,0x02,0x19,0x01,0x40,0x02,0x08,0x00,0x00,0x02,0x29,0x00,0x00,0x02,
0x91,0x00,0x00,0x02,0x20,0x80,0x00,0x02,0x01,0x00,0x81,0x01,0x99,0x0d,0x40,0x02,
0x06,0x00,0x00,0x02,0x20,0xc0,0x00,0x02,0x91,0x02,0x80,0x02,0xa0,0x00,0x01,0x02,
0x20,0x80,0x01,0x02,0x98,0x03,0x40,0x02,0x06,0x00,0x00,0x02,0x20,0xc0,0x00,0x02,
0x91,0x02,0x80,0x02,0xa0,0x00,0x01,0x02,0x20,0xc0,0x01,0x02,0x83,0xff,0xbf,0x02,
0xb2,0x00,0x02,0x02,0x19,0x01,0x40,0x02,0x08,0x00,0x00,0x02,0x29,0x00,0x00,0x02,
0x06,0x00,0x00,0x02,0x06,0x00,0x80,0x02,0x20,0xc0,0x80,0x02,0x91,0x02,0x00,0x03,
0xa0,0x00,0x81,0x02,0x06,0x00,0x00,0x03,0x91,0x00,0x80,0x03,0xa0,0x80,0x02,0x03,
0x20,0x41,0x02,0x02,0x08,0x00,0x00,0x02,0x17,0x0d,0x40,0x00,0x06,0x00,0x00,0x02,
0x20,0xc0,0x00,0x02,0x91,0x05,0x80,0x02,0xa0,0x00,0x01,0x02,0x20,0x80,0x01,0x02,
0x98,0x03,0x40,0x02,0x06,0x00,0x00,0x02,0x20,0xc0,0x00,0x02,0x91,0x05,0x80,0x02,
0xa0,0x00,0x01,0x02,0x20,0xc0,0x01,0x02,0x83,0xff,0xbf,0x02,0xb2,0x00,0x02,0x02,
0x19,0x01,0x40,0x02,0x08,0x00,0x00,0x02,0x29,0x00,0x00,0x02,0x06,0x00,0x00,0x02,
0x06,0x00,0x80,0x02,0x20,0xc0,0x80,0x02,0x91,0x05,0x00,0x03,0xa0,0x00,0x81,0x02,
0x06,0x00,0x00,0x03,0x11,0x06,0x80,0x03,0xa0,0x80,0x02,0x03,0x20,0x41,0x02,0x02,
0x07,0x00,0x00,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x01,0x00,0x00,0x01,0x0a,
0x00,0x00,0x00,0x0d,0x00,0x02,0x21,0x3d,0x00,0x00,0x06,0x45,0x64,0x69,0x74,0x6f,
0x72,0x00,0x00,0x05,0x66,0x6f,0x63,0x75,0x73,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,
0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,
0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x45,0x44,0x49,0x54,0x4f,0x52,0x5f,0x4c,
0x49,0x4e,0x45,0x00,0x00,0x01,0x21,0x00,0x00,0x06,0x6c,0x65,0x6e,0x67,0x74,0x68,
0x00,0x00,0x02,0x3d,0x3d,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,
0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x67,0x72,0x61,0x62,0x5f,0x6c,0x69,0x6e,0x65,
0x5f,0x66,0x72,0x6f,0x6d,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x55,
0x54,0x50,0x55,0x54,0x5f,0x4c,0x49,0x4e,0x45,0x00,0x00,0x06,0x4f,0x75,0x74,0x70,
0x75,0x74,0x00,0x00,0x00,0x01,0x69,0x00,0x01,0x00,0x05,0x00,0x00,0x00,0x00,0x00,
0x1d,0x00,0x00,0x00,0x06,0x00,0x80,0x00,0x84,0x00,0x00,0x01,0x04,0x01,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x01,0x00,0x01,0x04,0x02,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x02,0x00,0x01,0x04,0x03,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x03,0x00,0x01,0x04,0x04,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x04,0x00,0x01,0x04,0x05,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x05,0x00,0x01,0x04,0x06,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x06,0x00,0x01,0x04,0x07,0x80,0x01,
0x20,0x01,0x80,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,
0x00,0x0c,0x61,0x6c,0x69,0x61,0x73,0x5f,0x6d,0x65,0x74,0x68,0x6f,0x64,0x00,0x00,
0x0c,0x73,0x74,0x61,0x72,0x74,0x53,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0d,
0x73,0x74,0x61,0x72,0x74,0x5f,0x73,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0a,
0x65,0x6e,0x64,0x53,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0b,0x65,0x6e,0x64,
0x5f,0x73,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0b,0x61,0x74,0x4c,0x69,0x6e,
0x65,0x53,0x74,0x61,0x72,0x74,0x00,0x00,0x0d,0x61,0x74,0x5f,0x6c,0x69,0x6e,0x65,
0x5f,0x73,0x74,0x61,0x72,0x74,0x00,0x00,0x09,0x61,0x74,0x4c,0x69,0x6e,0x65,0x45,
0x6e,0x64,0x00,0x00,0x0b,0x61,0x74,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x65,0x6e,0x64,
0x00,0x00,0x08,0x73,0x65,0x74,0x53,0x74,0x61,0x74,0x65,0x00,0x00,0x09,0x73,0x65,
0x74,0x5f,0x73,0x74,0x61,0x74,0x65,0x00,0x00,0x0f,0x66,0x6f,0x72,0x77,0x61,0x72,
0x64,0x53,0x65,0x74,0x53,0x74,0x61,0x74,0x65,0x00,0x00,0x11,0x66,0x6f,0x72,0x77,
0x61,0x72,0x64,0x5f,0x73,0x65,0x74,0x5f,0x73,0x74,0x61,0x74,0x65,0x00,0x00,0x0b,
0x63,0x68,0x61,0x6e,0x67,0x65,0x53,0x74,0x61,0x74,0x65,0x00,0x00,0x0c,0x63,0x68,
0x61,0x6e,0x67,0x65,0x5f,0x73,0x74,0x61,0x74,0x65,0x00,0x00,0x00,0x00,0x41,0x00,
0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x6f,0x6e,0x5f,0x62,0x75,0x66,
0x66,0x65,0x72,0x5f,0x73,0x77,0x69,0x74,0x63,0x68,0x00,0x00,0x00,0x00,0x41,0x00,
0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x6f,0x6e,0x5f,0x62,0x75,0x66,
0x66,0x65,0x72,0x5f,0x73,0x77,0x69,0x74,0x63,0x68,0x00,0x00,0x00,0x00,0x3d,0x00,
0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x0c,0x6f,0x6e,0x5f,0x6c,0x69,0x6e,
0x65,0x5f,0x63,0x68,0x61,0x72,0x00,0x00,0x00,0x00,0xba,0x00,0x02,0x00,0x06,0x00,
0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,
0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,
0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,
0x20,0x00,0x81,0x01,0x11,0x01,0x00,0x02,0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,
0xa0,0xc0,0x00,0x01,0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0d,
0x6f,0x6e,0x4d,0x61,0x72,0x67,0x69,0x6e,0x43,0x6c,0x69,0x63,0x6b,0x00,0x00,0x05,
0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,
0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,
0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x12,0x45,0x56,0x45,
0x4e,0x54,0x5f,0x4d,0x41,0x52,0x47,0x49,0x4e,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,
0x00,0x00,0x00,0xba,0x00,0x02,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,
0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,
0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,
0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,0x20,0x00,0x81,0x01,0x11,0x01,0x00,0x02,
0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,0xa0,0xc0,0x00,0x01,0x29,0x00,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0d,0x6f,0x6e,0x44,0x6f,0x75,0x62,0x6c,0x65,
0x43,0x6c,0x69,0x63,0x6b,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,
0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,
0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,
0x5b,0x5d,0x00,0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x4f,0x55,0x42,0x4c,
0x45,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,0x00,0x00,0x00,0xbf,0x00,0x02,0x00,0x06,
0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,
0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,
0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,
0x20,0x00,0x81,0x01,0x11,0x01,0x00,0x02,0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,
0xa0,0xc0,0x00,0x01,0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0f,
0x6f,0x6e,0x53,0x61,0x76,0x65,0x50,0x6f,0x69,0x6e,0x74,0x4c,0x65,0x66,0x74,0x00,
0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,
0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,
0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x15,0x45,
0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,
0x4c,0x45,0x46,0x54,0x00,0x00,0x00,0x00,0xc5,0x00,0x02,0x00,0x06,0x00,0x00,0x00,
0x00,0x00,0x10,0x00,0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,0x84,0x00,0x80,0x01,
0xa0,0x00,0x00,0x01,0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,0x20,0x40,0x00,0x01,
0x29,0x00,0x00,0x01,0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,0x20,0x00,0x81,0x01,
0x11,0x01,0x00,0x02,0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,0xa0,0xc0,0x00,0x01,
0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,
0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x12,0x6f,0x6e,0x53,0x61,
0x76,0x65,0x50,0x6f,0x69,0x6e,0x74,0x52,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,
0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,
0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,
0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x18,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,0x52,
0x45,0x41,0x43,0x48,0x45,0x44,0x00,0x00,0x00,0x00,0xb3,0x00,0x03,0x00,0x07,0x00,
0x00,0x00,0x00,0x00,0x12,0x00,0x00,0x00,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,
0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,
0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x06,0x6f,0x6e,0x43,0x68,0x61,0x72,0x00,0x00,
0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,
0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,
0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x0a,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x43,0x48,0x41,0x52,0x00,0x00,0x00,0x00,0xb3,0x00,0x03,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,
0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,
0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x06,0x6f,0x6e,0x53,0x61,0x76,0x65,0x00,0x00,
0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,
0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,
0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x0a,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x00,0x00,0xc0,0x00,0x03,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,
0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,
0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0c,0x6f,0x6e,0x42,0x65,0x66,0x6f,0x72,0x65,
0x53,0x61,0x76,0x65,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,
0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,
0x5d,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x42,0x45,0x46,0x4f,0x52,0x45,
0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x00,0x00,0xc0,0x00,0x03,0x00,0x07,0x00,0x00,
0x00,0x00,0x00,0x12,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x84,0x00,0x00,0x02,
0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,
0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,0x11,0x01,0x00,0x02,
0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,0xa0,0x40,0x01,0x02,
0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,
0x3f,0x00,0x00,0x0c,0x6f,0x6e,0x53,0x77,0x69,0x74,0x63,0x68,0x46,0x69,0x6c,0x65,
0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,
0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,
0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x11,
0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x5f,0x46,0x49,0x4c,
0x45,0x00,0x00,0x00,0x00,0xb3,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x12,
0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,
0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,
0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,
0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,
0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x06,
0x6f,0x6e,0x4f,0x70,0x65,0x6e,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,
0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,
0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,
0x02,0x5b,0x5d,0x00,0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,
0x00,0x00,0x00,0x00,0xd9,0x00,0x02,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x15,0x00,
0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,
0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,
0x11,0x01,0x00,0x01,0x20,0xc0,0x00,0x01,0x19,0x04,0x40,0x01,0x11,0x02,0x00,0x01,
0x11,0x02,0x80,0x01,0x20,0x80,0x81,0x01,0x11,0x02,0x00,0x02,0x13,0x04,0x00,0x02,
0xa0,0xc0,0x81,0x01,0xa0,0x40,0x01,0x01,0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x01,
0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0b,0x72,0x65,
0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0a,0x6f,0x6e,0x55,0x70,
0x64,0x61,0x74,0x65,0x55,0x49,0x00,0x00,0x06,0x45,0x64,0x69,0x74,0x6f,0x72,0x00,
0x00,0x05,0x66,0x6f,0x63,0x75,0x73,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,
0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,
0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x0f,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x50,0x44,
0x41,0x54,0x45,0x5f,0x55,0x49,0x00,0x00,0x00,0x00,0xc9,0x00,0x06,0x00,0x0d,0x00,
0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x26,0x00,0x00,0x08,0x06,0x00,0x00,0x03,
0x84,0x00,0x80,0x03,0xa0,0x00,0x00,0x03,0x99,0x03,0x40,0x03,0x06,0x00,0x00,0x03,
0x01,0x40,0x80,0x03,0x01,0x80,0x00,0x04,0x01,0xc0,0x80,0x04,0x01,0x00,0x01,0x05,
0x20,0x42,0x00,0x03,0x29,0x00,0x00,0x03,0x11,0x01,0x00,0x03,0x11,0x01,0x80,0x03,
0x20,0x00,0x81,0x03,0x11,0x01,0x00,0x04,0x13,0x03,0x00,0x04,0xa0,0x40,0x81,0x03,
0x01,0x40,0x00,0x04,0x01,0x80,0x80,0x04,0x01,0xc0,0x00,0x05,0x01,0x00,0x81,0x05,
0xa0,0xc2,0x00,0x03,0x29,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x05,
0x6f,0x6e,0x4b,0x65,0x79,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,
0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,
0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,
0x5b,0x5d,0x00,0x00,0x09,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4b,0x45,0x59,0x00,0x00,
0x00,0x00,0xc8,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,
0x26,0x00,0x00,0x04,0x06,0x00,0x00,0x02,0x84,0x00,0x80,0x02,0xa0,0x00,0x00,0x02,
0x99,0x02,0x40,0x02,0x06,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x20,0x41,0x00,0x02,0x29,0x00,0x00,0x02,0x11,0x01,0x00,0x02,0x11,0x01,0x80,0x02,
0x20,0x00,0x81,0x02,0x11,0x01,0x00,0x03,0x13,0x03,0x00,0x03,0xa0,0x40,0x81,0x02,
0x01,0x40,0x00,0x03,0x01,0x80,0x80,0x03,0xa0,0xc1,0x00,0x02,0x29,0x00,0x00,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0c,0x6f,0x6e,0x44,0x77,0x65,0x6c,0x6c,0x53,
0x74,0x61,0x72,0x74,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,
0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,
0x5d,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x57,0x45,0x4c,0x4c,0x5f,
0x53,0x54,0x41,0x52,0x54,0x00,0x00,0x00,0x00,0xb5,0x00,0x03,0x00,0x07,0x00,0x00,
0x00,0x00,0x00,0x12,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x84,0x00,0x00,0x02,
0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,
0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,0x11,0x01,0x00,0x02,
0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,0xa0,0x40,0x01,0x02,
0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,
0x3f,0x00,0x00,0x07,0x6f,0x6e,0x43,0x6c,0x6f,0x73,0x65,0x00,0x00,0x05,0x53,0x63,
0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,
0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,
0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,
0x5f,0x43,0x4c,0x4f,0x53,0x45,0x00,0x00,0x00,0x00,0xd7,0x00,0x04,0x00,0x09,0x00,
0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x26,0x00,0x00,0x04,0x06,0x00,0x00,0x02,
0x84,0x00,0x80,0x02,0xa0,0x00,0x00,0x02,0x99,0x02,0x40,0x02,0x06,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x20,0x41,0x00,0x02,0x29,0x00,0x00,0x02,
0x11,0x01,0x00,0x02,0x11,0x01,0x80,0x02,0x20,0x00,0x81,0x02,0x11,0x01,0x00,0x03,
0x13,0x03,0x00,0x03,0xa0,0x40,0x81,0x02,0x01,0x80,0x00,0x03,0x01,0x40,0x80,0x03,
0xa0,0xc1,0x00,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x13,
0x6f,0x6e,0x55,0x73,0x65,0x72,0x4c,0x69,0x73,0x74,0x53,0x65,0x6c,0x65,0x63,0x74,
0x69,0x6f,0x6e,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,
0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,
0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,
0x00,0x00,0x19,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x53,0x45,0x52,0x5f,0x4c,0x49,
0x53,0x54,0x5f,0x53,0x45,0x4c,0x45,0x43,0x54,0x49,0x4f,0x4e,0x00,0x00,0x00,0x00,
0xc4,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x26,0x00,0x00,0x04,
0x06,0x00,0x00,0x02,0x84,0x00,0x80,0x02,0xa0,0x00,0x00,0x02,0x99,0x02,0x40,0x02,
0x06,0x00,0x00,0x02,0x06,0x00,0x80,0x02,0x20,0x80,0x80,0x02,0xa0,0x40,0x00,0x02,
0x29,0x00,0x00,0x02,0x91,0x01,0x00,0x02,0x91,0x01,0x80,0x02,0x20,0x40,0x81,0x02,
0x91,0x01,0x00,0x03,0x93,0x03,0x00,0x03,0xa0,0x80,0x81,0x02,0x01,0x40,0x00,0x03,
0x01,0x80,0x80,0x03,0xa0,0x01,0x01,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x08,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,
0x3f,0x00,0x00,0x07,0x6f,0x6e,0x53,0x74,0x72,0x69,0x70,0x00,0x00,0x04,0x66,0x69,
0x6c,0x65,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,
0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,
0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,
0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x54,0x52,0x49,0x50,0x00,0x00,0x00,
0x01,0xa9,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x31,0x11,0x00,0x80,0x01,
0x20,0x40,0x80,0x01,0x3d,0x00,0x00,0x02,0xa0,0x80,0x80,0x01,0x19,0x02,0xc0,0x01,
0x91,0x01,0x80,0x01,0x91,0x02,0x00,0x02,0xad,0x8b,0x01,0x02,0xa0,0x00,0x81,0x01,
0x11,0x00,0x80,0x01,0x20,0xc0,0x81,0x01,0x20,0x00,0x82,0x01,0x99,0x01,0xc0,0x01,
0x91,0x04,0x80,0x01,0x84,0x05,0x00,0x02,0xa0,0x80,0x82,0x01,0x99,0x0d,0xc0,0x01,
0x91,0x01,0x80,0x01,0x20,0x00,0x83,0x01,0x01,0xc0,0x80,0x00,0x06,0x00,0x80,0x01,
0xbd,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0xac,0x80,0x01,0x02,0xa0,0x40,0x83,0x01,
0x1a,0x02,0x40,0x00,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0xc0,0x82,0x01,
0x17,0x06,0x40,0x00,0x1b,0x00,0x80,0x01,0x11,0x07,0x00,0x02,0x01,0xc0,0x80,0x02,
0xa0,0xc0,0x03,0x02,0x98,0x00,0x40,0x02,0x97,0x02,0x40,0x00,0x01,0xc0,0x00,0x01,
0x06,0x00,0x80,0x01,0x01,0x80,0x00,0x02,0xa0,0x00,0x84,0x01,0x17,0x01,0x40,0x00,
0x1d,0x00,0x80,0x01,0x1c,0x00,0x80,0x00,0x17,0x02,0x40,0x00,0x06,0x00,0x80,0x01,
0x11,0x00,0x00,0x02,0x20,0x80,0x04,0x02,0xa0,0x40,0x84,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x02,0x00,0x00,0x04,0x72,0x75,0x62,0x79,0x00,0x00,0x0b,0x4c,0x6f,
0x61,0x64,0x69,0x6e,0x67,0x2e,0x2e,0x2e,0x20,0x00,0x00,0x00,0x13,0x00,0x06,0x45,
0x64,0x69,0x74,0x6f,0x72,0x00,0x00,0x0e,0x6c,0x65,0x78,0x65,0x72,0x5f,0x6c,0x61,
0x6e,0x67,0x75,0x61,0x67,0x65,0x00,0x00,0x02,0x21,0x3d,0x00,0x00,0x05,0x53,0x63,
0x69,0x54,0x45,0x00,0x00,0x0c,0x6d,0x65,0x6e,0x75,0x5f,0x63,0x6f,0x6d,0x6d,0x61,
0x6e,0x64,0x00,0x00,0x0c,0x49,0x44,0x4d,0x5f,0x4c,0x41,0x4e,0x47,0x55,0x41,0x47,
0x45,0x00,0x00,0x01,0x2b,0x00,0x00,0x06,0x6d,0x6f,0x64,0x69,0x66,0x79,0x00,0x00,
0x01,0x21,0x00,0x00,0x06,0x4b,0x65,0x72,0x6e,0x65,0x6c,0x00,0x00,0x0b,0x72,0x65,
0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x04,0x6c,0x6f,0x61,0x64,
0x00,0x00,0x0c,0x63,0x75,0x72,0x72,0x65,0x6e,0x74,0x5f,0x66,0x69,0x6c,0x65,0x00,
0x00,0x04,0x70,0x75,0x74,0x73,0x00,0x00,0x0d,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,
0x64,0x45,0x72,0x72,0x6f,0x72,0x00,0x00,0x03,0x3d,0x3d,0x3d,0x00,0x00,0x01,0x70,
0x00,0x00,0x04,0x65,0x76,0x61,0x6c,0x00,0x00,0x08,0x67,0x65,0x74,0x5f,0x74,0x65,
0x78,0x74,0x00,0x44,0x42,0x47,0x00,0x00,0x00,0x0f,0x30,0x00,0x01,0x00,0x09,0x65,
0x78,0x74,0x6d,0x61,0x6e,0x2e,0x72,0x62,0x00,0x00,0x00,0x83,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0x00,0x00,0x03,0x00,0x03,0x00,0x03,0x01,
0x16,0x01,0x16,0x01,0x16,0x01,0x1a,0x01,0x1a,0x01,0x1a,0x01,0x1e,0x01,0x1e,0x01,
0x1e,0x01,0x22,0x01,0x22,0x01,0x22,0x01,0x26,0x01,0x26,0x01,0x26,0x01,0x2a,0x01,
0x2a,0x01,0x2a,0x01,0x2e,0x01,0x2e,0x01,0x2e,0x01,0x32,0x01,0x32,0x01,0x32,0x01,
0x36,0x01,0x36,0x01,0x36,0x01,0x3a,0x01,0x3a,0x01,0x3a,0x01,0x40,0x01,0x40,0x01,
0x40,0x01,0x44,0x01,0x44,0x01,0x44,0x01,0x48,0x01,0x48,0x01,0x48,0x01,0x4c,0x01,
0x4c,0x01,0x4c,0x01,0x50,0x01,0x50,0x01,0x50,0x01,0x55,0x01,0x55,0x01,0x57,0x01,
0x57,0x01,0x57,0x01,0x57,0x01,0x66,0x01,0x66,0x01,0x66,0x00,0x00,0x00,0x8b,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0x00,0x00,0x04,0x00,0x04,
0x00,0x05,0x00,0x05,0x00,0x06,0x00,0x06,0x00,0x07,0x00,0x07,0x00,0x08,0x00,0x08,
0x00,0x09,0x00,0x09,0x00,0x0a,0x00,0x0a,0x00,0x0b,0x00,0x0b,0x00,0x0c,0x00,0x0c,
0x00,0x0d,0x00,0x0d,0x00,0x0e,0x00,0x0e,0x00,0x0f,0x00,0x0f,0x00,0x10,0x00,0x10,
0x00,0x11,0x00,0x11,0x00,0x12,0x00,0x12,0x00,0x13,0x00,0x13,0x00,0x14,0x00,0x14,
0x00,0x15,0x00,0x15,0x00,0x17,0x00,0x17,0x00,0x18,0x00,0x18,0x00,0x19,0x00,0x19,
0x00,0x1a,0x00,0x1a,0x00,0x1c,0x00,0x1c,0x00,0x1c,0x01,0x06,0x01,0x06,0x01,0x06,
0x01,0x06,0x01,0x10,0x01,0x10,0x01,0x10,0x01,0x11,0x01,0x11,0x01,0x11,0x01,0x12,
0x01,0x12,0x01,0x12,0x01,0x12,0x00,0x00,0x01,0xa7,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xcb,0x00,0x00,0x1e,0x00,0x1e,0x00,0x1e,0x00,0x2a,0x00,
0x2a,0x00,0x2a,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,0x44,0x00,0x44,0x00,0x44,0x00,
0x4f,0x00,0x4f,0x00,0x4f,0x00,0x5d,0x00,0x5d,0x00,0x5d,0x00,0x63,0x00,0x63,0x00,
0x63,0x00,0x66,0x00,0x66,0x00,0x66,0x00,0x69,0x00,0x69,0x00,0x69,0x00,0x6c,0x00,
0x6c,0x00,0x6c,0x00,0x6f,0x00,0x6f,0x00,0x6f,0x00,0x72,0x00,0x72,0x00,0x72,0x00,
0x75,0x00,0x75,0x00,0x75,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x7b,0x00,0x7b,0x00,
0x7b,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x81,0x00,0x81,0x00,0x81,0x00,0x84,0x00,
0x84,0x00,0x84,0x00,0x87,0x00,0x87,0x00,0x87,0x00,0x8a,0x00,0x8a,0x00,0x8a,0x00,
0x8d,0x00,0x8d,0x00,0x8d,0x00,0x90,0x00,0x90,0x00,0x90,0x00,0x93,0x00,0x93,0x00,
0x93,0x00,0x9a,0x00,0x9a,0x00,0x9a,0x00,0xa4,0x00,0xa4,0x00,0xa4,0x00,0xa8,0x00,
0xa8,0x00,0xa8,0x00,0xc6,0x00,0xc6,0x00,0xc6,0x00,0xcd,0x00,0xcd,0x00,0xcd,0x00,
0xd5,0x00,0xd5,0x00,0xd5,0x00,0xe3,0x00,0xe3,0x00,0xe3,0x00,0xe5,0x00,0xe5,0x00,
0xe5,0x00,0xe5,0x00,0xe6,0x00,0xe6,0x00,0xe6,0x00,0xe6,0x00,0xe7,0x00,0xe7,0x00,
0xe7,0x00,0xe7,0x00,0xe8,0x00,0xe8,0x00,0xe8,0x00,0xe8,0x00,0xe9,0x00,0xe9,0x00,
0xe9,0x00,0xe9,0x00,0xea,0x00,0xea,0x00,0xea,0x00,0xea,0x00,0xeb,0x00,0xeb,0x00,
0xeb,0x00,0xeb,0x00,0xec,0x00,0xec,0x00,0xec,0x00,0xec,0x00,0xed,0x00,0xed,0x00,
0xed,0x00,0xed,0x00,0xef,0x00,0xef,0x00,0xef,0x00,0xef,0x00,0xf0,0x00,0xf0,0x00,
0xf0,0x00,0xf0,0x00,0xf1,0x00,0xf1,0x00,0xf1,0x00,0xf1,0x00,0xf3,0x00,0xf3,0x00,
0xf3,0x00,0xf3,0x00,0xf4,0x00,0xf4,0x00,0xf4,0x00,0xf4,0x00,0xf5,0x00,0xf5,0x00,
0xf5,0x00,0xf5,0x00,0xf6,0x00,0xf6,0x00,0xf6,0x00,0xf6,0x00,0xf7,0x00,0xf7,0x00,
0xf7,0x00,0xf7,0x00,0xf8,0x00,0xf8,0x00,0xf8,0x00,0xf8,0x00,0xf9,0x00,0xf9,0x00,
0xf9,0x00,0xf9,0x00,0xfa,0x00,0xfa,0x00,0xfa,0x00,0xfa,0x00,0xfb,0x00,0xfb,0x00,
0xfb,0x00,0xfb,0x00,0xfc,0x00,0xfc,0x00,0xfc,0x00,0xfc,0x00,0xfd,0x00,0xfd,0x00,
0xfd,0x00,0xfd,0x00,0xfe,0x00,0xfe,0x00,0xfe,0x00,0xfe,0x00,0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x02,0x01,0x02,0x01,0x02,0x01,0x02,0x01,0x02,0x00,0x00,0x00,
0x1f,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x1e,
0x00,0x1f,0x00,0x20,0x00,0x21,0x00,0x21,0x00,0x21,0x00,0x27,0x00,0x00,0x00,0x45,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1a,0x00,0x00,0x21,0x00,
0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,
0x22,0x00,0x22,0x00,0x23,0x00,0x23,0x00,0x23,0x00,0x23,0x00,0x23,0x00,0x23,0x00,
0x23,0x00,0x23,0x00,0x23,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,
0x24,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0a,0x00,0x00,0x2a,0x00,0x2a,0x00,0x2a,0x00,0x2a,0x00,0x2b,0x00,0x2b,0x00,0x2b,
0x00,0x2b,0x00,0x2b,0x00,0x2b,0x00,0x00,0x00,0xe7,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x6b,0x00,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,
0x2e,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,0x2f,0x00,0x30,0x00,0x30,0x00,0x30,0x00,
0x30,0x00,0x30,0x00,0x33,0x00,0x33,0x00,0x33,0x00,0x33,0x00,0x33,0x00,0x33,0x00,
0x33,0x00,0x33,0x00,0x34,0x00,0x35,0x00,0x35,0x00,0x35,0x00,0x35,0x00,0x36,0x00,
0x36,0x00,0x36,0x00,0x36,0x00,0x36,0x00,0x37,0x00,0x37,0x00,0x37,0x00,0x37,0x00,
0x37,0x00,0x37,0x00,0x37,0x00,0x39,0x00,0x39,0x00,0x39,0x00,0x39,0x00,0x39,0x00,
0x39,0x00,0x39,0x00,0x3a,0x00,0x3a,0x00,0x3a,0x00,0x3a,0x00,0x3a,0x00,0x3c,0x00,
0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3d,0x00,0x3d,0x00,
0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,
0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,
0x3d,0x00,0x3d,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,
0x3e,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,
0x40,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x41,0x00,0x41,0x00,0x41,0x00,
0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x00,0x00,
0x37,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x00,0x00,0x30,
0x00,0x30,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,
0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,
0x00,0x31,0x00,0x31,0x00,0x00,0x00,0x45,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1a,0x00,0x00,0x44,0x00,0x45,0x00,0x46,0x00,0x46,0x00,0x46,0x00,
0x46,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x48,0x00,
0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x4b,0x00,
0x4b,0x00,0x4b,0x00,0x4b,0x00,0x4b,0x00,0x4b,0x00,0x00,0x00,0x1d,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x47,0x00,0x47,0x00,0x47,
0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x00,0x00,0x27,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0b,0x00,0x00,0x4f,0x00,0x50,0x00,0x50,0x00,0x50,0x00,
0x50,0x00,0x51,0x00,0x51,0x00,0x53,0x00,0x53,0x00,0x53,0x00,0x53,0x00,0x00,0x00,
0x3f,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x00,0x00,0x53,
0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x55,
0x00,0x55,0x00,0x56,0x00,0x57,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,
0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x00,0x00,0x23,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x59,0x00,
0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,
0x00,0x00,0x47,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,
0x00,0x5d,0x00,0x5d,0x00,0x5d,0x00,0x5d,0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5e,
0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5f,0x00,0x5f,0x00,0x5f,
0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x60,0x00,0x60,
0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x63,0x00,0x63,0x00,0x63,0x00,0x63,0x00,
0x64,0x00,0x64,0x00,0x64,0x00,0x64,0x00,0x64,0x00,0x64,0x00,0x00,0x00,0x25,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x66,0x00,0x66,
0x00,0x66,0x00,0x66,0x00,0x67,0x00,0x67,0x00,0x67,0x00,0x67,0x00,0x67,0x00,0x67,
0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,
0x00,0x00,0x69,0x00,0x69,0x00,0x69,0x00,0x69,0x00,0x6a,0x00,0x6a,0x00,0x6a,0x00,
0x6a,0x00,0x6a,0x00,0x6a,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x6c,0x00,0x6c,0x00,0x6c,0x00,0x6c,0x00,0x6d,
0x00,0x6d,0x00,0x6d,0x00,0x6d,0x00,0x6d,0x00,0x6d,0x00,0x00,0x00,0x25,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x6f,0x00,0x6f,0x00,
0x6f,0x00,0x6f,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,
0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,
0x00,0x72,0x00,0x72,0x00,0x72,0x00,0x72,0x00,0x73,0x00,0x73,0x00,0x73,0x00,0x73,
0x00,0x73,0x00,0x73,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0a,0x00,0x00,0x75,0x00,0x75,0x00,0x75,0x00,0x75,0x00,0x76,0x00,
0x76,0x00,0x76,0x00,0x76,0x00,0x76,0x00,0x76,0x00,0x00,0x00,0x25,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x78,0x00,0x78,0x00,0x78,
0x00,0x78,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x00,
0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,
0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7c,0x00,0x7c,0x00,
0x7c,0x00,0x7c,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x0a,0x00,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7f,0x00,0x7f,
0x00,0x7f,0x00,0x7f,0x00,0x7f,0x00,0x7f,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x81,0x00,0x81,0x00,0x81,0x00,
0x81,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x00,0x00,
0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x84,
0x00,0x84,0x00,0x84,0x00,0x84,0x00,0x85,0x00,0x85,0x00,0x85,0x00,0x85,0x00,0x85,
0x00,0x85,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0a,0x00,0x00,0x87,0x00,0x87,0x00,0x87,0x00,0x87,0x00,0x88,0x00,0x88,0x00,
0x88,0x00,0x88,0x00,0x88,0x00,0x88,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x8a,0x00,0x8a,0x00,0x8a,0x00,0x8a,
0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x00,0x00,0x25,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x8d,0x00,
0x8d,0x00,0x8d,0x00,0x8d,0x00,0x8e,0x00,0x8e,0x00,0x8e,0x00,0x8e,0x00,0x8e,0x00,
0x8e,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0a,0x00,0x00,0x90,0x00,0x90,0x00,0x90,0x00,0x90,0x00,0x91,0x00,0x91,0x00,0x91,
0x00,0x91,0x00,0x91,0x00,0x91,0x00,0x00,0x00,0x31,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x93,0x00,0x94,0x00,0x94,0x00,0x94,0x00,
0x94,0x00,0x94,0x00,0x95,0x00,0x95,0x00,0x95,0x00,0x95,0x00,0x95,0x00,0x95,0x00,
0x96,0x00,0x96,0x00,0x96,0x00,0x96,0x00,0x00,0x00,0x6d,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x00,0x00,0x9a,0x00,0x9a,0x00,0x9a,0x00,0x9a,
0x00,0x9a,0x00,0x9a,0x00,0x9b,0x00,0x9c,0x00,0x9c,0x00,0x9c,0x00,0x9c,0x00,0x9c,
0x00,0x9c,0x00,0x9c,0x00,0x9c,0x00,0x9d,0x00,0x9d,0x00,0x9d,0x00,0x9d,0x00,0x9d,
0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9f,
0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0xa0,0x00,0xa0,
0x00,0xa0,0x00,0xa0,0x00,0xa1,0x00,0xa1,0x00,0xa1,0x00,0xa1,0x00,0xa1,0x00,0xa1,
0x00,0xa1,0x00,0xa1,0x00,0x00,0x00,0x1b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x05,0x00,0x00,0xa4,0x00,0xa5,0x00,0xa5,0x00,0xa5,0x00,0xa5,0x00,
0x00,0x00,0x8b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0x00,
0x00,0xa8,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,
0x00,0xa9,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,
0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,
0x00,0xac,0x00,0xac,0x00,0xac,0x00,0xac,0x00,0xad,0x00,0xad,0x00,0xad,0x00,0xad,
0x00,0xb6,0x00,0xb6,0x00,0xb6,0x00,0xb6,0x00,0xb7,0x00,0xb7,0x00,0xb7,0x00,0xb7,
0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,
0x00,0xba,0x00,0xba,0x00,0xba,0x00,0xba,0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0xbb,
0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0x00,0x00,0x55,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0xad,0x00,0xaf,0x00,
0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,
0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,
0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,
0xaf,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,
0x00,0x00,0x55,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,
0x00,0xbb,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,
0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,
0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,
0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbf,0x00,0xbf,0x00,0xbf,0x00,0xbf,0x00,0xbf,
0x00,0xbf,0x00,0xbf,0x00,0x00,0x00,0x3d,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x16,0x00,0x00,0xc6,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,
0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,
0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xca,0x00,
0xca,0x00,0x00,0x00,0x47,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x1b,0x00,0x00,0xcd,0x00,0xce,0x00,0xce,0x00,0xce,0x00,0xcf,0x00,0xcf,0x00,0xcf,
0x00,0xcf,0x00,0xcf,0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd1,
0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0xd2,
0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0x00,0x00,0x93,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x00,0xd5,0x00,0xd6,0x00,0xd6,0x00,
0xd6,0x00,0xd6,0x00,0xd6,0x00,0xd6,0x00,0xd7,0x00,0xd7,0x00,0xd7,0x00,0xd8,0x00,
0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,
0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,
0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,
0xda,0x00,0xdb,0x00,0xdb,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,
0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,
0xdd,0x00,0xdd,0x00,0xdd,0x00,0xde,0x00,0xde,0x00,0xde,0x00,0xde,0x00,0xde,0x00,
0xde,0x00,0xde,0x00,0xde,0x00,0xde,0x00,0xdf,0x00,0xdf,0x00,0x00,0x00,0x4b,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0x00,0x01,0x07,0x01,0x07,
0x01,0x07,0x01,0x07,0x01,0x08,0x01,0x08,0x01,0x08,0x01,0x08,0x01,0x09,0x01,0x09,
0x01,0x09,0x01,0x09,0x01,0x0a,0x01,0x0a,0x01,0x0a,0x01,0x0a,0x01,0x0b,0x01,0x0b,
0x01,0x0b,0x01,0x0b,0x01,0x0c,0x01,0x0c,0x01,0x0c,0x01,0x0c,0x01,0x0d,0x01,0x0d,
0x01,0x0d,0x01,0x0d,0x01,0x0d,0x00,0x00,0x00,0x1b,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x01,0x10,0x01,0x10,0x01,0x10,0x01,0x10,0x01,
0x10,0x00,0x00,0x00,0x1b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x05,0x00,0x01,0x11,0x01,0x11,0x01,0x11,0x01,0x11,0x01,0x11,0x00,0x00,0x00,0x1b,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x01,0x12,0x01,
0x12,0x01,0x12,0x01,0x12,0x01,0x12,0x00,0x00,0x00,0x31,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x16,0x01,0x17,0x01,0x17,0x01,0x17,
0x01,0x17,0x01,0x17,0x01,0x17,0x01,0x17,0x01,0x18,0x01,0x18,0x01,0x18,0x01,0x18,
0x01,0x18,0x01,0x18,0x01,0x18,0x01,0x18,0x00,0x00,0x00,0x31,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x1a,0x01,0x1b,0x01,0x1b,0x01,
0x1b,0x01,0x1b,0x01,0x1b,0x01,0x1b,0x01,0x1b,0x01,0x1c,0x01,0x1c,0x01,0x1c,0x01,
0x1c,0x01,0x1c,0x01,0x1c,0x01,0x1c,0x01,0x1c,0x00,0x00,0x00,0x31,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x1e,0x01,0x1f,0x01,0x1f,
0x01,0x1f,0x01,0x1f,0x01,0x1f,0x01,0x1f,0x01,0x1f,0x01,0x20,0x01,0x20,0x01,0x20,
0x01,0x20,0x01,0x20,0x01,0x20,0x01,0x20,0x01,0x20,0x00,0x00,0x00,0x31,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x22,0x01,0x23,0x01,
0x23,0x01,0x23,0x01,0x23,0x01,0x23,0x01,0x23,0x01,0x23,0x01,0x24,0x01,0x24,0x01,
0x24,0x01,0x24,0x01,0x24,0x01,0x24,0x01,0x24,0x01,0x24,0x00,0x00,0x00,0x35,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x26,0x01,0x27,
0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x28,
0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,
0x00,0x00,0x00,0x35,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,
0x00,0x01,0x2a,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,
0x2b,0x01,0x2b,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,
0x2c,0x01,0x2c,0x01,0x2c,0x00,0x00,0x00,0x35,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x2e,0x01,0x2f,0x01,0x2f,0x01,0x2f,0x01,0x2f,
0x01,0x2f,0x01,0x2f,0x01,0x2f,0x01,0x2f,0x01,0x30,0x01,0x30,0x01,0x30,0x01,0x30,
0x01,0x30,0x01,0x30,0x01,0x30,0x01,0x30,0x01,0x30,0x00,0x00,0x00,0x35,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x32,0x01,0x33,0x01,
0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x34,0x01,
0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x00,
0x00,0x00,0x35,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,
0x01,0x36,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,
0x01,0x37,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,
0x01,0x38,0x01,0x38,0x00,0x00,0x00,0x3b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x15,0x00,0x01,0x3a,0x01,0x3b,0x01,0x3b,0x01,0x3b,0x01,0x3b,0x01,
0x3b,0x01,0x3b,0x01,0x3b,0x01,0x3c,0x01,0x3c,0x01,0x3c,0x01,0x3d,0x01,0x3d,0x01,
0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x00,
0x00,0x00,0x41,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0x01,0x40,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,
0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,
0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,
0x00,0x00,0x00,0x39,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,
0x00,0x01,0x44,0x01,0x45,0x01,0x45,0x01,0x45,0x01,0x45,0x01,0x45,0x01,0x45,0x01,
0x45,0x01,0x45,0x01,0x45,0x01,0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x01,
0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x00,0x00,0x00,0x35,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x48,0x01,0x49,0x01,0x49,
0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x4a,0x01,0x4a,
0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x00,0x00,
0x00,0x39,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x01,
0x4c,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,
0x4d,0x01,0x4d,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,
0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x00,0x00,0x00,0x39,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x01,0x50,0x01,0x51,0x01,0x51,0x01,0x51,
0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x52,0x01,0x52,
0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,
0x00,0x00,0x00,0x73,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,
0x00,0x01,0x58,0x01,0x58,0x01,0x58,0x01,0x58,0x01,0x58,0x01,0x59,0x01,0x59,0x01,
0x59,0x01,0x59,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,
0x5b,0x01,0x5b,0x01,0x5c,0x01,0x5c,0x01,0x5c,0x01,0x5d,0x01,0x5d,0x01,0x5d,0x01,
0x5d,0x01,0x5d,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,
0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x61,0x01,0x61,0x01,
0x61,0x01,0x61,0x01,0x61,0x01,0x61,0x01,0x61,0x01,0x64,0x01,0x64,0x01,0x64,0x01,
0x64,0x01,0x64,0x4c,0x56,0x41,0x52,0x00,0x00,0x03,0x50,0x00,0x00,0x00,0x2d,0x00,
0x08,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x04,0x61,0x72,0x67,0x73,0x00,
0x03,0x72,0x65,0x74,0x00,0x01,0x69,0x00,0x04,0x6e,0x61,0x6d,0x65,0x00,0x05,0x70,
0x61,0x72,0x61,0x6d,0x00,0x04,0x6d,0x6f,0x64,0x65,0x00,0x08,0x73,0x68,0x6f,0x72,
0x74,0x63,0x75,0x74,0x00,0x05,0x62,0x6c,0x6f,0x63,0x6b,0x00,0x03,0x69,0x64,0x78,
0x00,0x02,0x69,0x69,0x00,0x05,0x77,0x68,0x69,0x63,0x68,0x00,0x03,0x63,0x6d,0x64,
0x00,0x06,0x6d,0x65,0x74,0x68,0x6f,0x64,0x00,0x03,0x61,0x72,0x67,0x00,0x03,0x6f,
0x62,0x6a,0x00,0x05,0x6e,0x61,0x6d,0x65,0x73,0x00,0x03,0x74,0x62,0x6c,0x00,0x01,
0x76,0x00,0x05,0x65,0x76,0x65,0x6e,0x74,0x00,0x06,0x72,0x65,0x6d,0x6f,0x76,0x65,
0x00,0x03,0x62,0x6c,0x6b,0x00,0x01,0x73,0x00,0x04,0x6c,0x69,0x73,0x74,0x00,0x05,
0x73,0x74,0x61,0x72,0x74,0x00,0x02,0x74,0x70,0x00,0x03,0x73,0x65,0x70,0x00,0x04,
0x70,0x61,0x6e,0x65,0x00,0x04,0x70,0x61,0x74,0x68,0x00,0x04,0x66,0x69,0x6c,0x65,
0x00,0x01,0x65,0x00,0x08,0x6c,0x69,0x6e,0x65,0x5f,0x70,0x6f,0x73,0x00,0x06,0x6c,
0x69,0x6e,0x65,0x6e,0x6f,0x00,0x04,0x65,0x6e,0x64,0x6c,0x00,0x02,0x63,0x68,0x00,
0x0e,0x65,0x64,0x69,0x74,0x6f,0x72,0x5f,0x66,0x6f,0x63,0x75,0x73,0x65,0x64,0x00,
0x03,0x6b,0x65,0x79,0x00,0x05,0x73,0x68,0x69,0x66,0x74,0x00,0x04,0x63,0x74,0x72,
0x6c,0x00,0x03,0x61,0x6c,0x74,0x00,0x03,0x70,0x6f,0x73,0x00,0x03,0x73,0x74,0x72,
0x00,0x07,0x63,0x6f,0x6e,0x74,0x72,0x6f,0x6c,0x00,0x06,0x63,0x68,0x61,0x6e,0x67,
0x65,0x00,0x0c,0x63,0x75,0x72,0x72,0x65,0x6e,0x74,0x5f,0x66,0x69,0x6c,0x65,0x00,
0x00,0x00,0x01,0x00,0x01,0x00,0x02,0xff,0xff,0x00,0x00,0x00,0x02,0x00,0x04,0x00,
0x03,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x04,0x00,0x01,0x00,0x05,0x00,0x02,0xff,
0xff,0x00,0x00,0x00,0x04,0x00,0x01,0x00,0x06,0x00,0x02,0x00,0x07,0x00,0x03,0x00,
0x05,0x00,0x04,0x00,0x08,0x00,0x05,0x00,0x09,0x00,0x06,0x00,0x0a,0x00,0x07,0x00,
0x0b,0x00,0x08,0x00,0x0c,0x00,0x09,0x00,0x0d,0x00,0x01,0x00,0x0e,0x00,0x02,0xff,
0xff,0x00,0x00,0x00,0x0f,0x00,0x04,0x00,0x10,0x00,0x05,0x00,0x04,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x11,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x12,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x04,0x00,0x03,0x00,0x0c,0x00,0x04,0x00,0x06,0x00,0x05,0x00,
0x07,0x00,0x06,0x00,0x0e,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x13,0x00,0x01,0x00,
0x14,0x00,0x02,0x00,0x15,0x00,0x03,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x16,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x17,0x00,0x01,0x00,0x18,0x00,0x02,0x00,0x19,0x00,0x03,0x00,0x15,0x00,0x04,0x00,
0x1a,0x00,0x05,0x00,0x16,0x00,0x06,0x00,0x1b,0x00,0x07,0xff,0xff,0x00,0x00,0xff,
0xff,0x00,0x00,0x00,0x1c,0x00,0x02,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1e,0x00,0x03,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1e,0x00,0x03,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1b,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1f,0x00,0x03,0x00,0x20,0x00,0x04,0x00,0x21,0x00,0x05,0x00,0x22,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x23,0x00,0x03,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0xff,
0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
0x22,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x24,0x00,0x01,0x00,
0x25,0x00,0x02,0x00,0x26,0x00,0x03,0x00,0x27,0x00,0x04,0xff,0xff,0x00,0x00,0x00,
0x28,0x00,0x01,0x00,0x16,0x00,0x02,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x19,0x00,0x01,0x00,0x29,0x00,0x02,0xff,0xff,0x00,0x00,0x00,
0x2a,0x00,0x01,0x00,0x2b,0x00,0x02,0xff,0xff,0x00,0x00,0x00,0x2c,0x00,0x01,0x00,
0x1e,0x00,0x02,0x45,0x4e,0x44,0x00,0x00,0x00,0x00,0x08,
};
|
# this is the interface for `python archiver`
import archiver
import appdirs
import os
import sys
import pickle
import json
from archiver.archiver import Archiver
from archiver.parser import parseArgs
args = parseArgs()
from edit import edit
print args
#-- import pdb
#-- pdb.set_trace()
# load the user data
# get the user data directory
user_data_dir = appdirs.user_data_dir('FileArchiver', 'jdthorpe')
if not os.path.exists(user_data_dir) :
os.makedirs(user_data_dir)
# LOAD THE INDEX NAMES AND ACTIVE INDEX
indexes_path = os.path.join(user_data_dir,'INDEXES.json')
if os.path.exists(indexes_path):
with open(indexes_path,'rb') as fh:
indexes = json.load(fh)
else:
indexes= {'active':None,'names':[]}
if not os.path.exists(user_data_dir):
os.makedirs(user_data_dir)
def dumpIndexes():
with open(indexes_path,'wb') as fh:
json.dump(indexes,fh)
def getActiveName():
# ACTIVE INDEX NUMER
activeIndex = indexes['active']
if activeIndex is None:
print "No active index. Use 'list -i' to list available indexies and 'use' to set an active index."
sys.exit()
# GET THE NAME OF THE INDEX
try:
activeIndexName = indexes['names'][indexes['active']]
except:
print "Invalid index number"
sys.exit()
return activeIndexName
# READ-WRITE UTILITY FUNCTIONS
# TODO: catch specific excepitons:
# except IOError:
# # no such file
# except ValueError as e:
# # invalid json file
def readSettings(name):
""" A utility function which loads the index settings from file
"""
try:
with open(os.path.join(user_data_dir,name+".settings"),'rb') as fh:
settings = json.load(fh)
except Exception as e:
print "Error reading index settings"
import pdb
pdb.set_trace()
sys.exit()
return settings
def readData(name):
""" A utility function which loads the index data from file
"""
try:
with open(os.path.join(user_data_dir,name+".data"),'rb') as fh: data = pickle.load(fh)
except Exception as e:
print "Error reading index data"
import pdb
pdb.set_trace()
sys.exit()
return data
def dumpSettings(settings,name):
""" A utility function which saves the index settings to file
"""
try:
with open(os.path.join(user_data_dir,name+".settings"),'wb') as fh:
json.dump(settings,fh)
except Exception as e:
print "Error writing index settings"
import pdb
pdb.set_trace()
sys.exit()
def dumpData(data,name):
""" A utility function which saves the index settings to file
"""
try:
with open(os.path.join(user_data_dir,name+".data"),'wb') as fh:
pickle.dump(data,fh)
except:
print "Error writing index data"
import pdb
pdb.set_trace()
sys.exit()
if args.command == 'add':
activeName = getActiveName()
settings = readSettings(activeName)
if args.source is not None:
source = os.path.abspath(args.source)
if not os.path.exists(source):
print 'WARNING: no such directory "%s"'%(source)
elif not os.path.isdir(source):
print 'ERROR: "%s" is not a directory'%(source)
sys.exit()
print 'Adding source directory: %s'%(source)
if not any(samefile(source,f) for f in settings['sourceDirectories']):
settings['sourceDirectories'].append(source)
elif args.exclusions is not None:
import re
try:
re.compile(args.exclusion)
except re.error:
print 'Invalid regular expression "%s"'%(args.exclusion)
sys.exit()
if args.noic:
settings['<API key>'].append(args.exclusion)
else:
settings['<API key>'].append((args.exclusion,2)) # re.I == 2
elif args.archive is not None:
raise NotImplementedError
if settings['archiveDirectory'] is not None:
print "Archive path has already been set use 'remove' to delete the archive path before setting a new archive path"
archiveDirectory = os.path.abspath(args.archive)
if not os.path.exists(archiveDirectory):
if args.create :
os.makedirs(archiveDirectory)
else:
print 'ERROR: no such directory "%s"'%(archiveDirectory)
sys.exit()
elif not os.path.isdir(archiveDirectory):
print '"%s" is not a directory'%(archiveDirectory)
sys.exit()
print 'Setting archive directory to: %s'%(archiveDirectory)
settings['archiveDirectory'] = args.archive
else:
raise NotImplementedError
print 'Error in Arg Parser'
sys.exit()
dumpSettings(settings,activeName)
elif args.command == 'list':
if args.sources:
for f in readSettings(getActiveName())['sourceDirectories']:
print f
elif args.exclusions:
for f in readSettings(getActiveName())['<API key>']:
print f
elif args.archive:
print readSettings(getActiveName())['archiveDirectory']
elif args.files:
archiver = Archiver()
archiver.data = readData(getActiveName())
for f in archiver:
print f
elif args.indexes:
print 'Active Index: %s (*)'%(getActiveName())
print 'Index Names: '
for i,name in enumerate(indexes['names']):
print ' %s %i: %s'%(
(' ','*')[(i == indexes['active'])+0],
i+1,
name,
)
else:
print 'Error in Arg Parser'
elif args.command == 'remove':
activeName = getActiveName()
settings = readSettings(activeName)
if args.source is not None:
if not (1 <= args.source <= len(settings['sourceDirectories'])):
print 'Invalid index %i'%(args.source)
del settings['sourceDirectories'][args.source - 1]
elif args.exclusion is not None:
raise NotImplementedError
if not (1 <= args.exclusion <= len(settings['<API key>'])):
print 'Invalid index %i'%(args.exclusion)
del settings['<API key>'][args.exclusion - 1]
elif args.archive is not None:
raise NotImplementedError
settings['archiveDirectory'] = None
else:
raise NotImplementedError
print 'Error in Arg Parser'
sys.exit()
dumpSettings(settings,activeName)
elif args.command == 'update':
activeName = getActiveName()
settings = readSettings(activeName)
if not len(settings['sourceDirectories']):
print "Error: no source directories in the active index. Please add a source directory via 'add -s'"
archiver = Archiver(
settings = readSettings(activeName),
data = readData(activeName))
archiver.update()
dumpSettings(archiver.settings,activeName)
dumpData(archiver.data,activeName)
elif args.command == 'clean':
raise NotImplementedError
activeName = getActiveName()
archiver = Archiver(
settings = readSettings(activeName),
data = readData(activeName))
archiver.clean()
dumpSettings(archiver.settings,activeName)
dumpData(archiver.data,activeName)
elif args.command == 'copy':
raise NotImplementedError
activeName = getActiveName()
settings = readSettings(activeName),
if settings['archiveDirectory'] is None:
print "ERROR Archive directory not set. Use 'add -a' to set the archive directory."
sys.exit()
Index(
settings = settings,
data = readData(activeName)).copy()
elif args.command == 'diskimages':
raise NotImplementedError
if args.size is None or args.size == "DVD":
size = 4.65*1<<20
elif args.size == "CD":
size = 645*1<<20
elif args.size == "DVD":
size = 4.65*1<<20
elif args.size == "DVD-dual":
size = 8.5*1<<30
elif args.size == "BD":
size = 25*1<<30
elif args.size == "BD-dual":
size = 50*1<<30
elif args.size == "BD-tripple":
size = 75*1<<30
elif args.size == "BD-xl":
size = 100*1<<30
else:
try:
size = int(float(args.size))
except:
print 'ERROR: unable to coerce "%s" to float or int'%(args.size)
sys.exit()
activeName = getActiveName()
settings = readSettings(activeName),
# GET THE DIRECTORY ARGUMENT
if args.directory is not None:
directory = args.directory
else:
if settings['archiveDirectory'] is None:
print "ERROR Archive directory not set and no directory specified. Use 'diskimages -d' to specifiy the disk image directory or 'add -a' to set the archive directory."
sys.exit()
else:
directory = os.path.join(settings['archiveDirectory'],'Disk Images')
# VALIDATE THE DIRECTORY
if not os.path.exists(directory):
if args.create :
os.makedirs(directory)
else:
print 'ERROR: no such directory "%s"'%(directory)
sys.exit()
elif not os.path.isdir(directory):
print '"%s" is not a directory'%(directory)
sys.exit()
# get the FPBF argument
if args.fpbf is not None:
FPBF = True
elif args.nofpbf is not None:
FPBF = False
else:
FPBF = sys.platform == 'darwin'
Index( settings = settings,
data = readData(activeName)).diskimages(directory,size,FPBF)
elif args.command == 'settings':
activeName = getActiveName()
if args.export is not None:
raise NotImplementedError
with open(args.export,'rb') as fh:
json.dump(readSettings(activeName),fh,indent=2,separators=(',', ': '))
elif args.load is not None:
raise NotImplementedError
with open(args.export,'wb') as fh:
settings = json.load(fh)
# give a chance for the settings to be validated
try:
archiver = Archiver(settings=settings)
except:
print "ERROR: invalid settings file"
dumpSettings(archiver.settings,args.name)
elif args.edit is not None:
settings = readSettings(activeName)
old = settings['identifierSettings'][args.edit]
new = edit(json.dumps(old,indent=2,separators=(',', ': ')))
settings['identifierSettings'][args.edit]= json.loads(new)
dumpSettings(settings,activeName)
else :
print json.dumps(readSettings(activeName),indent=2,separators=(',', ': '))
elif args.command == 'create':
if args.name in indexes['names']:
print "An index by the name '%s' already exists"%(args.name)
sys.exit()
import re
validater = re.compile(r'^[-() _a-zA-Z0-9](?:[-() _.a-zA-Z0-9]+[-() _a-zA-Z0-9])$')
if validater.match(args.name) is None:
print "ERROR: names must be composed of letters, numbers, hypen, underscore, space and dot charactes an not end or begin with a dot"
sys.exit()
archiver = Index()
dumpSettings(archiver.settings,args.name)
dumpData(archiver.data,args.name)
indexes['names'].append(args.name)
dumpIndexes()
# TODO: check if there are no other indexies. if so, make the new one active.
print "Created index '%s'"%(args.name)
elif args.command == 'save':
raise NotImplementedError
Index( settings = readSettings(getActiveName()),
data = readData(getActiveName())).save(args.filename)
elif args.command == 'use':
print indexes['names']
if not args.name in indexes['names']:
print "ERROR: No such index named '%s'"%(args.name)
sys.exit()
indexes['active'] =indexes['names'].index(args.name)
dumpIndexes()
elif args.command == 'delete':
if not args.name in indexes['names']:
print "ERROR: No such index named '%s'"%(args.name)
sys.exit()
nameIindex = indexes['names'].index(args.name)
if indexes['active'] == nameIindex:
print 'WARNING: deleting active index'
indexes['active'] = None
del indexes['names'][nameIindex]
dumpIndexes()
else :
print "unknown command %s"%(args.command)
|
package tools.devnull.boteco.predicates;
import org.junit.Before;
import org.junit.Test;
import tools.devnull.boteco.message.IncomeMessage;
import tools.devnull.boteco.Predicates;
import tools.devnull.kodo.Spec;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static tools.devnull.boteco.TestHelper.accept;
import static tools.devnull.boteco.TestHelper.notAccept;
import static tools.devnull.kodo.Expectation.it;
import static tools.devnull.kodo.Expectation.to;
public class TargetPredicateTest {
private IncomeMessage messageFromTarget;
private IncomeMessage <API key>;
private IncomeMessage <API key>;
@Before
public void initialize() {
messageFromTarget = mock(IncomeMessage.class);
when(messageFromTarget.target()).thenReturn("target");
<API key> = mock(IncomeMessage.class);
when(<API key>.target()).thenReturn("other-target");
<API key> = mock(IncomeMessage.class);
when(<API key>.target()).thenReturn("unknown-target");
}
@Test
public void test() {
Spec.given(Predicates.target("target"))
.expect(it(), to(accept(messageFromTarget)))
.expect(it(), to(notAccept(<API key>)))
.expect(it(), to(notAccept(<API key>)));
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
using Icy.Util;
namespace Icy.Database.Query
{
public class JoinClauseOptions{
public object first;
public string operator1;
public object second;
public string boolean;
public bool where;
public bool nested;
public JoinClause join;
}
// 4d8e4bb Dec 28, 2015
public class JoinClause
{
/**
* The type of join being performed.
*
* @var string
*/
public string _type;
/**
* The table the join clause is joining to.
*
* @var string
*/
public string _table;
/**
* The "on" clauses for the join.
*
* @var array
*/
public JoinClauseOptions[] _clauses = new JoinClauseOptions[0];
/**
* The "on" bindings for the join.
*
* @var array
*/
public object[] _bindings = new object[0];
/**
* Create a new join clause instance.
*
* @param string type
* @param string table
* @return void
*/
public JoinClause(string type, string table)
{
this._type = type;
this._table = table;
}
/**
* Add an "on" clause to the join.
*
* On clauses can be chained, e.g.
*
* join.on('contacts.user_id', '=', 'users.id')
* .on('contacts.info_id', '=', 'info.id')
*
* will produce the following SQL:
*
* on `contacts`.`user_id` = `users`.`id` and `contacts`.`info_id` = `info`.`id`
*
* @param string first
* @param string|null operator
* @param string|null second
* @param string boolean
* @param bool where
* @return this
*/
public JoinClause on(Action<JoinClause> first, string operator1 = null, object second = null, string boolean = "and", bool where = false)
{
return this.nest(first, boolean);
}
public JoinClause on(object first, string operator1 = null, object second = null, string boolean = "and", bool where = false)
{
if (where)
{
this._bindings = ArrayUtil.push(this._bindings, second);
}
if(where && (operator1 == "in" || operator1 == "not in") && (second is IList<object> || second is object[])){
second = ((IList<object>)second).Count;
}
JoinClauseOptions options = new JoinClauseOptions();
options.first = first;
options.operator1 = operator1;
options.second = second;
options.boolean = boolean;
options.where = where;
options.nested = false;
this._clauses = ArrayUtil.push(this._clauses, options);
return this;
}
/**
* Add an "or on" clause to the join.
*
* @param string first
* @param string|null operator
* @param string|null second
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orOn(object first, string operator1 = null, object second = null)
{
return this.on(first, operator1, second, "or");
}
/**
* Add an "on where" clause to the join.
*
* @param string first
* @param string|null operator
* @param string|null second
* @param string boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause where(object first, string operator1 = null, object second = null, string boolean = "and")
{
return this.on(first, operator1, second, boolean, true);
}
/**
* Add an "or on where" clause to the join.
*
* @param string first
* @param string|null operator
* @param string|null second
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhere(object first, string operator1 = null, object second = null)
{
return this.on(first, operator1, second, "or", true);
}
/**
* Add an "on where is null" clause to the join.
*
* @param string column
* @param string boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereNull(object column, string boolean = "and")
{
return this.on(column, "is", new Expression("null"), boolean, false);
}
/**
* Add an "or on where is null" clause to the join.
*
* @param string column
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereNull(object column)
{
return this.whereNull(column, "or");
}
/**
* Add an "on where is not null" clause to the join.
*
* @param string column
* @param string boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereNotNull(object column, string boolean = "and")
{
return this.on(column, "is", new Expression("not null"), boolean, false);
}
/**
* Add an "or on where is not null" clause to the join.
*
* @param string column
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereNotNull(object column)
{
return this.whereNotNull(column, "or");
}
/**
* Add an "on where in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereIn(object column, object[] values)
{
return this.on(column, "in", values, "and", true);
}
/**
* Add an "on where not in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereNotIn(object column, object[] values)
{
return this.on(column, "not in", values, "and", true);
}
/**
* Add an "or on where in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereIn(object column, object[] values)
{
return this.on(column, "in", values, "or", true);
}
/**
* Add an "or on where not in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereNotIn(object column, object[] values)
{
return this.on(column, "not in", values, "or", true);
}
/**
* Add a nested where statement to the query.
*
* @param \Closure $callback
* @param string $boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause nest(Action<JoinClause> callback, string boolean = "and")
{
JoinClause join = new JoinClause(this._type, this._table);
callback(join);
if (join._clauses.Length > 0) {
JoinClauseOptions options = new JoinClauseOptions();
options.nested = true;
options.join = join;
options.boolean = boolean;
this._clauses = ArrayUtil.push(this._clauses, options);
this._bindings = ArrayUtil.concat(this._bindings, join._bindings);
}
return this;
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.